OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   RE: Linking a XML document to its schema

[ Lists Home | Date Index | Thread Index ]
  • From: "Julian Reschke" <reschke@medicaldataservice.de>
  • To: "Don Park" <donpark@docuverse.com>,"'XML Dev'" <xml-dev@ic.ac.uk>
  • Date: Thu, 25 Nov 1999 11:35:27 +0100

> From: owner-xml-dev@ic.ac.uk [mailto:owner-xml-dev@ic.ac.uk]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@ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To unsubscribe, mailto:majordomo@ic.ac.uk the following message;
unsubscribe xml-dev
To subscribe to the digests, mailto:majordomo@ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@ic.ac.uk)


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS