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]
Other format: [Raw text]

Re: Can apply-templates attribute mode be passed a variable?


----- Original Message ----- 
From: <seema_mehta@nzi.co.nz>
> Can apply-templates attribute mode be passed a variable? i.e. is the
> following code legal?
> 
>      <xsl:for-each select="x">
>           <xsl:variable name="mode" select="@attr"/>
>           <xsl:apply-templates select="self::x" mode="$mode"/>
>      </xsl:for-each>


you could use a named template 

http://www.dpawson.co.uk/xsl/sect2/N5280.html

gl, jim fuller



 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]