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