Changeset 7882

Show
Ignore:
Timestamp:
12/04/06 09:53:22 (2 years ago)
Author:
manuel
Message:

Fixed wget-list.xsl to handle sourceforge downloads.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/BOOK/stylesheets/wget-list.xsl

    r7881 r7882  
    22 
    33<!-- Create a list of upstream URLs for packages and patches to be used 
    4      with wget. 
    5      NOTE: there are several sourceforge URLs that don't work with wget. --> 
     4     with wget. --> 
    65 
    76<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
     
    2120                  or contains(@url, '.patch')) and 
    2221                  not(ancestor-or-self::*/@condition = 'pdf')"> 
    23       <xsl:value-of select="@url"/> 
     22      <xsl:choose> 
     23        <xsl:when test="contains(@url,'?download')"> 
     24          <xsl:value-of select="substring-before(@url,'?download')"/> 
     25        </xsl:when> 
     26        <xsl:otherwise> 
     27          <xsl:value-of select="@url"/> 
     28        </xsl:otherwise> 
     29      </xsl:choose> 
    2430      <xsl:text>&#x0a;</xsl:text> 
    2531    </xsl:if>