xsl-list
[Top] [All Lists]

Re: [xsl] Problem calling this template

2006-07-18 09:40:13
I have seen the light. $x/y/z[1] was it.

Would *never* have thought of that. I've got a ruby script filling a
text-file with the string "thanks!\r". You'll receive it when I feel
its adequate.

-Steve

On 7/18/06, David Carlisle <davidc(_at_)nag(_dot_)co(_dot_)uk> wrote:

> , 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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--