svn commit: r591075 - /lenya/sandbox/pubs/docu/lenya/modules/sitetree/xslt/navigation/tabs.xsl

[email protected]
Newsgroups gmane.comp.cms.lenya.cvs
Message-ID <[email protected]>
Author: andreas
Date: Thu Nov  1 09:35:08 2007
New Revision: 591075

URL: http://svn.apache.org/viewvc?rev=591075&view=rev
Log:
Use first child URL for docu pub tabs

Modified:
    lenya/sandbox/pubs/docu/lenya/modules/sitetree/xslt/navigation/tabs.xsl

Modified: 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=591075&r1=591074&r2=591075&view=diff
==============================================================================
--- lenya/sandbox/pubs/docu/lenya/modules/sitetree/xslt/navigation/tabs.xsl (original)
+++ lenya/sandbox/pubs/docu/lenya/modules/sitetree/xslt/navigation/tabs.xsl Thu Nov  1 09:35:08 2007
@@ -82,4 +82,15 @@
 </xsl:template>
 
 
+  <xsl:template name="label">
+    <xsl:param name="suffix"/>
+    <a class="tab{$suffix}">
+      <xsl:if test="not(nav:node[1][@current = 'true'])">
+        <xsl:attribute name="href"><xsl:value-of select="nav:node[1]/@href"/></xsl:attribute>
+      </xsl:if>
+      <span><xsl:apply-templates select="nav:label"/></span>
+    </a>
+  </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.