Split diagnostics template as its root element should correspond to the requested operation.
PHP 5.3 workaround.
explain template should to present correct information which is to be passed by the calling php script. In sru_response_template.xml a nextRecordPosition only makes sense if not all records could be sent.