OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]

Subject: Re: DOCBOOK-APPS: speedy XSLT processor for win

On Tue, 30 Jul 2002, Gabor Hojtsy wrote:

> > I'll bet you are chunking out a lot of files.  If so, then
> > you are probably I/O bound.
> Yep, the number of chunks are above three thousand. The sum size
> of the source XML files is 10Mb...

It could be that the number of chunks is slowing it down more the the
total size of the chunks.  There is a fair amount of processing done to
create the header and footer navigation for each chunk.  Plus the chunking
process has to determine the destination filename for each cross

The stylesheet below isn't very practical but will show how much time is
saved by skipping much of the chunk related processing.  It cut the time
in half on some books I tried.

Adrian Daley
Technical Specialist
Publication Services
Silicon Graphics

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";

<!-- change as needed -->
<xsl:import href="xslt/docbook-xsl/html/chunk.xsl"/>

<xsl:param name="chunk.section.depth" select="1"/>

<xsl:template name="html.head"/>
<xsl:template name="user.header.navigation"/>
<xsl:template name="header.navigation"/>
<xsl:template name="user.header.content"/>
<xsl:template name="user.footer.content"/>
<xsl:template name="footer.navigation"/>
<xsl:template name="user.footer.navigation"/>

<xsl:template match="*" mode="chunk-filename">
  <xsl:value-of select="generate-id(.)"/>


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]

Powered by eList eXpress LLC