Mercurial > projects > xinhibit-applet
comparison data/docbook-update-source-data.xsl @ 5:1508a4c35c47
Rewrite the man page in DocBook 5 XML
author | Guido Berhoerster <guido+xinhibit-applet@berhoerster.name> |
---|---|
date | Thu, 08 Aug 2013 16:17:03 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
4:54ecfe6a14cf | 5:1508a4c35c47 |
---|---|
1 <?xml version="1.0"?> | |
2 <xsl:stylesheet | |
3 version="1.0" | |
4 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | |
5 xmlns:db="http://docbook.org/ns/docbook" | |
6 xmlns="http://docbook.org/ns/docbook" | |
7 exclude-result-prefixes="xsl db"> | |
8 | |
9 <xsl:param name="package" select="''" /> | |
10 <xsl:param name="version" select="''" /> | |
11 | |
12 <xsl:template match="db:refmeta/db:refmiscinfo[@class = 'source' or | |
13 @class = 'version']"/> | |
14 | |
15 <xsl:template match="db:refmeta"> | |
16 <xsl:copy> | |
17 <xsl:apply-templates/> | |
18 <refmiscinfo class="source"><xsl:value-of select="$package"/></refmiscinfo> | |
19 <refmiscinfo class="version"><xsl:value-of select="$version"/></refmiscinfo> | |
20 </xsl:copy> | |
21 </xsl:template> | |
22 | |
23 <xsl:template match="@*|node()"> | |
24 <xsl:copy> | |
25 <xsl:apply-templates select="@*|node()"/> | |
26 </xsl:copy> | |
27 </xsl:template> | |
28 | |
29 </xsl:stylesheet> |