Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Mixed content and empty content

From: "Pete Cordell" <petexmldev@--------------.--->
To: "Shlomo Yona" <S.Yona@--.--->, <xmlschema-dev@--.--->
Date: 11/1/2007 1:47:00 PM
XSD doesn't allow you to restrict the text part of mixed content in any w=
ay.
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
<data>.)

Pete.

P.S. Thanks Michael.
==========================
====================
Pete Cordell
Codalogic
for XML Schema to C++ data binding visit
 http://www.codalogic.com/lmx/
==========================
====================
----- Original Message ----- 
From: "Shlomo Yona" <S.Yona@F...>
To: "Michael Kay" <mike@s...>; <xmlschema-dev@w...>
Sent: Thursday, November 01, 2007 1:05 PM
Subject: RE: Mixed content and empty content



Thanks.

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 i=
f
it is mixed? I mean -- can it be changed to an xsd:integer? I think not, =
but
I don't know.

Thanks.

Shlomo.

-----Original Message-----
From: Michael Kay [mailto:mike@s...]
Sent: =E4 01 =F0=E5=E1=EE=E1=F8 2007 14:51
To: Shlomo Yona; xmlschema-dev@w...
Subject: RE: Mixed content and empty content



What is the semantics of the following XSDL snippet?


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

allows character data content but no element children. Pretty much the sa=
me
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">
    <xsd:complexType/>
</xsd:element>

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


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

Yes.

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





From dmaze@u... Thu Nov 01 14:37:53 2007
Received: from maggie.w3.org ([193.51.208.68])
	by frink.w3.org with esmtp (


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent