Posted By

Meander365 on 08/13/09


node xslt set operator nodes UNION equal same generate-if

Versions (?)

Who likes this?

1 person have marked this snippet as a favorite


Determining if Two Node Sets Contain the Same Data

 / Published in: XSLT

Makes use of XPath's union operator | .

  1. <xsl:if test="count($nodeSet1|$nodeSet2) = count($nodeSet1) and count($nodeSet1) = count($nodeSet2)">
  2. <xsl:text>Node set are the same</xsl:text>
  3. </xsl:if>

Report this snippet  

You need to login to post a comment.