summaryrefslogtreecommitdiff
path: root/xsl/merge.xsl
diff options
context:
space:
mode:
Diffstat (limited to 'xsl/merge.xsl')
-rw-r--r--xsl/merge.xsl13
1 files changed, 13 insertions, 0 deletions
diff --git a/xsl/merge.xsl b/xsl/merge.xsl
new file mode 100644
index 0000000..15b3487
--- /dev/null
+++ b/xsl/merge.xsl
@@ -0,0 +1,13 @@
+<xsl:stylesheet version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+ <xsl:template match="/">
+ <patterns>
+ <xsl:attribute name="count">
+ <xsl:value-of select="count(/index/file)"/>
+ </xsl:attribute>
+ <xsl:for-each select="/index/file">
+ <xsl:copy-of select="document(.)"/>
+ </xsl:for-each>
+ </patterns>
+ </xsl:template>
+</xsl:stylesheet>