Using Apache FOP to Generate NonPDF Output

The Apache FOP included with Stylus Studio is configured to output PDF.

To use this FOP to generate some other type of output:
1. Open the stylesheet whose results you want to postprocess with the Apache FOP.
2. Create or open a scenario in which to do the post-processing. See Creating a Scenario. Stylus Studio displays the Scenario Properties dialog box.
3. In the Scenario Properties dialog box, click the Post-process tab.
4. Select Custom post-process.
5. In the Command line field, enter something like the following:
java -cp "C:\Program Files\StylusStudio\bin\Plugins\Fop\fop.jar" 
org.apache.fop.apps.Fop -fo %1 -svg %2
               

            

Modify this sample command line according to where Stylus Studio is installed and what kind of output you want the FOP to generate. The last option, -svg in the example, can be any of the following:

Setting
Output
-mif
MIF file
-pcl
PCL file
-txt
Text file
-svg
SVG slides file
-at
XML (representation of an area tree)
-pdf
PDF file
Table 34. FOP Output Options

6. In the Generated file extension field, specify the extension that indicates the type of output you want. For example, specify .txt if you want the FOP to generate a text file.
7. If there is additional path information that the FOP will require to execute successfully, type it in the Additional path field.
8. Click OK.

Using XSLT Templates

Using XSLT Templates is an online video demonstration of the Stylus Studio XSLT designer. See just how easy it is to create, apply and match XSLT templates to your XML data to create beautiful HTML layouts for XML content publishing applications.

XPath Introduction - Using XPath Queries to Extract Data from XML Documents

The XPath introduction covers how to use XPath code completion, XPath syntax highlighting, support for XPath 2.0 functions and XML namespaces to simplify your next XPath application.

Translating EDIFACT Documents to XML

The EDIFACT to XML Converter is a primary component of the adapter library. The XML that is generated is well commented and indented, and can be used anywhere XML is normally used — with XML Schemas, XQuery, XSLT, and so on.

DataDirect XML Converters

DataDirect XML Converters are high-performance Java components which provide bi-directional, programmatic access to virtually any data source as XML.

Stylus Most Wanted

 
Free Stylus Studio XML Training:
W3C Member