 |
| 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
|
|
|
|

January 9th, 2006, 11:49 PM
|
|
Authorized User
|
|
Join Date: Oct 2005
Posts: 72
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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.
|
|

January 10th, 2006, 06:15 AM
|
 |
Wrox Author
|
|
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
|
|
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
|
|

January 10th, 2006, 10:34 PM
|
|
Authorized User
|
|
Join Date: Oct 2005
Posts: 72
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
i see, thanks.
|
|

January 12th, 2006, 03:52 AM
|
|
Authorized User
|
|
Join Date: Oct 2005
Posts: 72
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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.
|
|

January 12th, 2006, 04:40 AM
|
 |
Wrox Author
|
|
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
|
|
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
|
|

January 13th, 2006, 02:34 AM
|
|
Authorized User
|
|
Join Date: Oct 2005
Posts: 72
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
is there a way i could do it in my program? i have used your classes and created a gui for the processor.
|
|

January 13th, 2006, 05:03 AM
|
 |
Wrox Author
|
|
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
|
|
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
|
|

January 17th, 2006, 10:44 PM
|
|
Authorized User
|
|
Join Date: Oct 2005
Posts: 72
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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.
|
|

February 12th, 2007, 03:57 PM
|
|
Registered User
|
|
Join Date: Feb 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
> System.setProperty("DentityExpansionLimit","100000 ");
There is no 'D'.
-DentityExpansionLimit=100000
is equivalent to
System.setProperty("entityExpansionLimit","100000" );
-- Tony
|
|
 |