Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.012 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'python.': 0.02; 'subject:Python': 0.06; 'subject:code': 0.07; 'executable': 0.09; 'translate': 0.10; 'python': 0.11; 'statement.': 0.16; 'subject:generation': 0.16; 'code.': 0.18; 'translated': 0.19; 'example': 0.22; 'rules': 0.22; 'least': 0.26; 'message- id:@mail.gmail.com': 0.30; "i'm": 0.30; 'code': 0.31; "skip:' 10": 0.31; 'anyone': 0.31; 'file': 0.32; 'subject:from': 0.34; 'tool': 0.35; 'something': 0.35; 'test': 0.35; 'received:google.com': 0.35; 'hi,': 0.36; 'searching': 0.37; 'skip:& 10': 0.38; 'to:addr :python-list': 0.38; 'skip:& 20': 0.39; 'does': 0.39; 'to:addr:python.org': 0.39; 'how': 0.40; 'read': 0.60; 'subject:tool': 0.84; 'xslt': 0.84; 'mrs': 0.96 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=f2wb7UcpkierIsdvulyh4ElZZD6VTDWG7E/9eqVoIH8=; b=Jb/yu3u1tuxOr8gX56bwFyG3R1JtFSX60gAPSrjYe+KZsMVUKpeyIeq0JsL8VcqOJP 8kwlEQnpUOsW3HygyxqZWvgmnw4NqAoFkg8Pal8CB32cErhsPS49rtn7JnxLyumyxQgs uDhTJnr8pjE5kZQa5DPcx/G+ZToFGcca2RYEUhkPRcl/crKKLxFrHUDC3Oq0JlFlYa16 xcgAClsL2vHBn9ga38iVpk6qEUwGksHQ14PXK0SnJHtZOHRWDS8uZ6ZqJuCEIQCg6EM0 05b9JU7VC0+nYBns/dVLQ96Xo8KvcDkJVTi/EiFGifOZAJH43JQzZC2glzBXbAO/m+o4 cDVA== MIME-Version: 1.0 X-Received: by 10.180.76.144 with SMTP id k16mr29507008wiw.3.1418638150778; Mon, 15 Dec 2014 02:09:10 -0800 (PST) Date: Mon, 15 Dec 2014 11:09:10 +0100 Subject: Python {executable templates from XSLT, code generation tool} From: Jean-Baptiste Braun To: python-list@python.org Content-Type: multipart/alternative; boundary=f46d043749410ac2e2050a3e6f5a X-Mailman-Approved-At: Mon, 15 Dec 2014 16:19:32 +0100 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 38 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1418656772 news.xs4all.nl 2835 [2001:888:2000:d::a6]:54502 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:82563 --f46d043749410ac2e2050a3e6f5a Content-Type: text/plain; charset=UTF-8 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 : Mr Mrs 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 --f46d043749410ac2e2050a3e6f5a Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi,

I'm searchin= g 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 ru= les in python.

Example :
<xsl:wh= en test=3D"gender =3D 'Male'"> Mr=20 </xsl:when>
<xsl:otherwise> Mrs </xsl:otherwise>
I=20 would like it to be translated in a python test statement.

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

Jbb
--f46d043749410ac2e2050a3e6f5a--