为什么我会得到真正的从该模板返回值:模板返回true()时,被告知要返回false
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
\t <xsl:template name="return-false">
\t \t <xsl:value-of select="false()"/>
\t </xsl:template>
\t <xsl:template match="/">
\t \t <root>
\t \t \t <xsl:variable name="call-template">
\t \t \t \t <xsl:call-template name="return-false"/>
\t \t \t </xsl:variable>
\t \t \t <xsl:if test="$call-template = true()">
\t \t \t \t <FALSE/>
\t \t \t </xsl:if>
\t \t </root>
\t </xsl:template>
</xsl:stylesheet>
如何提供XML输入和输出。 –
我相信没有这些,就足够简单了。 –