<?xml version="1.0" encoding="utf-8"?> <xsl:stylesheet version="1.0" xmlns="http://www.w3.org/1999/xhtml" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >
<xsl:output
encoding="utf-8"
indent="yes"
media-type="text/xml"
omit-xml-declaration="yes"
standalone="no" />
<xsl:param name="cmd" />
<xsl:template match="/">
<div>
<xsl:choose>
<xsl:when test="/InternalMessage"><xsl:call-template name="app_message" /></xsl:when>
<xsl:otherwise>
<h1>Unknown Input</h1>
<p>Command: <xsl:value-of select="$cmd"/></p>
<p>Server Response:</p>
<p><textarea id="RawServerResponse"><xsl:copy-of select="/" /></textarea></p>
</xsl:otherwise>
</xsl:choose>
</div>
</xsl:template>
<xsl:template name="app_message">
<h1><xsl:value-of select="//Header"/></h1>
<xsl:for-each select="//Line">
<p><xsl:value-of select="node()"/></p>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>