[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

replace 'NA' for empty string

Subject: replace 'NA' for empty string
From: "Lee, Insoo" <Insoo.Lee@xxxxxx>
Date: Tue, 11 Feb 2003 17:32:17 -0500
replace na

 Hello,
 In my XSL, I need to check if some fields are 'NA' and if so, print blank.

		    <td align="right"><xsl:value-of
select="SHORT_RATE_365"/></td>
                        <td align="right"><xsl:value-of
select="LONG_RATE_365"/></td>
                        <td align="right"><xsl:value-of
select="RATE_360"/></td>
                        <td align="right"><xsl:value-of
select="CURR_7_DAY_YIELD"/></td>
                        <td align="right"><xsl:value-of
select="SEVEN_DAY_EFF_YIELD"/></td>
                        <td align="right"><xsl:value-of
select="AVG_30_DAY_RATE"/></td>
                        <td align="right"><xsl:value-of
select="PRICE"/></td>

 Would you suggest using number-format and use blank as a default

	<xsl:decimal-format NaN=""/> 
 Or should I use test= 

 Which would be more efficient approach?
 Any other better way to do test and replace?
 Thanks
IL


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.