- From: Henri Sivonen <hsivonen@niksula.hut.fi>
- Date: Sun, 24 Mar 2002 01:08:04 +0200
- To: www-validator@w3.org
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 UTC