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

Re: Permit (greedy) conflicting wildcards

From: C. M. Sperberg-McQueen <cmsmcq@acm.org>
Date: Tue, 20 Mar 2007 10:41:34 -0600
Message-Id: <27D5518E-EE54-49D9-806F-751B81026A20@acm.org>
Cc: "C. M. Sperberg-McQueen" <cmsmcq@acm.org>, <noah_mendelsohn@us.ibm.com>, <xmlschema-dev@w3.org>
To: Pete Cordell <petexmldev@tech-know-ware.com>
Re: Permit (greedy) conflicting wildcards

On 20 Mar 2007, at 05:53 , Pete Cordell wrote:

> Original Message From: <noah_mendelsohn@us.ibm.com>
>
> This seems an eminently sensible justification to me, and I would  
> imagine what many people would expect.  What is the justification  
> for the currently specified set of rules?

Here's one possible motivation:  when you write a
wildcard that matches an element named 'given', the
wildcard matches an element with that name.  If you
didn't want the wildcards in your content model to
match elements in your target namespace, why did you
not write a wildcard that didn't match them?

> To me, I think many people would be surprised that the rules  
> allowed the example instance above to be valid.  When doing  
> language design, "No surprises" seems like a good mantra.

Me, I think I'd be surprised if a wildcard which is
written to match any element at all were to fail to
match some element.  "Say what you mean" is also
a good rule.

--C. M. Sperberg-McQueen
Received on Tuesday, 20 March 2007 16:41:57 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.