<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ms="urn:schemas-microsoft-com:xslt" xmlns:specter="urn:specter-instruments">
    <xsl:output method="text"/>
    <ms:script language="C#" implements-prefix="specter">
        <![CDATA[              
             public string localTime(String str)
             {
                DateTime dt = DateTime.Parse(str);
                return dt.ToLocalTime().ToString("G");
             }
        ]]>
    </ms:script>
  <xsl:template match="/">
  <xsl:value-of select="NotificationEvent/AlarmEvent/Condition/Description"/>
  <xsl:text>
Value: </xsl:text>
  <xsl:value-of select="NotificationEvent/AlarmEvent/Vtq/Value"/>
    <xsl:text>
Time: </xsl:text>
    <xsl:value-of select="specter:localTime(NotificationEvent/AlarmEvent/Vtq/EventTime)"/>
  </xsl:template>
</xsl:stylesheet>