OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   Re: Attributes with Intent (and namespaces)

[ Lists Home | Date Index | Thread Index ]
  • From: Peter Murray-Rust <peter@ursus.demon.co.uk>
  • To: xml-dev@ic.ac.uk
  • Date: Sat, 13 Jun 1998 10:18:00

At 14:07 12/06/98 +0900, MURATA Makoto wrote:
>Peter Murray-Rust wrote:
>> The XML Recommendation creates a category of attributes which have intent.
>> (2.10 xml:space, 2.12 xml:lang). I believe that this raises implementation
>> problems for which we may wish to devise a common protocol. The same
>> problem arises in implementing XLink which, although not final, appears
>> likely to contain the same (or closely related constructs).
>By the way, do you think that an element of one namespace should 
>be able to inherit attributes from another element of a different 
>namespace?  If we would like to forbid such inheritance, we can simply 
>say "Inheritance stops when namespaces switch"  or explicitly 
>say "an element whose namespace is different from that of its immediate
>must explicitly specify xml:space and xml:lang".

Thanks for the reply.  My main concern is with how 'inheritance' is
*implemented*.  I have seen sufficient discussion here and elsewhere to
believe that different groups will write code that does different things.
This worries me.

One view of inheritance is that it is simply minimisation (i.e. it saves
you writing an attribute, a namespace prefix, or whatever is inherited). A
processor (at some undefined stage) expands the minimisation. Thus

<foo xml:lang="fr">

is functionally equivalent to:

<foo xml:lang="fr">
  <bar xml:lang="fr"/>

Others (I suspect the majority) assume that at some stage a piece of
software will ask "does xml:lang apply to this element, and if so, what is
its value?" [Actually xml:lang 'applies' to *all* elements.] The word
'apply' is far too fuzzy to define the software implementation. I have
consulted experts on whether an XPointer asking for a bar element with an
attribute xml:lang would identify the element in the above example. So far
the score is 2 yes, 3 no. I have no expert opinion, I'm just trying to
write software that will be consistent with the specs. At present I can't
:-) [I think most of the experts don't see what my problem is, because they
have very clear ideas of how this should work for them.]


Peter Murray-Rust, Director Virtual School of Molecular Sciences, domestic
net connection
VSMS http://www.nottingham.ac.uk/vsms, Virtual Hyperglossary

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo@ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@ic.ac.uk)


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS