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

RE: not a complete functional mapping - help

From: Xan Gregg <Xan.Gregg@jmp.com>
Date: Wed, 29 Dec 2004 10:41:20 -0500
Message-ID: <1F145982392D6143BCF3CC670E4C7FA0B71DC9@MERC27.na.sas.com>
To: "Lars Geldner" <geldner.list.reg@gmx.net>, <xmlschema-dev@w3.org>
complete functional

I believe your example is valid per the spirit of the spec, but not the letter of the spec, 
which is what Xerces enforces.  XSV reports the schema as valid (after filling in MODULType).

This a case that is covered by the note in the relevant section of the spec:

    Note: This clause is in principle more restrictive than absolutely necessary,
    but in practice will cover all the likely cases, and is much easier to specify
    than the fully general version.

I tried a few variations of your schema without any luck. Wrapping the choice in a 
sequence seemed promising, but XML Schema doesn't even allow 

    <xsd:sequence maxOccurs="unbounded">
      <xsd:element ref="A"/>
    </xsd:sequence>

to be restricted by:

     <xsd:sequence>
      <xsd:element ref="A"/>
      <xsd:element ref="A"/>
    </xsd:sequence>

xan
Received on Wednesday, 29 December 2004 15:42:36 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.