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

Re: UPA violation or not?

From: Morris Matsa <mmatsa@us.ibm.com>
Date: Wed, 15 Dec 2004 19:43:25 -0500
To: "Michael Kay" <mike@saxonica.com>
Cc: <xmlschema-dev@w3.org>
Message-ID: <OFBB5AC581.2899DC48-ON85256F6C.0002A525-85256F6C.0003F9E7@us.ibm.com>
Re: UPA violation or not?






Looks like a UPA violation.  What if one of those two element refs did
something?  E.g., given the below schema (yours, modified only by an
annotation) and the document below it, you wouldn't know whether to let the
app know about the appinfo or not.


<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:complexType name="bar">
    <xs:sequence>
      <xs:element ref="pongo" minOccurs="0" maxOccurs="2">
        <xs:annotation>
          <xs:appinfo>
            <my:pressTheButton xmlns:my="myURI" />
          </xs:appinfo>
        </xs:annotation>
      </xs:element>
      <xs:element ref="pongo" minOccurs="0" maxOccurs="2"/>
    </xs:sequence>
  </xs:complexType>
  <xs:element name="doc" type="bar"/>
  <xs:element name="pongo" type="xs:string"/>
</xs:schema>

<doc><pongo>Pongo</pongo></doc>
Received on Thursday, 16 December 2004 00:43:04 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.