XSL stylesheet 3<xsl:stylesheet version='1.0' xmlns:xsl='http://www.w3.org/1999/XSL/Transform' > |
<xsl:template match="/"> |
<P> |
<xsl:text> The boolean value of "0" is </xsl:text> |
<B><xsl:value-of select="boolean(//text[text()='0'])"/></B> |
<xsl:text> if "0" is a string, but </xsl:text> |
<B><xsl:value-of select="boolean(number((//text[text()='0'])))"/></B> |
<xsl:text> if "0" is a number.</xsl:text> |
</P> |
</xsl:template> |
</xsl:stylesheet> |