Erik
try java-extensions. This help you to write external Java classes directly
callable from your XSL transformation rules.
a simple exmaple :
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns:fo="http://www.w3.org/1999/XSL/Format"
xmlns:e="http://www.w3.org/1999/XSL/Spec/ElementSyntax"
xmlns:xjava="xalan:://mycompany.util.PrintInfo"
xmlns:java="http://www.apache.org/xslt/java"
exclude-result-prefixes="java">
....
<xsl:template match ="TITLE">
<xsl:variable name="loc"><fo:page-number-citation
ref-id="@id"/></xsl:variable>
<xsl:variable name="title" select="text()"/>
<xsl:value-of select="ejava:putValue($loc, $title)"/>
<fo:block font-size="11pt"
...
Just select the right place to put such rules in order to detect the start
and the end of your chapters. I suppose you know JDBC to connect java code
to your database.
Good luck.
> -----Message d'origine-----
> De: Erik Rehrmann [mailto:[EMAIL PROTECTED]]
> Date: 29 July 2001 18:10
> À: '[EMAIL PROTECTED]'
> Objet: Getting number of rendered pages
>
>
> Hi all,
>
> does anybody know if it's possible to get the number of
> rendered pages? I searched the docs, but couldn't find
> anything about it.
>
> I think it should be possible, because the PDFRenderer prints
> the current page number to the message system.
>
> We have to print a book divided into several chapters and
> every chapter has to be rendered separately, but must begin
> with the right page number (information of every chapter is
> in a database table to keep track of chapter sequence and
> page numbering).
>
> Any help is greatly appreciated.
>
> ____________________________
> Erik Rehrmann
> IOn AG - [EMAIL PROTECTED]
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>
__________________________________________________
Jean Claude GALLO
[EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]