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

RE: Schema redefintions in cascade


leo antoli

When XML Spy tells you one thing and everyone else tells you the opposite,
most punters would lay their bets on the majority opinion being right:
though of course one can't quote chapter and verse without seeing your code.

redefines is defined to be pervasive. If you redefine X, then all references
to X, wherever they appear, are considered to refer to the new X. This means
that it's impossible to have two different redefinitions of the same X in
force at the same time, which is what you seem to be trying to achieve.

Michael Kay
http://www.saxonica.com/

> 
> I am changing an existing schema using the "redefine" tag. 
> The original
> schema file is left untouched. As some elements must be both 
> restricted and
> extended, I have created two schema files. The first one redefines the
> original schema file restricting some elements and the second 
> one redefines
> the restricting schema file adding some extensions. An 
> element existing in
> the original file can be restricted in the first file and 
> then extended in
> the second one.
> It works fine in XML Spy - it has a proprietary schema 
> validator - but it's
> not working fine in other systems such as Saxonica, Stylus 
> Studio, Xerces or
> Oracle's schema validator. I think nested redefines (or 
> includes) can be
> done according to the W3C Schema recommendations. 
> 
> I would like to know if my approach is correct and if there 
> is another way
> to achieve the same results. Any suggestion to solve this 
> issue is more than
> welcome.
> 
> 
> Thank you very much.
> 
> Kind Regards,
> Leo Antoli
> 
> 
> 
> 



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.