forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nicola...@apache.org
Subject cvs commit: xml-forrest/src/resources/stylesheets directory2book.xsl
Date Tue, 30 Sep 2003 15:13:07 GMT
nicolaken    2003/09/30 08:13:07

  Modified:    src/resources/stylesheets directory2book.xsl
  Log:
        <action dev="NKB" type="fix" context="core"
          due-to="Eric BURGHARD"  due-to-email="eburghar@free.fr" >
            Patched directory2book.xsl to be able to serve raw documents from the
            side menu (eg. pdf); before it always generated .html links.
        </action>
  
  Revision  Changes    Path
  1.8       +3 -1      xml-forrest/src/resources/stylesheets/directory2book.xsl
  
  Index: directory2book.xsl
  ===================================================================
  RCS file: /home/cvs/xml-forrest/src/resources/stylesheets/directory2book.xsl,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- directory2book.xsl	30 Jul 2003 08:37:54 -0000	1.7
  +++ directory2book.xsl	30 Sep 2003 15:13:07 -0000	1.8
  @@ -31,8 +31,10 @@
     <xsl:output doctype-system="book-cocoon-v10.dtd" doctype-public="-//APACHE//DTD Cocoon
Documentation Book V1.0//EN"/>
   
     <xsl:param name="expected-extension" select="'xml'"/>
  +  <xsl:param name="served-extension" select="html"/>
   
     <xsl:variable name="ext" select="concat('.', $expected-extension)"/>
  +  <xsl:variable name="sext" select="concat('.', $served-extension)"/>
   
     <xsl:template match="/">
       <book software="" title="" copyright="">
  @@ -62,7 +64,7 @@
             <xsl:variable name="path" select="concat($path, @name, '/')" />
             <xsl:value-of select="$path"/>
           </xsl:for-each>
  -        <xsl:value-of select="concat(substring-before(@name, $ext), '.html')"/>
  +        <xsl:value-of select="concat(substring-before(@name, $ext), $sext)"/>
         </xsl:attribute>
       </menu-item>
     </xsl:template>
  
  
  

Mime
View raw message