Customising the nwalsh DSSSL stylesheets

Why customise?

Creating a customisation layer

Simplest possible customisation

Customising using documented variables

A trivial customisation

Taking things further

Sharing options between print and HTML stylesheets

In the Document Type Declaration

In the stylesheet body

On the command line

Can be further extended

A tour of the stylesheets

The other files

Two types of DSSSL code

Tracing an element’s definition

Tracing an element’s definition

Tracing an element’s definition

Tracing an element’s definition

Tracing an element’s definition

Tracing an element’s definition

Other …-seq functions

Rendering <emphasis> in bold

Rendering <emphasis> in bold

Rendering based on attribute

Rendering based on attribute

Rendering based on attribute

Rendering based on attribute

A look in common/

Supporting an extended DTD

An extended DTD

Supporting the extension

Supporting the extension

Customising a customisation

Multi-lingual CiteRefEntry links

Step 1: Find citerefentry

Step 2: Rewrite citerefentry in layer-2.dsl

Step 3: Create layer-3.dsl

Step 4: Turn on the linking

Step 5: Create the link function

Step 6: Use the new layer-3.dsl

A German link function

An extended link function

A sample infrastructure