W3C home > Mailing lists > Public > xmlschema-dev@w3.org > September 2004

RE: Empty complexType with "mixed" attribute

From: Michael Kay <mhk@mhk.me.uk>
Date: Mon, 13 Sep 2004 14:33:14 +0100
To: "'Jochen Wiedmann'" <jochen.wiedmann@softwareag.com>, <xmlschema-dev@w3.org>
Cc: "'Mik Lernout'" <mik@futurestreet.org>
Message-ID: <E1C6qxp-0001ob-8S@frink.w3.org>

Here's one difference: in XQuery, the typed value of this node should be
xdt:untypedAtomic, whereas a complex type with simple content and base
xs:string has a typed value of xs:string.

Michael Kay
http://www.saxonica.com/

> -----Original Message-----
> From: xmlschema-dev-request@w3.org 
> [mailto:xmlschema-dev-request@w3.org] On Behalf Of Jochen Wiedmann
> Sent: 13 September 2004 13:16
> To: xmlschema-dev@w3.org
> Cc: Mik Lernout
> Subject: Empty complexType with "mixed" attribute
> 
> 
> 
> Hi,
> 
> suggest the following type definition:
> 
>      <complexType mixed="true">
>         <attribute name="test" type="xs:string"/>
>      </complexType>
> 
> We are currently discussing, how to evaluate this, with two possible 
> solutions:
> 
>      - Take it as it is, a complex type with complex content and
>        XsContentType "mixed".
>      - Take it as a complex type with simple content and base 
> xs:string.
> 
> Would the simple content approach be permissive or are there 
> any subtle 
> differences?
> 
> 
> Regards,
> 
> Jochen
> 
> 
> 
Received on Monday, 13 September 2004 13:33:49 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:56:06 UTC