Re: [xml-dev] DSDL: use cases: namespace declaration notation
by Ronald Bourret other posts by this author
Jun 14 2002 10:06AM messages near this date
Re: [xml-dev] Re: [dsdl-comment] Re: [xml-dev] Re: Re: [xml-dev]
DSDL: use cases: namespace declaration notation
|
Re: [xml-dev] DSDL: use cases: namespace declaration notation
james anderson wrote:
> > 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 fixed namespace declaration in their
> "top-level" element(s). In which case the NAMESPACE notation is superfluous.
I finally see what you're getting at.
You feel that xmlns "attributes" must be in the DTD anyway, so the
NAMESPACE notation is redundant. Since the "validation DTD" will define
validation in different terms (two part names v. lexical names, data
types, etc.) than XML 1.0, there is a better solution: treat the xmlns
thingies as namespace declarations, not attributes. This means you don't
need to declare them in the DTD and can use the NAMESPACE notation,
which is much cleaner and easier to use/understand.
> > 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?
I don't believe so. It identifies the namespace (if any) to be used with
unqualified names.
> The notion of "not in any namespace" is bogus.
Technically, it isn't. To quote from the namespaces spec:
"If the URI reference in a default namespace declaration is empty, then
unprefixed elements in the scope of the declaration are not considered
to be in any namespace."
However, I'm happy to agree that it is equivalent to having a namespace
with a null URI.
> Unprefixed qualified
> names which appear outside of the scope of a default
> namespace declaration are identified with universal names in a
> distinguished "null" namespace. For which there is an implicit
> declaration.
Again, that's technically an implementation detail. Nothing in the
namespaces spec requires it.
> If there were not true, such names would be incommensuarable and
> validation would not be possible.
I'm not sure what "incommensurable" means, but I don't follow why
validation is not possible. You simply have two sets of validation rules
-- one for validating names in namespaces and the other for validating
names not in namespaces. You can, of course, join these into a single
code line by using a "null" namespace for the latter but, as I said,
that's an implementation detail.
> How is one to use a declaration with indefinite scope to emulate the
> lexical scope of attribute-based declarations within the
> document entity?
One doesn't. Why is this a requirement? (Note that the proposed
validation DTD is no different from other schema languages in this
respect. Neither is intended to perform lexical validation of QNames.)
-- 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
|