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

Re:overriding the schema at runtime..

  • From: "Pete Cordell" <petexmldev@c...>
  • To: "dave" <ceek63@y...>, <user@x...>,<xml-dev@l...>
  • Date: Mon, 7 Apr 2008 19:45:37 +0100

Re:overriding the schema at runtime..
There's no real way to override processContents="strict".  I think you just 
have to accept that the schema contains a bug in it.  As it happens using 
processContents = 'skip' is also the right way to go for including elements 
with namespaces.

One other thing, I've seen some reports of processors having problems with 
schemas that specify specific, but high values for maxOccurs (e.g. 50 as 
opposed to unbounded).  This is because they try to build a state machine 
with as many states as maxOccurs dictates.  I'm not sure at the point where 
the problems start arising, so maybe 50 is OK.  Just thought I'd mention it 
as something to bear in mind!

HTH,

Pete Cordell
Codalogic
For XML C++ data binding visit http://www.codalogic.com/lmx/

----- Original Message ----- 
From: "dave" <ceek63@y...>
To: <user@x...>; <xml-dev@l...>
Sent: Monday, April 07, 2008 5:44 PM
Subject:  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
>
> _______________________________________________________________________
>
> XML-DEV is a publicly archived, unmoderated list hosted by OASIS
> to support XML implementation and development. To minimize
> spam in the archives, you must subscribe before posting.
>
> [Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
> Or unsubscribe: xml-dev-unsubscribe@l...
> subscribe: xml-dev-subscribe@l...
> List archive: http://lists.xml.org/archives/xml-dev/
> List Guidelines: http://www.oasis-open.org/maillists/guidelines.php
>
> 




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


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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-2013 All Rights Reserved.