Chapter 2. Using KXSLDbg

Configuring a KXSLDbg Session

You start configuration by clicking DebugConfigure in the Menubar.

The Configuration Dialog

The Configuration Dialog.

Getting Started

To be able to run a stylesheet you need to specify the:

  • XSL source

  • XML data

  • Output file

By using the ... button to choose file desired. The XSL source and XML data may refer to URI that contains a http://, ftp:// or file://. The Output file must refer to a writable local file.

To follow along with the examples, select the following files in the example <KDE PREFIX>/share/apps/kxsldbg folder

  • XSL source: testdoc.xsl

  • XML data: testdoc.xml

  • Output file: /tmp/xsldbg_output.txt

Working With Options

You can select zero or more options from the Options section. Each option has a tooltip with a hint on what effect it has.

Working With Parameters

You can add zero or more parameters via the LibXSLT Parameters section of dialog. This allows you to provide parameter values to the stylesheet.

For example you could click the Add button and enter a parameter Name of myparam with a parameter Value of 'Hello World!'. To update the name or value of an existing parameter select it with the left mouse button.

Apply Changes

For the changes you have made to take effect press the OK button and close the dialog. To ignore any changes press the Cancel button.

If you need to change the configuration just re-open the configuration dialog as shown before.