Developing Stylesheets That Generate FO

Tip

 

Initially, develop the stylesheet with Stylus Studio's internal XSLT processor. It gives better error messages than the Xalan-J processor. When the transformation and display appear to work with the built-in XSLT processor, try using the Xalan-J processor in Stylus Studio. The Xalan-J processor is the one that the FOP uses when you apply this stylesheet from a command line.

To develop a stylesheet that generates FO:
1. Define the scenario in which you want to apply the stylesheet that generates FO. See Creating a Scenario.
2. In the Scenario Properties dialog box, in the Post-process tab, do one of the following:
    • Select Postprocess with Apache FOP.
    • The Apache FOP included with Stylus Studio is configured to convert FO XML into PDF. Stylus Studio then uses Acrobat Reader to display the PDF in the Stylus Studio preview window.

    • Specify some other FOP in the Custom post-process fields. You must do this when you want to generate output other than PDF. If you want to use the Apache FOP included with Stylus Studio to generate a format other than PDF, you can do that here.
    • See Postprocessing Result Documents.

3. In the XSLT editor, define a stylesheet that generates FO. As soon as you type <fo:, Stylus Studio displays a completion menu of FO that you can select from.
4. Apply the stylesheet to an XML document.

After Stylus Studio transforms the XML document to generate a result XML document that contains formatting objects, Stylus Studio automatically runs the FOP you specified on the result document. Stylus Studio then displays the postprocess result in the XSLT Preview window.

DTD Editor

The Stylus Studio DTD Editor lets you visually develop Document Type Definitions (DTD) to structure XML documents. The DTD Editor also includes tools and utilites for validating XML against DTD's, converting DTD's, and generating DTD's.

Generate XSD

Stylus Studio® can generate an industry standard W3C XSD (or DTD) by correctly inferring an XML data model from an XML instance document.

Switch to Stylus Studio: Customer Testimonials

Read in their own words, why customers have decided to make the switch to Stylus Studio, the World's best XML editor.

Generating Java Code with Stylus Studio

This is a video tutorial on how to generate Java Code with Stylus Studio

Stylus Most Wanted

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.