Subject: Re: [xsl] would like to simplify my XSLT|
From: Abel Braaksma <abel.online@xxxxxxxxx>
Date: Tue, 30 Jan 2007 16:54:08 +0100
but it's rather more readable to say
key('x','a') intersect key('x','b')
That woudl get very confusing, especially for text nodes (which many
people use interchangeably with strings). You want it to be clear in the
syntax wheter you are doing identity-equality (so two nodes are ony
equal if they are the same node, or value-equality, where two items are
equal if they have the same string value.
You may have noticed that there are example user-written functions to dohmm, imo, (d) could've been taken from the description of deep-equal, which defines such equality.
value-based union, intersection, and difference of sets of atomic values in
an appendix of the F+O spec.
Furthermore, (d) it's not exactly obvious what the spec should be, e.g. ordering of the result, promotion of numeric types, handling of NaN, etc, especially in corner cases for example where you have two decimals that are not-equal to each other but both equal to the same double.
Thanks, -- Abel