[Bug 1824] Functions return xs:NCName, but xs:NCName is not support in XSLT 2.0 Basic

http://www.w3.org/Bugs/Public/show_bug.cgi?id=1824





------- Additional Comments From mike@saxonica.com  2005-09-06 12:44 -------
Colin: the reason I didn't want to do it the way you suggested is that it's not
a good idea for one spec to try and override another: "ignore what X says and do
it this way instead". Rather, it's better to show that this is just a special
case of a problem that's already addressed in the XPath spec, of how to handle
values with dynamic types that aren't present in the static context. The end
effect might be the same, but it's better to build on the mechanisms already
there than to introduce an arbitrary special case. This also points the way to
solving other related problems that might arise in the future, e.g. XSLT making
calls to a function library written in XQuery. We have to adapt the wording of
XSLT 21.1 a little to handle this, but it basically works.

Michael Kay

Received on Tuesday, 6 September 2005 12:44:37 UTC