You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xang-cvs@xml.apache.org by md...@locus.apache.org on 2000/06/22 02:13:41 UTC
cvs commit: xml-xang/java/samples/fs2http/layouts fs2http.xsl
mdierken 00/06/21 17:13:40
Modified: java/samples/fs2http/layouts fs2http.xsl
Log:
Update with 'add folder'
Revision Changes Path
1.2 +23 -13 xml-xang/java/samples/fs2http/layouts/fs2http.xsl
Index: fs2http.xsl
===================================================================
RCS file: /home/cvs/xml-xang/java/samples/fs2http/layouts/fs2http.xsl,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- fs2http.xsl 2000/06/21 21:21:50 1.1
+++ fs2http.xsl 2000/06/22 00:13:39 1.2
@@ -19,7 +19,10 @@
</font>
<a href='./?do:method=load'>Refresh</a>
<hr />
-<xsl:apply-templates mode="outer" select='*[@name]' />
+<table cellspacing='0'>
+<xsl:apply-templates mode="outer" select='FOLDER[@name]' />
+<xsl:apply-templates mode="outer" select='CONTENT[@name]' />
+</table>
</BODY>
</HTML>
@@ -38,21 +41,17 @@
</font>
<!-- do all parents -->
-<xsl:for-each select='..' >
- <a>
- <xsl:attribute name='href'>
- ..
- </xsl:attribute>
- <xsl:value-of select='@title' />
- </a>
-
-</xsl:for-each>
+<a href='..'>Up</a>
|
<a href='./?do:method=load'>Refresh</a>
+|
+<a href='?layout=folder_add.xsl' >Add Folder </a>
<hr />
+<table cellspacing='0'>
<xsl:apply-templates mode="outer" select='FOLDER[@name]' />
<xsl:apply-templates mode="outer" select='CONTENT[@name]' />
+</table>
</BODY>
</HTML>
@@ -60,25 +59,36 @@
<!-- Template for FOLDER in a list -->
<xsl:template match='FOLDER' mode="outer">
+<tr>
+<td>
<img src='/xap/images/folder.gif' />
+</td>
+<td>
<a>
<xsl:attribute name='href'>
<xsl:value-of select='@name' />/
</xsl:attribute>
<xsl:value-of select='@title' />
</a>
- <br />
+</td>
+</tr>
</xsl:template>
<xsl:template match='CONTENT' mode="outer">
+<tr>
+<td>
<img src='/xap/images/file.gif' />
+</td>
+<td>
<a>
<xsl:attribute name='href'>
- <xsl:value-of select='@name' />/
+ <xsl:value-of select='@uri' />
</xsl:attribute>
<xsl:value-of select='@title' />
</a>
- <br />
+</td>
+</tr>
+
</xsl:template>
<xsl:template match='*' mode="outer">