xsl-list
[Top] [All Lists]

Using a variable as part of the path in value-of select"..." ?

2005-08-30 07:27:19
Hi,

<xsl:variable name="test" select="WAAUXServiceData/@action"/>
<xsl:element name="BTAccountNumber">
        <xsl:value-of select="WAAUXServiceData/$test/BTAccountNumber"/>
</xsl:element>


The variable "test" is set to the value of the WAAXServiceData
attribute.
The "value-of select" should return the value with the value of $test in
its path.


I assume this won't be possible, since the parser can only go once
through the document and doesn't see the generated path in the first
roll. Correct?

But if it is possible that would save me a lot of time. 

Any ideas?

Many Thanks,
Houman

--~------------------------------------------------------------------
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>