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>

-----BEGIN PGP SIGNED MESSAGE-----
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.

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

iD8DBQFDFBvkkjnJixAXWBoRAgWPAJ90uq7XSE0D++kyyNzaJHpVg/i2GQCfU/0l
3EOCSRLrzNZi9OF5tzyQY8w=
=Ojn2
-----END PGP SIGNATURE-----
Received on Tuesday, 30 August 2005 08:42:34 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:50 GMT