W3C home > Mailing lists > Public > xmlschema-dev@w3.org > August 2007

Re: xsd:any and its processContents and namespace attribute

From: Morris Matsa <mmatsa@us.ibm.com>
Date: Wed, 29 Aug 2007 07:55:22 -0400
To: "Shlomo Yona" <S.Yona@F5.com>
Cc: <xmlschema-dev@w3.org>
Message-ID: <OFDA42D3E5.4F87B98E-ON85257346.00411891-85257346.00417E78@us.ibm.com>

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>
Subject:    xsd:any and its processContents and namespace attribute


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?


Received on Wednesday, 29 August 2007 11:56:23 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:15:43 UTC