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>
Hi,

(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:sequence>
  <xs:element ref="entity" minOccurs="0" maxOccurs="unbounded"/>
 </xs:sequence>
 <xs:attribute name="version" type="xs:string" use="required"/>
</xs:complexType>

But my instance document did not have this attribute with its 'schema'
element
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:23 GMT