W3C home > Mailing lists > Public > xmlschema-dev@w3.org > September 2002

Proposal/Question for XMLSchema-instance schema

From: Stefan Wachter <Stefan.Wachter@gmx.de>
Date: Thu, 5 Sep 2002 10:32:50 +0200 (MEST)
To: xmlschema-dev@w3.org
Message-ID: <30952.1031214770@www50.gmx.net>

Hi all,

looking at the schema for the XMLSchema-instance namespace I found that the
contained attributes are all of type "anySimpleType":

 <xs:attribute name="nil"/>
 <xs:attribute name="type"/>
 <xs:attribute name="schemaLocation"/>
 <xs:attribute name="noNamespaceSchemaLocation"/>

Wouldn't it be better if they were typed?

 <xs:attribute name="nil" type="xs:boolean"/>
 <xs:attribute name="type" type="xs:QName"/>
  <xs:attribute name="schemaLocation">
   <simpleType>
     <list itemType="xs:string"/>
   </simpleType>
 </xs:attribute>
 <xs:attribute name="noNamespaceSchemaLocation" type="xs:string"/> <!-- or
xs:anyURI -->

Maybe this would make validation a little bit easier because then these
attributes could be validated like normal attributes.

--Stefan
Received on Thursday, 5 September 2002 04:32:52 GMT

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