Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > XML > XSLT
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old January 9th, 2006, 10:49 PM
Authorized User
 
Join Date: Oct 2005
Location: , , Philippines.
Posts: 72
Thanks: 0
Thanked 0 Times in 0 Posts
Default what is this error generated by saxon processor?

Error of file:/C:/Documents%20and%20Settings/My%20Documents/Work/RPP_P_080705.xml:
  SXXP0003: Error reported by XML parser: The parser has encountered more than "64,000"
  entity expansions in this document; this is the limit imposed by the application.

this was the error generated by the processor. is this an error cause by dtd? thanks.


Reply With Quote
  #2 (permalink)  
Old January 10th, 2006, 05:15 AM
mhkay's Avatar
Wrox Author
Points: 17,685, Level: 57
Points: 17,685, Level: 57 Points: 17,685, Level: 57 Points: 17,685, Level: 57
Activity: 37%
Activity: 37% Activity: 37% Activity: 37%
 
Join Date: Apr 2004
Location: Reading, Berks, United Kingdom.
Posts: 4,826
Thanks: 0
Thanked 263 Times in 258 Posts
Default

Saxon is trying hard to tell you that the message doesn't come from Saxon, but from the XML parser - but no-one ever seems to notice that!

You can read about this limit and how to change it at

http://java.sun.com/webservices/docs...ility_150.html


Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference
Reply With Quote
  #3 (permalink)  
Old January 10th, 2006, 09:34 PM
Authorized User
 
Join Date: Oct 2005
Location: , , Philippines.
Posts: 72
Thanks: 0
Thanked 0 Times in 0 Posts
Default

i see, thanks.

Reply With Quote
  #4 (permalink)  
Old January 12th, 2006, 02:52 AM
Authorized User
 
Join Date: Oct 2005
Location: , , Philippines.
Posts: 72
Thanks: 0
Thanked 0 Times in 0 Posts
Default

one more thing, can i do that in my program. i did not use jaxp, i used your saxon transforom class. how can i change that setting? thanks.

Reply With Quote
  #5 (permalink)  
Old January 12th, 2006, 03:40 AM
mhkay's Avatar
Wrox Author
Points: 17,685, Level: 57
Points: 17,685, Level: 57 Points: 17,685, Level: 57 Points: 17,685, Level: 57
Activity: 37%
Activity: 37% Activity: 37% Activity: 37%
 
Join Date: Apr 2004
Location: Reading, Berks, United Kingdom.
Posts: 4,826
Thanks: 0
Thanked 263 Times in 258 Posts
Default

You can set Java system properties from the command line:

java -DpropertyName=propertyValue net.sf.saxon.Transform .....



Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference
Reply With Quote
  #6 (permalink)  
Old January 13th, 2006, 01:34 AM
Authorized User
 
Join Date: Oct 2005
Location: , , Philippines.
Posts: 72
Thanks: 0
Thanked 0 Times in 0 Posts
Default

is there a way i could do it in my program? i have used your classes and created a gui for the processor.

Reply With Quote
  #7 (permalink)  
Old January 13th, 2006, 04:03 AM
mhkay's Avatar
Wrox Author
Points: 17,685, Level: 57
Points: 17,685, Level: 57 Points: 17,685, Level: 57 Points: 17,685, Level: 57
Activity: 37%
Activity: 37% Activity: 37% Activity: 37%
 
Join Date: Apr 2004
Location: Reading, Berks, United Kingdom.
Posts: 4,826
Thanks: 0
Thanked 263 Times in 258 Posts
Default

You can set Java system properties from a Java program using

System.setProperty()

Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference
Reply With Quote
  #8 (permalink)  
Old January 17th, 2006, 09:44 PM
Authorized User
 
Join Date: Oct 2005
Location: , , Philippines.
Posts: 72
Thanks: 0
Thanked 0 Times in 0 Posts
Default

sir,
i already use the code in my program and already compiled the program.
there were no errors reported but, it does seem to change the property.
i used the code:
System.setProperty("DentityExpansionLimit","100000 ");
also for the
TransformerFactoryImpl factory = new TransformerFactoryImpl();
factory.setAttribute(FeatureKeys.STRIP_SPACE,"all" );
the results were not as expected compare to the result generated in the command line.
thanks.

Reply With Quote
  #9 (permalink)  
Old February 12th, 2007, 02:57 PM
Registered User
 
Join Date: Feb 2007
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

> System.setProperty("DentityExpansionLimit","100000 ");

There is no 'D'.

-DentityExpansionLimit=100000

is equivalent to

System.setProperty("entityExpansionLimit","100000" );

-- Tony
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing Saxon XSLT Processor booboop BOOK: Beginning XML 3rd Edition 2 April 7th, 2011 12:10 PM
Memory Error:using saxon with option java -Xmx1024 manish_jaiswal XSLT 4 January 29th, 2008 11:08 AM
error on saxon 8.8 rjonk XSLT 1 October 24th, 2006 09:03 AM
error XTDE0410 (from saxon generator)??? ronisc XSLT 2 June 27th, 2006 09:18 AM
XPST0081: XPath syntax error ... with Saxon markus2000 XSLT 3 June 22nd, 2006 09:53 AM



All times are GMT -4. The time now is 10:57 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.