How to parse XHTML with xml.parsers.xmlproc?
aleax at aleax.it
Mon Sep 17 15:12:22 CEST 2001
"Paavo Hartikainen" <pahartik at sci.fi> wrote in message
news:87r8t6m6bj.fsf at zazu.vip.fi...
> I was under the impression that well-formedness is also defined
> somehow in DTD.
Well... there *IS* that abomination which is called CDATA,
which can indeed make well formedness dependent on DTD's,
for an otherwise constant "stream of characters". *Shudder*.
I think you need that in XHTML for such things as <style>
and <script>, which embed in the otherwise-XML-compliant
document "arbitrary" pieces of other-language syntax. A
hack by any other name...
More information about the Python-list