XML.orgXML.org
FOCUS AREAS |XML-DEV |XML.org DAILY NEWSLINK |REGISTRY |RESOURCES |ABOUT
OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
overriding the schema at runtime..


Is it possible to override the w3c XSD at runtime?
For e.g., I would like to make 'processContents' =
Skip or Lax instead of Strict in the following schema
during run time:
<xs:complexType name="ExtType">
	<xs:sequence>
	   <xs:any namespace="##any" processContents="strict"
minOccurs="0" maxOccurs="50"/>
	</xs:sequence>
</xs:complexType>


In other words, I am trying to avoid changing the
schema and thus create a new schema version just for
this small change. I primarily introduced 'ExtType'
above for schema extension so that any further changes
(like application specific) to the schema using this
part should not affect the validation. I tried adding
an extra element (both with and without namespace)
using the above type and the schema validation failed.
Finally found out that making processContents = 'skip'
is the solution to introduce any new application
specific elements with no namespace.



-D


      ____________________________________________________________________________________
You rock. That's why Blockbuster's offering you one month of Blockbuster Total Access, No Cost.  
http://tc.deals.yahoo.com/tc/blockbuster/text5.com


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS