Subject: Re: [xsl] 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 |
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: [xsl] 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&data=02%7C01%7Cwendell.piez%40nist.gov%7C797aefa9c481 4a891d6b08d79e90d8d6%7C2ab5d82fd8fa4797a93e054655c61dec%7C1%7C1%7C63715221727 2483813&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.fromoldb ooks.org&data=02%7C01%7Cwendell.piez%40nist.gov%7C797aefa9c4814a891d6b08d 79e90d8d6%7C2ab5d82fd8fa4797a93e054655c61dec%7C1%7C1%7C637152217272483813& ;sdata=uOBi8IOwAn1tgjtme8%2B%2Fw4UzXopTu4vVSkGzzmK70dI%3D&reserved=0
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] compare two node sets, Liam R. E. Quin liam | Thread | Re: [xsl] compare two node sets, Michael Kay mike@xxx |
Re: [xsl] compare two node sets, Piez, Wendell A. (Fe | Date | Re: [xsl] compare two node sets, Michael Kay mike@xxx |
Month |