🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: fr.comp.text.xml
Article #85

Transfo XSLT et python

#85
From: Olivier Hoarau
Date: Thu, 13 Nov 2003 16:20
16 lines
1491 bytes
Resalut,

Je cherche � g�n�rer un fichier � partir d'un fichier xml gr�ce � une
transfo XSLT, le tout en python.
Quelqu'un aurait-il des exemples (simples) pour faire cela ? Du style

import libxslt
import libxml2

xsl=parseStylesheetFile(le fichier xsl)
xml=parseFile(le fichier doc)
result = applyStylesheet(xls,xml)
saveResultToFilename(result,fichierout)


Olivier
Technical Details
Message-ID: <3FB3AF66.2023FE99@mortauxspams.bz>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!feed.news.nacamar.de!news.belwue.de!news.uni-stuttgart.de!univ-lyon1.fr!typhon.shom.fr!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: FRENCH,ASCII
X-Google-Thread: 10dbd3,3437d0752384d0ce,start
X-Google-Attributes: gid10dbd3,public
X-Google-Thread: 114f60,3437d0752384d0ce,start
X-Google-Attributes: gid114f60,public
X-Google-ArrivalTime: 2003-11-13 08:23:03 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!feed.news.nacamar.de!news.belwue.de!news.uni-stuttgart.de!univ-lyon1.fr!typhon.shom.fr!not-for-mail
From: Olivier Hoarau <olivier.hoarau@mortauxspams.bz>
Newsgroups: fr.comp.text.xml,fr.comp.lang.python
Subject: Transfo XSLT et python
Date: Thu, 13 Nov 2003 17:20:54 +0100
Organization: MagicLand
Lines: 16
Message-ID: <3FB3AF66.2023FE99@mortauxspams.bz>
NNTP-Posting-Host: chrome.shom.fr
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: typhon.shom.fr 1068740450 15226 192.168.20.73 (13 Nov 2003 16:20:50 GMT)
X-Complaints-To: newsmaster@shom.fr
NNTP-Posting-Date: Thu, 13 Nov 2003 16:20:50 +0000 (UTC)
X-Mailer: Mozilla 4.7 [fr] (WinNT; I)
X-Accept-Language: fr