This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]