You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by mi...@apache.org on 2003/09/01 09:21:50 UTC
cvs commit: cocoon-lenya/src/webapp/lenya/pubs/blog/xslt/feed main-authoring.xsl main-live.xsl
michi 2003/09/01 00:21:50
Modified: src/webapp/lenya/pubs/blog/xslt global.xsl
src/webapp/lenya/pubs/blog/xslt/entry main-authoring.xsl
main-live.xsl
src/webapp/lenya/pubs/blog/xslt/feed main-authoring.xsl
main-live.xsl
Log:
relative path problem simplified
Revision Changes Path
1.7 +4 -22 cocoon-lenya/src/webapp/lenya/pubs/blog/xslt/global.xsl
Index: global.xsl
===================================================================
RCS file: /home/cvs/cocoon-lenya/src/webapp/lenya/pubs/blog/xslt/global.xsl,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- global.xsl 29 Aug 2003 14:48:33 -0000 1.6
+++ global.xsl 1 Sep 2003 07:21:50 -0000 1.7
@@ -5,6 +5,8 @@
xmlns:echo="http://example.com/newformat#"
>
+<xsl:param name="relative2root"/>
+
<xsl:template match="cmsbody">
<html>
<head>
@@ -18,13 +20,7 @@
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td colspan="2" id="title">
- <a>
- <xsl:attribute name="href">
- <xsl:choose>
- <xsl:when test="$doctype='entry'">../../../../../index.html</xsl:when>
- <xsl:otherwise>../../index.html</xsl:otherwise>
- </xsl:choose>
- </xsl:attribute>
+ <a href="{$relative2root}/index.html">
<!-- FIXME: namespace -->
<xsl:value-of select="feed/title"/><xsl:value-of select="feed/echo:title"/>
</a>
@@ -47,23 +43,9 @@
<td valign="top" id="sidebar" width="30%">
<!--
-<div class="sidebar-title">Feeds</div>
-<div class="sidebar-content">
-<a href="index.xml">Echo Feed</a>
-<br />RSS Feed
-</div>
-
<div class="sidebar-title">Archives by Date</div>
<div class="sidebar-content">
-August 2003
-<br />July 2003
-<br />June 2003
-<br />May 2003
-<br />April 2003
-<br />March 2003
-<br />February 2003
-<br />January 2003
-<br />December 2002
+<a href="{$relative2root}/2003/07/">July 2003</a>
</div>
-->
1.3 +0 -2 cocoon-lenya/src/webapp/lenya/pubs/blog/xslt/entry/main-authoring.xsl
Index: main-authoring.xsl
===================================================================
RCS file: /home/cvs/cocoon-lenya/src/webapp/lenya/pubs/blog/xslt/entry/main-authoring.xsl,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- main-authoring.xsl 28 Aug 2003 10:19:05 -0000 1.2
+++ main-authoring.xsl 1 Sep 2003 07:21:50 -0000 1.3
@@ -4,8 +4,6 @@
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>
-<xsl:variable name="doctype">entry</xsl:variable>
-
<xsl:include href="../../../../xslt/menu/root.xsl"/>
<xsl:include href="../global.xsl"/>
1.3 +0 -2 cocoon-lenya/src/webapp/lenya/pubs/blog/xslt/entry/main-live.xsl
Index: main-live.xsl
===================================================================
RCS file: /home/cvs/cocoon-lenya/src/webapp/lenya/pubs/blog/xslt/entry/main-live.xsl,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- main-live.xsl 28 Aug 2003 10:19:05 -0000 1.2
+++ main-live.xsl 1 Sep 2003 07:21:50 -0000 1.3
@@ -4,8 +4,6 @@
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>
-<xsl:variable name="doctype">entry</xsl:variable>
-
<xsl:include href="../../../../xslt/menu/live-root.xsl"/>
<xsl:include href="../global.xsl"/>
1.3 +0 -2 cocoon-lenya/src/webapp/lenya/pubs/blog/xslt/feed/main-authoring.xsl
Index: main-authoring.xsl
===================================================================
RCS file: /home/cvs/cocoon-lenya/src/webapp/lenya/pubs/blog/xslt/feed/main-authoring.xsl,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- main-authoring.xsl 28 Aug 2003 10:19:05 -0000 1.2
+++ main-authoring.xsl 1 Sep 2003 07:21:50 -0000 1.3
@@ -4,8 +4,6 @@
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>
-<xsl:variable name="doctype">feed</xsl:variable>
-
<xsl:include href="../../../../xslt/menu/root.xsl"/>
<xsl:include href="../global.xsl"/>
1.3 +0 -2 cocoon-lenya/src/webapp/lenya/pubs/blog/xslt/feed/main-live.xsl
Index: main-live.xsl
===================================================================
RCS file: /home/cvs/cocoon-lenya/src/webapp/lenya/pubs/blog/xslt/feed/main-live.xsl,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- main-live.xsl 28 Aug 2003 10:19:05 -0000 1.2
+++ main-live.xsl 1 Sep 2003 07:21:50 -0000 1.3
@@ -4,8 +4,6 @@
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>
-<xsl:variable name="doctype">feed</xsl:variable>
-
<xsl:include href="../../../../xslt/menu/live-root.xsl"/>
<xsl:include href="../global.xsl"/>
---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-cvs-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-cvs-help@cocoon.apache.org