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]
Other format: [Raw text]

Re: xslt transform sql into html tables for dhtml paging


> <xsl:for-each select="$sqlrecords[position() &lt;=
> $pgTotal]">

This is an... interesting way to iterate over an integer interval,
but I can't say I'd like to see it used in anything that is to be
maintained, as it's quite obscure and really looks like a bug
the first few minutes you stare at it.
A tail-recursive loop would be only slightly more verbose,
and much more familiar.

Still, rather clever.

Cheers,
--Jonathan



 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]