mirror of
https://gitlab.gnome.org/GNOME/libxslt
synced 2025-09-14 05:09:26 +03:00
This makes the current() function in "use" expressions work properly. Fixes bugs #530871, #607893, and #676335.
10 lines
296 B
XML
10 lines
296 B
XML
<?xml version='1.0'?>
|
|
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
|
<xsl:key name="index" match="val" use="current()/@k"/>
|
|
<xsl:template match="/">
|
|
<result>
|
|
<xsl:value-of select="key('index', 'one')"/>
|
|
</result>
|
|
</xsl:template>
|
|
</xsl:stylesheet>
|