1
0
mirror of https://gitlab.gnome.org/GNOME/libxslt synced 2025-09-11 16:10:45 +03:00
Files
libxslt/tests/general/bug-110.xsl
Daniel Veillard 9dc7f17ba4 added an example in the regression tests for bug #108976 which is fixed in
* tests/docs/Makefile.am tests/docs/bug-110.*
  tests/general/Makefile.am tests/general/bug-110*: added an
  example in the regression tests for bug #108976 which is
  fixed in libxml2
Daniel
2003-03-23 12:10:47 +00:00

21 lines
482 B
XML

<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version='1.0'>
<xsl:output method='text'/>
<xsl:template match="/">
<xsl:variable name="id1" select="generate-id(/root/elem)"/>
<xsl:variable name="id2" select="generate-id(id('id0'))"/>
<xsl:if test="$id1 = $id2">
<xsl:text>SUCCESS
</xsl:text>
</xsl:if>
<xsl:if test="$id1 != $id2">
<xsl:text>ERROR
</xsl:text>
</xsl:if>
</xsl:template>
</xsl:stylesheet>