On Mon, 2007-07-30 at 18:18 +0200, Frederic Peters wrote: > > I did take a look at the BZR stuff. IIRC it had some bad stuff, e.g. > > calling programs by using a shell. > > Do you mean you would prefer calls to xsltproc to be done via os.spawn > instead of os.system ? I can change this. You may have an alternate way of doing this using the libxslt bindings From http://xmlsoft.org/XSLT/python.html import libxml2 import libxslt styledoc = libxml2.parseFile("test.xsl") style = libxslt.parseStylesheetDoc(styledoc) doc = libxml2.parseFile("test.xml") result = style.applyStylesheet(doc, None) style.saveResultToFilename("foo", result, 0) style.freeStylesheet() doc.freeDoc() result.freeDoc() -- __C U R T I S C. H O V E Y_______ Guilty of stealing everything I am.
Attachment:
signature.asc
Description: This is a digitally signed message part