Re: namespaces
In article <bm6e2q$2h0o$1@ pc-news.cogsci.ed. ac.uk>,
Richard Tobin <richard@cogsci .ed.ac.uk> wrote:
% The namespace spec *could* have said that an unprefixed attribute is
% in the namespace of its element. This would have had an advantage for
% attributes that can be used both on elements in "their own" namespace
% and on other elements, such as
[...]
% Why wasn't this done? I *think* - and you'd need to ask the original
% authors for a definitive answer - that they didn't want to imply that
% the foo attribute on one element in a namespace was the same as the
% foo attribute on another element.
It seems more likely that they didn't want to force xpath-like languages
to have prefixes on all their attributes, which would be the logical
outcome. Namespaces have less value for attributes than for elements,
and it's less cumbersome to deal with attributes in no name space than
to deal with attributes in a namespace.
--
Patrick TJ McPhee
East York Canada
ptjm@interlog.c om
In article <bm6e2q$2h0o$1@ pc-news.cogsci.ed. ac.uk>,
Richard Tobin <richard@cogsci .ed.ac.uk> wrote:
% The namespace spec *could* have said that an unprefixed attribute is
% in the namespace of its element. This would have had an advantage for
% attributes that can be used both on elements in "their own" namespace
% and on other elements, such as
[...]
% Why wasn't this done? I *think* - and you'd need to ask the original
% authors for a definitive answer - that they didn't want to imply that
% the foo attribute on one element in a namespace was the same as the
% foo attribute on another element.
It seems more likely that they didn't want to force xpath-like languages
to have prefixes on all their attributes, which would be the logical
outcome. Namespaces have less value for attributes than for elements,
and it's less cumbersome to deal with attributes in no name space than
to deal with attributes in a namespace.
--
Patrick TJ McPhee
East York Canada
ptjm@interlog.c om
Comment