|
[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 (
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








