Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Clarify the concept of equality in p:wrap, p:wrap-sequence etc. #302
Currently we say:
As @ndw and I found out, the concept of having "the same group adjacent value" is ambiguous because it could either mean that the two values are equal or that they are deep-equal.
Remember there are differences between the two concepts as "() = ()" is false(), but "deep-equal((),())" is true. Furthermore " = " is true(), but "deep-equal(, ) is false().
Any opinion which concept of "same value" we want here?
Hmm, in XSLT’s
Do we also require that the
The spec says “Whenever two or more sequentially adjacent documents have the same “group adjacent” value, …”
This might imply that we expect our
If we permit sequences as expression results, we should nevertheless say that they be atomized. And then they should be compared using
I don't feel strongly about it. I'm happy to say deep-equal is the answer, consistent with XSLT. I'd be equally happy to say that exactly one value must be returned, but I don't feel strongly about that either.
(Achim, you seem to have written the
I don’t have a strong opinion either. There may be a slight benefit in aligning with XSLT, in order to reduce the mental strain on XSLT/XProc programmers.