summaryrefslogtreecommitdiff
path: root/tests/plugins/plugin.xsl
diff options
context:
space:
mode:
Diffstat (limited to 'tests/plugins/plugin.xsl')
-rw-r--r--tests/plugins/plugin.xsl12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/plugins/plugin.xsl b/tests/plugins/plugin.xsl
new file mode 100644
index 00000000..0203d230
--- /dev/null
+++ b/tests/plugins/plugin.xsl
@@ -0,0 +1,12 @@
+<?xml version='1.0'?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:libxslt="http://xmlsoft.org/xslt/testplugin"
+ xmlns:test="http://xmlsoft.org/xslt/testplugin"
+ xsl:extension-element-prefixes="libxslt test"
+ version='1.0'>
+<!-- the prefix is registered twice to check single initialization -->
+<xsl:template match="/">
+<libxslt:testplugin/>
+<xsl:value-of select="libxslt:testplugin('SUCCESS')"/>
+</xsl:template>
+</xsl:stylesheet>