forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From che...@apache.org
Subject cvs commit: xml-forrest/src/resources/stylesheets directory2book.xsl
Date Tue, 15 Jul 2003 11:09:26 GMT
cheche      2003/07/15 04:09:26

  Modified:    src/resources/stylesheets directory2book.xsl
  Log:
  Replace -_ for spaces on the menu Label. Book file is exclude before that line
  
  Revision  Changes    Path
  1.5       +3 -3      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.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- directory2book.xsl	15 Jul 2003 11:03:44 -0000	1.4
  +++ directory2book.xsl	15 Jul 2003 11:09:26 -0000	1.5
  @@ -48,13 +48,13 @@
     </xsl:template>
   
     <xsl:template match="dir:directory">
  -    <menu label="{@name}">
  +    <menu label="{translate(@name,'-_',' ')}">
         <xsl:apply-templates select="dir:file|dir:directory" />
       </menu>
     </xsl:template>
   
  -  <xsl:template match="dir:file[not(@name=concat('book', $ext))]">
  -    <menu-item label="{substring-before(@name, $ext)}">
  +  <xsl:template match="dir:file">
  +    <menu-item label="{translate(substring-before(@name, $ext),'-_',' ')}">
         <xsl:attribute name="href">
         <xsl:variable name="path" />
           <!-- [not (position()=last())] is to ignore the root node -->
  
  
  

Mime
View raw message