You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by gi...@locus.apache.org on 2000/05/25 00:38:08 UTC
cvs commit: xml-cocoon/samples/stylesheets simple-directory2html.xsl
giacomo 00/05/24 15:38:06
Modified: samples/stylesheets Tag: xml-cocoon2
simple-directory2html.xsl
Log:
Changed due to new DirectoryGenerator
Revision Changes Path
No revision
No revision
1.1.2.2 +18 -7 xml-cocoon/samples/stylesheets/Attic/simple-directory2html.xsl
Index: simple-directory2html.xsl
===================================================================
RCS file: /home/cvs/xml-cocoon/samples/stylesheets/Attic/simple-directory2html.xsl,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -u -r1.1.2.1 -r1.1.2.2
--- simple-directory2html.xsl 2000/03/20 22:04:40 1.1.2.1
+++ simple-directory2html.xsl 2000/05/24 22:38:03 1.1.2.2
@@ -4,37 +4,48 @@
<xsl:template match="/">
<html>
- <head>
- <title><xsl:value-of select="@name"/></title>
+ <head>
+ <title><xsl:value-of select="dir:directory/@name"/></title>
</head>
<body bgcolor="#ffffff">
- <h1>Directory Listing <xsl:value-of select="@name"/></h1>
+ <h1>Directory Listing of <xsl:value-of select="dir:directory/@name"/></h1>
<table border="0">
<tr>
<td>
<a href="../"><i>parent directory</i></a>
</td>
</tr>
+ <tr>
+ <td>
+  
+ </td>
+ </tr>
<xsl:apply-templates/>
</table>
</body>
</html>
</xsl:template>
- <xsl:template match="dir:directory">
+ <xsl:template match="dir:directory/dir:directory">
<tr>
<td>
- <a href="{@name}"><i><xsl:apply-templates/></i></a>
+ <a href="{@name}/"><i><xsl:value-of select="@name"/></i></a>
</td>
+ <td>
+ <xsl:value-of select="@date"/>
+ </td>
</tr>
</xsl:template>
<xsl:template match="dir:file">
<tr>
+ <td>
+ <a href="{@name}"><xsl:value-of select="@name"/></a>
+ </td>
<td>
- <a href="{@name}"><xsl:apply-templates/></a>
+ <xsl:value-of select="@date"/>
</td>
</tr>
</xsl:template>
-</xsl:stylesheet>
\ No newline at end of file
+</xsl:stylesheet>