F XSLT Tutorial - Run

XSLT Tutorial

 

Table of Contents

Generating Output

Run the Program to Generate Output

To start, you will simply generate the output by running the program through the debugger without setting any breakpoints.

  1. Assign the XML input file Click on the "mailexport2html.xsl" tab at the top of the Editor pane. Below the Editor pane, click Choose File... and select "mailexport.xml". Click Open.

Komodo Tip The XML input file does not have to be assigned in the editor; it can also be specified in the Debugging Options dialog box. However, if you assign the input file in the editor, the editor divides horizontally so that both files can be displayed, and you can set breakpoints in both files.

  1. Run the debugger From the menu, select Debug|Start (or <F5>). In the Debugging Options dialog box, click OK to accept the defaults.
  2. View the Output Tab Notice the messages in the bottom left corner of the Komodo screen; these inform you of the status of the debugger. The results of the transformation are displayed on the Output tab.
  3. View the Output as HTML Click the "Toggle HTML Preview" button at the right of the Output Pane to preview the HTML output. Click the the "Toggle HTML Preview" button again to return to the HTML code.
  4. Create New File To create a new HTML file that contains the HTML code in the Output pane, select File|New|New File. In the New File dialog box, select the HTML Category, and the HTML 4.01 Template. Click OK.
  5. Save the Output Delete the contents of the new HTML file tab in the Editor pane, then select the contents of the Output pane (Ctrl+A). Copy the contents to the new HTML file tab in the Editor pane (Ctrl+C, Ctrl+V). Select File|Save As to save the file with a unique name.

Top Previous Next