1
0
mirror of https://gitlab.gnome.org/GNOME/libxslt synced 2025-09-14 05:09:26 +03:00
Files
libxslt/tests/general/bug-92.xsl
Daniel Veillard 117597ebab fixed the behaviour of node() patter which didn't patch the one defined in
* libxslt/pattern.c: fixed the behaviour of node() patter which
  didn't patch the one defined in XPath :-( . Closes bug #95793
* tests/docs/Makefile.am tests/docs/bug-92.xml
  tests/general/Makefile.am tests/general/bug-92.*: added the
  example in the regression tests for this case
Daniel
2002-10-15 09:45:29 +00:00

20 lines
588 B
XML

<?xml version="1.0" encoding="iso-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" version="1.0">
<xsl:output method="xml" indent="yes" version="1.0"/>
<xsl:template match="node()">
<xsl:element name="toto">
<xsl:attribute name="n">
<xsl:value-of select="name()"/>
</xsl:attribute>
<xsl:apply-templates/>
</xsl:element>
</xsl:template>
<xsl:template match="text()"/>
<xsl:template match="comment()"/>
<xsl:template match="processing-instruction()"/>
</xsl:stylesheet>