This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Embedding parameters into XPATH
- From: "Hellstern, Manny" <manny dot hellstern at mustangeng dot com>
- To: "'XSL-List at lists dot mulberrytech dot com'" <XSL-List at lists dot mulberrytech dot com>
- Date: Mon, 5 Aug 2002 14:49:44 -0500
- Subject: [xsl] Embedding parameters into XPATH
- Reply-to: xsl-list at lists dot mulberrytech dot com
Is it possible to embed a parameter name into an XPATH expression?
XML File:
<LEVEL>
<DUMP>
<TEST>
<VALUE>100</VALUE>
</TEST>
<TEST>
<VALUE>200</VALUE>
</TEST>
</DUMP>
</LEVEL>
Example:
if param1 is set to TEST then I want to use something like
<xsl:apply-templates select="//$param1/VALUE" />
which executes as
<xsl:apply-templates select="//TEST/VALUE" />
I'm hoping that its simply a syntax issue.
Thanks in advance.
Manny Hellstern
Houston, Tx
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list