Re: substitution group elements

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

> In section 4.6(substitution group) of XML Schema Part 0 :Primer we
> have two element declarations "CustomerComment" and "ShipComment"
> which are assigned to a substitution group whose head element is
> "comment".With these declarations CustomerComment and ShipComment
> elements can be substituted for comment.  I would like to know
> whether with this declaration alone, is the reverse possible. that
> is, can the element comment be substituted in the place of the other
> two elements. OR should I need to declare comment as substitutable
> for these elements.

No and no.  The relationship is one-way, and forms a tree.

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 Monday, 15 March 2004 10:15:29 UTC