Mercurial > projects > package-update-indicator
view docbook-update-source-data.xsl @ 51:f27122a7bb02
Fix desktop files
Remove the "TrayIcon" category from the indicator autostart desktop file since
it must be combined with "OnlyShowIn".
Hide the indicator and preferences application in KDE by default since it comes
with its own implementation.
Display the preferences application in the Xfce system settings dialog.
author | Guido Berhoerster <guido+pui@berhoerster.name> |
---|---|
date | Thu, 03 Dec 2020 08:51:48 +0100 |
parents | 6884bb8130ca |
children |
line wrap: on
line source
<?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:db="http://docbook.org/ns/docbook" xmlns="http://docbook.org/ns/docbook" exclude-result-prefixes="xsl db"> <xsl:param name="package" select="''" /> <xsl:param name="version" select="''" /> <xsl:template match="db:refmeta/db:refmiscinfo[@class = 'source' or @class = 'version']"/> <xsl:template match="db:refmeta"> <xsl:copy> <xsl:apply-templates/> <refmiscinfo class="source"><xsl:value-of select="$package"/></refmiscinfo> <refmiscinfo class="version"><xsl:value-of select="$version"/></refmiscinfo> </xsl:copy> </xsl:template> <xsl:template match="@*|node()"> <xsl:copy> <xsl:apply-templates select="@*|node()"/> </xsl:copy> </xsl:template> </xsl:stylesheet>