source: CLFS/packageslist.xsl@ 6753ff7

experimental
Last change on this file since 6753ff7 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
RevLine 
[9c90294]1<?xml version='1.0' encoding='ISO-8859-1'?>
2
[3d7b0564]3<!--$Id$ -->
4<!-- Get list of packages from the CLFS Book -->
[9c90294]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
[3d7b0564]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 -->
[c6b24b4]19 <xsl:if test="(contains(@url, '.tar.') or contains(@url, '.tgz'))
[3d7b0564]20 and not(ancestor-or-self::*/@condition = 'pdf')">
[9c90294]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.