W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > July to September 2001

error in DTD for schemas

From: Biron,Paul V <Paul.V.Biron@kp.org>
Date: Wed, 25 Jul 2001 12:54:49 -0700
Message-Id: <25BE5EAE9FAED4119A1100805FD42A84BC8B9E@gren-exch-2.ca.kp.org>
To: "'www-xml-schema-comments'" <www-xml-schema-comments@w3.org>
I have found an error in the non-normative DTD for schemas that is in Part 1

In the schema for schemas, the extension element (children of simpleContent
and complexContent) is declared to be of a type that is an extension of a
complexType named annotated (which allows an annotation child).  Thus, the
following schema-fragment should be legal:

	<xs:complexType name='base'>
			<xs:element name='e1' type='string'/>

	<xs:complexType name='extension'>
			<xs:extension base='base'>
						blah, blah, blah

However, the DTD for schemas contains an error, such that if the above
fragment is validated against the DTD for schemas it will fail (xsv does
this DTD validation check as an early step in its schema validation

The error is that the does not allow the optional annotation child of

	<!ELEMENT %extension; (%particleAndAttrs;)>

Which should be

	<!ELEMENT %extension; ((%annotation;)?, %particleAndAttrs;)>

Note: this error occurs in both the text of the DTD that appears in Appendix
G [2] and in the DTD that is linked to from the document header [3].


[1] http://www.w3.org/TR/xmlschema-1
[2] http://www.w3.org/TR/xmlschema-1/#nonnormative-schemaDTD
[3] http://www.w3.org/2001/XMLSchema.dtd
Received on Wednesday, 25 July 2001 16:09:05 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:08:53 UTC