[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] surprised about the results of a filter expression in XSLT2.0


Subject: RE: [xsl] surprised about the results of a filter expression in XSLT2.0
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Thu, 11 May 2006 19:17:57 +0100

> It's actually giving different results under Saxon-B and 
> Saxon-SA (the join optimizer in Saxon-SA is kicking in and 
> getting something wrong). I'll look into it.
> 
> Michael Kay
> http://www.saxonica.com/
>  

In fact, it looks as if the result simply isn't being deduplicated: if an
element is selected for more than one reason, then it appears twice in the
result. You can force the deduplication by adding "/." to the expression.
The fix won't be quite so simple, because if the input sequence contains
duplicates then they have to be retained!

Michael Kay
http://www.saxonica.com/ 


Current Thread