This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

How can I get the position of an element that has a descendant 'y' with value 'z' ?


Hi

How can I get the position of an element that has a descendant 'y' with value 'z' ?

<?xml version="1.0"?>
<elementList>
    <element>
        <x>
            <y>a</y>
        </x>
    </element>
    <element>
        <x>
            <y>z</y>
        </x>
    </element>
</elementList>
 
I would want to get the position of the element that has a descendant 'y' whose value is 'z' and put it in a variable, in the above example the value of the variable should be 2.
 
thank you
 
               

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]