Subject: Re: Re: Re: Re: lookup-table thoughts (was Re: matching multiple times, outputting once?
From: Jeni Tennison <jeni@xxxxxxxxxxxxxxxx>
Date: Wed, 7 Nov 2001 15:01:56 +0000
|
Dimitre,
> Obviously Jeni's reflection of me needs updating...
Aww... I thought you'd like the divide-and-conquer stuff :)
> As you can notice, the "buildListWhile" function (oopsss...
> template) is generic enough to incorporate any future
> indoctrinations. Actually its real purpose is to help in simulating
> Haskell's lazy evaluation of infinite data structures, and
> especially to be used in implementing the "take", takeWhile" etc.
> family of Haskell functions.
Cool. Could you post the buildListWhile template so we can see how it
works?
By the way, out of interest, in:
> <xsl:template name="listGenerator" match="*[namespace-uri()='pGenerator']">
[snip]
> </xsl:template>
is there any particular reason why you're testing the namespace URI
rather than using match="pGenerator:*"?
Cheers,
Jeni
---
Jeni Tennison
http://www.jenitennison.com/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|