[Home] [By Thread] [By Date] [Recent Entries]
Hi everybody,
I can not manage to make the deep-equal function work with the node() function. I am usting the following template: <xsl:template match="/"> <xsl:choose> <xsl:when test="deep-equal(body/selection/node(), body/original/node())">true</xsl:when> <xsl:otherwise>false</xsl:otherwise> </xsl:choose> </xsl:template> With the following XML as input: <body> <selection> <z color="blue" flavor="vanilla">test 1</z> </selection> <original> <z color="blue" flavor="vanilla">test 1</z> </original> </body> The output of this is "false" (although I expected "true"). The strange thing is that when using the following template the output is "true": <xsl:template match="/"> <xsl:choose> <xsl:when test="deep-equal(body/selection/z, body/original/z)">true</xsl:when> <xsl:otherwise>false</xsl:otherwise> </xsl:choose> </xsl:template> So there is probably something wrong with how I use the node() function. -- Best regards, Jethro Borsje http://www.jborsje.nl Jethro Borsje wrote: Hi there,
|

Cart



