ANN: Pyana 0.8.1 Released You can find it here: http://sourceforge.net/project/showfiles.php?group_id=28142
Changes: - Updated for Xalan 1.6/Xerces 2.3 - Fixed a bug where some Unicode strings would be misinterpreted as numbers What is Pyana? Pyana is a Python interface to the Xalan C XSLT processor. Example: import Pyana inputExampleXSL = r''' <xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform version="1.0"> <xsl:output method="text"/> <xsl:template match="message"> <xsl:value-of select="child::text()"/> </xsl:template> </xsl:stylesheet> ''' inputExampleXML = r''' <message>Hello World!</message> ''' print Pyana.transform2String( source=inputExampleXML, style=inputExampleXSL) # prints 'Hello World' Some more complex examples are provided here: http://pyana.sourceforge.net/examples/ Cheers, Brian
