basex xsl:fo (Apache FOP) module?
Friday, 21 February 2014 · 2 messages · last reply 22 Feb 2014
MG
Maximilian Gärber21 Feb 2014 14:15 #
Hi,
is there an integration of Apache FOP available?
Regards,
Max
CG
Christian Grün22 Feb 2014 12:10 #
Hi Max,
France Baril (from Architextus) was so kind to sponsor the BaseX FOP module, and the main reason why we didn't put it online is that we haven't decided yet how to best organize and document our external modules. Additionally, each new release results in feature requests, bug reports, etc, which take additional time.
But I have just downloaded the FOP module to our file server [1] (please note that the location may change). This examples shows how to use it:
import module namespace fop = 'org.basex.modules.fop.FOP';
let $xsl := xslt:transform('fop.xml', 'fop.xsl')
let $pdf := fop:transform($xsl)
return file:write-binary('fop.pdf', $pdf)The following functions are available:
fop:transform($node as node())
as xs:base64Binary
fop:transform($node as node(), $format as xs:string)
as xs:base64Binary
The default format (mime-type) is "application/pdf".
Best,
Christian
[1] http://files.basex.org/modules/org/basex/modules/fop/
Quoted text · Maximilian Gärber · 14 lines
On Fri, Feb 21, 2014 at 2:15 PM, Maximilian Gärber <mgaerber at arcor.de> wrote: > Hi, > > is there an integration of Apache FOP available? > > Regards, > > Max > > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >
Written for BaseX 7.8. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery