Re: xml schema Second Edition-regarding substitution group

gayathri veerarajan <gaytri_v@yahoo.co.in> writes:

> I just read the Xml Schema Second Edition .In the section of
> substitution group it has been said that both the head element and
> the substitutable elements must be declared global.

This is not a change.

> If the substitutable element happens to appear in the content model
> of a complexType definition then while deriving a new complex type
> by restriction,this element could not be restricted (by its type) if
> it is declared globally.  hence there should be a possibility to
> declare the substitutable element locally also.  any comments
> regarding this.

You can reference a global declaration at any point, so there is no
bar to the kind of derivation you describe.

ht
-- 
 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]

Received on Tuesday, 23 March 2004 05:22:22 UTC