[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: James Anderson's table

  • From: John Cowan <cowan@l...>
  • To: XML Dev <xml-dev@i...>
  • Date: Thu, 13 Aug 1998 11:50:38 -0400

reading parameter attribute progress
james anderson wrote:

>   IV: for the moment, i've chosen the precedence
>        tag-content,
>        bindings-from-containing-elements,
>        attribute-defaults
>   where the bindings-from-containing-elements takes its initial value from the xml-decl.

This cannot be correct XML, and what is not correct XML is not correct
XML-ns.  An XML processor, as Tim Bray pointed out the other day,
must implement attribute defaulting (modulo problems with not reading
external DTD/parameter entities), but need not tell the application
whether the attribute was explicitly present or defaulted.

Therefore, no application can make distinctions on this basis.  An
attribute of the current element, explicit or defaulted, takes
precedence over an attribute inherited from an ancestral element.

The final example in clause 2.12 of the XML Rec is indicative:  it shows
a variety of elements with default values for xml:lang, also an
inherited attribute.  The intent of that example is clearly that
"poem" elements are French by default, and "gloss" and "note" elements
are English by default, independent of context.  All other elements
presumably inherit the language from context.

> This is also not self-evident. The presence of the lexically apparent binding
> could quite reasonably be said to take precedence.

You value explicit attribute values over implicit ones in a way that has
no warrant in the XML Rec.

> I would hestitate to say
> proximity is the right criteria for precedence until either I've seen some
> 'real' instances or the standard describes the situation and specifies how to
> resolve it.

Unfortunately, all the examples in the draft are DTD-less.  Nevertheless, based
on the precedent of xml:lang and Tim's remarks, I feel sure that I am correct.

-- 
John Cowan	http://www.ccil.org/~cowan		cowan@c...
	You tollerday donsk?  N.  You tolkatiff scowegian?  Nn.
	You spigotty anglease?  Nnn.  You phonio saxo?  Nnnn.
		Clear all so!  'Tis a Jute.... (Finnegans Wake 16.5)

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!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.