[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 14:35 -------
You're always free to implement things as you like if no-one can tell the
difference. The way we describe things in the spec is only distantly related to
the way we expect real implementations to work. In this particular area - the
question of how much a processor knows about the type hierarchy - there's a lot
of abstraction going on in the spec to cater for a wide variety of
implementation architectures. For example, we have to cater for the possibility
that the XPath function library and the XSLT processor are separate components
developed by different organisations, in which case the function library really
will return an NCName, and the XSLT processor has to recognize it as such. Of
course if the library is embedded in your XSLT processor and will never be used
by anyone else, then you can short-circuit things by returning a string directly.

Michael Kay

Received on Tuesday, 6 September 2005 14:35:35 UTC