xsl-list
[Top] [All Lists]

Re: [xsl] String comparison

2010-09-24 07:31:47
Functions is only 2.0, sorry.

On 24 September 2010 12:09,  <pankaj(_dot_)c(_at_)thomsondigital(_dot_)com> 
wrote:
<xsl:function name="wl:trdif">
 <xsl:param name="a" as="xsd:string"/>
 <xsl:param name="b" as="xsd:string"/>
 <xsl:choose>
   <xsl:when test="string-length($a) = 0 or
                   substring($a,1,1) != substring($b,1,1)">
     <xsl:value-of select="$b"/>
   </xsl:when>
   <xsl:otherwise>
     <xsl:value-of select="wl:trdif(substring($a,2),substring($b,2))"/>
   </xsl:otherwise>
 </xsl:choose>
</xsl:function>

Thanks Laun for suggestion, I will look into that.


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

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