summaryrefslogtreecommitdiff
path: root/xsl/merge.xsl
diff options
context:
space:
mode:
authorAnas Nashif <anas.nashif@intel.com>2012-11-09 11:48:16 -0800
committerAnas Nashif <anas.nashif@intel.com>2012-11-09 11:48:16 -0800
commitef5ad170c286b22d8c95037e9a8850b26a278650 (patch)
tree9a9aa651569d68602fb451af268ee4de789b726c /xsl/merge.xsl
parent9a891af402f71f4a3e7aa552e027402d5d3d0d96 (diff)
downloadpattern-tools-ef5ad170c286b22d8c95037e9a8850b26a278650.tar.gz
pattern-tools-ef5ad170c286b22d8c95037e9a8850b26a278650.tar.bz2
pattern-tools-ef5ad170c286b22d8c95037e9a8850b26a278650.zip
initial checkin 001
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>