cvs commit: LFS/BOOK/stylesheets patcheslist.xsl

manuel at linuxfromscratch.org manuel at linuxfromscratch.org
Tue Jun 8 15:03:28 PDT 2004


manuel      04/06/08 16:03:28

  Modified:    BOOK/stylesheets patcheslist.xsl
  Log:
  Adapted patcheslist.xsl to the new naming of patches.
  
  Revision  Changes    Path
  1.8       +11 -1     LFS/BOOK/stylesheets/patcheslist.xsl
  
  Index: patcheslist.xsl
  ===================================================================
  RCS file: /home/cvsroot/LFS/BOOK/stylesheets/patcheslist.xsl,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- patcheslist.xsl	5 Jun 2004 16:52:39 -0000	1.7
  +++ patcheslist.xsl	8 Jun 2004 22:03:28 -0000	1.8
  @@ -30,7 +30,17 @@
         <xsl:text>  cp </xsl:text>
         <xsl:value-of select="$deep.to.downloads"/>
         <xsl:text>downloads/</xsl:text>
  -      <xsl:value-of select="substring-before (substring-after(@url, $links.directory), '-')"/>
  +      <xsl:if test="contains (@url, '-')">
  +        <xsl:variable name="cut" select="translate (@url, '0123456789', '2222222222')"/>
  +        <xsl:choose>
  +          <xsl:when test="contains ($cut, ',')">
  +            <xsl:value-of select="substring-before (substring-after($cut, $links.directory), ',2')"/>
  +          </xsl:when>
  +          <xsl:otherwise>
  +            <xsl:value-of select="substring-before (substring-after($cut, $links.directory), '-2')"/>
  +          </xsl:otherwise>
  +        </xsl:choose>
  +      </xsl:if>
         <xsl:text>/</xsl:text>
         <xsl:value-of select="substring-after(@url, $links.directory)"/>
         <xsl:text> . &&&#x0a;</xsl:text>
  
  
  



More information about the lfs-book mailing list