-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
-<xsl:template match="/">
-<HTML>
-<HEAD>
<link href="/siha/styles/prettycontent.css" type="text/css" rel="stylesheet"/>
<script src="/siha/scripts/prettycontent.js" type="text/javascript"/>
</HEAD>
-<BODY>
<xsl:apply-templates/>
</BODY>
</HTML>
</xsl:template>
-<!--
 match processing instructions 
-->
-<xsl:template match="processing-instruction()">
-<DIV class="e">
<SPAN class="m"><?</SPAN>
-<SPAN class="pi">
<xsl:value-of select="name(.)"/>
<xsl:text> </xsl:text>
<xsl:value-of select="."/>
</SPAN>
<SPAN class="m">?></SPAN>
</DIV>
</xsl:template>
-<!--
 match text 
-->
-<xsl:template match="text()">
-<DIV class="e">
-<SPAN class="t">
<xsl:value-of select="."/>
</SPAN>
</DIV>
</xsl:template>
-<!--
 match comments 
-->
-<xsl:template match="comment()">
-<DIV class="e">
<SPAN class="b" onclick="xml2htmlToggle(event)">-</SPAN>
<SPAN class="m"><!--</SPAN>
-<SPAN class="c">
-<PRE>
<xsl:value-of select="."/>
</PRE>
</SPAN>
<SPAN class="m">--></SPAN>
</DIV>
</xsl:template>
-<!--
 match attributes 
-->
-<xsl:template match="@*">
-<SPAN class="an">
<xsl:value-of select="name(.)"/>
</SPAN>
<SPAN class="m">="</SPAN>
-<SPAN class="av">
<xsl:value-of select="."/>
</SPAN>
<SPAN class="m">"</SPAN>
-<xsl:if test="position()!=last()">
<xsl:text> </xsl:text>
</xsl:if>
</xsl:template>
-<!--
 match empty elements 
-->
-<xsl:template match="*[not(node())]">
-<DIV class="e">
<SPAN class="m"><</SPAN>
-<SPAN class="en">
<xsl:value-of select="name(.)"/>
</SPAN>
-<xsl:if test="@*">
<xsl:text> </xsl:text>
</xsl:if>
<xsl:apply-templates select="@*"/>
<xsl:apply-templates select="." mode="namespace"/>
<SPAN class="m">/></SPAN>
</DIV>
</xsl:template>
-<!--
 match elements with only text(), they are not closeable 
-->
-<xsl:template match="*[text()][not(* or comment() or processing-instruction())]" priority="10">
-<DIV class="e">
<SPAN class="m"><</SPAN>
-<SPAN class="en">
<xsl:value-of select="name(.)"/>
</SPAN>
-<xsl:if test="@*">
<xsl:text> </xsl:text>
</xsl:if>
<xsl:apply-templates select="@*"/>
<xsl:apply-templates select="." mode="namespace"/>
-<SPAN class="m">
<xsl:text>></xsl:text>
</SPAN>
-<SPAN class="t">
<xsl:value-of select="."/>
</SPAN>
<SPAN class="m"></</SPAN>
-<SPAN class="en">
<xsl:value-of select="name(.)"/>
</SPAN>
-<SPAN class="m">
<xsl:text>></xsl:text>
</SPAN>
</DIV>
</xsl:template>
-<xsl:template match="*[node()]">
-<DIV class="e">
-<DIV>
<SPAN class="b" onclick="xml2htmlToggle(event)">-</SPAN>
<SPAN class="m"><</SPAN>
-<SPAN class="en">
<xsl:value-of select="name(.)"/>
</SPAN>
-<xsl:if test="@*">
<xsl:text> </xsl:text>
</xsl:if>
<xsl:apply-templates select="@*"/>
<xsl:apply-templates select="." mode="namespace"/>
-<SPAN class="m">
<xsl:text>></xsl:text>
</SPAN>
</DIV>
-<DIV>
<xsl:apply-templates/>
-<DIV>
<SPAN class="m"></</SPAN>
-<SPAN class="en">
<xsl:value-of select="name(.)"/>
</SPAN>
-<SPAN class="m">
<xsl:text>></xsl:text>
</SPAN>
</DIV>
</DIV>
</DIV>
</xsl:template>
-<xsl:template match="*" mode="namespace">
<xsl:variable name="context" select="."/>
-<xsl:for-each select="namespace::node()">
<xsl:variable name="nsuri" select="."/>
<xsl:variable name="nsprefix" select="name()"/>
-<xsl:choose>
-<xsl:when test="$nsprefix = 'xml'">
-<!--
 xml namespace 
-->
</xsl:when>
-<xsl:when test="$context/../namespace::node()[name() = $nsprefix and . = $nsuri]">
-<!--
 namespace already declared on the parent 
-->
</xsl:when>
-<xsl:otherwise>
<xsl:text> </xsl:text>
-<SPAN class="an">
<xsl:text>xmlns</xsl:text>
-<xsl:if test="$nsprefix">
<xsl:text>:</xsl:text>
<xsl:value-of select="$nsprefix"/>
</xsl:if>
</SPAN>
<SPAN class="m">="</SPAN>
-<SPAN class="av">
<xsl:value-of select="."/>
</SPAN>
<SPAN class="m">"</SPAN>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>