xsl-list
[Top] [All Lists]

Re: [xsl] Error when params are in Xpath expression

2009-05-12 16:23:55

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>
--~--