ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> xml-dev
xml-dev
Re: [xml-dev] DSDL: use cases: namespace declaration notation
by james anderson other posts by this author
Jun 14 2002 9:42AM messages near this date
Re: [xml-dev] DSDL: use cases: namespace declaration notation | Re: [xml-dev] Come On, DTD, Come On! Thoughts on DSDL Part 9
Ronald Bourret wrote:
>  
>  
>  Assuming I read your example correctly, what you want to do is take
>  element types x and y, which were not in any namespace, and, through a
>  trick of default namespaces, declare them to be in the data:,ns-a and
>  data:,ns-b namespaces.

I would not call this a trick.

>  
>  I find this abusive and no more correct than renaming x and y as Fred
>  and Ginger.

Taken to the extreme, this characterisation implies that all element sets should include a f
ixed namespace declaration in their
"top-level" element(s). In which case the NAMESPACE notation is superfluous.

>              They were not in any namespace, so when used in a compound
>  document, they should continue not to be in any namespace.
>  

Does the "default" namespace mean something different in a document definition than it means
 in the document entity?

The notion of "not in any namespace" is bogus. Unprefixed qualified names which appear outsi
de of the scope of a default
namespace declaration are identified with universal names in a distinguished "null" namespac
e. For which there is an implicit
declaration. If there were not true, such names would be incommensuarable and validation wou
ld not be possible. That it is
possible to shadow this implicit declaration is no different than that it is possible to sha
dow an explicit declaration. No more
abusive and no less correct.

>  Supporting this is quite easy using the NAMESPACE notation, with the
>  proviso that one must be careful not to declare a default namespace.
>  (This is similar to using non-namespaced elements in an instance -- the
>  presence of a default namespace will cause these to be inadvertently
>  renamed.)

How is one to use a declaration with indefinite scope to emulate the lexical scope of attrib
ute-based declarations within the
document entity?

...

-----------------------------------------------------------------
The xml-dev list is sponsored by XML.org <http://www.xml.org> , an
initiative of OASIS <http://www.oasis-open.org> 

The list archives are at http://lists.xml.org/archives/xml-dev/

To subscribe or unsubscribe from this list use the subscription
manager: <http://lists.xml.org/ob/adm.pl> 
Thread:
John Cowan
Marcus Carr
Eric Bohlman
Marcus Carr
james anderson
james anderson
james anderson
Marcus Carr
Arjun Ray
Marcus Carr
Arjun Ray
John Cowan
Arjun Ray
John Cowan
Arjun Ray
John Cowan
Arjun Ray
John Cowan
Deborah Aleyne Lapeyre
John Cowan
Thomas B. Passin
Ronald Bourret
Ronald Bourret
Michael Kay
Thomas B. Passin
james anderson
David Carlisle
james anderson
David Carlisle
james anderson
David Carlisle
james anderson
Michael Kay
james anderson
David Carlisle
Tim Bray
Ronald Bourret
Ronald Bourret
Ronald Bourret
Arjun Ray
John Cowan
Arjun Ray
John Cowan
Arjun Ray
John Cowan
John Cowan
james anderson
John Cowan
Rick Jelliffe
Arjun Ray
John Cowan
Rick Jelliffe
Rick Jelliffe
Dennis Sosnoski
John Cowan
Dennis Sosnoski
John Cowan
Dennis Sosnoski
Arjun Ray
G. Ken Holman
John Cowan
Arjun Ray
james anderson
Arjun Ray
John Cowan
Arjun Ray
Rick Jelliffe
John Cowan
Arjun Ray
John Cowan
John Cowan
james anderson
John Cowan
james anderson
james anderson
John Cowan
james anderson
james anderson
John Cowan
Ronald Bourret
Ronald Bourret
Jonathan Borden
Ronald Bourret
Michael Fuller
John Cowan
Bob Hutchison
james anderson
Thomas B. Passin
John Cowan
Ronald Bourret
John Cowan
Thomas B. Passin
Ronald Bourret
Ronald Bourret
james anderson
Norman Walsh
K. Ari Krupnikov
John Cowan
John Cowan
K. Ari Krupnikov
John Cowan
G. Ken Holman
Ronald Bourret
Rick Jelliffe
John Cowan
Marcus Carr
G. Ken Holman
John Cowan
Michael Fitzgerald
Paul Prescod
John Cowan
John Cowan

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved