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

Re: xsl:param

Subject: Re: xsl:param
From: RSuiter@xxxxxxxxx
Date: Tue, 17 Apr 2001 14:45:48 -0500
Re:  xsl:param
Dear Matrix,

I haven't tested this, but parameters are not passed down through the
templates unless you write them to do so.
So you need something like:

<xsl:template match="Repeat">
 <xsl:param name="member-position" />    <!-- I added this -->
 <xsl:element name="input">
  <xsl:attribute name="type">Submit</xsl:attribute>
  <xsl:attribute name="name">+</xsl:attribute>
  <xsl:attribute name="value">+</xsl:attribute>
 </xsl:element>
 <xsl:apply-templates select="Name">
  <xsl:with-param name="member-position"  select="$member-position" />  <!
-- and this -->
 </xsl:apply-templates>
</xsl:template>

The added with-param passes down the original position.

I hope this helps,

Rick Suiter



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


Current Thread
  • xsl:param
    • the matrix - Tue, 17 Apr 2001 14:29:37 -0400 (EDT)
      • <Possible follow-ups>
      • RSuiter - Tue, 17 Apr 2001 15:50:58 -0400 (EDT) <=

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.