Re: [xml-dev] DSDL: use cases: namespace declaration notation
by Ronald Bourret other posts by this author
Jun 14 2002 8:52AM 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
james anderson wrote:
> A namespace declaration should take the form of an attribute declaration.
> The scope of the namespace declaration is the respective element
> declaration, and the closure of the respective contained element and
> attribute declarations, subject to the limiting effect of contained
> attribute declarations.
While I would agree to this if we were trying to find a notation
consistent with existing DTDs, I prefer John's notation, which (as he
points) is less error prone.
> One of the likely uses for an extended DTD notation would be
> definitions which combine existing DTD-encoded definitions which
> are not namespace-aware. In order for the extended notation to
> integrate such definitions, it must be able to declare
> prefix/namesace-name bindings which have a scope which corresponds
> to the lexical scope of bindings which appear in elements.
[example snipped]
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 find this abusive and no more correct than renaming x and y as Fred
and Ginger. They were not in any namespace, so when used in a compound
document, they should continue not to be in any namespace.
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.)
-- Ron
-----------------------------------------------------------------
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
|