Mathias Brodala: XHTML-Dokument und trotzdem BackCompat-Modus im IE

Beitrag lesen

Hallo MudGuard.

Nö, das heißt, daß man bei jedem XML 1.0 Dokument verzichten könnte (sofern UTF-8 verwendet wird).

Womit ein solches Dokument aber nicht mehr wohlgeformt und damit für mich unbrauchbar wäre.

Nö, für well-formed ist keine XML-Deklaration nötig, siehe auch http://www.w3.org/TR/REC-xml/#sec-prolog-dtd, zweites Beispiel.

Das widerspricht aber folgendem:

[Definition: A textual object is a well-formed XML document if:]

Taken as a whole, it matches the production labeled document.

Und hier finde ich, was ich unter einem vollwertigen XML–Dokument verstehe:

[1]    document    ::=    prolog element Misc*

Einen schönen Montag noch.

Gruß, Mathias

--
sh:( fo:} ch:? rl:( br: n4:~ ie:{ mo:| va:) de:> zu:} fl:( ss:) ls:[ js:|
„It is required that HTML be a common language between all platforms. This implies no device-specific markup, or anything which requires control over fonts or colors, for example. This is in keeping with the SGML ideal.“
[HTML Design Constraints: Logical Markup]