#479 XQuery function follows XSLT semantics

v8.7
closed
5
2012-10-08
2006-03-04
Michael Kay
No

Code executing within an XQuery user-written function
follows XSLT semantics rather than XQuery semantics.

This affects the choice of error codes to be output,
and a small number of operations where the XQuery and
XSLT rules differ: for example when two attributes are
written with the same name, XQuery should report an
error but XSLT takes the last one and ignores the others.

Source fix: line 158 of
net.sf.saxon.query.XQueryFunction, change

compiledFunction.setHostLanguage(Configuration.XSLT);

to

compiledFunction.setHostLanguage(Configuration.XQUERY);

Michael Kay

Discussion

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks