You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by cr...@apache.org on 2003/08/31 08:54:04 UTC
cvs commit: xml-forrest/src/resources/skins/common/xslt/html book2menu.xsl
crossley 2003/08/30 23:54:04
Modified: . status.xml
src/resources/skins/common/xslt/html book2menu.xsl
Log:
Add "title" attribute to menu item links using the "description" attribute
from entries in site.xml or book.xml
PR: FOR-20
Submitted by: Ralf Hauser hauser<AT>acm.org
Revision Changes Path
1.191 +5 -0 xml-forrest/status.xml
Index: status.xml
===================================================================
RCS file: /home/cvs/xml-forrest/status.xml,v
retrieving revision 1.190
retrieving revision 1.191
diff -u -r1.190 -r1.191
--- status.xml 30 Aug 2003 05:26:48 -0000 1.190
+++ status.xml 31 Aug 2003 06:54:03 -0000 1.191
@@ -25,6 +25,11 @@
<changes>
<release version="0.5-dev" date="unreleased">
+ <action dev="DC" type="update" context="skins" fixes-bug="FOR-20"
+ due-to="Ralf Hauser" due-to-email="hauser@acm.org" >
+ Add "title" attribute to menu item links using the "description"
+ attribute from entries in site.xml or book.xml
+ </action>
<action dev="DC" type="update" context="skins"
due-to="Ramon Prades" due-to-email="rprades@porcelanosa.com" >
The generated Tables of Contents can be configured to show a certain
1.9 +9 -2 xml-forrest/src/resources/skins/common/xslt/html/book2menu.xsl
Index: book2menu.xsl
===================================================================
RCS file: /home/cvs/xml-forrest/src/resources/skins/common/xslt/html/book2menu.xsl,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- book2menu.xsl 8 Jan 2003 05:44:35 -0000 1.8
+++ book2menu.xsl 31 Aug 2003 06:54:04 -0000 1.9
@@ -20,7 +20,14 @@
</xsl:template>
<xsl:template name="unselected">
- <a href="{@href}"><xsl:value-of select="@label"/></a>
+ <a href="{@href}">
+ <xsl:if test="@description">
+ <xsl:attribute name="title">
+ <xsl:value-of select="@description"/>
+ </xsl:attribute>
+ </xsl:if>
+ <xsl:value-of select="@label"/>
+ </a>
</xsl:template>
<xsl:template name="print-external">