Click here to Skip to main content
15,897,187 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:

Hi ,

if i use the below line in the XSLT i am getting the unexpected token error in XSLT.


Here DynamicRoles variable contains the value

xsl:value-of select="//EagleDatas[$i]/$DynamicRoles"

if any one know please let me know
Posted
Updated 27-Feb-12 21:55pm
v3

1 solution

You cannot do somewhat of an array operation in xslt the way you do. You would need to use position, like "position() = 1". But actually I don't think you need it at all. I also wonder what $DynamicRoles is for in this context. Have a look at/try with this:
<xsl:for-each select="//EagleDatas" xmlns:xsl="#unknown">
 <xsl:value-of select="." />
</xsl:for-each>

Good luck!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900