Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #82563 > unrolled thread

Python {executable templates from XSLT, code generation tool}

Started byJean-Baptiste Braun <jbaptiste.braun@gmail.com>
First post2014-12-15 11:09 +0100
Last post2014-12-15 11:09 +0100
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python


Contents

  Python {executable templates from XSLT, code generation tool} Jean-Baptiste Braun <jbaptiste.braun@gmail.com> - 2014-12-15 11:09 +0100

#82563 — Python {executable templates from XSLT, code generation tool}

FromJean-Baptiste Braun <jbaptiste.braun@gmail.com>
Date2014-12-15 11:09 +0100
SubjectPython {executable templates from XSLT, code generation tool}
Message-ID<mailman.16984.1418656772.18130.python-list@python.org>

[Multipart message — attachments visible in raw view] — view raw

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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web