Determining if Two Node Sets Contain the Same Data


/ Published in: XSLT
Save to your folder(s)

Makes use of XPath's union operator | .


Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.