This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Using a variable as an Xpath expression
- To: <xsl-list at mulberrytech dot com>
- Subject: Using a variable as an Xpath expression
- From: "Jarno Elovirta" <jarnose at evitech dot fi>
- Date: Tue, 8 Feb 2000 10:16:14 +0200
- Reply-To: xsl-list at mulberrytech dot com
> XSL Error: pattern = 'document('en_US.xml')/locale/$myKey'
I am trying to do something quite similar:
<xsl:apply-templates select="document($uri)$xpointer" />
, you can't do that. Is there a way in XSLT to go around it with a hack of
some sort? Or, I remember Kay Michael once talking about an extension to
SAXON which would enable to make XPath expressions from variables, but my
memory might not be working correctly this early in the morning.
Jarno
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list