[Bug 1250] New: [XQuery] the typed value of a document node

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

           Summary: [XQuery] the typed value of a document node
           Product: XPath / XQuery / XSLT
           Version: Last Call drafts
          Platform: All
        OS/Version: Windows 2000
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XQuery
        AssignedTo: chamberl@almaden.ibm.com
        ReportedBy: henryluo@vibrasoft.net
         QAContact: public-qt-comments@w3.org


Under section 2.5.2 Typed Value and String Value
It is specified that For document nodes, the typed value of the node is the same
as its string value, which is the concatenating the string values of all its
descendant text nodes, in document order.

However, it might be more natural for the typed value for a document node to be
the same as the type value of the root element.
Since XML document can only one root element. That element contains all the
information that the document can have (except some comments).

In that way, the typed value of a document node still preserve the sequence of
atomic values. 

And when the user needs the concatenated string version, they can always use the
string value.

Received on Thursday, 14 April 2005 18:50:48 UTC