Dear Wiki user, You have subscribed to a wiki page or wiki category on "Cocoon Wiki" for change notification.
The following page has been changed by MichaelWirz: http://wiki.apache.org/cocoon/AntennahouseSerializer ------------------------------------------------------------------------------ Serializer definition (the shell command is given as cmd-tag inside the defintion): + {{{ - ||<map:serializer logger="sitemap.serializer.antennahouse2pdf" mime-type="application/pdf" name="antennahouse2pdf" src="de.abs.efonds24.sitemapElements.AntennaHouseSerializer"> + <map:serializer logger="sitemap.serializer.antennahouse2pdf" mime-type="application/pdf" name="antennahouse2pdf" src="de.abs.efonds24.sitemapElements.AntennaHouseSerializer"> - || <cmd>/bin/bash /usr/XSLFormatterV3/run.sh -extlevel 3 -pea</cmd> + <cmd>/bin/bash /usr/XSLFormatterV3/run.sh -extlevel 3 -pea</cmd> - ||</map:serializer> + </map:serializer> + }}} Serializer usage (well known std pipeline): + {{{ - ||<map:match pattern="pdffile.pdf"> + <map:match pattern="pdffile.pdf"> - || <map:generate type="file" src="source-xml-fo.xml"/> + <map:generate type="file" src="source-xml-fo.xml"/> - || <map:transform type="xslt" src="stylesheet.xsl"/> + <map:transform type="xslt" src="stylesheet.xsl"/> - || <map:serialize type="antennahouse2pdf"/> + <map:serialize type="antennahouse2pdf"/> - ||</map:match> + </map:match> - + }}} This example does not include any licensed code from the Antennahouse Inc. but you will need a valid license to test or use the Serializer. @@ -31, +34 @@ Concerning speed we have to take into account that with this shell script based version, parsing the xml-fo is necessary since no sax stream but the actual xml byte stream has to be piped into the serialization process. Also there are buffers involved. - -
