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

Re: compare two node sets

Subject: Re: compare two node sets
From: "Piez, Wendell A. (Fed) wendell.piez@xxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 21 Jan 2020 17:23:49 -0000
Re:  compare two node sets
Liam: Yes. It is the definition of "the same" that is at the heart of this
problem (as of so many).

Cheers, Wendell

-----Original Message-----
From: Liam R. E. Quin liam@xxxxxxxxxxxxxxxx
<xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Tuesday, January 21, 2020 11:42 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re:  compare two node sets

On Tue, 2020-01-21 at 15:42 +0000, Piez, Wendell A. (Fed)
wendell.piez@xxxxxxxx wrote:
> Hi,
>
> Another solution not yet suggested in this thread is to avoid deep-
> equal() and rely on a signature function.
Yes. I admit i tend to avoid deep-equal for this sort of thing because of its
behaviour with comments or processing instructions, and because the definition
of equality tends to vary over time - e.g. wanting to ignore prefix and
suffic/credentials elements or needing a case- insensitive comparison on
family name to cope with latin transcriptions of Japanese family names.

But that depends on the business context - the source of the data and who
mantains the various parts of the XSLT.

Liam

--
Liam Quin,
https://gcc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.delight
fulcomputing.com%2F&amp;data=02%7C01%7Cwendell.piez%40nist.gov%7C797aefa9c481
4a891d6b08d79e90d8d6%7C2ab5d82fd8fa4797a93e054655c61dec%7C1%7C1%7C63715221727
2483813&amp;sdata=f5I2wFUFHT3G9oOGlI0xB2CwKXqZulD7K686PjjCzSQ%3D&amp;reserved
=0
Available for XML/Document/Information Architecture/XSLT/ XSL/XQuery/Web/Text
Processing/A11Y training, work & consulting.
Barefoot Web-slave, antique illustrations:
https://gcc01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.fromoldb
ooks.org&amp;data=02%7C01%7Cwendell.piez%40nist.gov%7C797aefa9c4814a891d6b08d
79e90d8d6%7C2ab5d82fd8fa4797a93e054655c61dec%7C1%7C1%7C637152217272483813&amp
;sdata=uOBi8IOwAn1tgjtme8%2B%2Fw4UzXopTu4vVSkGzzmK70dI%3D&amp;reserved=0

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.