This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

to extract the longest string.




> From: Jeni Tennison <mail@jenitennison.com>

>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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]