Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


[xsl] concat string to an variable name

From: Jan Kohnert <J.Kohnert@----------->
To:
Date: 4/2/2004 12:03:00 AM
Hi List,

I have variables like this: (and many more)
<xsl:variable name="HE01_1">-30 min.</xsl:variable>
<xsl:variable name="HE02_1">08:00</xsl:variable>
...
<xsl:variable name="HE01_2">Day 1, 08:00</xsl:variable>
...
<xsl:variable name="HE11_8">Day 11, 08:00</xsl:variable>

At runtime I want to return one of this variables. Which variable is the
right is determined on the basis two values.
1. The Element <PRINTTYP/> which has values like 'HE01', 'HE02' ans so on.
2. A other Element <ROW/> which has values like '1', '2' ans so on.


I concat both values like:
<xsl:value-of selct="concat($Printtyp, '_', $Row)"/>

to create a string matching an variable name like 'HE01_1'.

My question now is, how can I select the variable whish name matches the
createt string? 
Is this possible?

thanks!!!


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent