I have two queries regarding the XML Schema specification and Xerces, in
respect to the handling of mixed data with attributes and with All groups:
According to the DTD for schemas, the following structure should be valid,
but Xerces says that there must be content in a 'mixed' complexType element.
Is this true? I am trying to use this as a simple technique for putting an
attribute on an element that can contain only text (instead of the more
verbose technique of extending a simple type):
<element name="author">
<complexType mixed="true">
<attribute name="Secret" type="string"/>
</complexType>
</element>
Xerces also interprets the following as: either you can have the
sub-elements, or you can have text, but not a mixture of both. Is this
correct?
<element name="title">
<complexType mixed="true">
<all minOccurs="0" maxOccurs="1" >
<element ref="emph" />
<element ref="pageBreak" />
</all>
</complexType>
</element>
Neil.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]