Hi Jean-Claude,

the applications flow of work is:

1) Client requests print of chapter
2) A ProcessManager on the server picks up that request, looks up what process should 
handle that request and starts it with the necessary environment.
3) The process connects to the database, extracs all information needed for printing 
this chapter to XML and calls FOP for rendering the chapter to PDF.
4) After finishing this work the ProcessManager informs the client wether his request 
was handled successful and where he can find the PDF.

If I use java-extensions I have a problem of authentication. While the XML is 
generated into a public directory I cannot insert any database connect information. So 
wherefrom gets the java-extension the database connect information (server, port, 
service, database name, user, password)?

Regards,
____________________________
Erik Rehrmann
IOn AG - [EMAIL PROTECTED]


-----Ursprüngliche Nachricht-----
Von: GALLO Jean-Claude [mailto:[EMAIL PROTECTED]] 
Gesendet: Montag, 30. Juli 2001 09:46
An: '[EMAIL PROTECTED]'
Betreff: RE: Getting number of rendered pages


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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to