W3C home > Mailing lists > Public > xmlschema-dev@w3.org > January 2004

Re: mutliple default namespaces...

From: G. Ken Holman <gkholman@CraneSoftwrights.com>
Date: Wed, 28 Jan 2004 12:16:24 -0500
Message-Id: <5.2.0.9.0.20040128121350.014c9a08@pop.storm.ca>
To: <xmlschema-dev@w3.org>

At 2004-01-28 17:16 +0100, Nikolas Nehmer wrote:
>Im looking for a possiblility to define several default namespaces at one 
>time.

The XML information set doesn't support the concept of more than one 
default namespace.

By definition, the default namespace is the namespace in play when there is 
no namespace prefix being used.

>For example define 2 default NS in my root element.

But then how would you distinguish the element <foo> ... in which of the 
two vocabularies would it belong?

>I want to do that to reduce complexity in my XML files.

Where is the complexity?  Do you mean verbosity?

>So I dont need any prefixes and at the same time dont have any name 
>conflicts.

If you ambiguously use no prefix for more than one thing, how could you 
possibly avoid name conflicts?

I hope this helps.

.......................... Ken


--
Public courses: sign up for one or both soon to reserve your seat!
Each week:  Monday-Wednesday: XSLT/XPath;  Thursday-Friday: XSL-FO
Washington, DC: 2004-03-15           San Francisco, CA: 2004-03-22
Hong Kong, China: 2004-05-17           Bremen, Germany: 2004-05-24
World-wide on-site corporate, government & user group XML training

G. Ken Holman                 mailto:gkholman@CraneSoftwrights.com
Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/x/
Box 266, Kars, Ontario CANADA K0A-2E0    +1(613)489-0999 (F:-0995)
Male Breast Cancer Awareness  http://www.CraneSoftwrights.com/x/bc
Received on Wednesday, 28 January 2004 12:16:47 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:41 GMT