docs-common/packaging khelpcenter-plugin.xsl,NONE,1.1
Paul W. Frields (pfrields)
fedora-docs-commits at redhat.com
Sat Dec 24 00:40:13 UTC 2005
Author: pfrields
Update of /cvs/docs/docs-common/packaging
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv12420
Added Files:
khelpcenter-plugin.xsl
Log Message:
Added XSL for khelpcenter .desktop entry
--- NEW FILE khelpcenter-plugin.xsl ---
<!-- 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"/>
<!-- 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
Name=<xsl:value-of select="/rpm-info/titles/translation[@lang='en']/title"/>
<xsl:for-each select="/rpm-info/titles/translation">Name[<xsl:value-of
select="@lang"/>]=<xsl:value-of select="title"/>
</xsl:for-each>
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:stylesheet>
More information about the Fedora-docs-commits
mailing list