This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: problem big files >1Mo
- From: "Joerg Heinicke" <joerg dot heinicke at gmx dot de>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Tue, 26 Mar 2002 21:50:22 +0100
- Subject: Re: [xsl] problem big files >1Mo
- References: <000501c1d4cd$a34a3c20$68fea8c0@philippep>
- Reply-to: xsl-list at lists dot mulberrytech dot com
XML
<root>
<row/>
<row/>
<row/>
...
</root>
XSL
<xsl:template match="root">
<xsl:apply-templates select="row[position() mod 20 = 1]"
mode="first-on-page"/>
</xsl:template>
<xsl:template match="row" mode="first-on-page">
<!-- anything at the beginning of a page -->
<xsl:apply-templates select=" . | following-sibling::row[position() <
20]"/>
<!-- anything at the end of a page -->
</xsl:template>
<xsl:template match="row">
<!-- anything for every row -->
</xsl:template>
Regards,
Joerg
> Hello!
> I read e-mails on the problems of crash and slowness on big files > 1Mo
> And apparently there are not too many solutions
> Maybe being resolved in the next version ?
> At present I have that a "page - sequence" for all the document.
> According to the users of FOP, it's necessary of some "fo:page-sequence"
to
> reduce the slowness.
> How to insert "page-sequence" everything 20 rows in xsl?
> (Without inserting syntaxe <page> in my xml)
> Are there other solutions?
> My files xml are structured as follows:
> <row num="1">
> <CODLT>0000045393</CODLT>
> <DATINT>1996-01-02 00:00:00.0</DATINT>
> <CODCLI>99001</CODCLI>
> <CODPROD>SI</CODPROD>
> <CODDOSS>1</CODDOSS>
> <DUREE_HHCC>8</DUREE_HHCC>
> <INTERLOC />
> </row>
> <row num="2">
> <CODLT>0000045394</CODLT>
> <DATINT>1996-01-03 00:00:00.0</DATINT>
> <CODCLI>99001</CODCLI>
> <CODPROD>SI</CODPROD>
> <CODDOSS>1</CODDOSS>
> <DUREE_HHCC>8</DUREE_HHCC>
> <INTERLOC />
> </row>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list