|
Subject: RE: [xsl] greenhorn problem with variables From: "Kevin Bird \(Matrix\)" <kevin.bird@xxxxxxxxxxxxxxxxxxxxxxx> Date: Sat, 19 Mar 2005 12:02:03 -0000 |
Volker
> Can I solve this with params instead of varialbes?
Yes.
<xsl:apply-templates select="nr">
<xsl:with-param name="colorval" select="$color"/>
</xsl:apply-templates>
Then modify your match template to accept the paramter.
<xsl:template match="nr">
<xsl:param name="colorval"/>
<td bgcolor="{$colorval}">
<xsl:value-of select="."/>
</td>
</xsl:template>
Hope this helps.
--
Kevin
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| [xsl] greenhorn problem with variab, Volker Katz | Thread | Re: [xsl] greenhorn problem with va, Volker Katz |
| [xsl] greenhorn problem with variab, Volker Katz | Date | Re: [xsl] Can i use apply-templates, Chris |
| Month |