Set document locator and document_start in XML SAX BASE now attempting to fire Handlers callbacks if they exist, started implementing port of XInclude.pm to test such and doc locator callback is being fired correctly from XSB 's own libxml2 parser callbacks.