XLM and XSLT

Brian Quinlan brian at sweetapp.com
Thu Nov 13 12:40:59 EST 2003


> I would like to create a file from a xml file with a xslt transformation
> in a python program.

If you use Pyana (http://pyana.sourceforge.net/) it is as simple as:

import Pyana

Pyana.transform2File(
	Pyana.URI("in.xml"), 
	Pyana.URI("in.xsl"),
	"outfile.xml")

Cheers,
Brian






More information about the Python-list mailing list