[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] Problem calling this template


Subject: Re: [xsl] Problem calling this template
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 18 Jul 2006 17:32:58 +0100

> , it goes back to
> the top (but peculiarly skips the top record) and does this many
> times.

                       <xsl:apply-templates select=".">

looks dangerous:-) It would of course be an infinite loop if the
parameters didn't change. I haven't actually checked what parameters are
being passed at this stage.

also, if you did intent to follow siblings during teh recursion, then
probably you only intended to start at the first Record rather than all
of them so change

<xsl:template match="/" >
       <xsl:apply-templates select="$services//Record">

to

<xsl:template match="/" >
       <xsl:apply-templates select="$services/Records/Record[1]">

(or whatever path is needed to select just one node)

David


Current Thread