1.0
2.3
2.3.x
2.4
ablfs
ablfs-more
legacy
new_features
trunk
Last change
on this file since bfc07d6 was 877cc6a, checked in by Manuel Canales Esparcia <manuel@…>, 19 years ago |
Merged experimental branch to trunk.
Updated TODO.
|
-
Property mode
set to
100644
|
File size:
812 bytes
|
Rev | Line | |
---|
[877cc6a] | 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>
</xsl:text>
|
---|
| 23 | </xsl:if>
|
---|
| 24 | </xsl:template>
|
---|
| 25 |
|
---|
| 26 | </xsl:stylesheet>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.