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

XSL nodes evaluation on the fly

Subject: XSL nodes evaluation on the fly
From: Ivanco Maros <ivancoma@xxxxxxxxxx>
Date: Mon, 25 Feb 2002 15:23:10 +0100
xsl evaluate

	Is XSL nodes evaluation on the fly possible?
I would like to create set of "standard" templates which have only different body (something like FUNCALL in LISP or function template in C++).

For instance:

<xsl:template name="for.loop">
	<xsl:param name="i"/>
	<xsl:param name="count"/>
	<xsl:param name="body"/>
	<xsl:if test="$i &lt;= $count">
<!-- the body of the loop I am trying to evaluate on the fly; does not work. 
	<xsl:eval><xsl:value-of select="$body"/></xsl:eval>
	<xsl:if test="$i &lt; $count">
		<xsl:call-template name="for.loop">
			<xsl:with-param name="i" select="$i + 1"/>
			<xsl:with-param name="count" select="$count"/>

and I would love to use it like:

	<xsl:call-template name="for.loop">
		<xsl:with-param name="i" select="1"/>
		<xsl:with-param name="count" select="count(BODY/ROW)"/>
		<xsl:with-param name="body">
					<TD height="$i"/>

Thanks in advance,

			Maros Ivanco.

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

Current Thread


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.
First Name
Last Name
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.