Mercurial > projects > pk-update-icon
annotate docbook-update-source-data.xsl @ 56:63347002d746
Simplify PkuiBackend
Make the "check-interval" property construct-only since it is never changed at
runtime and schedule the first check for updates in the "constructed" method.
Remove unused property get methods.
Destroy PkClient and remove periodic check in the "dispose" method.
author | Guido Berhoerster <guido+pk-update-icon@berhoerster.name> |
---|---|
date | Sun, 01 Jul 2018 22:38:11 +0200 |
parents | 7e44a0a8dc2c |
children |
rev | line source |
---|---|
37
7e44a0a8dc2c
Convert the manpage to DocBook V5.0
Guido Berhoerster <gber@opensuse.org>
parents:
diff
changeset
|
1 <?xml version="1.0"?> |
7e44a0a8dc2c
Convert the manpage to DocBook V5.0
Guido Berhoerster <gber@opensuse.org>
parents:
diff
changeset
|
2 <xsl:stylesheet |
7e44a0a8dc2c
Convert the manpage to DocBook V5.0
Guido Berhoerster <gber@opensuse.org>
parents:
diff
changeset
|
3 version="1.0" |
7e44a0a8dc2c
Convert the manpage to DocBook V5.0
Guido Berhoerster <gber@opensuse.org>
parents:
diff
changeset
|
4 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
7e44a0a8dc2c
Convert the manpage to DocBook V5.0
Guido Berhoerster <gber@opensuse.org>
parents:
diff
changeset
|
5 xmlns:db="http://docbook.org/ns/docbook" |
7e44a0a8dc2c
Convert the manpage to DocBook V5.0
Guido Berhoerster <gber@opensuse.org>
parents:
diff
changeset
|
6 xmlns="http://docbook.org/ns/docbook" |
7e44a0a8dc2c
Convert the manpage to DocBook V5.0
Guido Berhoerster <gber@opensuse.org>
parents:
diff
changeset
|
7 exclude-result-prefixes="xsl db"> |
7e44a0a8dc2c
Convert the manpage to DocBook V5.0
Guido Berhoerster <gber@opensuse.org>
parents:
diff
changeset
|
8 |
7e44a0a8dc2c
Convert the manpage to DocBook V5.0
Guido Berhoerster <gber@opensuse.org>
parents:
diff
changeset
|
9 <xsl:param name="package" select="''" /> |
7e44a0a8dc2c
Convert the manpage to DocBook V5.0
Guido Berhoerster <gber@opensuse.org>
parents:
diff
changeset
|
10 <xsl:param name="version" select="''" /> |
7e44a0a8dc2c
Convert the manpage to DocBook V5.0
Guido Berhoerster <gber@opensuse.org>
parents:
diff
changeset
|
11 |
7e44a0a8dc2c
Convert the manpage to DocBook V5.0
Guido Berhoerster <gber@opensuse.org>
parents:
diff
changeset
|
12 <xsl:template match="db:refmeta/db:refmiscinfo[@class = 'source' or |
7e44a0a8dc2c
Convert the manpage to DocBook V5.0
Guido Berhoerster <gber@opensuse.org>
parents:
diff
changeset
|
13 @class = 'version']"/> |
7e44a0a8dc2c
Convert the manpage to DocBook V5.0
Guido Berhoerster <gber@opensuse.org>
parents:
diff
changeset
|
14 |
7e44a0a8dc2c
Convert the manpage to DocBook V5.0
Guido Berhoerster <gber@opensuse.org>
parents:
diff
changeset
|
15 <xsl:template match="db:refmeta"> |
7e44a0a8dc2c
Convert the manpage to DocBook V5.0
Guido Berhoerster <gber@opensuse.org>
parents:
diff
changeset
|
16 <xsl:copy> |
7e44a0a8dc2c
Convert the manpage to DocBook V5.0
Guido Berhoerster <gber@opensuse.org>
parents:
diff
changeset
|
17 <xsl:apply-templates/> |
7e44a0a8dc2c
Convert the manpage to DocBook V5.0
Guido Berhoerster <gber@opensuse.org>
parents:
diff
changeset
|
18 <refmiscinfo class="source"><xsl:value-of select="$package"/></refmiscinfo> |
7e44a0a8dc2c
Convert the manpage to DocBook V5.0
Guido Berhoerster <gber@opensuse.org>
parents:
diff
changeset
|
19 <refmiscinfo class="version"><xsl:value-of select="$version"/></refmiscinfo> |
7e44a0a8dc2c
Convert the manpage to DocBook V5.0
Guido Berhoerster <gber@opensuse.org>
parents:
diff
changeset
|
20 </xsl:copy> |
7e44a0a8dc2c
Convert the manpage to DocBook V5.0
Guido Berhoerster <gber@opensuse.org>
parents:
diff
changeset
|
21 </xsl:template> |
7e44a0a8dc2c
Convert the manpage to DocBook V5.0
Guido Berhoerster <gber@opensuse.org>
parents:
diff
changeset
|
22 |
7e44a0a8dc2c
Convert the manpage to DocBook V5.0
Guido Berhoerster <gber@opensuse.org>
parents:
diff
changeset
|
23 <xsl:template match="@*|node()"> |
7e44a0a8dc2c
Convert the manpage to DocBook V5.0
Guido Berhoerster <gber@opensuse.org>
parents:
diff
changeset
|
24 <xsl:copy> |
7e44a0a8dc2c
Convert the manpage to DocBook V5.0
Guido Berhoerster <gber@opensuse.org>
parents:
diff
changeset
|
25 <xsl:apply-templates select="@*|node()"/> |
7e44a0a8dc2c
Convert the manpage to DocBook V5.0
Guido Berhoerster <gber@opensuse.org>
parents:
diff
changeset
|
26 </xsl:copy> |
7e44a0a8dc2c
Convert the manpage to DocBook V5.0
Guido Berhoerster <gber@opensuse.org>
parents:
diff
changeset
|
27 </xsl:template> |
7e44a0a8dc2c
Convert the manpage to DocBook V5.0
Guido Berhoerster <gber@opensuse.org>
parents:
diff
changeset
|
28 |
7e44a0a8dc2c
Convert the manpage to DocBook V5.0
Guido Berhoerster <gber@opensuse.org>
parents:
diff
changeset
|
29 </xsl:stylesheet> |