W3C home > Mailing lists > Public > www-validator@w3.org > March 2002

Re: XHTML and #fixed attributes

From: Henri Sivonen <hsivonen@niksula.hut.fi>
Date: Sun, 24 Mar 2002 01:08:04 +0200
To: www-validator@w3.org
Message-Id: <D48D5AA4-3EB2-11D6-A86D-003065B8CF0E@niksula.hut.fi>

On Friday, March 22, 2002, at 03:29 , Terje Bless wrote:
> Henri Sivonen <hsivonen@niksula.hut.fi> wrote:
>> On Wednesday, March 20, 2002, at 04:43 , Jim Correia wrote:
>>> This means that the attribute (xmlns for example) may be omitted (and
>>> if it does, it will pick up the default fixed value)
>>
>> Only when the document is parsed by a parser that reads external
>> entities. Relying on anything (attribute defaults, character entities)
>> declared in an external DTD subset will cause problems when the 
>> document
>> is processed by a non-validating XML system that doesn't read external
>> entities.
>
> You are both including generic XML considerations (Valid vs. 
> Well-Formed
> distinction) and omitting standard XML practice here (assuming an 
> External
> Subset). The DTD in this case may well exist in an Internal Subset

It is unusual to paste an XHTML DTD in the internal subset. That's 
why I assumed that the attribute defaults were in an external entity.

But yes, I should have been more precise. Attibute defaulting works 
even with non-validating parsers that don't process external entities 
if the attribute defaults appear in the internal subset.

--
Henri Sivonen
hsivonen@niksula.hut.fi
http://www.hut.fi/u/hsivonen/
Received on Saturday, 23 March 2002 18:09:04 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:01 GMT