2024-03-23 15:27:10 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
|
|
|
<xsl:param name="directory"/>
|
|
|
|
|
|
|
|
<xsl:template match="/">
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8"/>
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
|
|
<title>TempleOS files</title>
|
|
|
|
<link rel="stylesheet" href="/style/templeos.css"/>
|
|
|
|
</head>
|
|
|
|
<body>
|
2024-03-24 10:10:31 +00:00
|
|
|
<pre id="content" style="max-width: 100%;">
|
2024-03-23 15:27:10 +00:00
|
|
|
<p>Index of <script>document.write(location.pathname.substr(3));</script></p>
|
|
|
|
|
|
|
|
<a href=".." style="color: #aa00aa;">..</a>
|
|
|
|
<br/>
|
|
|
|
|
|
|
|
<xsl:for-each select="list/*">
|
|
|
|
<xsl:variable name="name">
|
|
|
|
<xsl:value-of select="."/>
|
|
|
|
</xsl:variable>
|
|
|
|
|
|
|
|
<xsl:choose>
|
2024-03-24 21:24:44 +00:00
|
|
|
<xsl:when test="contains($name, '.HTML')">
|
2024-03-23 15:27:10 +00:00
|
|
|
<a href="{$name}" style="color: #5555ff;"><xsl:value-of select="substring-before($name, '.HTML')"/></a>
|
2024-03-24 21:24:44 +00:00
|
|
|
<br/>
|
2024-03-23 15:27:10 +00:00
|
|
|
</xsl:when>
|
|
|
|
|
|
|
|
<xsl:otherwise>
|
|
|
|
<xsl:choose>
|
2024-03-24 21:24:44 +00:00
|
|
|
<xsl:when test="contains($name, '.HC')"></xsl:when>
|
2024-03-23 15:27:10 +00:00
|
|
|
|
|
|
|
<xsl:otherwise>
|
2024-03-24 21:24:44 +00:00
|
|
|
<xsl:choose>
|
|
|
|
<xsl:when test="contains($name, '.')">
|
|
|
|
<a href="{$name}" style="color: #5555ff;"><xsl:value-of select="."/></a>
|
|
|
|
<br/>
|
|
|
|
</xsl:when>
|
|
|
|
|
|
|
|
<xsl:otherwise>
|
|
|
|
<a href="{$name}" style="color: #aa00aa;">+] <xsl:value-of select="."/></a>
|
|
|
|
<br/>
|
|
|
|
</xsl:otherwise>
|
|
|
|
</xsl:choose>
|
2024-03-23 15:27:10 +00:00
|
|
|
</xsl:otherwise>
|
|
|
|
</xsl:choose>
|
|
|
|
</xsl:otherwise>
|
|
|
|
</xsl:choose>
|
|
|
|
</xsl:for-each>
|
|
|
|
</pre>
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
</xsl:template>
|
|
|
|
</xsl:stylesheet>
|
|
|
|
|