2004-03-15 21:51:14 +00:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
|
|
|
|
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
2004-03-18 14:58:16 +00:00
|
|
|
|
|
|
|
<xsl:output method='html' />
|
|
|
|
|
2004-03-15 21:51:14 +00:00
|
|
|
<xsl:template match="logfile">
|
|
|
|
<html>
|
|
|
|
<head>
|
2004-03-18 18:26:22 +00:00
|
|
|
<script type="text/javascript" src="treebits.js" />
|
2004-03-15 21:51:14 +00:00
|
|
|
<link rel="stylesheet" href="logfile.css" type="text/css" />
|
|
|
|
<title>Log File</title>
|
|
|
|
</head>
|
|
|
|
<body>
|
2004-03-18 14:58:16 +00:00
|
|
|
<ul class='toplevel'>
|
|
|
|
<xsl:for-each select='line|nest'>
|
|
|
|
<li>
|
|
|
|
<xsl:apply-templates select='.'/>
|
|
|
|
</li>
|
|
|
|
</xsl:for-each>
|
|
|
|
</ul>
|
2004-03-15 21:51:14 +00:00
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
<xsl:template match="nest">
|
2004-03-18 18:26:22 +00:00
|
|
|
<script type='text/javascript'>showTreeToggle("show","hide")</script>
|
2004-03-18 14:58:16 +00:00
|
|
|
<xsl:apply-templates select='head'/>
|
|
|
|
<ul class='nesting'>
|
|
|
|
<xsl:for-each select='line|nest'>
|
|
|
|
<xsl:param name="class"><xsl:choose><xsl:when test="position() != last()">line</xsl:when><xsl:otherwise>lastline</xsl:otherwise></xsl:choose></xsl:param>
|
|
|
|
<li class='{$class}'>
|
|
|
|
<span class='lineconn' />
|
|
|
|
<span class='linebody'>
|
|
|
|
<xsl:apply-templates select='.'/>
|
|
|
|
</span>
|
|
|
|
</li>
|
|
|
|
</xsl:for-each>
|
|
|
|
</ul>
|
2004-03-15 21:51:14 +00:00
|
|
|
</xsl:template>
|
|
|
|
|
2004-03-16 12:47:09 +00:00
|
|
|
<xsl:template match="head|line">
|
|
|
|
<code>
|
|
|
|
<xsl:apply-templates/>
|
2004-03-15 21:51:14 +00:00
|
|
|
</code>
|
|
|
|
</xsl:template>
|
2004-03-16 12:47:09 +00:00
|
|
|
|
|
|
|
<xsl:template match="storeref">
|
|
|
|
<em class='storeref'>
|
2004-03-17 16:52:48 +00:00
|
|
|
<span class='popup'><xsl:apply-templates/></span>
|
|
|
|
<span class='elided'>/...</span><xsl:apply-templates select='name'/><xsl:apply-templates select='path'/>
|
2004-03-16 12:47:09 +00:00
|
|
|
</em>
|
|
|
|
</xsl:template>
|
2004-03-15 21:51:14 +00:00
|
|
|
|
|
|
|
</xsl:stylesheet>
|