xsl-list
[Top] [All Lists]

RE: greenhorn problem with variables

2005-03-19 05:02:03
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



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>