[Bug 10982] New: [DM11] RFE: Retrieving the typed-value that a Text Node represents

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

           Summary: [DM11] RFE: Retrieving the typed-value that a Text
                    Node represents
           Product: XPath / XQuery / XSLT
           Version: Working drafts
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Data Model 1.1
        AssignedTo: ndw@nwalsh.com
        ReportedBy: rick@firefang.com
         QAContact: public-qt-comments@w3.org


For implementations that store the typed-values of Text Nodes (as described in
3.3.1.3 Relationship Between Typed-Value and String-Value) it would be nice if
there was a way to retrieve the typed-value directly from the Text Node.

Currently, dm:typed-value returns content as an xs:untypedAtomic, which is
fairly useless since content can be retrieved in a more useful format via
dm:string-value.

For implementations that *only* store the typed-value, simply using
parent->typed-value is not sufficient, because in a typical implementation, the
parent itself needs to query the Text Node to discover the typed-value, which
means the implementation is forced to implement another accessor to retrieve
the actual-typed-value, which is as silly as it sounds.

This feature would also simplify serializing from the data model to binary XML
formats.

In section 6.7.2 (Text Nodes; Accessors) I request that you replace:

    dm:type-name
        Returns xs:untypedAtomic.

    dm:typed-value
        Returns the value of the *content* property as an xs:untypedAtomic.

with:

    dm:type-name
        If the string represents a typed-value, *may* return the represented
type-name; otherwise, returns xs:untypedAtomic.

    dm:typed-value
        If the string represents a typed-value, *may* return the represented
typed-value; otherwise, returns the value of the *content* property as an
xs:untypedAtomic.

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Wednesday, 6 October 2010 02:19:51 UTC