1
0
mirror of https://gitlab.gnome.org/GNOME/libxslt synced 2025-09-14 05:09:26 +03:00
Files
libxslt/tests/REC/test-6.1.xsl
Christian Ceelen aed0cca049 Use hash table to lookup named templates
For big XSLTs (>50000 templates) this results in a huge improvement of the
compilation time.

Thanks to Christian Ceelen for the original patch.

Fixes GitHub pull request #1
2015-09-14 14:20:07 +02:00

15 lines
510 B
XML

<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!-- reject this XSLT named templates should have unique template name + nameURI combinations -->
<xsl:template match="doc">
<xsl:call-template name="duplicateTemplateName"/>
</xsl:template>
<xsl:template name="duplicateTemplateName">
<xsl:text>XSLT should be rejected</xsl:text>
</xsl:template>
<xsl:template name="duplicateTemplateName">
<xsl:text>XSLT should be rejected</xsl:text>
</xsl:template>
</xsl:stylesheet>