I wanted to re-visit the issue of giving FOP the option of outputting the intermediate file XSL-FO file (a la ./xalan.sh -IN input.xml -XSL input.xsl -OUT output.fo). I still think it makes sense to enable FOP to have the option to retain this intermediate file.

The primary benefit is to make it easier to respond to fop-user@ questions. Having to explaining the proper use of xalan.bat/.sh to a user means requiring the user to learn 'one more app' when it isn't really necessary. I'd rather tell the user:

Let's look at the intermediate XSL-FO file by adding '-tempfile' to your FOP string:

./fop.sh -xml input.xml -xsl input.xsl -tempfile

The location for the tempfile could be tempfiles/ or could be output as '[datestamp]_input.xml.fo' or something. The nicest part of this, is that the fop-user uses the same fop they always use, but merely add one arg to output the intermediate file.

Apologies if this topic has already been beaten to death. At the very least, we need to add a FAQ on the FOP site, indicating in one paragraph how to do this for themselves. Perhaps that'll be something to add in the near future.

Web Maestro Clay

Begin forwarded message:
From: Clay Leeds <[EMAIL PROTECTED]>
Date: April 8, 2004 7:57:01 AM PDT
To: [EMAIL PROTECTED]
Subject: Re: only display the text in XSL file but does not display the image
Reply-To: [EMAIL PROTECTED]


On Apr 8, 2004, at 7:37 AM, Jerry wrote:
2.
It also helps if you just do the XSLT transformation
on the command line
(as I suggested earlier). By checking the generated
FO afterwards you
can see if everything is alright.

Sorry I am not sure how to use XSLT to test it from command line.

Assuming you are using fop-0.20.5, xalan.bat (or xalan.sh on Un*x a.k.a 'xalan' in this post) can be used to generate (and review!) the 'intermediate' XSL-FO file. Running xalan with no arguments gives you the help you should need to run xalan properly.


Here's a boost:

./xalan.sh -IN [input.xml] -XSL [input.xsl] -OUT [output.fo]

(without any of the '[' and ']' of course!)

That should to it! Look at the 'output.fo' file, to 'see if everything is alright'... I don't know the answers to the other questions, but hopefully this answers *this* question.

Web Maestro Clay - [EMAIL PROTECTED]
--
Web Developer - Medata, Inc. - <http://www.medata.com/>
PGP Public Key: <https://mail.medata.com/pgp/cleeds.asc>


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




Reply via email to