|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: greenhorn problem with variables
Am Samstag, 19. Mdrz 2005 13:02 schrieb Kevin Bird \(Matrix\):
> > 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.
Thanks a lot. I have to confess, I found a more elegant way to solve my
special problem. But bevore I tested your solution and it worked fine.
I didn't get the idea to combine parmeters and variables. I thought
just of one of these. So I learned a bit more about xslt.
Thanks & best regards.
Volker
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








