Re: [xsl] Comparing node-sets or groups. Deep-equal with an exception?

Subject: Re: [xsl] Comparing node-sets or groups. Deep-equal with an exception?
From: "Martin Honnen martin.honnen@xxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 6 Nov 2019 15:48:27 -0000
Am 06.11.2019 um 16:39 schrieb Flanders, Charles E (US)
charles.flanders@xxxxxxxxxxxxxx:
Using Saxon HE 9.6.0.7 in Oxygen 18.1. Have access to EE and PE that are
part of Oxygen.


So then you should be able to use Saxon's serialize function instead of the XPath 3 one:


B <xsl:output name="element" omit-xml-declaration="yes" indent="no"/>


B  <xsl:function name="mf:finger-print" as="xs:string">
B B B B B  <xsl:param name="element" as="element()"/>
B B B B B  <xsl:variable name="normalized-element" as="element()">
B B B B B B B B B  <xsl:apply-templates select="$element" mode="normalize"/>
B B B B B  </xsl:variable>

B B B B B  <xsl:sequence select="saxon:serialize($normalized-element,
'element')" xmlns:saxon="http://saxon.sf.net/"/>
B  </xsl:function>


B <xsl:template match="@* | node()" name="normalize">


B B B <xsl:copy>

B B B B B <xsl:apply-templates select="@* | node()" mode="#current"/>

B B </xsl:copy>

</xsl:template>

B <xsl:template match="terefs/teref/@refs" mode="normalize"/>

Current Thread