Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


RE: UPA example

From: Radu Preotiuc-Pietro <radup@---.--->
To: xmlschema-dev@--.---
Date: 6/24/2008 5:29:00 AM
Maybe it's also interesting to mention that, while in XML Schema 1.1 the
Schema becomes valid, the instance

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

won't be valid still (based on my understanding, the third <apple/>
element will map to the element particle and the validator will still be
waiting for an element to map to the wildcard).

Radu

On Tue, 2008-06-24 at 18:13 +0100, Michael Kay wrote:
> To add to that, in XML Schema 1.1 the UPA rule is relaxed so that if
> an element can match both an element particle or a wildcard particle,
> the element particle wins. So this schema will become valid.
>  
> Michael Kay
> http://www.saxonica.com/
> 
>         
>         ______________________________________________________________
>         From: xmlschema-dev-request@w...
>         [mailto:xmlschema-dev-request@w...] On Behalf Of Michael
>         Glavassevich
>         Sent: 24 June 2008 17:08
>         To: xmlschema-dev@w...
>         Subject: Re: UPA example
>         
>         
>         
>         Yes, it violates UPA. After the first occurrence of the
>         wildcard there would be a choice between the wildcard and
>         element particles and the two overlap in what they accept.
>         
>         Michael Glavassevich
>         XML Parser Development
>         IBM Toronto Lab
>         E-mail: mrglavas@c...
>         E-mail: mrglavas@a...
>         
>         boris@c... wrote on 06/24/2008 10:55:03 AM:
>         
>         > 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
>         
>         
> 
> Notice: This email message, together with any attachments, may contain
> information of BEA Systems, Inc., its subsidiaries and affiliated
> entities, that may be confidential, proprietary, copyrighted and/or
> legally privileged, and is intended solely for the use of the
> individual or entity named in this message. If you are not the
> intended recipient, and have received this message in error, please
> immediately return this by email and then delete it.

Notice:  This email message, together with any attachments, may contain information  of  BEA Systems,  Inc.,  its subsidiaries  and  affiliated entities,  that may be confidential,  proprietary,  copyrighted  and/or legally privileged, and is intended solely for the use of the individual or entity named in this message. If you are not the intended recipient, and have received this message in error, please immediately return this by email and then delete it.

From mike@s... Tue Jun 24 23:06:13 2008
Received: from maggie.w3.org ([193.51.208.68])
	by frink.w3.org with esmtp (Exim 4.63)
	(envelope-from <mi


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