I m using Saxon-EE 9.3.0.4 for xsl transformations and found that when <xsl:result-document>
is used inside <xsl:attribute>
(as well as <xsl:namespace>
, <xsl:processing-instruction>
) instruction, processor
raises XTDE1480 error - Cannot switch to a final result destination while writing a temporary tree
<xsl:attribute name="a">
<xsl:result-document href="result.xml" > - error here
test
</xsl:result-document>
</xsl:attribute>
http://www.w3.org/TR/xslt20/#element-result-document”rel=“nofollow” (Appendix D)允许父母填写<xsl:result-document>
。 :
- any XSLT element whose content model is sequence constructor
- any literal result element
是否在Saxon或限制<xsl:result-document>
具体定义中没有定义的使用?
Update:
I believe that this is not a good idea to use <xsl:result-document>
inside <xsl:attribute>
, but why error happens?
增 编