Python {executable templates from XSLT, code generation tool}

Jean-Baptiste Braun jbaptiste.braun at gmail.com
Mon Dec 15 05:09:10 EST 2014


Hi,

I'm searching a tool to translate an xsl file to executable python code.

I know how to execute xslt with python. What I want is to process my xslt
rules *in* python.

Example :
<xsl:when test="gender = 'Male'"> Mr </xsl:when>
<xsl:otherwise> Mrs </xsl:otherwise>

I would like it to be translated in a python test statement.

Does anyone know something like this ? Or at least a code generation tool ?
I read about Cog and might use it.

Jbb
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20141215/d2059402/attachment.html>


More information about the Python-list mailing list