W3C home > Mailing lists > Public > xmlschema-dev@w3.org > July 2008

overriding a datatype of an attribute

From: Mario Madunic <hajduk@imag.net>
Date: Thu, 24 Jul 2008 09:15:45 -0700
Message-ID: <1216916145.4888aab109a77@members.uniserve.com>
To: xmlschema-dev@w3.org

Hi folks,

Wondering if this is possible and is it good form?

Declare an attribute

<xs:attribute name="type" type="xs:string" />

in which case it is used most often as.

Then when i include it

<xs:include schemaLocation="../attributes/type.xsd" />

and then reference it

<xs:attribute name="type" use="optional" />

can i change its type to dtReferenceType

<xs:attribute name="type" type="dtReferenceType" use="optional" />

The reason being I really do not want to create multiple attributes that
basically do the same thing but just require a different datatype.

Marijan (Mario) Madunic
Received on Thursday, 24 July 2008 16:16:24 UTC

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