tesmc
asked on
XSL: retrieve value of attribute
<root>
<Envelope>
<Body>
<ReadRS>
<Itin>
<Info>
<Items>
<Item RSS="1">
<Flight ... />
</Item>
</Items>
</Info>
</Itin>
</ReadRS>
</Body>
</Envelope>
</root>
i'm trying to grab the attribute @RSS by doing the following
<xsl:for-each select="/root/Envelope/Bod y/ReadRS/I tin/Info/I tems/Item/ Flight">
<xsl:value-of select="number(./@RSS)"/>
</xsl:for-each>
but this keeps returning NaN.
What am i doing wrong?
<Envelope>
<Body>
<ReadRS>
<Itin>
<Info>
<Items>
<Item RSS="1">
<Flight ... />
</Item>
</Items>
</Info>
</Itin>
</ReadRS>
</Body>
</Envelope>
</root>
i'm trying to grab the attribute @RSS by doing the following
<xsl:for-each select="/root/Envelope/Bod
<xsl:value-of select="number(./@RSS)"/>
</xsl:for-each>
but this keeps returning NaN.
What am i doing wrong?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
welcome
ASKER
thank you so much. works now.