This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 4413 - [DM] Typed value of complex types with simple content
Summary: [DM] Typed value of complex types with simple content
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: Data Model 1.0 (show other bugs)
Version: Recommendation
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Anders Berglund
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-23 15:00 UTC by Michael Kay
Modified: 2008-08-13 18:50 UTC (History)
1 user (show)

See Also:


Attachments

Description Michael Kay 2007-03-23 15:00:19 UTC
As far as I can see, the data model spec doesn't adequately cover the determination of the typed value for an element whose schema type is a complex type with simple content.

Section 3.3.1.2 says: "The process begins with T, the schema type of the node itself, as represented in the PSVI. For each primitive or ordinary simple type T, the W3C XML Schema specification defines a function M mapping the lexical representation of a value onto the value itself."

This doesn't seem to cover the case where T is a complex type with simple content. In such cases I think T needs to be the {content type} of the schema type of the node.
Comment 1 Norman Walsh 2007-05-08 14:07:42 UTC
I'm inclined to agree with Mike. I think we can fix this by changing the third paragraph of 3.3.1.2 to read:

The types of the items in the typed value of a node are determined as follows. The process begins with a type, T. If the schema type of the node itself, as represented in the PSVI, is a complex type with simple content, then T is the {content type} of the schema type of the node; otherwise, T is the schema type of the node itself. For each primitive or ordinary simple type T, the W3C XML Schema specification defines a function M mapping the lexical representation of a value onto the value itself.
Comment 2 Anders Berglund 2007-11-19 21:29:16 UTC
The WGs decided to accept the text in commend #1 as the resolution of this bug.