xsl-list
[Top] [All Lists]

RE: file_size_affecting_transformation??

2004-08-04 12:42:28
I had the same problem when processing a 200 MB file with more than 50000 
first level tags in a 512 MB machine

same happened -out of memory error- when using windose xsltproc

I overcame it making a xsl preprocessing in order to reduce the xml 
complexity, by removing some attributes and unused tags, it may help

----------  Mensaje reenviado  ----------

Subject: RE: [xsl] file_size_affecting_transformation??
Date: Wed, 4 Aug 2004 12:27:57 +0100
From: "Michael Kay" <mhk(_at_)mhk(_dot_)me(_dot_)uk>
To: <xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>

I am generating svg files from xml source files exported from
oracle using
xslt and saxon processor.Is there a possibility that the
source file size
affects the success of an xsl transformation.I mean the
transformation may
appear to have been completeted succesfully whithout any
errors, but the
generated output, svg in my case is not rendered correctly
when the source
file is considerably large.To be more specific when i try to
transform a
source xml file containing geometry of one polygon, the
generated svg is
absolutely correct.But when i try to transform a source xml
file containing
geometry of the same polygon along with a lot of other polygons the
generated svg is not correct.Does anyone have any idea if the
source file
size can affect the processor performance and degrade the result of a
transformation??

The most likely explanation is that there is something in the logic of your
stylesheet code (an XPath expression somewhere) that doesn't cater for the
possibility of finding more than one polygon in the input. It's very
unlikely to be anything to do with document size: this could slow down the
transformation, or cause it to fail with an OutOfMemory error, but wouldn't
cause it to produce wrong results.

Michael Kay


--+------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--+--

-------------------------------------------------------

-- 
"Se puede resistir el avance de un ejército, pero no de una idea cuyo momento 
ha llegado"
Victor Hugo

Juan Valentín-Pastrana
jvalentin(_at_)arrakis(_dot_)es


<Prev in Thread] Current Thread [Next in Thread>