This tutorial shows you how to load a simple pipeline into Packaged Press Desktop Edition and evaluate the pipeline to transform an XML document using an XSL stylesheet. The result of evaluating the pipeline will be a Web page (a HTML document).

What You Will Need

Tutorial

Start the Packaged Press Desktop Edition application, by double-clicking on its icon.


Load the pipeline document that you downloaded.

Select the File⇒Open menu item.


In the dialog box, navigate to the folder that you saved your pipeline document into and select the file tute-1.xpl.


The pipeline will now be loaded.


Start the pipeline by pressing the power button.


The first step requires a "source" document. In the dialog box select the tute-1.xml file.


The pipeline also requires a "stylesheet" document. In the next dialog box select the tute-1.xsl file.


Now the XSLT step will become active and perform the transformation. When it finishes (it should do that almost immediately) a dialog box will appear so that you can save the result of the transformation. Type the filename tute-1.html and press "Save".


Now you have a Web page in the folder along with your pipeline document. Try double-clicking it to open the Web page in your Web browser.


Congratulations! You have completed the tutorial. You have successfully loaded an XProc pipeline document, performed an XSL transformation upon an XML document using an XSL stylesheet to produce a HTML document and loaded that HTML document into a Web browser.


Copyright © 2005-2009 Packaged Press. All rights reserved.