You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by je...@apache.org on 2003/04/02 13:01:33 UTC
cvs commit: xml-forrest/src/resources/skins/common/xslt/html tab2menu.xsl tabutils.xsl
jefft 2003/04/02 03:01:33
Modified: src/resources/skins/common/xslt/html tab2menu.xsl
tabutils.xsl
Log:
- Use a more accurate template name
- Improve XSLT comments
Revision Changes Path
1.6 +3 -3 xml-forrest/src/resources/skins/common/xslt/html/tab2menu.xsl
Index: tab2menu.xsl
===================================================================
RCS file: /home/cvs/xml-forrest/src/resources/skins/common/xslt/html/tab2menu.xsl,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- tab2menu.xsl 9 Feb 2003 16:18:50 -0000 1.5
+++ tab2menu.xsl 2 Apr 2003 11:01:32 -0000 1.6
@@ -124,7 +124,7 @@
<xsl:template name="base-selected">
<a>
<xsl:attribute name="href">
- <xsl:call-template name="unselected-tab-href">
+ <xsl:call-template name="calculate-tab-href">
<xsl:with-param name="tab" select="."/>
<xsl:with-param name="path" select="$path"/>
</xsl:call-template>
@@ -139,7 +139,7 @@
<xsl:template name="base-not-selected">
<a>
<xsl:attribute name="href">
- <xsl:call-template name="unselected-tab-href">
+ <xsl:call-template name="calculate-tab-href">
<xsl:with-param name="tab" select="."/>
<xsl:with-param name="path" select="$path"/>
</xsl:call-template>
1.2 +12 -2 xml-forrest/src/resources/skins/common/xslt/html/tabutils.xsl
Index: tabutils.xsl
===================================================================
RCS file: /home/cvs/xml-forrest/src/resources/skins/common/xslt/html/tabutils.xsl,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- tabutils.xsl 16 Nov 2002 20:58:12 -0000 1.1
+++ tabutils.xsl 2 Apr 2003 11:01:32 -0000 1.2
@@ -1,7 +1,17 @@
-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+<?xml version="1.0"?>
+
+<!--
+Some callable templates useful when dealing with tab paths. Mostly used in
+tab2menu.xsl
+-->
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
- <xsl:template name="unselected-tab-href">
+ <!-- Given the current path and a tabs.xml entry, returns a relative path to
+ the specified tab's URL. When rendering a set of tabs, this template will be
+ called once per tab.
+ -->
+ <xsl:template name="calculate-tab-href">
<xsl:param name="dir_index" select="'index.html'"/>