[XML-SIG] ANN: Pyana 0.8.1 Released

Brian Quinlan brian at sweetapp.com
Thu Oct 16 00:25:18 EDT 2003


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 





More information about the XML-SIG mailing list