[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] Processing milestoned XML leads to many preceding:: calls and horrible performance


Subject: Re: [xsl] Processing milestoned XML leads to many preceding:: calls and horrible performance
From: "Tony Graham" <tgraham@xxxxxxxxxx>
Date: Tue, 21 Feb 2012 10:26:16 -0000 (GMT)

On Tue, February 21, 2012 9:07 am, MatDj Cepl wrote:
> I am again working on a XSLT stylesheet to convert a Czech Bible
> translation from home-brew schema to OSIS and I got to some performance
> problems.
>
> Whole stylesheet is
> https://gitorious.org/sword/czekms-csp_bible/blobs/master/CEP2OSIS.xsl
> (and git repo can be clone from ...), but I believe the relevant parts are
...
> This works (at least as much as I was able to test it give then the
> circumstances), but the performance is absolutely dreadful. Just book of
> Genesis took almost an hour before being processed (with one core of my
> dual-core CPU being constantly at 100%).

Have you looked at using multiple stylesheets and/or multiple modes (and,
if you stick with xsltproc, exsl:node-set()) so you can, e.g., do the
chapter milestones, then the verse-start milestones, then the verse-end
milestones?

And as Andrew Welch eloquently put it, some things are so much easier in
XSLT 2.0 that people assume that's what you're using.

FWIW, my slides on converting from (non-XML) SFM to OSIS and then EPUB
from XML Prague 2011 are linked to from
http://www.mentea.net/resources.html#XMLPrague2011

Regards,


Tony Graham                                   tgraham@xxxxxxxxxx
Consultant                                 http://www.mentea.net
Mentea       13 Kelly's Bay Beach, Skerries, Co. Dublin, Ireland
 --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --
    XML, XSL-FO and XSLT consulting, training and programming


Current Thread
Keywords