source: CLFS/packageslist.xsl@ 9e1915a

experimental
Last change on this file since 9e1915a was 9c90294, checked in by George Boudreau <georgeb@…>, 18 years ago

CLFS extract_commands now part of common_func. pushd/popd added to master.sh to deal with multitiple files defined in config param FILES. Added to xsl files to CLFS dir

  • Property mode set to 100644
File size: 898 bytes
Line 
1<?xml version='1.0' encoding='ISO-8859-1'?>
2<!DOCTYPE xsl:stylesheet [
3 <!ENTITY % general-entities SYSTEM "clfs-development/general.ent">
4 %general-entities;
5]>
6
7<!--$Id
8XSLT stylesheet to create wget scripts to download packages and patches.
9Only for Cross-LFS.
10
11Usage example:
12
13xsltproc -xinclude -output x86.wget stylesheets/wget.xsl x86-index.xml
14-->
15
16<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
17 version="1.0">
18
19 <xsl:output method="text"/>
20
21 <xsl:template match="/">
22 <xsl:apply-templates select="//ulink"/>
23 </xsl:template>
24
25 <xsl:template match="ulink">
26 <!-- Packages. If some package don't have the string ".tar." in their
27 name, the next test must be fixed to match it also. -->
28 <xsl:if test="contains(@url, '.tar.')">
29 <xsl:value-of select="@url"/>
30 <xsl:text>&#x0a;</xsl:text>
31 </xsl:if>
32 </xsl:template>
33
34</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.