Chapter 6. Stylesheets
Prev |  | Next

## Chapter 6. Stylesheets

XML says nothing about how a document should be displayed to the user, or rendered on paper. To do that, various languages have been developed to describe stylesheets, including XSLT, XSL FO or CSS.

We use XSLT stylesheets to transform DocBook into XHTML and then we apply CSS formatting to XHTML pages. Currently, the printable output is rendered with legacy DSSSL stylesheets but this may probably change in the future.

## 6.1. CSS

Cascading Stylesheets (CSS) are a mechanism for attaching style information (font, weight, size, color, and so forth) to elements in an XHTML document without abusing XHTML to do so.

### 6.1.1. The DocBook Documents

The FreeBSD DSSSL stylesheets include a reference to a stylesheet, `docbook.css`, which is expected to appear in the same directory as the XHTML files. The project-wide CSS file is copied from `doc/share/misc/docbook.css` when documents are converted to XHTML, and is installed automatically.

Prev |  | Next
5.8. Links | Home | Chapter 7. Structuring Documents Under `doc/`

This, and other documents, can be downloaded from http://ftp.FreeBSD.org/pub/FreeBSD/doc/

For questions about FreeBSD, read the documentation before contacting <questions@FreeBSD.org>.
For questions about this documentation, e-mail <doc@FreeBSD.org>.