doc/de_DE.ISO8859-1/books/fdp-primer/stylesheets/chapter.sgml
2012-09-14 17:47:48 +00:00

99 lines
4.1 KiB
XML

<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
<!-- 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.
$FreeBSD$
$FreeBSDde$
basiert auf: r38869
-->
<chapter id="stylesheets">
<chapterinfo>
<authorgroup>
<author>
<firstname>Johann</firstname>
<surname>Kois</surname>
<contrib>Übersetzt von </contrib>
</author>
</authorgroup>
</chapterinfo>
<title>Stylesheets</title>
<para>SGML legt nicht fest, wie ein Dokument am Monitor oder auf einem
Ausdruck dargestellt werden soll. Für diese Aufgabe wurden
spezielle Sprachen entwickelt, die Formatvorlagen (die sogenannten
<foreignphrase>Stylesheets</foreignphrase>) für die Darstellung
der Inhalte definieren. Zu diesen Sprachen gehören
beispielsweise DynaText, Panorama, SPICE, JSSS, FOSI, CSS, DSSSL
und andere mehr.</para>
<para>DocBook verwendet in DSSSL geschriebene Stylesheets. HTML
verwendet hingegen in CSS geschriebene Stylesheets.</para>
<sect1 id="stylesheets-dsssl">
<title>DSSSL</title>
<para>Das Documentation Project verwendet eine anpasste Version der
von Norm Walsh entwickelten modularen DocBook-Stylesheets, die
über den Port <filename
role="package">textproc/dsssl-docbook-modular</filename>
installiert werden können.</para>
<para>Die FreeBSD-Modifikationen sind hingegen nicht in der
Ports-Sammlung enthalten, sondern befinden sich im
Quellcode-Repository des Documentation Projects in der Datei
<filename>doc/share/sgml/freebsd.dsl</filename>. Diese Datei
ist umfassend kommentiert und mit Beispielen versehen.
Dadurch können Sie einfach nachvollziehen, wie die
ursprünglichen Stylesheets vom FreeBSD Documentation
Project angepasst wurden.</para>
</sect1>
<sect1 id="stylesheets-css">
<title>CSS</title>
<para>Cascading Stylesheets (CSS) erlauben es, Elementen eines
HTML-Dokuments Formatangaben (wie Schriftart, Größe,
Schriftfarbe und andere mehr) zuzuweisen, ohne das HTML-Dokument
mit diesen Informationen zu überfrachten.</para>
<sect2>
<title>Die DocBook-Dokumente</title>
<para>The FreeBSD DSSSL-Stylesheets enthalten eine Referenz auf
ein Stylesheet namens <filename>docbook.css</filename>, das sich
im gleichen Verzeichnis wie die HTML-Dateien befindet. Diese
projektweite CSS-Datei wird automatisch von
<filename>doc/share/misc/docbook.css</filename> kopiert und
installiert, wenn DocBook-Dokumente nach HTML konvertiert
werden.</para>
</sect2>
</sect1>
</chapter>