source: CLFS/patcheslist.xsl@ 13f1145

experimental
Last change on this file since 13f1145 was 3d7b0564, checked in by Manuel Canales Esparcia <manuel@…>, 19 years ago

XSL clean-up.

  • Property mode set to 100644
File size: 696 bytes
RevLine 
[9c90294]1<?xml version='1.0' encoding='ISO-8859-1'?>
2
[3d7b0564]3<!--$Id$ -->
4<!-- Get list of patches 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 <!-- Patches. Match only the patches and skip possible duplicated
17 URLs due that may be splitted for PDF output-->
[3d7b0564]18 <xsl:if test="contains(@url, '.patch')
[9c90294]19 and not(ancestor-or-self::*/@condition = 'pdf')">
20 <xsl:value-of select="@url"/>
21 <xsl:text>&#x0a;</xsl:text>
22 </xsl:if>
23 </xsl:template>
24
25</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.