35 lines
898 B
XML
35 lines
898 B
XML
|
<?xml version='1.0' encoding='ISO-8859-1'?>
|
||
|
<!DOCTYPE xsl:stylesheet [
|
||
|
<!ENTITY % general-entities SYSTEM "clfs-development/general.ent">
|
||
|
%general-entities;
|
||
|
]>
|
||
|
|
||
|
<!--$Id
|
||
|
XSLT stylesheet to create wget scripts to download packages and patches.
|
||
|
Only for Cross-LFS.
|
||
|
|
||
|
Usage example:
|
||
|
|
||
|
xsltproc -xinclude -output x86.wget stylesheets/wget.xsl x86-index.xml
|
||
|
-->
|
||
|
|
||
|
<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
|
||
|
name, the next test must be fixed to match it also. -->
|
||
|
<xsl:if test="contains(@url, '.tar.')">
|
||
|
<xsl:value-of select="@url"/>
|
||
|
<xsl:text>
</xsl:text>
|
||
|
</xsl:if>
|
||
|
</xsl:template>
|
||
|
|
||
|
</xsl:stylesheet>
|