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 January 9th, 2006, 11:49 PM
Authorized User
 
Join Date: Oct 2005
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.


 
Old January 10th, 2006, 06:15 AM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 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
 
Old January 10th, 2006, 10:34 PM
Authorized User
 
Join Date: Oct 2005
Posts: 72
Thanks: 0
Thanked 0 Times in 0 Posts
Default

i see, thanks.

 
Old January 12th, 2006, 03:52 AM
Authorized User
 
Join Date: Oct 2005
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.

 
Old January 12th, 2006, 04:40 AM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 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
 
Old January 13th, 2006, 02:34 AM
Authorized User
 
Join Date: Oct 2005
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.

 
Old January 13th, 2006, 05:03 AM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 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
 
Old January 17th, 2006, 10:44 PM
Authorized User
 
Join Date: Oct 2005
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.

 
Old February 12th, 2007, 03:57 PM
Registered User
 
Join Date: Feb 2007
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





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 12:08 PM
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





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