2024-01-18 20:09:26 +00:00
|
|
|
<?xml version='1.0' encoding='UTF-8'?>
|
2006-12-04 04:48:25 +00:00
|
|
|
|
2006-12-04 10:19:31 +00:00
|
|
|
<!-- Create a list of upstream URLs for packages and patches to be used
|
2006-12-04 16:53:22 +00:00
|
|
|
with wget. -->
|
2006-12-04 04:48:25 +00:00
|
|
|
|
|
|
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
2024-01-27 16:30:51 +00:00
|
|
|
version="1.0">
|
2006-12-04 04:48:25 +00:00
|
|
|
|
|
|
|
<xsl:output method="text"/>
|
|
|
|
|
|
|
|
<xsl:template match="/">
|
|
|
|
<xsl:apply-templates select="//ulink"/>
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
<xsl:template match="ulink">
|
|
|
|
<!-- If some package don't have the predefined strings in their
|
|
|
|
name, the next test must be fixed to match it also. Skip possible
|
2024-08-23 19:59:56 +01:00
|
|
|
duplicated URLs due that may be split for PDF output -->
|
2021-09-07 22:28:43 +01:00
|
|
|
<xsl:if test="(contains(@url, '.tar.') or
|
|
|
|
contains(@url, '.tgz') or
|
2016-05-25 03:51:36 +01:00
|
|
|
contains(@url, '.patch')) and
|
2006-12-04 04:48:25 +00:00
|
|
|
not(ancestor-or-self::*/@condition = 'pdf')">
|
2006-12-04 16:53:22 +00:00
|
|
|
<xsl:choose>
|
|
|
|
<xsl:when test="contains(@url,'?download')">
|
|
|
|
<xsl:value-of select="substring-before(@url,'?download')"/>
|
|
|
|
</xsl:when>
|
|
|
|
<xsl:otherwise>
|
|
|
|
<xsl:value-of select="@url"/>
|
|
|
|
</xsl:otherwise>
|
|
|
|
</xsl:choose>
|
2024-01-27 16:28:43 +00:00
|
|
|
<xsl:text>
</xsl:text>
|
2006-12-04 04:48:25 +00:00
|
|
|
</xsl:if>
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
</xsl:stylesheet>
|
|
|
|
|