W3C home > Mailing lists > Public > xmlschema-dev@w3.org > November 2007

Re: Mixed content and empty content

From: Pete Cordell <petexmldev@tech-know-ware.com>
Date: Thu, 1 Nov 2007 13:46:31 -0000
Message-ID: <000c01c81c8d$9eaa8180$d400a8c0@Codalogic>
To: "Shlomo Yona" <S.Yona@F5.com>, <xmlschema-dev@w3.org>

XSD doesn't allow you to restrict the text part of mixed content in any way.
Relax-NG has a mechanism to do this and it would be nice if XSDL could do
something similar.  (The Relax-NG construct is something like <value> or


P.S. Thanks Michael.
Pete Cordell
for XML Schema to C++ data binding visit
----- Original Message ----- 
From: "Shlomo Yona" <S.Yona@F5.com>
To: "Michael Kay" <mike@saxonica.com>; <xmlschema-dev@w3.org>
Sent: Thursday, November 01, 2007 1:05 PM
Subject: RE: Mixed content and empty content


Since this is a mixed content then the textual data is not restricted at
all -- can the textual content be further restricted by derivation even if
it is mixed? I mean -- can it be changed to an xsd:integer? I think not, but
I don't know.



-----Original Message-----
From: Michael Kay [mailto:mike@saxonica.com]
Sent: ה 01 נובמבר 2007 14:51
To: Shlomo Yona; xmlschema-dev@w3.org
Subject: RE: Mixed content and empty content

What is the semantics of the following XSDL snippet?

<xsd:element name="foo">
    <xsd:complexType mixed="true"/>

allows character data content but no element children. Pretty much the same
as anySimpleType, except that it's complex - which means you can derive a
"real" complex type from it by extension.

Does it mean the same as

<xsd:element name="foo">

No, that one doesn't allow character data content.

     Is the meaning <xsd:complexType mixed="false"/> the same as
<xsd:complexType/> ?


Michael Kay
Received on Thursday, 1 November 2007 13:46:50 UTC

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