xsl-list
[Top] [All Lists]

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

2012-02-21 04:26:51
On Tue, February 21, 2012 9:07 am, MatÄ?j 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(_at_)mentea(_dot_)net
Consultant                                 http://www.mentea.net
Mentea       13 Kelly's Bay Beach, Skerries, Co. Dublin, Ireland
 --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --
    XML, XSL-FO and XSLT consulting, training and programming


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