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, 22 Jul 2003 05:26:39 GMT
cheche      2003/07/21 22:26:39

  Modified:    src/resources/stylesheets directory2book.xsl
  Log:
  Fix to created a valid book format. Display only non-empty menu elements as well.
  
  Revision  Changes    Path
  1.6       +5 -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.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- directory2book.xsl	15 Jul 2003 11:09:26 -0000	1.5
  +++ directory2book.xsl	22 Jul 2003 05:26:39 -0000	1.6
  @@ -14,8 +14,8 @@
   <map:match pattern="wiki/**book-*">
     <map:generate type="directory" src="content/xdocs/wiki/{1}">
       <map:parameter name="dateFormat" value="yyyy-MM-dd hh:mm" />
  -    <map:parameter name="depth" value="10" />
  -    <map:parameter name="exclude" value="[.][^x[^m][^l]|~$|^my-images$|^book[.]xml$"
/>
  +    <map:parameter name="depth" value="5" />
  +    <map:parameter name="exclude" value="[.][^x[^m][^l]|~$|^my-images$" />
     </map:generate>
     <map:transform src="resources/stylesheets/directory2book.xsl" />
     <map:serialize type="xml"/>
  @@ -49,8 +49,10 @@
   
     <xsl:template match="dir:directory">
       <menu label="{translate(@name,'-_',' ')}">
  -      <xsl:apply-templates select="dir:file|dir:directory" />
  +      <xsl:apply-templates select="dir:file" />
       </menu>
  +      <!-- [descendant::dir:file] is to remove empty menu nodes -->
  +      <xsl:apply-templates select="dir:directory [descendant::dir:file]" />
     </xsl:template>
   
     <xsl:template match="dir:file">
  
  
  

Mime
View raw message