1
0
mirror of https://gitlab.gnome.org/GNOME/libxslt synced 2025-09-14 05:09:26 +03:00
Files
libxslt/tests/general/bug-183.xsl
Nick Wellnhofer ce5a0dd6a7 Set correct context node when initializing xsl:keys
This makes the current() function in "use" expressions work properly.
Fixes bugs #530871, #607893, and #676335.
2013-12-13 14:28:42 +01:00

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>