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

Re: Is this valid schema??

From: Henry S. Thompson <ht@cogsci.ed.ac.uk>
Date: 23 Mar 2001 09:53:11 +0000
To: Ayalew Kassahun <A.Kassahun@InfoRay.NL>
Cc: xmlschema-dev@w3.org, Morris Matsa <mmatsa@us.ibm.com>
Message-ID: <f5bsnk4olq0.fsf@cogsci.ed.ac.uk>
Ayalew Kassahun <A.Kassahun@InfoRay.NL> writes:

> This solution works with simple cases like this but doesn't work if PART has
> child elements of different types?

The point is that PART _can't_ have child elements with the same name
but different types -- this is a constraint imposed by the XML Schema

Note that this constraint has an important benefit for processors:
even if an element is locally _in_valid, they can validate its
children, because the tag-type association does not depend on position 
in the content model.

  Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
          W3C Fellow 1999--2001, part-time member of W3C Team
     2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
	    Fax: (44) 131 650-4587, e-mail: ht@cogsci.ed.ac.uk
		     URL: http://www.ltg.ed.ac.uk/~ht/
Received on Friday, 23 March 2001 04:54:03 UTC

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