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

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   wd-xml-names: precedence rules for attribute specification

[ Lists Home | Date Index | Thread Index ]
  • From: james anderson <James.Anderson@mecomnet.de>
  • To: "xml-dev@ic.ac.uk" <xml-dev@ic.ac.uk>
  • Date: Tue, 11 Aug 1998 21:33:32 +0200

IV. please specify the precedence rules for attribute "specification".

there are three states in the following matrix for which i cannot yet specify
the effective binding:
(ed = element default, cd = context default,
 eb = element binding, cb = context binding)

            default presence in attribute declaration
            
attribute
presence in
element        -- --  |  -- ed  |  cd --  |  cd ed
             ---------------------------------------
            | unbound |     ed  |  cd     |  ?   ?  |
     -- --  |         |         |         |  ?   ?  |
            ----------------------------------------
            |         |         |         |         |
     -- eb  |     eb  |     eb  |     eb  |     eb  |
            ----------------------------------------
            |         |  ?   ?  |         |  ?   ?  |
     cb --  |  cb     |  ?*  ?  |  cb!    |  ?   ?  |
            ----------------------------------------
            |         |         |         |         |
     cb eb  |     eb  |     eb  |     eb  |     eb  |
            ----------------------------------------


*: xml-dev discussion has implied that the context binding takes precedence,
but that would lead to capturing prefix bindings on included external entities
- which is not necessarily to be recommended. (see, for example, http://www.lists.ic.ac.uk/hypermail/xml-dev/9808/0152.html)
!: modulo the other ambiguities

i would suggest that the attribute declaration in the dtd should be afforded a
"lexical" scope which takes precedence over the dynamic scope of any bindings in
the element stream.

[19980810: i then went ahead and implemented the opposite, but i don't yet see
the choice as an essential issue, just so long as the choice is made]

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