This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Embedding parameters into XPATH


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]