aboutsummaryrefslogtreecommitdiff
path: root/en_US.ISO8859-1/books/fdp-primer/stylesheets/chapter.xml
blob: 04adcc1a3e65be8f02bb427888355459b079b52d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- Copyright (c) 1998, 1999 Nik Clayton, All rights reserved.

     Redistribution and use in source (SGML DocBook) and 'compiled' forms
     (SGML HTML, PDF, PostScript, RTF and so forth) with or without
     modification, are permitted provided that the following conditions
     are met:

      1. Redistributions of source code (SGML DocBook) must retain the above
         copyright notice, this list of conditions and the following
         disclaimer as the first lines of this file unmodified.

      2. Redistributions in compiled form (transformed to other DTDs,
         converted to PDF, PostScript, RTF and other formats) must reproduce
         the above copyright notice, this list of conditions and the
         following disclaimer in the documentation and/or other materials
         provided with the distribution.

     THIS DOCUMENTATION IS PROVIDED BY NIK CLAYTON "AS IS" AND ANY EXPRESS OR
     IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
     OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
     DISCLAIMED. IN NO EVENT SHALL NIK CLAYTON BE LIABLE FOR ANY DIRECT,
     INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
     (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
     SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
     HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
     STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
     ANY WAY OUT OF THE USE OF THIS DOCUMENTATION, EVEN IF ADVISED OF THE
     POSSIBILITY OF SUCH DAMAGE.

-->
<chapter xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0" xml:id="stylesheets">
  <title>Style Sheets</title>

  <para><acronym>XML</acronym> is concerned with content, and says
    nothing about how that content should be presented to the reader
    or rendered on paper.  Multiple <emphasis>style sheet</emphasis>
    languages have been developed to describe visual layout, including
    Extensible Stylesheet Language Transformation
    (<acronym>XSLT</acronym>), Document Style Semantics and
    Specification Language (<acronym>DSSSL</acronym>), and Cascading
    Style Sheets (<acronym>CSS</acronym>).</para>

  <para>The <acronym>FDP</acronym> documents use
    <acronym>XSLT</acronym> stylesheets to transform DocBook into
    <acronym>XHTML</acronym>, and then <acronym>CSS</acronym>
    formatting is applied to the <acronym>XHTML</acronym> pages.
    Printable output is currently rendered with legacy
    <acronym>DSSSL</acronym> stylesheets, but this will probably
    change in the future.</para>

  <sect1 xml:id="stylesheets-css">
    <title><acronym>CSS</acronym></title>

    <para>Cascading Style Sheets (<acronym>CSS</acronym>) are a
      mechanism for attaching style information (font, weight, size,
      color, and so forth) to elements in an <acronym>XHTML</acronym>
      document without abusing <acronym>XHTML</acronym> to do
      so.</para>

    <sect2 xml:id="stylesheets-css-documents">
      <title>The DocBook Documents</title>

      <para>The &os; <acronym>XSLT</acronym> and
	<acronym>DSSSL</acronym> stylesheets refer to
	<filename>docbook.css</filename>, which is expected to be
	present in the same directory as the <acronym>XHTML</acronym>
	files.  The project-wide <acronym>CSS</acronym> file is copied
	from <filename>doc/share/misc/docbook.css</filename> when
	documents are converted to <acronym>XHTML</acronym>, and is
	installed automatically.</para>
    </sect2>
  </sect1>
</chapter>