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">
|
|
|
|
|
|
|
|
<xsl:template match="logfile">
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<link rel="stylesheet" href="logfile.css" type="text/css" />
|
|
|
|
<title>Log File</title>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<xsl:apply-templates/>
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
<xsl:template match="nest">
|
|
|
|
<div class='nesting'>
|
|
|
|
<div class='head'>
|
2004-03-16 12:47:09 +00:00
|
|
|
<xsl:apply-templates select='head'/>
|
2004-03-15 21:51:14 +00:00
|
|
|
</div>
|
|
|
|
<blockquote class='body'>
|
|
|
|
<xsl:for-each select='line|nest'>
|
|
|
|
<xsl:if test="position() != last()">
|
|
|
|
<table class='x'>
|
|
|
|
<tr class='x'>
|
|
|
|
<td class='dummy'>
|
|
|
|
<div class='dummy' />
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<xsl:apply-templates select='.'/>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</xsl:if>
|
|
|
|
<xsl:if test="position() = last()">
|
|
|
|
<table class='y'>
|
|
|
|
<tr class='y'>
|
|
|
|
<td class='dummy'>
|
|
|
|
<div class='dummy' />
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<xsl:apply-templates select='.'/>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</xsl:if>
|
|
|
|
</xsl:for-each>
|
|
|
|
</blockquote>
|
|
|
|
</div>
|
|
|
|
</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'>
|
|
|
|
<span class='z'><span class='popup'><xsl:apply-templates/></span></span>
|
|
|
|
<span class='elided'>(...)</span><xsl:apply-templates select='name'/><xsl:apply-templates select='path'/>
|
|
|
|
</em>
|
|
|
|
</xsl:template>
|
2004-03-15 21:51:14 +00:00
|
|
|
|
|
|
|
</xsl:stylesheet>
|