From: Michael Kay <michael.kay@nt...>  20021021 10:37:53

Yes, the spec of the EXSLT set:leading was based on the original saxon extension function, and I didn't notice that the detail was different. It's fairly easy to fix this one, but Saxon doesn't implement the following rule either: "If the first node in the second node set is not contained in the first node set, then an empty node set is returned." This rule is particularly horrible, in fact it requires a complete redesign of the implementation, because it means that the function can't be pipelined. You can't decide whether the first node in arg1 should be included in the result until you have read all the nodes in arg1. Saxon returns an empty nodeset if the second argument is empty; otherwise it returns all nodes in arg1 that precede the first node in arg2 (in document order). Michael Kay Software AG home: Michael.H.Kay@... work: Michael.Kay@... > Original Message > From: saxonhelpadmin@... > [mailto:saxonhelpadmin@...] On Behalf Of > J. G. Pusey > Sent: 19 October 2002 04:05 > To: saxonhelp@... > Subject: [saxon] EXSLT set:leading bug in 6.5.2 ??? > > > Greetings! > > I believe there may be a bug in the SAXON 6.5.2 implementation of the > EXSLT set:leading function. > According to the EXSLT docs (on http://www.exslt.org): > > "If the second node set is empty, then the first node set is > returned." > > SAXON is returning an empty node set (the first node set is > NOT empty). > Since my code is depending on > the documented behavior, as a workaround, I am importing Jeni > Tennison's > implementation to override > SAXON's builtin version. This seems to work correctly. > > I have not tried this with the set:trailing function. I'll > post a code > snippet if necessary, but this should be > simple to verify. > > Thanks for your attention, > John > > > >  > This sf.net email is sponsored by: > Access Your PC Securely with GoToMyPC. Try Free Now https://www.gotomypc.com/s/OSND/DD _______________________________________________ saxonhelp mailing list saxonhelp@... https://lists.sourceforge.net/lists/listinfo/saxonhelp 