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

The content of a mixed complexType must not be empty (

Subject: The content of a mixed complexType must not be empty (!?)
From: Thomas Brand <brand@xxxxxxxxx>
Date: Tue, 27 May 2003 16:27:46 +0200
mixed complextype

hello dear reader,


i have a problem with a mixed complex type. in the schema, the type is defined as follows:
-----------------------------
<xs:complexType name="typeTd" mixed="true">
<xs:attribute name="align" type="typeColumnAlign" use="optional"/>
<xs:attribute name="valign" type="typeColumnAlign" use="optional"/>
<xs:attribute name="nowrap" type="xs:string" use="optional"/>
<xs:attribute name="class" type="xs:string" use="optional"/>
<xs:attribute name="rowspan" type="xs:integer" use="optional"/>
<xs:attribute name="colspan" type="xs:integer" use="optional"/>
</xs:complexType>


-----------------------------

the relevant part in the instance doc would be i.e.:

<agml:td class="text" align="left">24-Mai-2003</agml:td>

when trying to use the schema, the parser gives a schema error:

-----------------------------
org.xml.sax.SAXParseException: Schema error: ComplexType 'typeTd': Type 'typeTd': The content of a mixed complexType must not be empty.
at org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1158)
at org.apache.xerces.validators.schema.TraverseSchema.reportSchemaError(TraverseSchema.java:8089)
at org.apache.xerces.validators.schema.TraverseSchema.reportGenericSchemaError(TraverseSchema.java:8076)
at org.apache.xerces.validators.schema.TraverseSchema.handleComplexTypeError(TraverseSchema.java:3561)
at
etc.
-----------------------------


when i remove the 'mixed="true"' attribute, the parser doesn't indicate an error, but the instance doc ist not valid -> parser says: the content of element td (which is of type typeTd) must match "EMPTY".

any help on mixed complex types appreciated! i read somewhere, that mixed content elements "can be especially difficult to specify". is there also a different interpretation of the main parsers? i.e. xml spy doesn't indicate an error, i guess spy is quite "tolerant".

greets,
 Thomas Brand


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
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-2013 All Rights Reserved.