Chapter 10. Stylesheets
Prev |  | Next

## Chapter 10. 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.

## 10.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.

### 10.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
9.8. Links | Home | Chapter 11. Translations

All FreeBSD documents are available for download at http://ftp.FreeBSD.org/pub/FreeBSD/doc/

Questions that are not answered by the documentation may be sent to <freebsd-questions@FreeBSD.org>.
Send questions about this document to <freebsd-doc@FreeBSD.org>.