This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: problem big files >1Mo


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() &lt;
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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]