mirror of
https://gitlab.gnome.org/GNOME/libxslt
synced 2025-09-14 05:09:26 +03:00
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
15 lines
510 B
XML
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>
|