[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Problem calling this template

Subject: Re: Problem calling this template
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 18 Jul 2006 17:32:58 +0100
Re:  Problem calling this template
> , 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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.