xslt_set_sax_handler

(4.0.3 - 4.0.6 only)

xslt_set_sax_handler -- Set SAX handlers for a XSLT processor

Description

void xslt_set_sax_handler ( resource xh, array handlers)

Set SAX handlers on the resource handle given by xh. SAX handlers should be a two dimensional array with the format (all top level elements are optional):

array(
[document] =>
    array(
        start document handler,
        end document handler
    ),
[element] =>
    array(
        start element handler,
        end element handler
    ),
[namespace] =>
    array(
        start namespace handler,
        end namespace handler
    ),
[comment] => comment handler,
[pi] => processing instruction handler,
[character] => character data handler
)

"#007700">->_xh, $this);

        
// Let's handle the errors
        
xslt_set_error_handler($this->_xh, "my_xslt_error_handler");
    }

    function
my_xslt_error_handler($handler, $errno, $level, $info)
    {
        
// for now, let's just see the arguments
        
var_dump(func_get_args());
    }
}

?>