cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jer...@apache.org
Subject svn commit: r694404 - /cocoon/branches/BRANCH_2_1_X-dojo1_1/src/webapp/samples/common/style/xsl/html/adding-header.xsl
Date Thu, 11 Sep 2008 18:37:12 GMT
Author: jeremy
Date: Thu Sep 11 11:37:11 2008
New Revision: 694404

URL: http://svn.apache.org/viewvc?rev=694404&view=rev
Log:
was disposing of the body tag

Modified:
    cocoon/branches/BRANCH_2_1_X-dojo1_1/src/webapp/samples/common/style/xsl/html/adding-header.xsl

Modified: cocoon/branches/BRANCH_2_1_X-dojo1_1/src/webapp/samples/common/style/xsl/html/adding-header.xsl
URL: http://svn.apache.org/viewvc/cocoon/branches/BRANCH_2_1_X-dojo1_1/src/webapp/samples/common/style/xsl/html/adding-header.xsl?rev=694404&r1=694403&r2=694404&view=diff
==============================================================================
--- cocoon/branches/BRANCH_2_1_X-dojo1_1/src/webapp/samples/common/style/xsl/html/adding-header.xsl
(original)
+++ cocoon/branches/BRANCH_2_1_X-dojo1_1/src/webapp/samples/common/style/xsl/html/adding-header.xsl
Thu Sep 11 11:37:11 2008
@@ -23,12 +23,15 @@
   <!-- assume that sitemapURIs don't occur in servletPath more than once -->
   <xsl:variable name="sitemap" select="concat($directory,'sitemap.xmap')"/>
   <xsl:template match="body">
-    <div style="text-align:right;width:100%;">
-      <a href="?cocoon-view=content">Content View</a> |
-      <a href="?cocoon-view=pretty-content">Source</a> |
-      <a href="{$sitemap}?cocoon-view=pretty-content">Sitemap</a>
-    </div>
-    <xsl:apply-templates/>
+    <xsl:copy>
+      <xsl:apply-templates select="@*"/>
+      <div style="text-align:right;width:100%;">
+        <a href="?cocoon-view=content">Content View</a> |
+        <a href="?cocoon-view=pretty-content">Source</a> |
+        <a href="{$sitemap}?cocoon-view=pretty-content">Sitemap</a>
+      </div>
+      <xsl:apply-templates/>
+    </xsl:copy>
   </xsl:template>
   <xsl:template match="@*|node()" priority="-2">
     <xsl:copy>



Mime
View raw message