[XMLSCHEMA-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

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>
mixed content

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
http://www.saxonica.com/
 

> -----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 GMT

Subscribe to the Stylus Scoop newsletter for helpful XML tips and tutorials.
Email
First Name
Last Name
Company

Download Stylus Studio 6 XML Enterprise Edition

Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.