cmlenz      2003/06/28 13:14:56

  Modified:    documentation/docs/skins/jakarta.apache.org/stylesheets
                        document2html.xsl
  Log:
  At last, found a way to avoid all the "File not found" warnings
  
  Revision  Changes    Path
  1.43      +12 -5     
jakarta-cactus/documentation/docs/skins/jakarta.apache.org/stylesheets/document2html.xsl
  
  Index: document2html.xsl
  ===================================================================
  RCS file: 
/home/cvs/jakarta-cactus/documentation/docs/skins/jakarta.apache.org/stylesheets/document2html.xsl,v
  retrieving revision 1.42
  retrieving revision 1.43
  diff -u -r1.42 -r1.43
  --- document2html.xsl 24 Jun 2003 22:56:29 -0000      1.42
  +++ document2html.xsl 28 Jun 2003 20:14:56 -0000      1.43
  @@ -848,7 +848,7 @@
     <!-- Generate the breadcrumbs trail -->
     <!-- ==================================================================== -->
     <xsl:template name="generate-breadcrumbs">
  -    <!-- Per directory navigation file -->
  +    <!-- Get current directory relative to the root xdoc directory -->
       <xsl:param name="dir">
         <xsl:call-template name="get-directory">
           <xsl:with-param name="file">
  @@ -856,11 +856,17 @@
           </xsl:with-param>
         </xsl:call-template>
       </xsl:param>
  +    <!-- Recursively add the bread crumbs from parent directories, as well as
  +         the static 'Apache' and 'Jakarta' crumbs -->
       <xsl:choose>
  -      <xsl:when
  -          test="document(concat($xdocdir,'/',$dir,'../navigation.xml'))/navigation">
  +      <xsl:when test="$dir!=''">
           <xsl:call-template name="generate-breadcrumbs">
  -          <xsl:with-param name="dir" select="concat($dir,'../')"/>
  +          <xsl:with-param name="dir">
  +            <xsl:call-template name="get-directory">
  +              <xsl:with-param name="file"
  +                  select="substring($dir,0,string-length($dir)-1)"/>
  +            </xsl:call-template>
  +          </xsl:with-param>
           </xsl:call-template>
           <xsl:text> &gt; </xsl:text>
         </xsl:when>
  @@ -871,6 +877,7 @@
           <xsl:text> &gt; </xsl:text>
         </xsl:otherwise>
       </xsl:choose>
  +    <!-- Now append the crumb representing the current directory -->
       <xsl:variable name="curnav"
           select="document(concat($xdocdir,'/',$dir,'navigation.xml'))/navigation"/>
       <a>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to