🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: xsltproc sur de gros fichiers

#126
From: Philippe Poulard
Date: Fri, 20 Nov 2009 09:12
39 lines
2295 bytes
CrazyCat wrote:
> Bonjour,
> 
> Je ne sais pas si ce groupe convient pour ma question, mais je tente 
> quand m�me, quelqu'un saura bien m'aiguiller vers le bon groupe si 
> n�cessaire :)
> 
> Je dois proc�der � des transformations xsl sur des fichiers xml, jusque 
> l� que du normal.
> Pour se faire, j'utilise xsltproc et �a fonctionne plut�t bien avec des 
> fichiers XML allant jusqu'� 100Mo. Mais au dessus (il y en a un de 
> 800Mo), �a prend toute la m�moire de la machine et semble m�me tout 
> bloquer.
> 
> Avez-vous une astuce pour traiter les xml sans les charger compl�tement 
> en m�moire ou dois-je me r�soudre � scinder les gros fichiers en des 
> entit�s plus petites ?
> 
> Pour info, la machine fonctionne sous Fedora.
> 
> Merci d'avance.
> 

Bonjour,

j'imagine que le XSLT ne traite pas toutes les donn�es; pourquoi alors 
ne pas stocker ce gros fichier dans une BD native XML, et utiliser 
XQuery pour l'extraction de la partie utile � la transformation ?

-- 
Cordialement,

               ///
              (. .)
  --------ooO--(_)--Ooo--------
|      Philippe Poulard       |
  -----------------------------
  http://reflex.gforge.inria.fr/
        Have the RefleX !
Technical Details
Message-ID: <he5mip$4mp$1@news-sop.inria.fr>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!news.in2p3.fr!in2p3.fr!univ-lyon1.fr!news-rocq.inria.fr!news-sop.inria.fr!not-for-mail
References: <hduj3s$vm3$1@aioe.org>

Show Full Headers
Complete Article Headers
X-Google-Thread: 8a75585569,ef5ef539232ceb5
X-Google-Attributes: gid8a75585569,public,usenet
X-Google-NewGroupId: yes
X-Google-Language: FRENCH,ASCII
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!news.in2p3.fr!in2p3.fr!univ-lyon1.fr!news-rocq.inria.fr!news-sop.inria.fr!not-for-mail
From: Philippe Poulard <philippe.poulardNO@SPAMinria.fr>
Newsgroups: fr.comp.text.xml
Subject: Re: xsltproc sur de gros fichiers
Date: Fri, 20 Nov 2009 10:12:57 +0100
Organization: INRIA - Unite de Recherche Sophia Antipolis (France)
Lines: 39
Message-ID: <he5mip$4mp$1@news-sop.inria.fr>
References: <hduj3s$vm3$1@aioe.org>
NNTP-Posting-Host: dahu2.inria.fr
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: janus.inria.fr 1258708377 4825 138.96.193.182 (20 Nov 2009 09:12:57 GMT)
X-Complaints-To: abuse@sophia.inria.fr
User-Agent: Thunderbird 2.0.0.23 (X11/20090817)
In-Reply-To: <hduj3s$vm3$1@aioe.org>