[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: saxon error

Subject: RE: saxon error
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Wed, 17 Jan 2007 18:48:48 -0000
saxon error
As the message tries to make clear, this is an XML parser problem and not a
Saxon problem.

Please see
http://java.sun.com/j2se/1.5.0/docs/guide/xml/jaxp/JAXP-Compatibility_150.ht
ml

in particular:

The entityExpansionLimit system property lets existing applications
constrain the total number of entity expansions without recompiling the
code. The parser throws a fatal error once it has reached the entity
expansion limit. (By default, the limit is set to 64000.)

To set the entity expansion limit using the system property, use an option
like the following on the java command line: -DentityExpansionLimit=100000

Michael Kay
http://www.saxonica.com/



> -----Original Message-----
> From: Alexey Nickolaenkov [mailto:nikolaenkov@xxxxxxxxxxxx] 
> Sent: 17 January 2007 14:31
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  saxon error
> 
> Hi,
> Today I was trying to make xslt to transform huge 16mb xml 
> file and encountered with the following problem:
> 
> Error reported by XML parser: Parser has reached the entity 
> expansion limit "64?000" set by the Application.
> 
> we use Saxon 8, and the xslt transformation is very 
> primitive. smth like
> 
> <xsl:template match="@*|node()">
>    <xsl:copy>
>       <xsl:apply-templates select="@*|node()"/>
>    </xsl:copy>
> </xsl:template>
> 
> Does anybody solved such problems? What can I do in this 
> particular case except of splitting big xml document into 
> smaller parts? Maybe I get smth wrong.. or something...
> 
> Thank you in advance.
> 
> -- 
> Alexey                            mailto:nikolaenkov@xxxxxxxxxxxx

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.