[Bug 4874] [F&O] Casting NOTATION to String

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





------- Comment #1 from mike@saxonica.com  2007-07-22 22:33 -------
A separate problem, but I'll include it under the same bugzilla entry for
convenience.

When converting from a string to an xs:QName or xs:NOTATION, both the language
book and F+O make it clear that the value must be supplied as a string literal.
However, neither says how the conversion is actually done: specifically how the
namespace context is determined. I think we all know that the unstated intent
is to use the in-scope namespace bindings from the static context of the
expression. But what URI is used when there is no prefix? Should the null
namespace be used, or does the default namespace for elements and types apply?
Despite the fact that the name is neither an element nor a type, I think this
default probably should apply, as this is the rule that is closest to the
semantics of schema validation.

Received on Sunday, 22 July 2007 22:33:09 UTC