Michael Kay wrote:
document('')/*/trans:tr/tr_string[(_at_)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/
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--