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

Re: dynamically extensible schema


modify schema
[Christian Sell]

> The special thing is that the potential number of namespaces/schemas
> appearing in instances (beyond the core schema) is undetermined, and I
> therefore do not want to include a reference to the "extended" schema(s)
> inside the "core" schema. Instead, I would like to have a definition in
> the core schema that says something like:
>
> "after the echo element, let there follow any number of elements from
> any namespace whose type extends the type XY" (where XY would also be
> defined in the core schema).
>
> The only meachnism that I found in XML schema that comes close is the
> xsd:any element, but that does not alow me to specify the derivation
> constraint I mentioned above.
>
This is not exactly what you asked for, but on one job I had a requirement
to allow certain types to be extended with local vendor-specific
 extensions - these were mostly enumerated values, but some were more
complicated.  My response was to add an extension element to the element in
question whose type was imported (with its own "local" namespace) from
another schema.  A vendor could modify the imported schema and corresponding
instance documents could be validated against the core and imported schemas.
It would be possible to make the imported type to be any complex type, and
so you could accomodate the kinds of things you talked about, I think.

Cheers,

Tom P



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.