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

Re: [xsl] Looking for shorthand form


Subject: Re: [xsl] Looking for shorthand form
From: "George Cristian Bina" <george@xxxxxxx>
Date: Tue, 6 Jan 2004 13:35:59 +0200

Hi,

You can just factor your code to remove the duplicate xsl:value-of:

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

Regards,
George
-------------------------------------------------------------
George Cristian Bina mailto:george@xxxxxxxxxxxxx
<oXygen/> XML Editor - http://www.oxygenxml.com/


----- Original Message -----
From: "karthikeyan.balasubramanian"
<karthikeyan.balasubramanian@xxxxxxxxxxxxx>
To: "MulberryTech List" <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Tuesday, January 06, 2004 11:57 AM
Subject: [xsl] Looking for shorthand form


> 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>
> ===============
>
> Have a great day.
>
> Karthikeyan B
>
>
>
>  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
Keywords