xsl-list
[Top] [All Lists]

[xsl] xsl:for-each with dynamic select

2008-04-15 04:38:29
Hey,

I have simple for-each like:

<xsl:for-each select="server1">
...
</xsl:for-each>

- works and it's all happy.
Problem that I want to generate server1 (node name) to be serverX.
I simply tried :

<xsl:variable name="tmp_var">server1</xsl:variable>
<xsl:for-each select="$tmp_var">
...
</xsl:for-each>

and it does not work.

My feeling is server1 in first case is treated as node id, in second case as normal string. Any idea how to fix it?

Thank you
P

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

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