diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2005-10-05T09·42+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2005-10-05T09·42+0000 |
commit | 0e38578433f5626a33647d8d1332affe1b10b94c (patch) | |
tree | 03a24d5186436c1ae25b5fc4cd0529582eeb31f1 /src/nix-log2xml/mark-errors.xsl | |
parent | d47e03fccd1807edb6199cbe0736872d0db3b017 (diff) |
* log2xml -> nix-log2xml.
Diffstat (limited to 'src/nix-log2xml/mark-errors.xsl')
-rw-r--r-- | src/nix-log2xml/mark-errors.xsl | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/nix-log2xml/mark-errors.xsl b/src/nix-log2xml/mark-errors.xsl new file mode 100644 index 000000000000..4e91913e570a --- /dev/null +++ b/src/nix-log2xml/mark-errors.xsl @@ -0,0 +1,24 @@ +<?xml version="1.0"?> + +<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> + + <xsl:template match="@*|node()"> + <xsl:copy> + <xsl:apply-templates select="@*|node()"/> + </xsl:copy> + </xsl:template> + + <xsl:template match="line"> + <line> + <xsl:if test="contains(text(), ' *** ') or + contains(text(), 'LaTeX Error') or + contains(text(), 'FAIL:') or + contains(text(), ' error: ') or + true"> + <xsl:attribute name="error"></xsl:attribute> + </xsl:if> + <xsl:apply-templates select="@*|node()"/> + </line> + </xsl:template> + +</xsl:stylesheet> \ No newline at end of file |