to extract the longest string.

Subject: to extract the longest string.
From: "C.V. Radhakrishnan" <cvr@xxxxxxxxxxxxxxx>
Date: Sat, 19 Aug 2000 17:41:43 +0530 (IST)

> From: Jeni Tennison <mail@xxxxxxxxxxxxxxxx>

>I love academic exercises ;)  Actually this didn't turn out to be as messy
> as I thought it was going to be...

> If $longest is longer than $current, then we want to return the $longest
> string; if $current is longer than $longest, then we want to return the
> $current string.  

  "> So in effect calling this template on the second row
   > element returns the longest result from all the rest of the rows," 

Would you please explain to me how calling this template on the second row
element returns the longest result from all  "the rest of rows" and how
the recursion is working in that place?

Thanks

Rajagopal



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


Current Thread