In browser, do not always produce HTML elements in result documents when they should be produced
There are some cases when HTML elements should be constructed, but they are not.
1. When using the transform method destination:"replaceBody"|"appendToBody"|"prependToBody" to add the principal output to the HTML body (as pointed out in https://saxonica.plan.io/boards/5/topics/6589?r=6590#message-6590).
2. When an HTML fragment is generated using xsl:result-document, HTML elements are not produced by xsl:sequence (but they are produced by xsl:copy-of).
#2 Updated by Debbie Lockett over 1 year ago
Changes to applyStylesheet method in transform.js:
1. To set context.resultDocument to window.document when using one of the destination options.
2. To ensure that the context is passed as the 3rd arg in the Expr.makeComplexContent call, so that context.resultDocument can be accessed correctly.
Please register to edit this issue