W3C home > Mailing lists > Public > xmlschema-dev@w3.org > March 2006

RE: Datatypes and mixed content

From: Michael Kay <mike@saxonica.com>
Date: Mon, 20 Mar 2006 13:49:36 -0000
To: "'Trond Aksel Myklebust'" <trondaks@stud.ntnu.no>, <xmlschema-dev@w3.org>
Message-ID: <E1FLKlZ-0005jK-Ix@lisa.w3.org>

My guess at the rationale is that the use-case for mixed content is marking
up text. 

There's no desire to support constructs such as

<price><currency>GBP</currency> 125.00 </price>

where it's more suitable to use an attribute, or to add tags around the
decimal value; therefore there's no support for this in the spec.

I think the underlying thinking is that XML Schema isn't designed to let you
describe any XML document whatsoever, it's only designed to allow you to
describe documents that are considered to be well designed.

Michael Kay

> -----Original Message-----
> From: xmlschema-dev-request@w3.org 
> [mailto:xmlschema-dev-request@w3.org] On Behalf Of Trond 
> Aksel Myklebust
> Sent: 20 March 2006 12:28
> To: xmlschema-dev@w3.org
> Subject: Datatypes and mixed content
> Hello,
> As I am aware of, defining that the text between the subelements of an
> element defined as having mixed content is not allowed.
> http://xsd.stylusstudio.com/2001Dec/post01012.htm
> "XML Schema doesn't allow you to control the type of the text 
> that you have
> in mixed content"
> Can anyone give any hints regarding why this is the case, 
> except for the
> fact that the standard says so? Any reasons it should not possible to
> control the type?
> Regards
> Trond A Myklebust
Received on Monday, 20 March 2006 13:49:53 UTC

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