[XMLSCHEMA-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: [Bulk] Trying to Understand Complex Abstract Types: How ToDefine?

From: Henry S. Thompson <ht@inf.ed.ac.uk>
Date: Thu, 24 Mar 2005 16:45:39 +0000
To: Eliot Kimber <ekimber@innodata-isogen.com>
Cc: xml-schema-dev <xmlschema-dev@w3.org>
Message-ID: <f5bzmwtngb0.fsf@erasmus.inf.ed.ac.uk>
buccleuch bulk

Eliot Kimber <ekimber@innodata-isogen.com> writes:

> - If the supertype content model allows A+ then any combination of
> elements derived from A, in any order, is allowed in specialized
> content models. In XSD if the supertype content model is A+ then all
> you can do in a restriction substitution group is have *exactly one*
> particle whose type is A. This is a serious restriction.

This will be fixed in Schema 1.1.

> - If the supertype content model allows (A | B) then specializations
> may allow elements specialized from just A, just B, or A and B, in
> either order. XSD requires that the order of particles be preserved,
> even when the base content model allows either order.

A _and_ B, he says with some surprise?  ( A | B ) only allows one item
in the input.  A & B allows two.  That's a rather odd change from a
semantic point of view. . .

I'd be interested in seeing an example which motivates that a bit
more. . .

If you meant (A | B)*, then again, you have a reasonable gripe, and
this will be fixed in Schema 1.1.

> <snip/>

> There's always the next revision of the spec....

See above :-)

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 Thursday, 24 March 2005 16:45:44 GMT

Subscribe to the Stylus Scoop newsletter for helpful XML tips and tutorials.
Email
First Name
Last Name
Company

Download Stylus Studio 6 XML Enterprise Edition

Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.