Hi All
I have a simple question image the following XML
<toplevel>
<toptest odd=”Yes”>
<midlevel>
<midlevel value=”1000”>
</midlevel>
<toplevel>
Midway through my template i am then trying to access a parents' nodes elements attribute like so...
<xsl:for-each select="midlevel">
<xsl:value-of select="../toptest@odd"/>
</xsl:for-each>
Problem is this doesn't work.
I have a work around by using variables but this (invented?) syntax I am using should surely work??? Is it my parser?
Thanks for any help in advance
I have a simple question image the following XML
<toplevel>
<toptest odd=”Yes”>
<midlevel>
<midlevel value=”1000”>
</midlevel>
<toplevel>
Midway through my template i am then trying to access a parents' nodes elements attribute like so...
<xsl:for-each select="midlevel">
<xsl:value-of select="../toptest@odd"/>
</xsl:for-each>
Problem is this doesn't work.
I have a work around by using variables but this (invented?) syntax I am using should surely work??? Is it my parser?
Thanks for any help in advance