// should only be created if either it is non-empty, or no xsl:result-document has been executed
Properties props = new Properties(xslOutputProps);
props.setProperty(SaxonOutputKeys.IMPLICIT_RESULT_DOCUMENT, "yes");
initialContext.changeOutputDestination(props, result, true,
Configuration.XSLT, Validation.PRESERVE, null);
// Process the source document using the handlers that have been set up
if (initialTemplate == null) {