0
我想知道在XSLT期間如何以及爲什麼Saxon在XSL元素之間使用空格。以下是可能受上述行爲影響的示例:在XSLT期間,Saxon在屬性中使用了空白嗎?
在XSLT期間,如何以及爲什麼Saxon在XSL元素之間使用空格?
<div style="display:none;">
<xsl:choose>
<xsl:when test="true">
<xsl:attribute name="id">
<xsl:choose>
<xsl:when>
etc ec
</xsl:when>
<xsl:otherwise></xsl:otherwise>
</xsl:choose>
</xsl:attribute>
</xsl:when>
<xsl:otherwise></xsl:otherwise>
</div>
爲什麼<div
和<xsl:choose>
之間的空白可能會導致以下錯誤:含什麼,但空格(像在您的示例)
XSLT attribute node (id) cannot be created after the children of the containing element
您錯過了第一個「」的結束標記' –