Author: cdupoirieux
Date: Thu Dec 22 08:57:47 2005
New Revision: 358587

URL: http://svn.apache.org/viewcvs?rev=358587&view=rev
Log:
Don't understand,, was working fine with forrest run so I committed and then 
realized in was not working at all with forrest site...
Now it's working again, sorry,

[compare page path and node path without extension to solve the problem of page 
unselected when the extension is not html...
(cf. php output plugin.)]

Modified:
    
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.structurer/resources/stylesheets/common/xslt/html/tabutils.xsl

Modified: 
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.structurer/resources/stylesheets/common/xslt/html/tabutils.xsl
URL: 
http://svn.apache.org/viewcvs/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.structurer/resources/stylesheets/common/xslt/html/tabutils.xsl?rev=358587&r1=358586&r2=358587&view=diff
==============================================================================
--- 
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.structurer/resources/stylesheets/common/xslt/html/tabutils.xsl
 (original)
+++ 
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.structurer/resources/stylesheets/common/xslt/html/tabutils.xsl
 Thu Dec 22 08:57:47 2005
@@ -22,6 +22,7 @@
 -->
 
 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
+  <xsl:include href="pathutils.xsl"/>
 
   <xsl:param name="site-file" select="'cocoon://abs-menulinks'"/>
   <xsl:variable name="site" select="document($site-file)"/>
@@ -71,7 +72,12 @@
     the path of the 'current' tab.
   -->
   <xsl:template name="matching-id" 
xmlns:l="http://apache.org/forrest/linkmap/1.0";>
-    <xsl:value-of select="$site//*[starts-with(@href, $path-noext)]/@tab"/>
+    <xsl:variable name="path-noext">
+      <xsl:call-template name="path-noext">
+        <xsl:with-param name="path" select="$path"/>
+      </xsl:call-template>
+    </xsl:variable>
+    <xsl:value-of select="$site//*[starts-with(@href, $path)]/@tab"/>
   </xsl:template>
  
   <!--


Reply via email to