Re: XHTML empty elements

| I understand the compatibility issue, but I still think that the statement
| in 4.1.6 is a problem, because of the br element type declaration in
| http://www.w3.org/TR/WD-html-in-xml/DTD/xhtml1-strict.dtd which is:
|
| <!ELEMENT br EMPTY>
|
|
| How can a validating XML parser (that conforms to XML 1.0) check the
| constraint of sec 4.1.6 that it is an error to write <br></br>?

My understanding of the term, "Empty element" is that it simply has no valid
attributes. i.e. you can't say <br class="style"> or something like that.

Although, just writing that gives me an interesting idea... what if <br
line="3"> created the HTML equivelent of <br><br><br>? Is there any
practicality in that?

Daniel [inanis (edf)]        ( sorry to swing off of the subject at the
end... just curious. )

Received on Wednesday, 5 May 1999 09:11:47 UTC