From: Aryeh M. F. <ar...@m-...> - 2004-08-25 02:01:15
|
Sorry for not making this a diff but I never figured out the "correct" way to do this outside of a SCM (Change Management System like Aegis). Add the final else if to the following (starting at line 151 of babeldoc-src-1.2.1/modules/xslfo/src/com/babeldoc/xslfo/pipeline/stage/XslFoTransformPipelineStage.j ava): if (outputTypeStr.equals("pdf")) { outputType = Driver.RENDER_PDF; binary = true; mimeType = "application/pdf"; } else if (outputTypeStr.equals("pcl")) { outputType = Driver.RENDER_PCL; binary = true; mimeType = "application/octet-stream"; } else if (outputTypeStr.equals("svg")) { outputType = Driver.RENDER_SVG; mimeType = "image/svg+xml"; } else if (outputTypeStr.equals("ps")) { outputType = Driver.RENDER_PS; mimeType = "application/postscript"; /* start of new code */ } else if (outputTypeStr.equals("text")) { outputType = Driver.RENDER_TXT; mimeType = "text/plain"; } /* end of new code */ Basically this allows the XslFo module to output plain text as a style. --Aryeh |