|
Subject: RE: [xsl] Accessing variable with computed name From: "Andreas L. Delmelle" <a_l.delmelle@xxxxxxxxxx> Date: Tue, 9 Dec 2003 17:55:39 +0100 |
> -----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
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| [xsl] Accessing variable with compu, Christian Roth | Thread | Re: [xsl] Accessing variable with c, David Carlisle |
| RE: [xsl] RE: questions/exercises f, Andreas L. Delmelle | Date | RE: [xsl] Re: Re: Fixed Line Length, Cynthia DeLaria |
| Month |