You can use Saxon as XSLT parser.

With the extended tag <output method="fop:fop" href="filename.pdf"/> you can
embed your call to fop in the xslt.

Emmanuel

-----Message d'origine-----
De : Erik Rehrmann [mailto:[EMAIL PROTECTED]]
Envoyé : jeudi 28 juin 2001 11:39
À : Fop-Dev (E-Mail)
Objet : Problem using embedded fop with xml and xsl input


Hi,

maybe this is a silly question, but I hope someone can give me a hint:

I have a XSL stylesheet, say foo.xsl, and dynamically generated xml files,
say foo.xml. Now I want to create a PDF document which works fine via
command line parameters <fop -xml foo.xml -xsl foo.xsl -pdf foo.pdf>.

How do I generate the pdf document within my application? 
If tried

      org.apache.fop.apps.Driver driver = new Driver(new
org.xml.sax.InputSource(new FileInputStream("foo.xml")), new
FileOutputStream("foo.pdf");
      driver.setRenderer(driver.RENDER_PDF);
      driver.run();

But where do I say to use the foo.xsl?

Any help is greatly appreciated,
_______________________________________
Erik Rehrmann - IOn AG
[EMAIL PROTECTED]




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


========================================================================= 
Ce message et toutes les pièces jointes sont propriété de VALTECH et 
susceptibles de contenir des informations confidentielles à l'intention 
exclusive de ses destinataires. Si vous avez reçu ce message par erreur 
ou si celui ci vous est parvenu incomplet ou altéré, merci d'en avertir 
l'expéditeur par retour.Toute utilisation, diffusion ou publication non 
expressément autorisée par nous par écrit est strictement interdite. 
 -------------------------------------------------------------------------- 
This message and any attachments are Valtech property and may contain 
iconfidential information intended solely for the addressees. If your are 
not the intended recipient of this message or if you have received it 
uncomplete or altered, please notify the author by replying to his e-mail 
immediately. Any unauthorised use, diffusion or dissemination not 
expressly authorised by us in writing is strictly prohibited. 
========================================================================= 
Copyright Valtech 2000 



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

Reply via email to