|
Subject: Boolean true() and false() as strings? From: "John E. Simpson" <simpson@xxxxxxxxxxx> Date: Thu, 05 Oct 2000 16:17:54 -0400 |
<xsl:template match="sales">
<h2>Regions Selling More than 300 Units:</h2>
<xsl:for-each select="region">
<xsl:variable name="units_gt_300">
<xsl:choose>
<xsl:when test="number(units) > 300">
<xsl:value-of select="true()"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="false()"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:if test="$units_gt_300='true'">
<h3><xsl:value-of select="concat(@name, ' (', units, ' units)')"/></h3>
</xsl:if>
</xsl:for-each>
</xsl:template><sales quarter="2001-01">
<region name="Northeast">
<units>374</units>
<amount>12500.26</amount>
</region>
<region name="Southeast">
<units>512</units>
<amount>17692</amount>
</region>
<region name="Southwest">
<units>161</units>
<amount>8349.72</amount>
</region>
<region name="Northwest">
<units>465</units>
<amount>15239.6</amount>
</region>
</sales>| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| RE: Attribute to Element, Mark Dewey | Thread | Re: Boolean true() and false() as s, Wendell Piez |
| RE: Attribute to Element, Mark Dewey | Date | Re: XSL Formatting Objects Chapter , Alexey Gokhberg |
| Month |