This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
[docbook-apps] Generate HTML on the fly
- From: luis miguel morillas <morillas at posta dot unizar dot es>
- To: DocBook-Apps <docbook-apps at lists dot oasis-open dot org>
- Date: Fri, 28 Nov 2003 00:30:01 +0100
- Subject: [docbook-apps] Generate HTML on the fly
- Reply-to: luis miguel morillas <morillas at posta dot unizar dot es>
Hello,
I have got some docbook-xml docs and I need to generate on the fly HTML docs.
I've written a Python script [1], but I've got some warnings (about extensions)
and the task takes too long. Can I produce html quicker whith python?. The tool
we are writting is here [2]
[1] from Ft.Xml.Xslt import Processor
from Ft.Xml import InputSource
def creaHtmlTraper(stringDocXml):
docXsl='/usr/share/sgml/docbook/stylesheet/xsl/nwalsh/html/docbook.xsl'
processor=Processor.Processor()
sheet=InputSource.DefaultFactory.fromString(open(docXsl).read(), docXsl)
source=InputSource.DefaultFactory.fromString(stringDocXml, 'http://155.210.19.185')
processor.appendStylesheet(sheet)
return processor.run(source)
[2] http://155.210.19.185:8000/
--
Luis Miguel
To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.