blob: 4a9a6f4527beacfc19b9b0e3cd4b9522c0c0ea76 (
plain) (
tree)
|
|
<?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'>
<xsl:apply-templates select='head'/>
</div>
<blockquote class='body'>
<xsl:for-each select='line|nest'>
<xsl:if test="position() != last()">
<div class='line'>
<span class='lineconn' />
<span class='linebody'>
<xsl:apply-templates select='.'/>
</span>
</div>
</xsl:if>
<xsl:if test="position() = last()">
<div class='lastline'>
<span class='lineconn' />
<span class='linebody'>
<xsl:apply-templates select='.'/>
</span>
</div>
</xsl:if>
</xsl:for-each>
</blockquote>
</div>
</xsl:template>
<xsl:template match="head|line">
<code>
<xsl:apply-templates/>
</code>
</xsl:template>
<xsl:template match="storeref">
<em class='storeref'>
<span class='popup'><xsl:apply-templates/></span>
<span class='elided'>/...</span><xsl:apply-templates select='name'/><xsl:apply-templates select='path'/>
</em>
</xsl:template>
</xsl:stylesheet>
|