W3C home > Mailing lists > Public > xmlschema-dev@w3.org > July 2002

RE: XML Schema Design Pattern series on XML.com

From: Dare Obasanjo <dareo@microsoft.com>
Date: Sun, 7 Jul 2002 17:11:18 -0700
Message-ID: <8BD7226E07DDFF49AF5EF4030ACE0B7E06621DBA@red-msg-06.redmond.corp.microsoft.com>
To: "Eddie Robertsson" <erobertsson@allette.com.au>
Cc: <xmlschema-dev@w3c.org>

Yup, that's a typo. Nice catch. It should actually read
 
"To create a wildcard that allows elements from any namespace in
except the target namespace involves using an xs:choice, as in
the following schema:"
 
I've bcc-ed the XML.com editors so hopefully it should be fixed soon. 
 
-----Original Message----- 
From: Eddie Robertsson [mailto:erobertsson@allette.com.au] 
Sent: Sun 7/7/2002 5:08 PM 
To: Dare Obasanjo 
Cc: xmlschema-dev@w3c.org 
Subject: Re: XML Schema Design Pattern series on XML.com

Hi Dare,

Nice article!
I have one comment. In the section where you explain how to use the
wildcards you have the following paragraph:

"To create a wildcard that allows elements from any namespace in
addition to the target namespaces involves using an |xs:choice|, as in
the following schema:"

and then the following example:

|...
|<!-- allow any element except those from target namespace -->
|<xs:choice minOccurs="0" maxOccurs="unbounded" > |
|   <xs:any namespace="##other" processContents="strict" /> |
|    <xs:any namespace="##local" processContents="strict" />|
|</xs:choice>|
|||...

|Maybe this is because English isn't my native language but I read
"...any namespace in addition to the target namespaces..."
to mean "any namespace _including_ the target namespace" but the correct
interpretation should be "any namespace except  the target namespace"
like the comment in the code says.
Also, shouldn't "...target namespaces..." be "target namespace" (in
singular)?

Cheers,
/Eddie




Dare Obasanjo wrote:

>The first of what should be a series of quarterly articles on XML Schema design patterns is available at
>
>    http://www.xml.com/pub/a/2002/07/03/schema_design.html
>
>I welcome comments about the article and ideas for future articles in the same vein.
>
> 
>
Received on Sunday, 7 July 2002 20:11:50 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:55:57 UTC