This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: to extract the longest string (fwd)
- To: xsl-list at mulberrytech dot com
- Subject: Re: to extract the longest string (fwd)
- From: "C.V. Radhakrishnan" <cvr at md2 dot vsnl dot net dot in>
- Date: Fri, 18 Aug 2000 15:29:30 +0530 (IST)
- Reply-To: xsl-list at mulberrytech dot com
On Fri, 18 Aug 2000, Rajagopal C V wrote:
> The template that I posted was a cut down one, just assigning the longest
> string to a variable. If you want to do something with that string (like
> display it) then you have to add code to do that, e.g.:
>
> <xsl:template match="table">
> <xsl:variable name="longest">
> <xsl:apply-templates select="row[1]" mode="get-longest" />
> </xsl:variable>
> <xsl:message>Longest: <xsl:value-of select="$longest" /></xsl:message>
> </xsl:template>
It worked fine. I gave code for displaying string in the worng place.
Thanks a lot.
Rajagopal
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list