Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


UPA example

From: Boris Kolpackov <boris@-------------.--->
To: xmlschema-dev@--.---
Date: 6/24/2008 6:55:00 PM
Hi,

Consider the following schema:

<schema xmlns="http://www.w3.org/2001/XMLSchema"
	targetNamespace="test" 
        elementFormDefault="qualified">

  <complexType name="AnyTargetNamespace">
    <sequence maxOccurs="unbounded">
      <element name="apple" type="string"/>
      <any namespace="##targetNamespace" processContents="skip" maxOccurs="unbounded"/>
    </sequence>
  </complexType>

</schema>

My interpretation of the specification suggests that this schema
violates the Unique Particle Attribution constraint in that a
content like this:

<apple/>
<apple/>
<apple/>

Can be validated in two ways:

<apple/> validated by element
<apple/> validated by any
<apple/> validated by any

Or:

<apple/> validated by element
<apple/> validated by any
<apple/> validated by element

Does anybody think this is not the case and if so, why?

Thanks,
Boris

-- 
Boris Kolpackov, Code Synthesis Tools   http://codesynthesis.com/~boris/blog
Open source XML data binding for C++:   http://codesynthesis.com/products/xsd
Mobile/embedded validating XML parsing: http://codesynthesis.com/products/xsde

From koray.sakiroglu@g... Tue Jun 24 15:49:25 2008
Received: from maggie.w3.org ([193.5


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