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

Re: Permit (greedy) conflicting wildcards

From: <noah_mendelsohn@us.ibm.com>
Date: Thu, 15 Mar 2007 17:45:33 -0400
To: "Pete Cordell" <petexmldev@tech-know-ware.com>
Cc: xmlschema-dev@w3.org
Message-ID: <OFB3ACC574.0156BED1-ON8525729F.00771912-8525729F.00775CCA@lotus.com>
Re: Permit (greedy) conflicting wildcards

Pete Cordell writes:

> Replacing the xs:anys with xs:element declarations, UPAC wise I don't
> think the following would be legal:
> 
>     <xs:sequence>
>       <xs:element name="given" type="xs:string"/>
>       <xs:element name="any" minOccurs="0" maxOccurs="unbounded"/>
>       <xs:sequence minOccurs="0">
>           <xs:element name="middle" type="xs:string" />
>           <xs:element name="any" minOccurs="0" maxOccurs="unbounded"/>
>       </xs:sequence>
>       <xs:element name="family" type="xs:string"/>
>     </xs:sequence>

I'm feeling dense.  Can you show an example of instance having at least 
one element that would match more than one of the wildcards?   I think 
that's what you have to demonstrate to show that this violates UPA, given 
the new semantics for wildcard matching in Schema 1.1.   What am I 
missing?  I don't see why this violates UPC.

Noah

--------------------------------------
Noah Mendelsohn 
IBM Corporation
One Rogers Street
Cambridge, MA 02142
1-617-693-4036
--------------------------------------
Received on Thursday, 15 March 2007 21:47:07 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.