Quote:
Originally Posted by ahi
My point above was that while HTML/XHTML must yield semantic coherence and/or consistency to some degree in favour of actually having it displayed right across the board, an XML language that is not concerned with display logistics is more free to mark information up more concisely and succinctly, and eminently parseably (with the program less likely to get confused what a given combination of tags actually mean).
|
Perhaps the following can be an illustration.
I just realized that XHTML forbids block content inside a <p> element. So you cannot have a <div> inside a <p>. Is this sensible? Maybe, but I wanted to have <div>'s inside <p>'s for cases when a piece of poetry is inserted in a character's speech, and the text resumes after it with no indentation or whatever. I can work around this by having a <p>, then a <div> and then a <p> with no indentation, but the logical structure would be a <div> inside a <p>.
By not being limited by XHTML, this issue can be avoided. Is this the kind of thing you mean?