Bug 4413 - [DM] Typed value of complex types with simple content
: [DM] Typed value of complex types with simple content
Status: CLOSED FIXED
Product: XPath / XQuery / XSLT
Data Model
: Recommendation
: PC Windows XP
: P2 normal
: ---
Assigned To: Anders Berglund
: Mailing list for public feedback on specs from XSL and XML Query WGs
:
:
:
:
:
  Show dependency treegraph
 
Reported: 2007-03-23 15:00 UTC by Michael Kay
Modified: 2008-08-13 18:50 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.


  翻译: