Name
xslt_is_sheet,
xslt_profile_enable,
xslt_profile_disable,
xslt_profile_list,
xslt_mem_check
—
XSLT runtime introspection, profiling and memory checks
Synopsis
integer xslt_is_sheet(
|
in value any); |
any xslt_profile_list(
|
); |
integer xslt_mem_check(
|
); |
Description
xslt_is_sheet returns 1 if
value is a compiled XSLT stylesheet handle (the
kind produced by
xslt_sheet or by
passing a URL to xslt)
and 0 otherwise. Useful inside generic XML helper procedures that need to
dispatch differently on stylesheet vs. raw entity arguments.
xslt_profile_enable turns on per-template timing
collection in the XSLT engine. xslt_profile_disable
turns it off again. xslt_profile_list returns the
accumulated profile as a vector with one row per template, recording the
URI, mode, call count and total CPU time. Useful for tuning slow
stylesheets.
xslt_mem_check runs the XSLT runtime's internal
memory invariants and returns 1 on success or raises an SQL error on the
first inconsistency. Intended for development and the test suite;
production code should not need it.