source: CLFS/packageslist.xsl@ cc82e37

experimental
Last change on this file since cc82e37 was c6b24b4, checked in by Manuel Canales Esparcia <manuel@…>, 19 years ago

Fixed the download of the Tree package.

  • Property mode set to 100644
File size: 812 bytes
Line 
1<?xml version='1.0' encoding='ISO-8859-1'?>
2
3<!--$Id$ -->
4<!-- Get list of packages from the CLFS Book -->
5
6<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
7 version="1.0">
8
9 <xsl:output method="text"/>
10
11 <xsl:template match="/">
12 <xsl:apply-templates select="//ulink"/>
13 </xsl:template>
14
15 <xsl:template match="ulink">
16 <!-- Packages. If some package don't have the string ".tar." in their
17 name, the next test must be fixed to match it also. Skip possible
18 duplicated URLs due that may be splitted for PDF output -->
19 <xsl:if test="(contains(@url, '.tar.') or contains(@url, '.tgz'))
20 and not(ancestor-or-self::*/@condition = 'pdf')">
21 <xsl:value-of select="@url"/>
22 <xsl:text>&#x0a;</xsl:text>
23 </xsl:if>
24 </xsl:template>
25
26</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.