|
Subject: Re: [xsl] Looking for shorthand form From: Dimitre Novatchev <dnovatchev@xxxxxxxxx> Date: Tue, 6 Jan 2004 04:31:31 -0800 (PST) |
> Can anybody suggest shorthand form for this code
>
> =============
> <xsl:choose>
> <xsl:when test="string-length(@FIGNBR)=2">
> <xsl:value-of select="@FIGNBR"/>
> <xsl:text>  </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(' ', 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
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] Looking for shorthand for, karthikeyan.balasubr | Thread | Re: [xsl] Looking for shorthand for, karthikeyan.balasubr |
| Re: [xsl] Looking for shorthand for, David Carlisle | Date | Re: [xsl] knowing the position of c, David Carlisle |
| Month |