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

RE: Linking a XML document to its schema

  • From: "Julian Reschke" <reschke@m...>
  • To: "Don Park" <donpark@d...>,"'XML Dev'" <xml-dev@i...>
  • Date: Thu, 25 Nov 1999 11:35:27 +0100

linking a xml
> From: owner-xml-dev@i... [mailto:owner-xml-dev@i...]On Behalf Of
> Don Park
> Sent: Thursday, November 25, 1999 10:25 AM
> To: 'XML Dev'
> Subject: RE: Linking a XML document to its schema
>
>
> >But then -- if you do not associate the schema with a
> >namespace -- how do you mix elements from different
> >namespaces / schemas in one document without breaking
> >validation?
>
> Julian,
>
> I do not see the problem you are describing.  Care to
> elaborate with an example?

Maybe I have misunderstood something...

My understanding is that namespaces are here to give us the power to mix
different vocabularies within one XML document, for instance mixing XSL
statements with HTML output in a stylesheet.

An XML schema (again, my understanding) defines rules how a validating XML
parser can validate constraints on the document structure. If an element
content is "open", I am free to add other elements, in particular elements
from a different namespace. For instance, xsl:template might have an open
content model and allow to insert any kind of tags, for example a
<html:title>. However the title tag itself can only contain character data
(I guess :-).

So it seems it is best to have one XML schema reference per namespace that
is in use in the document, right? My impression was that this wouldn't work
with the proposal you made...








xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To unsubscribe, mailto:majordomo@i... the following message;
unsubscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)



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.