Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 25th, 2006, 11:06 AM
Authorized User
 
Join Date: Jul 2006
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default SAXON Ques

Hi,
As Michael suggested to use Saxon for huge files. I downloaded saxon8.7.3 and jdk5.0 .
I tested the files and it works fine for me.

But I have some questions using this product I know these may sound very dumb after I have installed saxon & have it running on my system...

1. Are there any commands to check whether the XML/XSLT file is valid or Is Saxon just a XSLT Processor.

2. I have a file close to 2 million lines and there is a error in the file I need to fix - How can I view this file as I said xml spy fails & says ran out of memory.

Thanks!

 
Old July 25th, 2006, 11:30 AM
Authorized User
 
Join Date: Jul 2006
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have encountered another prob.

when I apply my stylesheet to xml it says:

Exception in thread "main" java.lang.OutofMemoryError: Java heap space

Don't knwo how to fix this as Michael said it can handle files upto 100MB and my file isjust 43 MB and its failing!!!!!!!!!!


 
Old July 25th, 2006, 11:37 AM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

How big is your file, and how much memory did you allocate?

If you're not familiar with it, the way you allocate memory to Java on the command line is with a switch such as

java -Xmx512m net.sf.saxon.Transform...



Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference
 
Old July 25th, 2006, 03:29 PM
Authorized User
 
Join Date: Nov 2004
Posts: 81
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to jkmyoung
Default

Don't use XML Spy for any file larger than 10kb. It tries to build a DOM for the entire file and is incredibly slow.
If it is a simple error that you can figure out using I recommend using a normal text editor, like ultraedit.

 
Old July 26th, 2006, 10:44 AM
Authorized User
 
Join Date: Jul 2006
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hey,
Saxon is such a amazing command line product to use if one has to work with huge XML files;
the proceessor got me the output so fast.....
I have to ask my company to buy this product.
indeed a great tool to use!!!!!!!!!!!!

I 'm going to try Ultraedit as suggested by jkmyoung to view the 43MB XML file which I have...

Thanks for your help!






Similar Threads
Thread Thread Starter Forum Replies Last Post
another ques regarding Javascript messagebox hoailing22 ASP.NET 1.0 and 1.1 Basics 6 June 7th, 2005 01:10 AM
Rephrase of my ques Regornil JSP Basics 1 July 25th, 2004 09:24 PM
hi, text box ques... life_s Ng ASP.NET 1.0 and 1.1 Basics 8 September 13th, 2003 02:26 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.