W3C home > Mailing lists > Public > xmlschema-dev@w3.org > August 2005

Re: Content Model for Restrictions

From: Henry S. Thompson <ht@inf.ed.ac.uk>
Date: Tue, 30 Aug 2005 09:42:12 +0100
To: Kasimier Buchcik <kbuchcik@4commerce.de>
Cc: andrew.hodge@abs.gov.au, XML-SCHEMA <xmlschema-dev@w3.org>
Message-ID: <f5bpsrvizob.fsf@erasmus.inf.ed.ac.uk>

Hash: SHA1

Kasimier Buchcik writes:

> XSV: no errors
> Xerces:
> aussie-2.xsd:13,51: (Error) rcase-Recurse.2: There is not a complete
> functional mapping between the particles.
> aussie-2.xsd:13,51: (Error) derivation-ok-restriction.5.4.2: Error for
> type 'RestTestEventPayload'.  The particle of the type is not a valid
> restriction of the particle of the base.
> Although TestEventPayload actually still defines an equal content
> model at the FSA level, it seems to hit the particle mapping
> constraint at the component level. Is this intended by the spec?

Yes and no.  The constructive rules of XML Schema 1.0 do indeed rule
it out.  The spirit (content models which accept a subset of their
base should be OK) would allow it, and as the public drafts of XML
Schema 1.1 have made clear, XML Schema 1.1 will make that official.

- -- 
 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]
Version: GnuPG v1.2.6 (GNU/Linux)

Received on Tuesday, 30 August 2005 08:42:34 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:15:30 UTC