Added snippet stylesheet test.
authorAdam Dickmeiss <adam@indexdata.dk>
Tue, 7 Jun 2005 11:38:16 +0000 (11:38 +0000)
committerAdam Dickmeiss <adam@indexdata.dk>
Tue, 7 Jun 2005 11:38:16 +0000 (11:38 +0000)
test/xslt/Makefile.am
test/xslt/snippet.xsl [new file with mode: 0644]

index 363a172..8936ba8 100644 (file)
@@ -1,9 +1,10 @@
-# $Id: Makefile.am,v 1.5 2005-06-01 14:42:29 adam Exp $
+# $Id: Makefile.am,v 1.6 2005-06-07 11:38:16 adam Exp $
 
 check_PROGRAMS = xslt1 xslt2 xslt3
 TESTS = $(check_PROGRAMS)
 
-EXTRA_DIST=zebra.cfg marc-col.xml marc-one.xml index.xsl id.xsl marcschema.xml
+EXTRA_DIST=zebra.cfg marc-col.xml marc-one.xml index.xsl id.xsl \
+ marcschema.xml snippet.xsl
 
 xslt1_SOURCES = xslt1.c
 xslt2_SOURCES = xslt2.c
diff --git a/test/xslt/snippet.xsl b/test/xslt/snippet.xsl
new file mode 100644 (file)
index 0000000..6d027ea
--- /dev/null
@@ -0,0 +1,17 @@
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ version="1.0">
+<!-- Identity transform stylesheet -->
+
+<xsl:param name="snippet" select="''"/>
+<xsl:output indent="yes"
+      method="xml"
+      version="1.0"
+      encoding="UTF-8"/>
+
+ <xsl:template match="/">
+   <snippet>
+     <xsl:copy-of select="$snippet"/>
+   </snippet>
+ </xsl:template>
+
+</xsl:stylesheet>