get value, not the path...
Hi,
New to the world of xslt, and working my way through my first project. 99% there, but I'm having a problem trying to compare two nodes. The $expectedValue variable winds up with the path's location, not with the value of the node at the path's location. How do I accomplish what I'm looking to do?
<xsl:variable name="myTag" select="name()" />
<xsl:variable name="uniqueAncestor" select="Step_1_DummyInfo" />
<xsl:variable name="thisValue" select="." />
<xsl:variable name="partPath1" select = "concat('../../../../../ExpectedHeader/',$uniqueAncestor)" />
<xsl:variable name="partPath2" select = "concat($partPath1,'//')" />
<xsl:variable name="expectedPath" select = "concat($partPath2,$myTag)" />
<xsl:variable name="expectedValue" select="$expectedPath" />
<!-- having trouble - the $expectedValue variable contains the STRING, not the Value, how do I get it to pull
the VALUE so I can test it as follows: -->
<xsl:choose>
<xsl:when test="$expectedValue = $thisValue">
Thanks!
__________________
Thanks!
|