<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" version="1.0" indent="no" omit-xml-declaration="yes" />
<!--
XSL template for APNSoft DataGrid.
Version: Quantity 1.4
Created: 02/28/2007
Updated: 04/27/2011
Copyright (C) APNSoft. All rights reserved.
http://www.apnsoft.com
Free for commercial and non-commercial use.
You can distribute and modify it freely.
-->
<!--Main Template call-->
<xsl:template match="/"><xsl:call-template name="Main" /></xsl:template>
<!--Decimal Format-->
<xsl:decimal-format name="dec_format" digit="D" />
<!--Main Template-->
<xsl:template name="Main">
<!--Conditional Formatting-->
<xsl:choose>
<xsl:when test="$Quantity$ < 10">
<font color="red"><b>$Quantity$</b></font>
</xsl:when>
<xsl:otherwise><font color="Green"><b>$Quantity$</b></font></xsl:otherwise>
</xsl:choose>
<!--Total Cost-->
<font color="#404040">
 (<xsl:value-of select="format-number($UnitPrice$ * $Quantity$, '$DDD,DDD,DDD.00', 'dec_format')" />)
</font>
</xsl:template>
</xsl:stylesheet>
|