Subject: RE: Scope of a variable From: Kay Michael <Michael.Kay@xxxxxxx> Date: Fri, 17 Mar 2000 16:58:33 -0000 |
Look in the spec for xsl:param and xsl:with-param: they allow you to pass parameters from the calling template to the called template. See below. Alternatively, in this case the value is in the source document, so you can access it from the match="FIRST" template using select="../@num". Mike Kay > > > > <xsl:template match="MAINTAG"> > <xsl:apply-template select="FIRST"> <xsl:with-param name="num" select="@num"/> </xsl:apply-templates> > > </xsl:template> > > > > <xsl:template match="FIRST"> <xsl:param name="num"/> > > <INPUT TYPE="HIDDEN" NAME="hidNum"> > > <xsl:attribute name="VALUE"> > > <xsl:value-of select="$num"/> > > </xsl:attribute> > > <xsl:apply-templates/> > > <xsl:template> > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Scope of a variable, prasadm | Thread | About the xmlns:xsl attribute, Herve Blondeau |
Re: About the xmlns:xsl attribute, David Carlisle | Date | Re: what processor is using this st, Steve Tinney |
Month |