xml spy
Previous  Top  Next
Transforming with XSL:FO

As an XSL FO file is an XML document, it must begin with the standard XML processing instruction and the FO root element.

To create a new FO document:
1.Select the Menu option File | New.  
2.Click the .fo Formatting Objects entry, and confirm with OK.  

ref_p189aa  

This creates an empty FO document containing the XSL FO declaration.  

ref_p189b  

3.Enter the FO markup between the <fo:root> start and </fo:root> end tag.  

To transform an existing FO document:

1.Open a FO document in XML Spy. This example uses the tiger.fo document in the tutorial folder:  
2.Select the menu option XSL | XSL:FO or click the FO icon in the title bar.  
This opens the "Choose XSL:FO output" dialog box.  
ref_p189c  
3.Clicking OK, causes the FO document to be transformed and displayed in the FOP viewer. Click the Next icon in the viewer, to see the next page of this document.  
4.Close the window viewer window when you want to return to XML Spy. Click the print icon to print icon if you want to print the document.  
ref_p189ca  
5.Clicking the "Generate output file" radio button enables you to select the specific type of output you want to create. Confirming with OK creates the output you choose.  
ref_p189d  

Previous  Top  Next

© 2002 Altova