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">
     <list itemType="xs:string"/>
 <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.

Received on Thursday, 5 September 2002 04:32:52 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:15:05 UTC