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

« back to all changes in this revision

Viewing changes to xslt/docbook/html/db2html-qanda.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"
20
36
 
21
37
<xsl:template name="db2html.qanda.css">
22
38
  <xsl:text>
23
 
    dl[class~="qandaset"] dt + dd { margin-top: -8px; }
24
 
    dt[class~="question"] { margin-left: 0px; }
25
 
    dt[class~="question"] div[class~="label"] {
26
 
      float: right;
27
 
      margin-right: 1em;
28
 
    }
29
 
    dd[class~="answer"] { margin-left: 12px; }
30
 
    dt[class~="answer"] div[class~="label"] {
31
 
      float: right;
32
 
      margin-right: 1em;
33
 
    }
 
39
    dt[class~="question"] { margin-left: 0em; }
 
40
    dt[class~="question"] div[class~="label"] { float: left; }
 
41
    dd + dt[class~="question"] { margin-top: 1em; }
 
42
    dd[class~="answer"] {
 
43
      margin-top: 1em;
 
44
      margin-left: 2em;
 
45
      margin-right: 1em;
 
46
    }
 
47
    dd[class~="answer"] div[class~="label"] { float: left; }
34
48
  </xsl:text>
35
49
</xsl:template>
36
50
 
40
54
<xsl:template match="answer">
41
55
  <dd class="answer">
42
56
    <div class="label">
43
 
      <xsl:call-template name="db.label"/>
 
57
      <xsl:call-template name="db.label">
 
58
        <xsl:with-param name="role" select="'header'"/>
 
59
      </xsl:call-template>
44
60
    </div>
45
61
    <xsl:apply-templates/>
46
62
  </dd>
90
106
 
91
107
<xsl:template match="question">
92
108
  <dt class="question">
93
 
    <!-- FIXME -->
94
109
    <div class="label">
95
 
      <xsl:call-template name="db.label"/>
 
110
      <xsl:call-template name="db.label">
 
111
        <xsl:with-param name="role" select="'header'"/>
 
112
      </xsl:call-template>
96
113
    </div>
97
114
    <xsl:apply-templates/>
98
115
  </dt>