{ "ns" : "http://zorba.io/modules/xsl-fo", "description" : " This module converts XSL-FO documents\n to various formats such as PDF, EPS, PCL, AFP, Text, PNG, Postscript, RTF, and TIFF.\n For instance, the following example converts a simple XSL-FO document to PDF:\n
\n
import module namespace fop = \"http://zorba.io/modules/xsl-fo\";\n import module namespace file = \"http://expath.org/ns/file\";\n declare namespace fo = \"http://www.w3.org/1999/XSL/Format\";\n let $xsl-fo := <fo:root xmlns:fo=\"http://www.w3.org/1999/XSL/Format\">\n <fo:layout-master-set>\n <fo:simple-page-master master-name=\"my-page\">\n <fo:region-body margin=\"1in\"/>\n </fo:simple-page-master>\n </fo:layout-master-set>\n <fo:page-sequence master-reference=\"my-page\">\n <fo:flow flow-name=\"xsl-region-body\">\n <fo:block>Hello, world!</fo:block>\n </fo:flow>\n </fo:page-sequence>\n </fo:root>\n let $pdf := fop:generator($fop:PDF, $xsl-fo)\n return file:write-binary(\"simple.pdf\", $pdf)\n
\n This module uses Apache-FOP to generate content from an XSL-FO document.\n See the Apache FOP documentation for further information.\n
\n Note for Windows users: On Windows, this module won't work out of the box, since\n this module uses Java. But the Java VM dll is not in the system path by default. To make\n this module work, you need to add the directory where the jvm.dll is located to the\n system path. This dll is located at JRE_DIR\\bin\\client. On a standard installation, this would\n be something a path like \"C:\\Program Files\\Java\\jre6\\bin\\client\".\n", "sees" : [ "
\n On a Mac OS X computer, it should be sufficient to install Apache FOP via Mac\n Ports.
\n On Ubuntu it should be sufficient to install the fop packages via apt-get.
\n On Windows, the classpath needs to be set manually using\n generator#3.
\n This function tries to find the jar files via environment variables. The user can set the\n variable FOP_HOME to the root directory of an Apache FOP distribution. If you have all\n JAR files in the same directory, you can set the environment variable FOP_LIB_DIR to this\n directory.\n", "summary" : "
The generator function takes an XSL-FO document as input and generates output\n in the format given as input.
", "annotation_str" : "", "annotations" : [ ], "updating" : false, "parameters" : [ { "name" : "output-format", "type" : "xs:string", "occurence" : null, "description" : "