xsl-list
[Top] [All Lists]

RE: Accessing variable with computed name

2003-12-09 09:55:39
-----Original Message-----
From: Christian Roth

<xsl:template match="table">
  <table style="{$table(_dot_)frame(_dot_){(_at_)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



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