Subject: Re: Error when params are in Xpath expression
From: Florent Georges <lists@xxxxxxxxxxxx>
Date: Tue, 12 May 2009 20:23:22 +0000 (GMT)
|
Michael Kay wrote:
> > document('')/*/trans:tr/tr_string[@str=$str]/*[name()=$toLang]"
> [...]
> <xsl:key name="k" match="tr_string/*"
> use="concat(../@str, '#', @lang)"/>
> and then replace the above path with:
> key('k', concat($str, '#', $toLang))
Or more precisely, for the OP:
document('')/key('k', concat($str, '#', $toLang))
Regards,
--
Florent Georges
http://www.fgeorges.org/
|