delay a few things on startup, such as setting the visibility mode, which ensures...
[personal-kdebase.git] / runtime / khelpcenter / glossary.xslt
blob4be123a824be8fd62884cfca361b7a294e4b6197
1 <?xml version="1.0"?>
2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
3 version="1.0">
5 <xsl:template match="glossary">
6 <glossary>
7 <xsl:apply-templates select="glossdiv"/>
8 </glossary>
9 </xsl:template>
11 <xsl:template match="glossdiv">
12 <section>
13 <xsl:attribute name="title"><xsl:value-of select="title"/></xsl:attribute>
14 <xsl:apply-templates select="glossentry"/>
15 </section>
16 </xsl:template>
18 <xsl:template match="glossentry">
19 <entry>
20 <xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute>
21 <term><xsl:value-of select="glossterm"/></term>
22 <definition><xsl:value-of select="glossdef/*[not(name()='glossseealso')]"/></definition>
23 <references><xsl:apply-templates select="glossdef/glossseealso"/></references>
24 </entry>
25 </xsl:template>
27 <xsl:template match="glossseealso">
28 <reference>
29 <xsl:attribute name="term"><xsl:value-of select="."/></xsl:attribute>
30 <xsl:attribute name="id"><xsl:value-of select="@otherterm"/></xsl:attribute>
31 </reference>
32 </xsl:template>
34 </xsl:stylesheet>