summaryrefslogtreecommitdiffstats
path: root/kdoctools/customization/kde-style.xsl
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commitce4a32fe52ef09d8f5ff1dd22c001110902b60a2 (patch)
tree5ac38a06f3dde268dc7927dc155896926aaf7012 /kdoctools/customization/kde-style.xsl
downloadtdelibs-ce4a32fe52ef09d8f5ff1dd22c001110902b60a2.tar.gz
tdelibs-ce4a32fe52ef09d8f5ff1dd22c001110902b60a2.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdoctools/customization/kde-style.xsl')
-rw-r--r--kdoctools/customization/kde-style.xsl76
1 files changed, 76 insertions, 0 deletions
diff --git a/kdoctools/customization/kde-style.xsl b/kdoctools/customization/kde-style.xsl
new file mode 100644
index 000000000..03e8bc987
--- /dev/null
+++ b/kdoctools/customization/kde-style.xsl
@@ -0,0 +1,76 @@
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
+ version="1.0">
+
+<xsl:param name="callout.graphics.path" select="'common/'" doc:type='string'/>
+
+<xsl:template match="guilabel|guimenu|guisubmenu|guimenuitem|interface|guibutton">
+ <span class="guiitem">
+ <xsl:call-template name="inline.charseq"/>
+ </span>
+</xsl:template>
+
+<xsl:template match="accel">
+ <span class="accel">
+ <xsl:call-template name="inline.charseq"/>
+ </span>
+</xsl:template>
+
+<xsl:attribute-set name="kde.body.attrs">
+</xsl:attribute-set>
+
+<xsl:template match="command">
+ <span class="command">
+ <xsl:call-template name="inline.boldseq"/>
+ </span>
+</xsl:template>
+
+<xsl:template match="option">
+ <span class="option">
+ <xsl:call-template name="inline.monoseq"/>
+ </span>
+</xsl:template>
+
+<xsl:template match="parameter">
+ <span class="parameter">
+ <xsl:call-template name="inline.italicmonoseq"/>
+ </span>
+</xsl:template>
+
+<xsl:template match="envar">
+ <span class="envar">
+ <xsl:call-template name="inline.monoseq"/>
+ </span>
+</xsl:template>
+
+<xsl:template match="replaceable" priority="1">
+ <span class="replaceable">
+ <xsl:call-template name="inline.italicmonoseq"/>
+ </span>
+</xsl:template>
+
+<xsl:template match="mediaobject|mediaobjectco">
+ <div class="{name(.)}">
+ <xsl:if test="@id">
+ <a name="{@id}"/>
+ </xsl:if>
+ <hr/>
+ <xsl:call-template name="select.mediaobject"/>
+ <xsl:apply-templates select="caption"/>
+ <hr/>
+ </div>
+</xsl:template>
+
+<xsl:template match="honorific|firstname|surname|lineage|othername">
+ <xsl:call-template name="inline.charseq"/>
+</xsl:template>
+
+<xsl:template match="personname">
+ <xsl:call-template name="anchor"/>
+ <xsl:call-template name="person.name"/>
+</xsl:template>
+<!--
+<xsl:template match="programlisting">
+ <xsl:param name="linenumbering.extension" select="1"/>
+</xsl:template> -->
+</xsl:stylesheet>