Is it possible to select something, in a stylesheet, based on the value of two attributes...
Say, my input has an array of elements:
<MyElement id="d1" type="string" value="value1"/>
<MyElement id="d2" type="string" value="value2"/>
<MyElement id="d3" type="string" value="value3"/>
In the style sheet I am trying to do this:
<xsl:variable name="eVal" select="./MyElement[position()=2][@value]"/>
Is this possible ?
My intent is to select the value "value2" but I seem to be getting
a "" null
string.
Any help is appreciated......