CSS From XSLT

Liam Quin

Delightful Computing

Abstract

CSS Within is a new way to integrate CSS generation with HTML generation to help reduce or eliminate these problems.

The method used is to embed rule and media elements, in a CSS Within namespace, inside XSLT templates. This puts the CSS styles exactly where the XSLT developer needs them: right next to the XSLT instructions producing the elements that they style.

Limited usage experience suggests that CSS Within makes HTML generation easier to maintain and more robust over time.


Table of Contents

Introduction
Rules and Media
The CSS Output
The stream attribute
Phases of Operation
Phase One: De-cluttering the Output
Phase Two: Writing Out the CSS
Pure XSLT Implementation
Java Extension for Saxon
Discussion: Deployment
Limitations
Future Work
Availability
Conclusions