1 <?xml version='
1.0' encoding='ISO-
8859-
1'
?>
3 <!-- Create a md5 list for packages and pathces used. -->
5 <xsl:stylesheet xmlns:
xsl=
"http://www.w3.org/1999/XSL/Transform"
8 <xsl:output method=
"text"/>
10 <xsl:template match=
"/">
11 <xsl:apply-templates select=
"//ulink"/>
14 <xsl:template match=
"ulink">
15 <!-- If some package don't have the predefined strings in their
16 name, the next test must be fixed to match it also. Skip possible
17 duplicated URLs that may be split for PDF output -->
18 <xsl:if test=
"(contains( @url, '.tar.' ) or
19 contains( @url, '.tgz' ) or
20 contains( @url, '.patch') ) and
21 not( ancestor-or-self::*/@condition = 'pdf' )" >
22 <!-- Get the md5sum -->
23 <xsl:value-of select=
"../../para/literal"/>
25 <!-- Add two spaces -->
26 <xsl:text> </xsl:text>
28 <!-- Get the basename -->
29 <xsl:call-template name=
"basename">
30 <xsl:with-param name=
"pathname" select=
"@url"/>
33 <!-- Add a newline -->
34 <xsl:text>
</xsl:text>
39 <xsl:template name=
"basename">
40 <xsl:param name=
"pathname"/>
44 <xsl:when test=
"contains( $pathname, '/' )" >
45 <xsl:call-template name=
"basename">
46 <xsl:with-param name=
"pathname" select=
"substring-after( $pathname, '/' )" />
51 <xsl:value-of select=
"$pathname"/>