|
Subject: [xsl] Accessing variable with computed name From: "Christian Roth" <roth@xxxxxxxxxxxxxx> Date: Tue, 9 Dec 2003 17:41:59 +0100 |
Hi,
how do I access the contents of a variable (or param) whose name is
computed?
Pseudo-code for demonstration, NOT WORKING:
...
<xsl:param name="table.frame.void">border: none;</xsl:param>
<xsl:param name="table.frame.box">border: 1pt solid black;</xsl:param>
...
<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.
Nested {...}'s are not allowed, and some other attempts of mine did not
work (like "{concat( '$table.frame.', @frame)}").
Regards, Christian.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| SOLUTION:RE: [xsl] Re: Re: Re: How , Ficke, Bill | Thread | RE: [xsl] Accessing variable with c, Andreas L. Delmelle |
| Re: [xsl] Missing nodes are ruining, David Carlisle | Date | RE: [xsl] RE: questions/exercises f, Andreas L. Delmelle |
| Month |