OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   Re: [xml-dev] Is there a way to reuse and extend an enumeration inXML sc

[ Lists Home | Date Index | Thread Index ]

W3C XML Schema v.1 does not provide for redefinition-in-place of
simple types by extension, as it were.

It only provides for redefinition-in-place by restriction.

It follows that the only way to achieve redefinition-in-place of
codelists is to initially define the codelist type as an unconstrained
NMTOKEN, and redefine _that_ by restriction at deployment time.

That then would allow local extension by changing the redefinition.

In other words, published schema uses synonym for NMTOKEN as
codelisttype, and then redefines that restricting it to the desired
enumeration in a wrapper schema, which is what people actually use.

Those needing a larger code list use a different wrapper schema which
redefines using their larger list.

In haste, hope this helps as a sketch,

 Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
                     Half-time member of W3C Team
    2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
            Fax: (44) 131 650-4587, e-mail: ht@inf.ed.ac.uk
                   URL: http://www.ltg.ed.ac.uk/~ht/
[mail really from me _always_ has this .sig -- mail without it is forged spam]


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS