|
[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Attributes with Intent (and namespaces)
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 superior >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"> <bar/> </foo> is functionally equivalent to: <foo xml:lang="fr"> <bar xml:lang="fr"/> </foo> 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.] P. Peter Murray-Rust, Director Virtual School of Molecular Sciences, domestic net connection VSMS http://www.nottingham.ac.uk/vsms, Virtual Hyperglossary http://www.venus.co.uk/vhg xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i... Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ To (un)subscribe, mailto:majordomo@i... the following message; (un)subscribe xml-dev To subscribe to the digests, mailto:majordomo@i... the following message; subscribe xml-dev-digest List coordinator, Henry Rzepa (mailto:rzepa@i...)
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|
|||||||||

Cart








