You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by vg...@apache.org on 2003/05/20 02:50:54 UTC
cvs commit: cocoon-2.1/src/webapp/samples/common/style/xsl/html simple-page2html.xsl
vgritsenko 2003/05/19 17:50:54
Modified: src/webapp/samples/common/style/xsl/html
simple-page2html.xsl
Log:
move resource links to the right
Revision Changes Path
1.5 +13 -15 cocoon-2.1/src/webapp/samples/common/style/xsl/html/simple-page2html.xsl
Index: simple-page2html.xsl
===================================================================
RCS file: /home/cvs/cocoon-2.1/src/webapp/samples/common/style/xsl/html/simple-page2html.xsl,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- simple-page2html.xsl 30 Mar 2003 12:48:33 -0000 1.4
+++ simple-page2html.xsl 20 May 2003 00:50:54 -0000 1.5
@@ -26,31 +26,30 @@
<xsl:template match="page">
<html>
- <link rel="stylesheet" href="{$contextPath}/styles/main.css" title="Default Style"/>
- <head>
- <title>
- <xsl:value-of select="title"/>
- </title>
- </head>
- <body>
- <xsl:call-template name="resources"/>
- <xsl:apply-templates/>
- </body>
+ <head>
+ <title><xsl:value-of select="title"/></title>
+ <link rel="stylesheet" href="{$contextPath}/styles/main.css" title="Default Style"/>
+ </head>
+ <body>
+ <xsl:call-template name="resources"/>
+ <xsl:apply-templates/>
+ </body>
</html>
</xsl:template>
<xsl:template name="resources">
<div class="resources">
- <table width="100%">
+ <table width="100%" cellpadding="3">
<tbody>
<tr>
- <td>
+ <td width="90%"> </td>
+ <td nowrap="nowrap">
<a target="_blank" href="{concat($contextPath,$servletPath,'?cocoon-view=content')}">Content View</a>
</td>
- <td>
+ <td nowrap="nowrap">
<a target="_blank" href="{concat($path,$view-source)}">Source</a>
</td>
- <td>
+ <td nowrap="nowrap">
<a target="_blank" href="{concat($path,$sitemap)}">Sitemap</a>
</td>
<xsl:for-each select="resources/resource">
@@ -106,5 +105,4 @@
<xsl:template match="@*|node()" priority="-2"><xsl:copy><xsl:apply-templates select="@*|node()"/></xsl:copy></xsl:template>
<xsl:template match="text()" priority="-1"><xsl:value-of select="."/></xsl:template>
-
</xsl:stylesheet>