bdelacretaz 2003/05/07 23:51:42
Modified: src/webapp/samples/slides/stylesheets navigation.xsl
Log:
slides sample fixed, inter-slide links did not work
Revision Changes Path
1.2 +17 -17
cocoon-2.1/src/webapp/samples/slides/stylesheets/navigation.xsl
Index: navigation.xsl
===================================================================
RCS file:
/home/cvs/cocoon-2.1/src/webapp/samples/slides/stylesheets/navigation.xsl,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- navigation.xsl 26 Mar 2003 21:21:42 -0000 1.1
+++ navigation.xsl 8 May 2003 06:51:42 -0000 1.2
@@ -13,10 +13,10 @@
<xsl:value-of select="title"/>
</title>
<navigation>
- <next href="?section=1"/>
+ <next href="./slides?section=1"/>
</navigation>
<layout>
- <title><a href="?section=1"><xsl:value-of
select="title"/></a></title>
+ <title><a href="./slides?section=1"><xsl:value-of
select="title"/></a></title>
<subtitle>
<xsl:for-each select="authors/person">
<xsl:value-of select="name"/>
@@ -55,18 +55,18 @@
<xsl:value-of select="count(//section[position() = ($section -
1)]/slide)"/>
</xsl:variable>
- <home href="slides"/>
+ <home href="./slides"/>
<xsl:if test="$section!=1">
- <previous-section href="?section={$section - 1}"/>
- <previous href="?section={$section - 1}&slide={$previous-last}"/>
+ <previous-section href="./slides?section={$section - 1}"/>
+ <previous href="./slides?section={$section -
1}&slide={$previous-last}"/>
</xsl:if>
<xsl:if test="$section!=$last">
- <next-section href="?section={$section + 1}"/>
+ <next-section href="./slides?section={$section + 1}"/>
</xsl:if>
- <next href="?section={$section}&slide=1"/>
+ <next href="./slides?section={$section}&slide=1"/>
</navigation>
<layout>
@@ -93,27 +93,27 @@
<xsl:value-of select="count(//section[position() = ($section -
1)]/slide)"/>
</xsl:variable>
- <home href="?section={$section}"/>
+ <home href="./slides?section={$section}"/>
<xsl:if test="$slide!=1">
- <previous href="?section={$section}&slide={$slide - 1}"/>
+ <previous href="./slides?section={$section}&slide={$slide - 1}"/>
</xsl:if>
<xsl:if test="($slide=1)">
- <previous href="?section={$section}"/>
+ <previous href="./slides?section={$section}"/>
</xsl:if>
<xsl:if test="$slide!=$last">
- <next href="?section={$section}&slide={$slide + 1}"/>
+ <next href="./slides?section={$section}&slide={$slide + 1}"/>
</xsl:if>
<xsl:if test="($slide=$last) and ($section!=$last-section)">
- <next href="?section={$section + 1}"/>
+ <next href="./slides?section={$section + 1}"/>
</xsl:if>
<xsl:if test="$section!=1">
- <previous-section href="?section={$section - 1}"/>
+ <previous-section href="./slides?section={$section - 1}"/>
</xsl:if>
<xsl:if test="$section!=$last-section">
- <next-section href="?section={$section + 1}"/>
+ <next-section href="./slides?section={$section + 1}"/>
</xsl:if>
</navigation>
@@ -121,11 +121,11 @@
<xsl:apply-templates/>
</layout>
</xsl:template>
-
+
<xsl:template match="*|@*|text()">
<xsl:copy>
<xsl:apply-templates select="*|@*|text()"/>
</xsl:copy>
</xsl:template>
-
-</xsl:stylesheet>
+
+</xsl:stylesheet>
\ No newline at end of file