[Bug 5640] [XQuery] Typed value of a node

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





------- Comment #1 from mike@saxonica.com  2008-04-12 14:39 -------
If there is no schema or the schema defines x as having mixed content, then the
typed value is "123" (with some surrounding whitespace unless you chose to
remove it), as an instance of xs:untypedAtomic. If the schema defines x as
having element-only content, then attempting to get the typed value throws an
error. This is explained in bullet 4 of the section that you refer to, which
itself is a summary of the rules given in the XDM data model specification.

Received on Saturday, 12 April 2008 14:39:32 UTC