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

Re: dynamically extensible schema

advil studio
Chris, you're the man. I owe you an extra pack of advil (exchangeable to 
a mug of german beer)


Chris Wilper wrote:
>>I have a question I am banging my head against.
>>The special thing is that the potential number of ...
> Hmm, try this: http://media.vermotion.com/media/4235/prodimages/Advil.jpg
> then this: http://www.zvon.org/xxl/XMLSchemaTutorial/Output/ser_substitution_st0.html
> Good luck,
> Chris
> -----Original Message-----
> From: Christian Sell [mailto:christian.sell@n...]
> Sent: Friday, March 07, 2003 10:19 AM
> To: xml-dev@l...
> Subject:  dynamically extensible schema
> Hello,
> I have a question I am banging my head against. I am looking for a way 
> to validate instances like the following:
> <?xml version="1.0" encoding="UTF-8"?>
> <dtw xmlns="core" xmlns:ext="extended">
>      <echo message="this is a message"/>
>      <ext:echo/>
> </dtw>
> 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.
> Does anyone have a hint?
> thanks,
> Christian
> -----------------------------------------------------------------
> 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>


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.
First Name
Last Name
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.