XSLT on really large files?

C

cybersattva

Hi everyone,

I have some pretty mongo XML source files (say 256MB or so) that I need
to run an XSL transform on. The transform works fine when the file has
only one or two records in it, but when I tried using xalan on the
whole file it ran for an hour with no perceptible results (besides a
really sluggish CPU). Has anyone else had any luck with a pre-built
XSL translator for monster files, or am I going to need to write a
program to do the translation? :(

Thanks in advance!
 
G

Gregory Vaughan

You might give Saxon a try (http://sourceforge.net/projects/saxon). I've
used it on XML files approaching 100MB. When running it in Java, be sure to
bump up the memory setting, as in:

java -Xmx512m

Also make sure your machine has at least 512MB, or preferably a gig or two,
of RAM. With about 40-50 XSLT rules and a 65MB input file I've run
transforms in approx 420MB under Windows XP. But if you don't have enough
real RAM your machine will constantly swap and the time will increase
greatly...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,999
Messages
2,570,246
Members
46,840
Latest member
BrendanG78

Latest Threads

Top