diff options
author | Miika Turkia <miika.turkia@gmail.com> | 2016-12-31 15:13:27 +0200 |
---|---|---|
committer | Miika Turkia <miika.turkia@gmail.com> | 2016-12-31 15:13:27 +0200 |
commit | e70d271d440052b9504b5b66593476d298b57eea (patch) | |
tree | 384d39902f7509ffe80ed876e33412cfe60c0f9f /xslt | |
parent | 2ce1b4e668defe171d734dd7a34533cd7c1df422 (diff) | |
download | subsurface-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.xslt | 10 |
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> |