[XML-SIG] using xslt with python

Mike Brown mike at skew.org
Thu Jun 12 17:17:55 EDT 2003


Jed Parsons wrote:
> 
> Hi, Paul,
> 
> You can do something like this:
> 
>     from Ft.Xml import InputSource
>     from Ft.Xml.Xslt.Processor import Processor
> 
>     document = InputSource.DefaultFactory.fromUri(xmlfile)
>     stylesheet = InputSource.DefaultFactory.fromUri(xsltfile)
>     # there's also a fromString() method
>     
>     processor = Processor()
>     processor.appendStylesheet(stylesheet)
>     result = processor.run(document)
>     


That is, after you've installed 4Suite... get it from 4suite.org.




More information about the XML-SIG mailing list