On 23.01.2010 06:54, Aish wrote:
I need to create pdf file for xml. I did it through xsl. when i transformed xml to fo using saxon processor, i had no problem in disable-output-escaping="yes" attribute. But when i executed the file using FOP.bat in command prompt(say Fop -xml sample.xml -xsl sample.xsl -pdf sample.pdf) its throwing error.
The disable-output-escaping="yes" attribute has only an effect if the result of the transformation is serialized as XML. If you use the "Fop -xml sample.xml -xsl sample.xsl -pdf sample.pdf" command, the result of the transformation is not serialized, instead it is piped as a kind of events to the FO processor. Because there is no serialized output, there is no way to disable output escaping. Using disable-output-escaping="yes" is a bad idea anyway, and can be avoided in general. Check the XSLT FAQ http://www.dpawson.co.uk/xsl/sect2/N2215.html J.Pietschmann --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
