XLM and XSLT
André Kelpe
fs111 at linuxmail.org
Thu Nov 13 15:07:35 EST 2003
Olivier Hoarau wrote:
> Hello,
Hi!
> I would like to create a file from a xml file with a xslt transformation
> in a python program.
> Is there someone who can give me some examples to do that ? something
> like this
>
> import libxslt
> import libxml2
>
> xsl=parseStylesheetFile(xsl file)
> xml=parseFile(xml file)
> result = applyStylesheet(xls,xml)
> saveResultToFilename(result,outfile)
Looks like lib(xml/xslt)-python interfacefrom http://xmlsoft.org/. Maybe
this is the right choice for you.
For a little overview take a look at this page:
http://uche.ogbuji.net/tech/akara/nodes/2003-01-01/python-xslt
> Olivier
HTH
André
More information about the Python-list
mailing list