我试图根据节点是否存在设置输出变量的文字字符串值。我认为条件检查逻辑是正确的。但它不是outputing值...<xsl:variable>使用<xsl:value-of>打印出XSL变量的值
<xsl:variable name="subexists"/>
<xsl:template match="class">
<xsl:copy><xsl:apply-templates select="@*|node()"/></xsl:copy>
<xsl:choose>
<xsl:when test="joined-subclass">
<xsl:variable name="subexists" select="'true'"/>
</xsl:when>
<xsl:otherwise>
<xsl:variable name="subexists" select="'false'"/>
</xsl:otherwise>
</xsl:choose>
subexists: <xsl:value-of select="$subexists" />
我希望它输出的文本字符串是“true”的“假”。但它不会输出任何内容。请帮忙!谢谢!!!