summaryrefslogtreecommitdiffstats
path: root/xslt
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2016-12-31 15:13:27 +0200
committerGravatar Miika Turkia <miika.turkia@gmail.com>2016-12-31 15:13:27 +0200
commite70d271d440052b9504b5b66593476d298b57eea (patch)
tree384d39902f7509ffe80ed876e33412cfe60c0f9f /xslt
parent2ce1b4e668defe171d734dd7a34533cd7c1df422 (diff)
downloadsubsurface-e70d271d440052b9504b5b66593476d298b57eea.tar.gz
Import AV1 alerts
This imports the events from AV1 using the original event description. Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Diffstat (limited to 'xslt')
-rw-r--r--xslt/av1.xslt10
1 files changed, 10 insertions, 0 deletions
diff --git a/xslt/av1.xslt b/xslt/av1.xslt
index 1569a46f6..015832fa9 100644
--- a/xslt/av1.xslt
+++ b/xslt/av1.xslt
@@ -58,6 +58,16 @@
<xsl:value-of select="substring-before(substring-after($line, '= '), ' ')"/>
</xsl:attribute>
</xsl:when>
+ <xsl:when test="substring-before($line, '=') = 'Alert'">
+ <event>
+ <xsl:attribute name="time">
+ <xsl:value-of select="substring-before($remaining, ' ')"/>
+ </xsl:attribute>
+ <xsl:attribute name="name">
+ <xsl:value-of select="substring-after($line, '= ')"/>
+ </xsl:attribute>
+ </event>
+ </xsl:when>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>