Here is a servlet we use to generate PDF and HTML. For the PDF first it
calls the transformer w/some parameters, then calls FOP. There's a lot going
on, but you should be able to find the pieces you're looking for.


Matt Savino



> -----Original Message-----
> From: Markus Wiese [mailto:[EMAIL PROTECTED]
> Sent: Monday, April 29, 2002 3:40 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Can I submit XSLT properties to FOP?
> 
> 
> Servlet configuration?
> Don't know yet, but I guess you will have to use 1 servlet taking use
> of xalan and fop. (2 more servlets)
> 
> markus
> 
> -----Ursprüngliche Nachricht-----
> Von: Baptiste Casanova <[EMAIL PROTECTED]>
> An: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
> Datum: Montag, 29. April 2002 11:52
> Betreff: Re: Can I submit XSLT properties to FOP?
> 
> 
> >Hi Markus,
> >How could i do the same thing with embedded FOP ?
> >
> >----- Original Message -----
> >From: "Markus Wiese" <[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>
> >Sent: Monday, April 29, 2002 11:17 AM
> >Subject: Re: Can I submit XSLT properties to FOP?
> >
> >
> >> Hi Elmar,
> >> consider doing it like this:
> >> @java org.apache.xalan.xslt.Process -IN myXML.xml -XSL 
> myXSL.xsl -OUT
> >> myFO.fo -PARAM UserName "Elmar Schalück"
> >> @java org.apache.fop.apps.Fop myFO.fo myPDF.pdf
> >>
> >> markus
> >>
> >>
> >> -----Ursprüngliche Nachricht-----
> >> Von: Schalück, Elmar <[EMAIL PROTECTED]>
> >> An: '[EMAIL PROTECTED]' <[EMAIL PROTECTED]>
> >> Datum: Montag, 29. April 2002 10:53
> >> Betreff: Can I submit XSLT properties to FOP?
> >>
> >>
> >> Hi,
> >> I like to use FOP to produce reports, based on a XSLT stylesheet.
> >>
> >> So the call will look like
> >> fop -xml myXML.xml -xsl myXSL.xsl -pdf myPDF.pdf
> >>
> >> Now I need to parametrize the XSLT with the current 
> date/time, with some
> >> preselections, ....
> >>
> >> My idea is to have some more parameters for the command line:
> >> fop -xml myXML.xml -xsl myXSL.xsl -Param=UserName "Elmar Schalück"
> >> -Param=UserLanguage de -pdf myPDF.pdf
> >>
> >> The XSLT stylesheet starts like
> >> <xsl:stylesheet
> >>      xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; version="1.0"
> >>      xmlns:fo="http://www.w3.org/1999/XSL/Format";>
> >> <xsl:param name="UserName"/>
> >> <xsl:param name="UserLanguage">en</xsl:param>
> >> ...
> >>
> >> Do you know of any means to fill in these parameters?
> >>
> >> Mit freundlichen Grüßen
> >> With kind regards
> >>
> >> Elmar Schalück
> >>
> >> ______________________________________________________
> >>
> >> Elmar Schalück
> >> Advisory Software Developer
> >> CEYONIQ AG
> >> Winterstr. 49
> >> 33649 Bielefeld
> >> Germany
> >> Fon: +49 (0)521 9318-2108
> >> Fax: +49 (0)521 9318-882150
> >> E-Mail: [EMAIL PROTECTED]
> >> http://www.ceyoniq.com
> >> PGP-Fingerprint: BC78 7DEA 7A18 A6F2 A29D  F229 C68F 8C65 F7EE 898A
> >>
> >>
> >
> >
> >
> 
> 

Attachment: ReportGeneratorServlet.java
Description: Binary data

Reply via email to