This repository has been archived on 2024-10-17. You can view files and clone it, but cannot push or open issues or pull requests.
MahiroOS-jhalfs/CLFS/packageslist.xsl

27 lines
812 B
XML
Raw Normal View History

<?xml version='1.0' encoding='ISO-8859-1'?>
2006-03-21 21:20:45 +01:00
<!--$Id$ -->
<!-- Get list of packages from the CLFS Book -->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:output method="text"/>
<xsl:template match="/">
<xsl:apply-templates select="//ulink"/>
</xsl:template>
<xsl:template match="ulink">
<!-- Packages. If some package don't have the string ".tar." in their
2006-03-21 21:20:45 +01:00
name, the next test must be fixed to match it also. Skip possible
duplicated URLs due that may be splitted for PDF output -->
<xsl:if test="(contains(@url, '.tar.') or contains(@url, '.tgz'))
2006-03-21 21:20:45 +01:00
and not(ancestor-or-self::*/@condition = 'pdf')">
<xsl:value-of select="@url"/>
<xsl:text>&#x0a;</xsl:text>
</xsl:if>
</xsl:template>
</xsl:stylesheet>