diff options
Diffstat (limited to 'tools/regression/xsl_reports/test/restrict_to_library.xsl')
-rw-r--r-- | tools/regression/xsl_reports/test/restrict_to_library.xsl | 36 |
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> |