View Single Post
 
Old February 10th, 2006, 05:23 PM
jkmyoung jkmyoung is offline
Authorized User
 
Join Date: Nov 2004
Location: , , .
Posts: 81
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to jkmyoung
Default

2 functions I can think of off hand.
1. number()
2. translate()

Say you store the result from call-template in a variable a

<xsl:if test="number($a) = $a">
<xsl:if test=" '' = translate($a, '1234567890', ' ')">

====
<xsl:variable name="a">
  <xsl:call-template name="convertCurrency">
    <xsl:with-param name="currency" select="/Amt"/>
  </xsl:call-template>
</xsl:variable>
<xsl:if test=" '' = translate($a, '1234567890', ' ')">
  <xsl:element name="DamageAmt"/>
</xsl:if>