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(_at_)fromoldbooks(_dot_)org
<xsl-list-service(_at_)lists(_dot_)mulberrytech(_dot_)com>
Sent: Tuesday, January 21, 2020 11:42 AM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: Re: [xsl] compare two node sets
On Tue, 2020-01-21 at 15:42 +0000, Piez, Wendell A. (Fed)
wendell(_dot_)piez(_at_)nist(_dot_)gov 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.delightfulcomputing.com%2F&data=02%7C01%7Cwendell.piez%40nist.gov%7C797aefa9c4814a891d6b08d79e90d8d6%7C2ab5d82fd8fa4797a93e054655c61dec%7C1%7C1%7C637152217272483813&sdata=f5I2wFUFHT3G9oOGlI0xB2CwKXqZulD7K686PjjCzSQ%3D&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.fromoldbooks.org&data=02%7C01%7Cwendell.piez%40nist.gov%7C797aefa9c4814a891d6b08d79e90d8d6%7C2ab5d82fd8fa4797a93e054655c61dec%7C1%7C1%7C637152217272483813&sdata=uOBi8IOwAn1tgjtme8%2B%2Fw4UzXopTu4vVSkGzzmK70dI%3D&reserved=0
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--