W3C home > Mailing lists > Public > xmlschema-dev@w3.org > August 2001

Is <attribute ... use="required"/> honored in XSV?

From: Jan Dvorak <jan.dvorak@mathan.cz>
Date: Wed, 22 Aug 2001 06:24:29 -0400 (EDT)
Message-ID: <002f01c12af4$4a589270$6501a8c0@bob>
To: <xmlschema-dev@w3.org>

(I'm not sure this is the right place for this kind of question. Please,
forward me to a more apt forum, if there is such.)

I just ran the web XSV to check my sample document against my sample schema.
XSV reported no errors, but I suspect there in fact was one.

The root element of the instance document is called 'schema' and should have
a mandatory 'version' attribute.
At least that's what I hope my XML Schema says:

<xs:element name="schema" type="schemaType"/>

<xs:complexType name="schemaType">
  <xs:element ref="entity" minOccurs="0" maxOccurs="unbounded"/>
 <xs:attribute name="version" type="xs:string" use="required"/>

But my instance document did not have this attribute with its 'schema'
and XSV did not catch this.

Or is it work-in-progress?

Jan Dvorak
MathAn Praha, Ltd.
Received on Wednesday, 22 August 2001 11:09:55 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:55:52 UTC