|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] dynamic node access
Hi
I am trying to retrieve an attribute value from a particular node, which has been reached dynamically. However the control tends to remain on the previous node. So my code <xsl:if test="following-sibling::TopNode[@name = $constraint]"> <!--e.g. should display 'Toyota'> <xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute> <xsl:attribute name="name"><xsl:value-of select="@name"/></xsl:attribute> </xsl:if> still returns 'Car' instead of 'Toyota'. This <xsl:if> is inside another <xsl:if> clause which returns 'Car'. How can I get the control to move to the node which contains the @name=Toyota ? Could someone please help as I cant find any relevant information. Thanks Rahil
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








