Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: UPA violation or not?

From: Morris Matsa <mmatsa@--.---.--->
To: "Michael Kay" <mike@--------.--->
Date: 12/15/2004 2:43:00 PM





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>



From mike@s... Thu Dec 16 09:34:22 2004
Received: from bart.w3.


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent