[Yanel-commits] rev 27728 -
public/yanel/trunk/src/resources/directory/xslt
simon at wyona.com
simon at wyona.com
Thu Sep 27 14:36:30 CEST 2007
Author: simon
Date: 2007-09-27 14:36:29 +0200 (Thu, 27 Sep 2007)
New Revision: 27728
Modified:
public/yanel/trunk/src/resources/directory/xslt/dir2xhtml.xsl
Log:
adding class to easy distinct between the different table fields. (e.g. for further xsl transformation)
Modified: public/yanel/trunk/src/resources/directory/xslt/dir2xhtml.xsl
===================================================================
--- public/yanel/trunk/src/resources/directory/xslt/dir2xhtml.xsl 2007-09-27 12:34:34 UTC (rev 27727)
+++ public/yanel/trunk/src/resources/directory/xslt/dir2xhtml.xsl 2007-09-27 12:36:29 UTC (rev 27728)
@@ -48,13 +48,13 @@
</tr>
</thead>
<tbody>
- <tr>
- <td sorttable_customkey="1">Parent </td>
- <td>
+ <tr class="parent">
+ <td class="type" sorttable_customkey="1">Parent </td>
+ <td class="name">
<a href="{$yarep.parent}" title="directory">..</a>
</td>
- <td> - </td>
- <td> - </td>
+ <td class="lastmodifier"> - </td>
+ <td class="size"> - </td>
</tr>
<xsl:apply-templates select="/dir:directory/*"/>
</tbody>
@@ -66,30 +66,30 @@
</xsl:template>
<xsl:template match="dir:directory">
- <tr>
- <td sorttable_customkey="Collection">Collection </td>
- <td>
+ <tr class="collection">
+ <td class="type" sorttable_customkey="Collection">Collection </td>
+ <td class="name">
<a href="{$yarep.back2realm}.{@path}/" title="directory">
<xsl:value-of select="@name"/>
</a>
</td>
- <td> - </td>
- <td sorttable_customkey="0"> - </td>
+ <td class="lastmodifier"> - </td>
+ <td class="size" sorttable_customkey="0"> - </td>
</tr>
</xsl:template>
<xsl:template match="dir:file">
- <tr>
- <td sorttable_customkey="Resource">Resource</td>
- <td>
+ <tr class="file">
+ <td class="type" sorttable_customkey="Resource">Resource</td>
+ <td class="name">
<a href="{$yarep.back2realm}.{@path}" title="file">
<xsl:value-of select="@name"/>
</a>
</td>
- <td>
+ <td class="lastmodifier">
<xsl:value-of select="@date"/>
</td>
- <td sorttable_customkey="{@size}">
+ <td class="size" sorttable_customkey="{@size}">
<xsl:call-template name="humanbyte">
<xsl:with-param name="bytes">
<xsl:value-of select="@size"/>
More information about the Yanel-commits
mailing list