W3C home > Mailing lists > Public > xmlschema-dev@w3.org > March 2012

Override a type in a schema

From: Andrew Welch <andrew.j.welch@gmail.com>
Date: Wed, 7 Mar 2012 17:10:29 +0000
Message-ID: <CAEG2duD-N3BavNBwC3T5LMGMW-TcwS-5SjVt_gZ4-wzXHfiaYg@mail.gmail.com>
To: xmlschema-dev@w3.org
Given an element:

<theirs:foo>

and an XSD for the 'theirs' namespace defining foo as xs:string, how
can I override that definition with my own type?  One way is:

<theirs:foo xsi:type="my_type_for_foo">

Is there a 1.0 way to do it without using xsi:type ?


thanks

-- 
Andrew Welch
http://andrewjwelch.com
Received on Wednesday, 7 March 2012 17:11:00 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 7 March 2012 17:11:01 GMT