/** * Produce a diagnostic representation of the compiled stylesheet, in XML form. * <p><i>The detailed form of this representation is not stable (or even documented).</i></p> * * @param destination the destination for the XML document containing the diagnostic representation * of the compiled stylesheet * @since 9.1 */ public void explain(Destination destination) throws SaxonApiException { Configuration config = processor.getUnderlyingConfiguration(); try { Receiver out = destination.getReceiver(config.makePipelineConfiguration(), config.obtainDefaultSerializationProperties()); preparedStylesheet.explain(new ExpressionPresenter(config, out)); } catch (XPathException e) { throw new SaxonApiException(e); } }
/** * Produce a diagnostic representation of the compiled stylesheet, in XML form. * <p><i>The detailed form of this representation is not stable (or even documented).</i></p> * * @param destination the destination for the XML document containing the diagnostic representation * of the compiled stylesheet * @since 9.1 */ public void explain(Destination destination) throws SaxonApiException { Configuration config = processor.getUnderlyingConfiguration(); try { Receiver out = destination.getReceiver(config.makePipelineConfiguration(), config.obtainDefaultSerializationProperties()); preparedStylesheet.explain(new ExpressionPresenter(config, out)); } catch (XPathException e) { throw new SaxonApiException(e); } }
props); ExpressionPresenter expressionPresenter = new ExpressionPresenter(config, diag); sheet.explain(expressionPresenter); expressionPresenter.close();
props); ExpressionPresenter expressionPresenter = new ExpressionPresenter(config, diag); sheet.explain(expressionPresenter); expressionPresenter.close();