Re: [xsl] Looking for shorthand form

Subject: Re: [xsl] Looking for shorthand form
From: Peter Hickman <peter@xxxxxxxxxxxxx>
Date: Tue, 06 Jan 2004 11:12:29 +0000
karthikeyan.balasubramanian wrote:
Hi,
Can anybody suggest shorthand form for this code


=============
<xsl:choose>
   <xsl:when test="string-length(@FIGNBR)=2">
    <xsl:value-of select="@FIGNBR"/>
    <xsl:text>&#160;</xsl:text>
   </xsl:when>
   <xsl:otherwise>
    <xsl:value-of select="@FIGNBR"/>
   </xsl:otherwise>
  </xsl:choose>
===============

Maybe


<xsl:value-of select="@FIGNBR"/>
<xsl:if test="string-length(@FIGNBR)=2">
  <xsl:text>&#160;</xsl:text>
</xsl:if>


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



Current Thread