Author: andreas
Date: Wed Oct 31 09:52:16 2007
New Revision: 590745
URL: http://svn.apache.org/viewvc?rev=590745&view=rev
Log:
Override tabs stylesheet of default publication
Added:
lenya/sandbox/pubs/docu/lenya/modules/sitetree/xslt/navigation/tabs.xsl
Modified:
lenya/sandbox/pubs/docu/config/publication.xml
Modified: lenya/sandbox/pubs/docu/config/publication.xml
URL: http://svn.apache.org/viewvc/lenya/sandbox/pubs/docu/config/publication.xml?rev=590745&r1=590744&r2=590745&view=diff
==============================================================================
--- lenya/sandbox/pubs/docu/config/publication.xml (original)
+++ lenya/sandbox/pubs/docu/config/publication.xml Wed Oct 31 09:52:16 2007
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<publication xmlns="http://apache.org/cocoon/lenya/publication/1.1">
<name>Lenya Documentation</name>
- <description>This publication is a best practice, getting started publication.</description>
+ <description>The Apache Lenya website.</description>
<version>2.0-dev</version>
<lenya-version>2.0-dev</lenya-version>
<lenya-revision>xxx</lenya-revision>
Added: lenya/sandbox/pubs/docu/lenya/modules/sitetree/xslt/navigation/tabs.xsl
URL: http://svn.apache.org/viewvc/lenya/sandbox/pubs/docu/lenya/modules/sitetree/xslt/navigation/tabs.xsl?rev=590745&view=auto
==============================================================================
--- lenya/sandbox/pubs/docu/lenya/modules/sitetree/xslt/navigation/tabs.xsl (added)
+++ lenya/sandbox/pubs/docu/lenya/modules/sitetree/xslt/navigation/tabs.xsl Wed Oct 31 09:52:16 2007
@@ -0,0 +1,85 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<!-- $Id: tabs.xsl 189880 2005-06-10 02:36:09Z gregor $ -->
+
+<xsl:stylesheet version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:nav="http://apache.org/cocoon/lenya/navigation/1.0"
+ xmlns="http://www.w3.org/1999/xhtml"
+ exclude-result-prefixes="nav"
+ >
+
+<xsl:import href="template-fallback:docu://lenya/modules/sitetree/xslt/navigation/tabs.xsl"/>
+
+<xsl:template match="nav:site">
+
+ <div id="tabs">
+ <table border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <xsl:call-template name="pre-separator"/>
+ <xsl:for-each select="nav:node[nav:label[normalize-space(.) != '']]">
+ <xsl:if test="position() > 1 and @visibleinnav = 'true'">
+ <xsl:call-template name="separator"/>
+ </xsl:if>
+
+ <xsl:choose>
+ <xsl:when test="@visibleinnav = 'false'"/>
+ <xsl:when test="descendant-or-self::nav:node[@current = 'true']">
+ <xsl:call-template name="tab-selected"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:call-template name="tab"/>
+ </xsl:otherwise>
+ </xsl:choose>
+
+ </xsl:for-each>
+ <xsl:call-template name="post-separator"/>
+ </tr>
+ </table>
+ </div>
+
+</xsl:template>
+
+
+<xsl:template name="tab">
+ <td><div class="tab"><xsl:call-template name="label"/></div></td>
+</xsl:template>
+
+
+<xsl:template name="tab-selected">
+ <td><div class="tab-selected"><xsl:call-template name="label"/></div></td>
+</xsl:template>
+
+
+<xsl:template name="separator">
+ <td><div class="tab-separator"> </div></td>
+</xsl:template>
+
+
+<xsl:template name="pre-separator">
+ <td><div class="tab-pre-separator"> </div></td>
+</xsl:template>
+
+
+<xsl:template name="post-separator">
+ <td class="tab-post-separator"><div class="tab-separator"> </div></td>
+</xsl:template>
+
+
+</xsl:stylesheet>
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.