1
0
mirror of https://gitlab.gnome.org/GNOME/libxslt synced 2025-09-15 16:01:08 +03:00
Files
libxslt/tests/general/bug-70.xsl
Daniel Veillard b27713d10c Bob Stayton pointed out a problem when using unions in key match patterns.
* libxslt/keys.c: Bob Stayton pointed out a problem when
  using unions in key match patterns.
* tests/docs/Makefile.am tests/docs/bug-70.xml
  tests/general/Makefile.am tests/general/bug-70.*: added a
  specific example in the regression tests
Daniel
2002-01-30 11:39:41 +00:00

14 lines
342 B
XML

<?xml version='1.0'?>
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'>
<xsl:key name="mykey" match="div|obj" use="@id" />
<xsl:template match="link">
<xsl:value-of select="@linkend"/>
<xsl:text> </xsl:text>
<xsl:value-of select="key('mykey', @linkend)/@href" />
</xsl:template>
</xsl:stylesheet>