[Home] [By Thread] [By Date] [Recent Entries]
This works well when I have 1 element as child of the "original" element, however when using the following input:I can not manage to make the deep-equal function work with the node() function. <body> <selection> <z color="blue" flavor="vanilla">test 1</z> </selection> <original> <x color="red" flavor="chocolate">test 2</x> <z color="blue" flavor="vanilla">test 1</z> </original> </body> With this stylesheet: <xsl:template match="/"> <xsl:choose> <xsl:when test="deep-equal(body/selection/*, body/original/*)">true</xsl:when> <xsl:otherwise>false</xsl:otherwise> </xsl:choose> </xsl:template> It results in "false", while there is a node in <original> which is equal to the node in <selection>. -- Best regards, Jethro Borsje http://www.jborsje.nl
|

Cart



