summaryrefslogtreecommitdiffstats
path: root/packaging/khelpcenter-plugin.xsl
diff options
context:
space:
mode:
authorPaul W. Frields <stickster@gmail.com>2005-12-29 22:37:32 +0000
committerPaul W. Frields <stickster@gmail.com>2005-12-29 22:37:32 +0000
commite7a55bc0fad50b29b27c5287d75d4e92f9f66798 (patch)
tree096dbccbe7a0dcedf63a2977c005db522915f97d /packaging/khelpcenter-plugin.xsl
parent01d8b2b7b2df62c91f12369e9c578666438117bf (diff)
downloadfedora-doc-utils-e7a55bc0fad50b29b27c5287d75d4e92f9f66798.tar.gz
fedora-doc-utils-e7a55bc0fad50b29b27c5287d75d4e92f9f66798.tar.xz
fedora-doc-utils-e7a55bc0fad50b29b27c5287d75d4e92f9f66798.zip
Reduce redundancy, and create new, stupider pet tricks
Diffstat (limited to 'packaging/khelpcenter-plugin.xsl')
-rw-r--r--packaging/khelpcenter-plugin.xsl14
1 files changed, 2 insertions, 12 deletions
diff --git a/packaging/khelpcenter-plugin.xsl b/packaging/khelpcenter-plugin.xsl
index 5381c6a..d9ca581 100644
--- a/packaging/khelpcenter-plugin.xsl
+++ b/packaging/khelpcenter-plugin.xsl
@@ -1,13 +1,12 @@
<!-- Transform rpm-info.xml into a KHelpCenter .desktop File -->
<xsl:stylesheet version="1.0" xml:space="preserve" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
- <xsl:output encoding="UTF-8" indent="no" method="text" omit-xml-declaration="no" standalone="no" version="1.0"/>
+ <xsl:output encoding="UTF-8" indent="no" method="text" omit-xml-declaration="yes" standalone="no" version="1.0"/>
<!-- Note: do not indent this file! Any whitespace here
will be reproduced in the output -->
<xsl:param name="lang" select="'en'" />
<xsl:param name="docbase" select="'example-tutorial'" />
- <xsl:param name="release" select="1"/>
<xsl:template match="/">[Desktop Entry]
DocPath=help:/<xsl:value-of select="$docbase"/>/index.html
@@ -19,14 +18,5 @@ Name=<xsl:value-of select="/rpm-info/titles/translation[@lang='en']/title"/>
X-DOC-Weight=-5000
</xsl:template>
- <xsl:template name="get-title">
- <xsl:for-each select="/rpm-info/titles/translation">
- <xsl:choose>
- <xsl:when test="@lang = $lang">
- <xsl:value-of select="title"/>
- </xsl:when>
- </xsl:choose>
- </xsl:for-each>
- </xsl:template>
-
+<xsl:include href="templates.xsl"/>
</xsl:stylesheet>