~ubuntu-branches/ubuntu/lucid/gnome-doc-utils/lucid

« back to all changes in this revision

Viewing changes to xslt/docbook/html/db2html-table.xsl

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Holbach
  • Date: 2005-12-19 08:34:21 UTC
  • mto: (2.1.1 etch) (1.1.18 upstream)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20051219083421-k72rkh3n6vox1c0t
Tags: upstream-0.5.2
ImportĀ upstreamĀ versionĀ 0.5.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?xml version='1.0' encoding='utf-8'?><!-- -*- indent-tabs-mode: nil -*- -->
 
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
-->
2
18
 
3
19
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
4
20
                xmlns:doc="http://www.gnome.org/~shaunm/xsldoc"
40
56
 
41
57
<xsl:template name="db2html.table.css">
42
58
  <xsl:text>
43
 
    div[class~="table"] { margin-left: 2em; }
44
59
    table {
45
60
      border-collapse: collapse;
46
61
      border: solid 1px;
54
69
  </xsl:if>
55
70
  <xsl:text>
56
71
    td {
57
 
      padding-left: 0.8em;
58
 
      padding-right: 0.8em;
 
72
      padding-left: 0.83em;
 
73
      padding-right: 0.83em;
59
74
      padding-top: 4px;
60
75
      padding-bottom: 4px;
61
76
    }
62
 
    th { padding-left: 0.8em; padding-right: 0.8em; }
 
77
    th { padding-left: 0.8em; padding-right: 0.83em; }
63
78
    thead {
64
79
      border-top: solid 2px;
65
80
      border-bottom: solid 2px;
291
306
 
292
307
<!-- = table = -->
293
308
<xsl:template match="table | informaltable">
294
 
  <div class="table">
 
309
  <div class="table block-indent">
295
310
    <xsl:call-template name="db2html.anchor"/>
296
311
    <xsl:apply-templates select="title"/>
297
312
    <!-- FIXME: I have no idea what I'm supposed to do with textobject -->