June 2002
Intermediate to advanced
384 pages
7h 53m
English
It’s also possible to log XSLT activity and then send this information to a log file for later analysis. The function that lets you accomplish this is named xslt_set_log(), and it needs to be invoked twice: first to enable XSLT logging and then to set the name of the log file to write processor messages to.
The first time xslt_set_log() is called, it requires two parameters: a handle representing the XSLT processor to track, and a Boolean value to enable logging:
xslt_set_log($xp, true);
The second time the function is invoked, the first parameter remains the same; however, the second parameter is now the name of the file to write log messages to:
xslt_set_log($xp, "/tmp/xslt.log");
This is very simple and works ...
Read now
Unlock full access