ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> xml-dev
xml-dev
Re: [xml-dev] ignoring elements in certain namespace in schema?
by Rick Jelliffe other posts by this author
Jan 29 2002 12:47PM messages near this date
[xml-dev] ignoring elements in certain namespace in schema? | Re: [xml-dev] Web Design Principles (was Re: [xml-dev] Generality ofHTTP)
From: "Christian Nentwich" <c.nentwich@[...].uk> 
 
>  Is there any way to augment the schema to make it ignore all elements in
>  namespace foo? Should it even be checking that namespace since it's not
>  its target namespace ?
 
I think you can add the following particular wherever you want to open up
your content model as far as it can open. 
 
 <any namespace="#other" maxOccurs="unbounded" minOccurs="0" processContents="lax" /> 

There is a similar particle called <anyAttribute>  for attributes.

See http://www.w3.org/TR/xmlschema-1/#Wildcards

An W3C XML Schema schema  is closed by default. You have to explicitly set the points in 
content models where openness is allowed. There is no global attribute to make it
open. 

Cheers
Rick Jelliffe


-----------------------------------------------------------------
The xml-dev list is sponsored by XML.org <http://www.xml.org> , an
initiative of OASIS <http://www.oasis-open.org> 

The list archives are at http://lists.xml.org/archives/xml-dev/

To subscribe or unsubscribe from this list use the subscription
manager: <http://lists.xml.org/ob/adm.pl> 
Thread:
Christian Nentwich
Rick Jelliffe

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved