lenya/src/webapp/lenya/pubs/docs-new/skins/lenya-site/xslt/html tab2menu.xsl,1.2,1.3
Andreas Hartmann <[email protected]>
| Newsgroups | gmane.comp.cms.wyona.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /repository/lenya/src/webapp/lenya/pubs/docs-new/skins/lenya-site/xslt/html
In directory erbium:/tmp/cvs-serv16399/src/webapp/lenya/pubs/docs-new/skins/lenya-site/xslt/html
Modified Files:
tab2menu.xsl
Log Message:
- formatting of roadmap changed
- homepage-specific forrest pipelines
- homepage-specific tab changes
Index: tab2menu.xsl
===================================================================
RCS file: /repository/lenya/src/webapp/lenya/pubs/docs-new/skins/lenya-site/xslt/html/tab2menu.xsl,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** tab2menu.xsl 8 May 2003 12:03:48 -0000 1.2
--- tab2menu.xsl 9 May 2003 15:19:52 -0000 1.3
***************
*** 101,103 ****
--- 101,141 ----
</xsl:template>
+ <!-- override for homepage: always first tab selected -->
+ <xsl:template match="tab">
+ <xsl:choose>
+ <xsl:when test="@dir = $longest-dir or @href = $longest-dir
+ or $path='index' and @dir = /tabs/tab[1]/@dir">
+ <xsl:call-template name="selected"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:call-template name="not-selected"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
+
+ <!-- Called from 'not-selected' -->
+ <xsl:template name="base-not-selected">
+ <a>
+ <xsl:attribute name="href">
+ <xsl:choose>
+ <xsl:when test="$path = 'index'">
+ <xsl:call-template name="unselected-tab-href">
+ <xsl:with-param name="tab" select="."/>
+ <xsl:with-param name="path" select="$path"/>
+ </xsl:call-template>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:call-template name="unselected-tab-href">
+ <xsl:with-param name="tab" select="."/>
+ <xsl:with-param name="path" select="$path"/>
+ </xsl:call-template>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:attribute>
+ <font face="Arial, Helvetica, Sans-serif">
+ <xsl:value-of select="@label"/>
+ </font>
+ </a>
+ </xsl:template>
+
</xsl:stylesheet>