Quote:
Originally Posted by Jellby
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?
|
This is what the TEI-MEK XML format uses for poetry (and its not embedded in a paragraph, but presumably could be for the very reason you mention):
Code:
<lg type="verse">
<l>Mivel malommester alsóknak hadnagyok,</l>
<l>Szárnyas madaraknak az sólyom az urok,</l>
<l>A fenevadaknak oroszlány királyok,</l>
<l>Az fáknak fenyőfa légyen az császárok.<ref target="note5221-1" type="footnote">[<hi vertical-align="top">96</hi>]</ref><note id="note5221-1" type="footnote">96. RMKT IV (Budapest, 1967), p. 439.</note></l>
</lg>
My point is less about not being limited by XHTML, and more that XHTML has no
definitive way of encoding inserted poetry, whereas an XML dialect (like the TEI-MEK one) that aims at accurately and concisely encoding semantic information, as you see, does.
A program written to parse the this XML format encountering the above code should be unambiguously clear as to how to interpret it. On the other hand, your intuitive way of encoding poetry in XHTML is certain not to precisely match the way a 100 other random people do so. Assuredly there would be overlap... but surely there would easily be a dozen or two different ways, all nominally correct, but none definitively correct and certain to be used by all "correct" documents.
Does that clarify my meaning?
- Ahi