~ubuntu-branches/debian/sid/kdevelop/sid

« back to all changes in this revision

Viewing changes to doc/tools/index.xsl

  • Committer: Bazaar Package Importer
  • Author(s): Jeremy Lainé
  • Date: 2006-05-23 18:39:42 UTC
  • Revision ID: james.westby@ubuntu.com-20060523183942-hucifbvh68k2bwz7
Tags: upstream-3.3.2
Import upstream version 3.3.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0"?>
 
2
<xsl:stylesheet version="1.0"
 
3
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
 
4
<xsl:output omit-xml-declaration="yes"/>
 
5
 
 
6
<xsl:template match="/"><xsl:apply-templates/></xsl:template>
 
7
 
 
8
<xsl:template match="text()|@*"></xsl:template>
 
9
 
 
10
<xsl:template match="chapter">
 
11
  <xsl:variable name="url" select="@id"/>
 
12
  <xsl:apply-templates/>   
 
13
</xsl:template>  
 
14
 
 
15
<xsl:template match="chapter/section[position()!=1]">
 
16
  <xsl:variable name="url" select="@id"/>
 
17
  <xsl:apply-templates/>   
 
18
</xsl:template>  
 
19
 
 
20
<xsl:template match="indexterm">
 
21
  <xsl:choose>
 
22
    <xsl:when test="./secondary and ./tertiary">
 
23
    <entry name="{primary}, {secondary}, {tertiary}" url="{$url}.html"/>
 
24
    </xsl:when>
 
25
    <xsl:when test="./secondary">
 
26
    <entry name="{primary}, {secondary}" url="{$url}.html"/>
 
27
    </xsl:when>
 
28
    <xsl:otherwise>
 
29
    <entry name="{primary}" url="{$url}.html"/>
 
30
    </xsl:otherwise>
 
31
  </xsl:choose>
 
32
</xsl:template>
 
33
 
 
34
</xsl:stylesheet>