5
Guido Berhoerster <guido+xwrited@berhoerster.name>
parents:
diff
changeset
|
1 <?xml version="1.0"?>
|
Guido Berhoerster <guido+xwrited@berhoerster.name>
parents:
diff
changeset
|
2 <xsl:stylesheet
|
Guido Berhoerster <guido+xwrited@berhoerster.name>
parents:
diff
changeset
|
3 version="1.0"
|
Guido Berhoerster <guido+xwrited@berhoerster.name>
parents:
diff
changeset
|
4 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
Guido Berhoerster <guido+xwrited@berhoerster.name>
parents:
diff
changeset
|
5 xmlns:db="http://docbook.org/ns/docbook"
|
Guido Berhoerster <guido+xwrited@berhoerster.name>
parents:
diff
changeset
|
6 xmlns="http://docbook.org/ns/docbook"
|
Guido Berhoerster <guido+xwrited@berhoerster.name>
parents:
diff
changeset
|
7 exclude-result-prefixes="xsl db">
|
Guido Berhoerster <guido+xwrited@berhoerster.name>
parents:
diff
changeset
|
8
|
Guido Berhoerster <guido+xwrited@berhoerster.name>
parents:
diff
changeset
|
9 <xsl:param name="package" select="''" />
|
Guido Berhoerster <guido+xwrited@berhoerster.name>
parents:
diff
changeset
|
10 <xsl:param name="version" select="''" />
|
Guido Berhoerster <guido+xwrited@berhoerster.name>
parents:
diff
changeset
|
11
|
Guido Berhoerster <guido+xwrited@berhoerster.name>
parents:
diff
changeset
|
12 <xsl:template match="db:refmeta/db:refmiscinfo[@class = 'source' or
|
Guido Berhoerster <guido+xwrited@berhoerster.name>
parents:
diff
changeset
|
13 @class = 'version']"/>
|
Guido Berhoerster <guido+xwrited@berhoerster.name>
parents:
diff
changeset
|
14
|
Guido Berhoerster <guido+xwrited@berhoerster.name>
parents:
diff
changeset
|
15 <xsl:template match="db:refmeta">
|
Guido Berhoerster <guido+xwrited@berhoerster.name>
parents:
diff
changeset
|
16 <xsl:copy>
|
Guido Berhoerster <guido+xwrited@berhoerster.name>
parents:
diff
changeset
|
17 <xsl:apply-templates/>
|
Guido Berhoerster <guido+xwrited@berhoerster.name>
parents:
diff
changeset
|
18 <refmiscinfo class="source"><xsl:value-of select="$package"/></refmiscinfo>
|
Guido Berhoerster <guido+xwrited@berhoerster.name>
parents:
diff
changeset
|
19 <refmiscinfo class="version"><xsl:value-of select="$version"/></refmiscinfo>
|
Guido Berhoerster <guido+xwrited@berhoerster.name>
parents:
diff
changeset
|
20 </xsl:copy>
|
Guido Berhoerster <guido+xwrited@berhoerster.name>
parents:
diff
changeset
|
21 </xsl:template>
|
Guido Berhoerster <guido+xwrited@berhoerster.name>
parents:
diff
changeset
|
22
|
Guido Berhoerster <guido+xwrited@berhoerster.name>
parents:
diff
changeset
|
23 <xsl:template match="@*|node()">
|
Guido Berhoerster <guido+xwrited@berhoerster.name>
parents:
diff
changeset
|
24 <xsl:copy>
|
Guido Berhoerster <guido+xwrited@berhoerster.name>
parents:
diff
changeset
|
25 <xsl:apply-templates select="@*|node()"/>
|
Guido Berhoerster <guido+xwrited@berhoerster.name>
parents:
diff
changeset
|
26 </xsl:copy>
|
Guido Berhoerster <guido+xwrited@berhoerster.name>
parents:
diff
changeset
|
27 </xsl:template>
|
Guido Berhoerster <guido+xwrited@berhoerster.name>
parents:
diff
changeset
|
28
|
Guido Berhoerster <guido+xwrited@berhoerster.name>
parents:
diff
changeset
|
29 </xsl:stylesheet>
|