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

Re: apply template within call template

Subject: Re: apply template within call template
From: "cutlass" <cutlass@xxxxxxxxxxx>
Date: Fri, 11 Jan 2002 10:13:05 -0000
cutlass template
----- Original Message -----
From: "Joerg Pietschmann" <joerg.pietschmann@xxxxxx>
To: "XSL List" <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Friday, January 11, 2002 9:06 AM
Subject: Re:  apply template within call template


> "cutlass" <cutlass@xxxxxxxxxxx> wrote:
> [rearranged]
> > sometimes people confuse recursion with circular references, the above
is a
> > circular reference.
>
> Jim, i thought you knew better! The code snippet
>   <xsl:template name="test">
>     <xsl:call-template name="test"/>
>   </xsl:template>
> is perfectly legal, and it's recursion. Of course, it would
> run forever provided infinite ressources. In order to make it

recursion never runs forever, as for the XSLT world yes the above is
perfectly legal ( and completely useless, so i have no prob telling someone
to not use it ! ), though i have to admit that allowing something to run
infinately would eventual invalidate the 'no side effect rule'.....

in math terms, u will find that recursion is always considered to 'bottom
out', though admittedly a condition that converges to infinity can be
considered ( in some systems ) a 'bottoming out' as the function attains a
steady state, but unfortunately, if i was being pedantic this still is not
the classic definition of recursion, which of course has been modified
through computer use of the term.

oh well, random useless math knowledge.

chow, jim fuller



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.