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

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top