avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nicola...@apache.org
Subject cvs commit: jakarta-avalon/src/documentation/skins/avalon-tigris/xslt/html site2xhtml.xsl
Date Sat, 13 Jul 2002 16:42:12 GMT
nicolaken    2002/07/13 09:42:12

  Modified:    src/documentation/skins/avalon-tigris/xslt/html
                        site2xhtml.xsl
  Log:
  Fixed old breadcrumb.
  
  Revision  Changes    Path
  1.2       +6 -6      jakarta-avalon/src/documentation/skins/avalon-tigris/xslt/html/site2xhtml.xsl
  
  Index: site2xhtml.xsl
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon/src/documentation/skins/avalon-tigris/xslt/html/site2xhtml.xsl,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- site2xhtml.xsl	13 Jul 2002 10:01:58 -0000	1.1
  +++ site2xhtml.xsl	13 Jul 2002 16:42:12 -0000	1.2
  @@ -40,25 +40,25 @@
   		
   			<!-- breadcrumb trail (javascript-generated) -->
   			<div id="breadcrumbs">
  -              <a href="@link1.href@" class="menu">@link1@ &gt;</a>
  -              <a href="@link2.href@" class="menu">@link2@ &gt;</a>
  -              <a href="@link3.href@" class="menu">@link3@</a>   
  +              <a href="@link1.href@" class="menu">@link1@ &gt;<xsl:text>
</xsl:text></a>
  +              <a href="@link2.href@" class="menu">@link2@ &gt;&#160;</a>
  +              <!-- <a href="@link3.href@" class="menu">@link3@</a> -->
   				<!-- -->
      				<script language="JavaScript1.2" type="text/javascript">
      			     <![CDATA[ 
   					function sentenceCase(str) {
   						var lower = str.toLowerCase();
  -						return lower.substr(0,1).toUpperCase() + lower.substr(1);
  +						return lower; //.substr(0,1).toUpperCase() + lower.substr(1);
   					}
   					function getDirsAsArray() {
   						var trail = document.location.pathname.split("/");
   						var lastdir = (trail[trail.length-1].indexOf(".html") != -1)? trail.length-2 : trail.length-1;
  -						var urlprefix = "/avalon/";
  +						var urlprefix = ""; //"/avalon/";
   						var postfix = " &gt"; 
   						for(var i = 1; i <= lastdir; i++) {
   							document.writeln('<a href=' + urlprefix + trail[i] + ' class="menu">' + sentenceCase(trail[i])
+ '</a>'+postfix);
   							urlprefix += trail[i] + "/";
  -							if(i == lastdir-1) postfix = ":";
  +							if(i == lastdir-1) postfix = "";							
   						}
   					}
   					getDirsAsArray();
  
  
  

--
To unsubscribe, e-mail:   <mailto:avalon-cvs-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-cvs-help@jakarta.apache.org>


Mime
View raw message