Overview

Chapter 1. Overview

xsldbg is similar to gdb. It has three major modes of execution of stylesheets.

Run the whole stylesheet
Step to next xsl instruction
Continue until next break point is found, or stylesheet has restarted

xsldbg command line

On systems with readline library available you can use the back/forward keys to navigate the history of entered commands. On all systems the last entered command can be repeated by just pressing the <ENTER> key.

Legend :

TEMPLATENAME : a valid template name
FILENAME : a valid URL for a stylesheet, xml data, or output
LINENO : a valid line number in associated FILENAME
NUMBER_OF_FRAMES : a valid line number frames to change position by
BREAKPOINT_ID : a valid break point number
SPEED: speed to walk through code at, between 0 to 9
    (Comment): a comment about command meaning or usage
{ opt1 | opt2 | opt2 .. etc} : Choose one of the opt's
XPATH : a xpath selection of node(s)
PARAM_ID : a valid parameter number as indicated by showparam command
PATH : a path to change working directory to
TEXT : free form text     (no restrictions)
COMMAND : a valid command for the xsdbg
QNAME : a valid variable/parameter name
SOURCE : the stylesheet being/to be executed
DATA : the xml data(document) being/to be processed by the stylesheet
DEVICE_PATH : is a valid terminal on the operating system
TTY_LEVEL : is a valid level of input/output to use

Within xsldbg these commands are available:

Help related :help
Running related : {bye|exit| quit}, step, stepup, stepdown, continue, run, trace, setoption, options
Libxslt parameter related : addparam, delparam,showparam, output, setoption, options
Template related : templates, where, frame
Break point related : break, showbreak,delete, enable
Expression viewing(xpath) : cat
Node viewing : ls, dir, du, cat, pwd
Variable viewing : globals, locals, cat
Variable setting: set
Node selection : source, data, cd
Searching :search
Operating system related :chdir, shell,tty
File related : output, entities, system, public
Disabled file commands: validate, load, save, write, free
KDE Logo