Re: mutliple default namespaces...

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 UTC