W3C home > Mailing lists > Public > public-qt-comments@w3.org > May 2003

Re: May F&O: Deep Equality of Nodes

From: Tobias Reif <tobiasreif@pinkjuice.com>
Date: Thu, 08 May 2003 12:57:25 +0200
Message-ID: <3EBA3815.6060005@pinkjuice.com>
To: public-qt-comments@w3.org
CC: davidc@nag.co.uk

"In comments on earlier drafts I commented that deep-equality ought to 
be moved to the user-defined examples appendix as it will almost always 
be the case that specific applications need to tweak this definition to 
have different behaviour with respect to comments, white space, in scope 
namespaces etc etc."

I'm using deep-equal() as it is; it's very useful. The requirement you 
describe exists, but doesn't mean that it should cease to be a core 

For example, I'm doing

   <xsl:variable name="output_filtered_for_comparison">
     <xsl:apply-templates select="$output_raw"

I like deep-equal(), leave it in there :)

It's also handy when it can be used as it is, without tweaking or 
filtering; no function needs to be defined, no filters written. People 
can simply use it.


[1] the simple and short filter:
<xsl:template priority="1" mode="filter_for_comparison"
<xsl:template mode="filter_for_comparison" match="@* | node()">
     <xsl:apply-templates mode="filter_for_comparison"
       select="@* | node()"/>
<xsl:template mode="filter_for_comparison"

Received on Thursday, 8 May 2003 06:58:40 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:45:12 UTC