[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Comparing node-sets or groups. Deep-equal with an

Subject: Re: 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
Re:  Comparing node-sets or groups. Deep-equal with an
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.