Avatar billede tejl Nybegynder
22. maj 2002 - 10:19 Der er 2 kommentarer og
1 løsning

XSL Transformer memory problem

Hi.

I'm currently trying to transform huge xml documents using xslt. My problem resides in the implementation of the transformers, which I've so far tried to use. Xalan and xsltproc both builds in internal representation of the whole input file, and as a result a memory error occurs before the transformation process even starts.

Therefore I need a XSL Transformer, which doesn't build internal representations of the whole input file. Do you know such one?
Avatar billede jakobandersen Nybegynder
22. maj 2002 - 10:27 #1
I have used Sablotron to handle very large XML documents, but im not sure wheather or not it builds an "copy" of the input file.
Avatar billede janegil Nybegynder
22. maj 2002 - 11:33 #2
I don't think XSLT is the right tool if you can't read the entire document. A parser can chew the file in small pieces, but I think XSLT has to have the entire file - how else could I start the output by giving the position of the last element etc?
Avatar billede tejl Nybegynder
22. maj 2002 - 12:50 #3
Sablotron did the job. It took quite a time and loads of ressources.
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
Kurser inden for grundlæggende programmering

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester