[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Using a variable as an Xpath expression


Subject: Using a variable as an Xpath expression
From: "Jarno Elovirta" <jarnose@xxxxxxxxxx>
Date: Tue, 8 Feb 2000 10:16:14 +0200

> 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



Current Thread
Keywords