summaryrefslogtreecommitdiff
path: root/tools/regression/xsl_reports/test/restrict_to_library.xsl
diff options
context:
space:
mode:
authorMarshall Clow <marshall@idio.com>2013-02-04 18:11:49 +0000
committerMarshall Clow <marshall@idio.com>2013-02-04 18:11:49 +0000
commitc0c0b8b5662dd74e4142142ecebc934e0b7e063a (patch)
treebfbb9655acf44c1afcb69d8cadc123cf41a1f6b1 /tools/regression/xsl_reports/test/restrict_to_library.xsl
parentce5e16b6ae28e66369cdcfc6c416db64fd0298ba (diff)
parent155b6aef1c172236d7b4f3f2c48ba29253ee55e7 (diff)
downloadboost-c0c0b8b5662dd74e4142142ecebc934e0b7e063a.tar.gz
Release 1.53.0
[SVN r82734]
Diffstat (limited to 'tools/regression/xsl_reports/test/restrict_to_library.xsl')
-rw-r--r--tools/regression/xsl_reports/test/restrict_to_library.xsl36
1 files changed, 36 insertions, 0 deletions
diff --git a/tools/regression/xsl_reports/test/restrict_to_library.xsl b/tools/regression/xsl_reports/test/restrict_to_library.xsl
new file mode 100644
index 0000000000..8de3354d84
--- /dev/null
+++ b/tools/regression/xsl_reports/test/restrict_to_library.xsl
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="utf-8"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ version="1.0">
+
+ <xsl:output method="xml" encoding="ascii"/>
+ <xsl:param name="library"/>
+
+
+ <xsl:template match="/">
+ <xsl:message>
+ <xsl:value-of select="$library"/>
+ </xsl:message>
+ <xsl:apply-templates/>
+ </xsl:template>
+
+ <xsl:template match="*">
+ <xsl:copy>
+ <xsl:apply-templates select="@*"/>
+ <xsl:apply-templates />
+ </xsl:copy>
+ </xsl:template>
+
+ <xsl:template match="test-log">
+ <xsl:if test="@library=$library">
+ <xsl:copy>
+ <xsl:apply-templates select="@*"/>
+ <xsl:apply-templates/>
+ </xsl:copy>
+ </xsl:if>
+ </xsl:template>
+
+ <xsl:template match="@*">
+ <xsl:copy-of select="."/>
+ </xsl:template>
+
+</xsl:stylesheet>