~ubuntu-branches/ubuntu/vivid/yelp-xsl/vivid-proposed

« back to all changes in this revision

Viewing changes to xslt/docbook/utils/chunks.xsl

  • Committer: Bazaar Package Importer
  • Author(s): Robert Ancell
  • Date: 2010-11-29 10:00:13 UTC
  • Revision ID: james.westby@ubuntu.com-20101129100013-1fxze8fm1fegxl8w
Tags: upstream-2.31.6
ImportĀ upstreamĀ versionĀ 2.31.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version='1.0' encoding='UTF-8'?><!-- -*- indent-tabs-mode: nil -*- -->
 
2
<!--
 
3
This program is free software; you can redistribute it and/or modify it under
 
4
the terms of the GNU Lesser General Public License as published by the Free
 
5
Software Foundation; either version 2 of the License, or (at your option) any
 
6
later version.
 
7
 
 
8
This program is distributed in the hope that it will be useful, but WITHOUT
 
9
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 
10
FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 
11
details.
 
12
 
 
13
You should have received a copy of the GNU Lesser General Public License
 
14
along with this program; see the file COPYING.LGPL.  If not, write to the
 
15
Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
16
02111-1307, USA.
 
17
-->
 
18
 
 
19
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
 
20
                version="1.0">
 
21
 
 
22
<xsl:output method="text" encoding="utf-8"/>
 
23
 
 
24
<xsl:include href="../common/db-chunk.xsl"/>
 
25
<xsl:include href="../common/db-xref.xsl"/>
 
26
 
 
27
<xsl:template match="/">
 
28
  <xsl:apply-templates>
 
29
    <xsl:with-param name="depth_of_chunk" select="0"/>
 
30
  </xsl:apply-templates>
 
31
</xsl:template>
 
32
 
 
33
<xsl:template match="
 
34
              appendix  | article  | bibliography | book     |
 
35
              chatper   | colophon | dedication   | glossary |
 
36
              glossdiv  | index    | lot          | part     |
 
37
              preface   | refentry | reference    | sect1    |
 
38
              sect2     | sect3    | sect4        | sect5    |
 
39
              section   | setindex | simplesect   | toc      ">
 
40
  <xsl:param name="depth_of_chunk" select="0"/>
 
41
  <xsl:call-template name="db.xref.target">
 
42
    <xsl:with-param name="linkend" select="@id"/>
 
43
    <xsl:with-param name="target" select="."/>
 
44
  </xsl:call-template>
 
45
  <xsl:text>&#x000A;</xsl:text>
 
46
 
 
47
  <xsl:if test="$depth_of_chunk &lt; $db.chunk.max_depth">
 
48
    <xsl:apply-templates>
 
49
      <xsl:with-param name="depth_of_chunk"
 
50
                      select="$depth_of_chunk + 1"/>
 
51
    </xsl:apply-templates>
 
52
  </xsl:if>
 
53
</xsl:template>
 
54
 
 
55
<xsl:template match="node()"/>
 
56
 
 
57
</xsl:stylesheet>