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

Re: Schema embedded in an XML document

From: C. M. Sperberg-McQueen <cmsmcq@blackmesatech.com>
Date: Wed, 22 Apr 2009 11:32:00 -0600
Cc: "C. M. Sperberg-McQueen" <cmsmcq@blackmesatech.com>, <xmlschema-dev@w3.org>
Message-Id: <44227AC9-6F26-45CC-A332-18EA29D76498@blackmesatech.com>
To: Rowan Bradley <rowan.bradley@herbertgroup.com>
Re: Schema embedded in an XML document

On 22 Apr 2009, at 08:38 , Rowan Bradley wrote:

> Is it possible to incorporate the schema in a single file along with  
> the XML content that’s meant to conform to the schema? I’m thinking  
> of something rather like HTML files that can incorporate embedded  
> CSS styles, or the CSS files can be extracted into a separate CSS  
> file.
> Thanks - Rowan

Yes, in principle.

In practice, different validators make different assumptions about
what such an arrangement should look like, so it's hard to produce
an instance+schema package that will work with all (or even more than
one) validator.

There was interest at one time in performing a survey of current
practice and publishing a Note to document it, but there was also
resistance to this idea, so it has not happened.

I hope this helps.

-- 
****************************************************************
* C. M. Sperberg-McQueen, Black Mesa Technologies LLC
* http://www.blackmesatech.com
* http://cmsmcq.com/mib
* http://balisage.net
****************************************************************
Received on Wednesday, 22 April 2009 17:32:40 GMT

Subscribe to the Stylus Scoop newsletter for helpful XML tips and tutorials.
Email
First Name
Last Name
Company

Download Stylus Studio 6 XML Enterprise Edition

Subscribe in XML format
RSS 2.0
Atom 0.3
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-2007 All Rights Reserved.