From: Dr J. K. <jo...@ta...> - 2013-12-06 19:48:22
|
Hey there, Here's what I do to transform my XML, through docbook, info FO and then PDF. We're using apache-fop, so your milage may vary with renderx. Crib as you fancy. Cheers, Joe declare function dbk:questionset_to_pdf($questionset as node()) { let $dbk := dbk:questionSet2docbook($questionset) let $fo := dbk:docbook2fo($dbk) let $fopconfig := <fop version="1.0"> <source-resolution>120</source-resolution> <target-resolution>120</target-resolution> <default-page-settings height="11in" width="8.26in"/> <renderers> <renderer mime="application/pdf"> <filterList> <value>flate</value> </filterList> <fonts> <auto-detect/> </fonts> </renderer> </renderers> </fop> let $pdf := xslfo:render($fo, "application/pdf", (), $fopconfig) return $pdf }; On 6 Dec 2013, at 16:30, mountainbiker <mai...@gm...> wrote: > Casey / Adam, > > We're trying to get RenderX going in eXist 2.1. (Our RenderX is a a bit old > ~2006.) > > We're following Dmitriy's instructions at > > http://en.wikibooks.org/wiki/XQuery/Generating_PDF_from_XSL-FO_files#Using_Config_File_for_External_References > > However, we're getting the following error: > > *exerr:Error [at line 34, column 13]* > > Line 34 is.... > > let $pdf := xslfo:render($fo, "application/pdf", (), $config) > > $config points to "file://lib/user/XEP4_10/xep.xml". This is our RenderX > configuration file that points to the license, fonts, and images > directories. > > /*Can you offer us any guidance?*/ > > > > -- > View this message in context: http://exist.2174344.n4.nabble.com/Using-RenderX-XEP-in-eXist-tp3336099p4662425.html > Sent from the exist-open mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > Sponsored by Intel(R) XDK > Develop, test and display web and hybrid apps with a single code base. > Download it for free now! > http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk > _______________________________________________ > Exist-open mailing list > Exi...@li... > https://lists.sourceforge.net/lists/listinfo/exist-open > |