straton at lampsacos.demon.co.uk
Mon Jun 2 12:11:04 CEST 2008
miller.paul.w at gmail.com wrote:
> I've searched the standard library docs, and, while there are a couple
> options for *reading* HTML from Python, I didn't notice any for
> *writing* it. Does anyone have any recommendations (particularly ones
> not listed on PyPI)?
My approach is usually to write the data-load in XML rather than
directly in HTML, and then use XSLT to produce the (X)HTML.
You can do the whole of this, or just the second part, using
If the XML, later, needs to be changed, you can use FourSuite
to drill down to somewhere using XPath and change that
But none of this is really specific to Python, its the
XML skill-set you really need.
More information about the Python-list