Hello,
I'm trying to use xslt to perform a simple map.
First I define a variable pointing to the node which I want to copy and then use "xsl:copy-of select=$var"
Ex. <xsl:variable name="myVar1" select="//cds/cd[@name='2']/node1/node2/addr2" />
This is working fine for a simple test xsl and test xml. However with actual xml, it is just not copying the node at all.
Only difference between test xsl and actual one is that the names of nodes are really long in the actual xsl (xml on which this needs to be applied has long node name), and the test xsl & xml dont have any namespace prefixes.
It works fine if I point the variable only till root node ie <xsl:variable name="myVar1" select="//cds/cd[@name='2'] but I want to copy the node somewhere below that (ie node1/node2/addr2)
I dont see any error in xsl (I use XMLSpy), just wondering if there's any limitation on the length of node names while defining variables?
Thanks,
Ashish