xsl-list
[Top] [All Lists]

Re: Looking for shorthand form

2004-01-06 04:53:35
Thanks George :)

Karthikeyan B
----- Original Message ----- 
From: "George Cristian Bina" <george(_at_)sync(_dot_)ro>
To: <xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
Sent: Tuesday, January 06, 2004 5:05 PM
Subject: Re: [xsl] Looking for shorthand form


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(_at_)oxygenxml(_dot_)com
<oXygen/> XML Editor - http://www.oxygenxml.com/


----- Original Message -----
From: "karthikeyan.balasubramanian"
<karthikeyan(_dot_)balasubramanian(_at_)aspiresys(_dot_)com>
To: "MulberryTech List" <xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
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




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



<Prev in Thread] Current Thread [Next in Thread>