[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] Looking for shorthand form


Subject: Re: [xsl] Looking for shorthand form
From: "karthikeyan.balasubramanian" <karthikeyan.balasubramanian@xxxxxxxxxxxxx>
Date: Wed, 7 Jan 2004 22:13:47 +0530

Hi Dimitre,

  Wow never thought this way is 
also possible :)

  Very Cool.

Karthikeyan B
----- Original Message ----- 
From: "Dimitre Novatchev" <dnovatchev@xxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Tuesday, January 06, 2004 6:01 PM
Subject: Re: [xsl] Looking for shorthand form 


> >   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> 
> > ===============
> 
> Use a single xsl:value-of :
> 
> <xsl:value-of select=
>        "concat(@FIGNBR, 
>                substring('&#160;', 1,
>                          string-length(@FIGNBR) = 2
>                          )
>                )"/>  
> 
> 
> 
> Dimitre Novatchev.
> FXSL developer
> 
> http://fxsl.sourceforge.net/ -- the home of FXSL
> Resume: http://fxsl.sf.net/DNovatchev/Resume/Res.html
> 
> 
> __________________________________
> Do you Yahoo!?
> Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
> http://hotjobs.sweepstakes.yahoo.com/signingbonus
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 
> 


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



Current Thread