|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Accessing variable with computed name
> -----Original Message-----
> From: Christian Roth
>
> <xsl:template match="table">
> <table style="{$table.frame.{@frame}}"> <!-- ### -->
> ...
> </xsl:template>
>
>
> What I intend here is to compute the name of the variable to be accessed
> using some constant prefix ('table.frame.') and the contents of the
> element's 'frame' attribute.
>
Something like :
<xsl:template match="table">
<table>
<xsl:attribute name="style">
<xsl:value-of select="concat($table.frame,@frame)" />
</xsl:attribute>
</table>
</xsl:template>
Hope this helps!
Cheers,
Andreas
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
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








