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

RE: xsd:any and its processContents and namespace attribute

From: Shlomo Yona <S.Yona@F5.com>
Date: Wed, 29 Aug 2007 05:34:41 -0700
Message-ID: <AB313AF70F994447A667F4D942CA655707CE0152@excheight.olympus.f5net.com>
To: "Morris Matsa" <mmatsa@us.ibm.com>
Cc: <xmlschema-dev@w3.org>
RE: xsd:any and its processContents and namespace attribute

Thank you.
So my previous email is wrong?
The namespace has precedence over the processContents

Shlomo

-----Original Message-----
From: Morris Matsa [mailto:mmatsa@us.ibm.com] 
Sent: ã 29 àåâåñè 2007 14:55
To: Shlomo Yona
Cc: xmlschema-dev@w3.org
Subject: Re: xsd:any and its processContents and namespace attribute


I think that these are orthogonal properties.  First, the wildcard matches
any elements that pass the namespace check.  Then, for any elements that
match, you process them according to the method defined by the
"processContents".  So, from your options "skip only if the namespace ..."
--- otherwise, if it's in the target namespace, then this particle wouldn't
match the element at all, and either some other particle would match it
(maybe an outer choice has other options) or otherwise the instance would
be invalid.


"Shlomo Yona" <S.Yona@F5.com>@w3.org on 08/29/2007 01:31:15 AM

Sent by:    xmlschema-dev-request@w3.org


To:    <xmlschema-dev@w3.org>
cc:
Subject:    xsd:any and its processContents and namespace attribute


Hello,

When using both processContents and namespace attributes in an xsd:any
which one of the two has precedence?

For example:
<xsd:any namespace=”##other” processContents=”skip”/>

Should I just skip when processing or should I skip only if the namespace
of the observed element in the XML instance is from a namespace other than
the target namespace of the schema?

Thanks.

Shlomo.
Received on Wednesday, 29 August 2007 12:34:12 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.