Click here to Skip to main content
15,898,035 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi
i am getting the Expected node error in XSLT. please see the below line

Here the DynamicRoles variable contains the MCA as value

<pre><xsl:for-each select="//EagleDatas">

<xsl:variable test = "DynamicRoles" select="MCA">

<xsl:value-of select ="//EagleDatas[$i]/@[$DynamicRoles]"/>
</xsl:for-each>



The Bolded line is getting the error. if any once know please let me know.


Here my XML is


<EagleDatas MCA="Johnselvam"/>
<EagleDatas MCA="Manielvam"/>
<EagleDatas MCA="Sriganthselvam"/>
Posted
Comments
E.F. Nijboer 28-Feb-12 8:10am    
Could you please explain what you are trying to do? It would make it a lot easier to get you on your way. For one, 'name' should be used instead of 'test' with '<xsl:variable ...=". Second, where is $i coming from? please elaborate.

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