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

Re: Mixing my vocabularies


Re:  Mixing my vocabularies
Hi Mark,

> Can I inter-mix other vocabularies with an XML Schema defined vocabulary in an instance document, and still have a valid document? If so, how?
>
> N.B. the answer should ideally not involve any changes to the XML schema, just to the conformant document (e.g. I cannot use <xsd:anyAttribute namespace="##other"/>, etc).

If you want to use XML Schema then the only way to get an "open" document (allows you to add elements and attributes not declared in the schema) is to use the wildcard facility (xs:any and
xs:anyAttribute). This means that you need to include these in the XML Schema but that's not necessarily that hard to do. You can for example create an abstract base type that is a wildcard type
and then derive all other types from this type which would create an "open" document.
If you don't mind trying a different schema language Schematron is open by default which means you can do these things by default.

Cheers,
/Eddie



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.