Lists Home |
Date Index |
- From: "Julian Reschke" <firstname.lastname@example.org>
- To: "Don Park" <email@example.com>,"'XML Dev'" <firstname.lastname@example.org>
- Date: Thu, 25 Nov 1999 11:35:27 +0100
> From: email@example.com [mailto:firstname.lastname@example.org]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
> 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:email@example.com
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To unsubscribe, mailto:firstname.lastname@example.org the following message;
To subscribe to the digests, mailto:email@example.com the following message;
List coordinator, Henry Rzepa (mailto:firstname.lastname@example.org)