If I have a document like this:
 
<a>
  <b>value1</b>
  <b>value2</b>
  <b>value3</b>
</a>
 
And I want to find the '<a>' node which has the 2nd '<b>' = value2 and the 3rd '<b>' = value3, is there any way to do this? I have tried position, such as (from the context of <a>):
 
<xsl:value-of select="./*[(position()=2 and .='value2') and (position()=3) and .='value3'" />
 
It seems that its checking one node at a time, so the node cannot belong to position 2 and 3 at the same time. Any ideas?
 
Thanks,
 
Cory
 
Cory Isaacson
President & CTO
Compuflex International
(818) 884-1168
[EMAIL PROTECTED]
www.compuflex.com
 

Reply via email to