fop
service which then will process the content specified.
Url Parameter | Description |
---|---|
section | named section of the current topic to extract content from |
format | defines the output format, defaults to pdf |
xsltopic | topic holding the xsl transformation, defaults to the current topic |
xslsection | named section of the xsltopic to extract the transformation code from |
xslattachment | defines an attachment at the xsltopic holding the transformation file (specify either xslsection or xslattachment but not both) |
filename | optionally define the name of the file being generated, defaults to <current-topic>.<format> |
template | optionally define a view template to be used to render the FO content; content will be inserted to the template specifying a %TEXT% macro |
%STARTSECTION{"fo"}% <?xml version="1.0" encoding="utf-8"?> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> <fo:layout-master-set> <fo:simple-page-master master-name="simple" page-height="29.7cm" page-width="21cm" margin-top="1cm" margin-bottom="2cm" margin-left="2.5cm" margin-right="2.5cm"> <fo:region-body margin-top="3cm"/> <fo:region-before extent="3cm"/> <fo:region-after extent="1.5cm"/> </fo:simple-page-master> </fo:layout-master-set> <fo:page-sequence master-reference="simple"> <fo:flow flow-name="xsl-region-body"> <fo:block font-size="18pt" font-family="sans-serif" line-height="24pt" space-after.optimum="15pt" background-color="blue" color="white" text-align="center" padding-top="3pt"> Hello, %WIKINAME%! </fo:block> <fo:block font-size="12pt" font-family="sans-serif" line-height="15pt" space-after.optimum="3pt" text-align="justify" language="en" hyphenate="true"> The Extensible Markup Language (XML) is a subset of SGML that is completely described in this document. Its goal is to enable generic SGML to be served, received, and processed on the Web in the way that is now possible with HTML. XML has been designed for ease of implementation and for interoperability with both SGML and HTML. </fo:block> </fo:flow> </fo:page-sequence> </fo:root> %ENDSECTION{"fo"}%
%STARTSECTION{"xml"}%<name>%WIKINAME%</name>%ENDSECTION{"xml"}%
%STARTSECTION{"transform"}% <?xml version="1.0" encoding="utf-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format"> <xsl:output method="xml" indent="yes"/> <xsl:template match="/"> <fo:root> <fo:layout-master-set> <fo:simple-page-master master-name="A4-portrait" page-height="29.7cm" page-width="21.0cm" margin="2cm"> <fo:region-body/> </fo:simple-page-master> </fo:layout-master-set> <fo:page-sequence master-reference="A4-portrait"> <fo:flow flow-name="xsl-region-body"> <fo:block> Hello, <xsl:value-of select="name"/>! </fo:block> </fo:flow> </fo:page-sequence> </fo:root> </xsl:template> </xsl:stylesheet> %ENDSECTION{"transform"}%
configure
, then you can still install manually from the command-line. See http://foswiki.org/Support/ManuallyInstallingExtensions for more help.
30 Nov 2016: | bundling latest fop-2.1; fixed encoding of content returned inline |
02 Jul 2013: | fixed url rewrite rules to use the current url host instead of the default url host |
24 Jun 2013: | initial release |
Author | Michael Daum |
Version | 1.10 |
Release | 30 Nov 2016 |
Description | FOP print formatter |
Copyright | © 2013-2016 Michael Daum http://michaeldaumconsulting.com |
License | GPL (Gnu General Public License) |
Home | Foswiki:Extensions/XslFoContrib |
Support | Foswiki:Support/XslFoContrib |
Repository | https://github.com/foswiki/XslFoContrib |
ExtensionClassification | Exporting, Printing and Publishing |
ExtensionType | ContribPackage |
Compatibility | |
IncompatibleWith | |
ImageUrl | |
DemoUrl | http://demo.michaeldaumconsulting.com/System/XslFoContrib |
SupportUrl | XslFoContrib |
ModificationPolicy | CoordinateWithAuthor |
I | Attachment | Action | Size | Date | Who | Comment |
---|---|---|---|---|---|---|
md5 | XslFoContrib.md5 | manage | 159 bytes | 30 Nov 2016 - 14:40 | MichaelDaum | |
sha1 | XslFoContrib.sha1 | manage | 183 bytes | 30 Nov 2016 - 14:40 | MichaelDaum | |
tgz | XslFoContrib.tgz | manage | 11 MB | 30 Nov 2016 - 14:39 | MichaelDaum | |
zip | XslFoContrib.zip | manage | 11 MB | 30 Nov 2016 - 14:39 | MichaelDaum | |
EXT | XslFoContrib_installer | manage | 8 K | 30 Nov 2016 - 14:40 | MichaelDaum |