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

Re: Processing milestoned XML leads to many preceding:

Subject: Re: 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)
Re:  Processing milestoned XML leads to many preceding:
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

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.