On 13 Apr, 11:29, Rob Kerr <robert.k... (AT) bbc (DOT) co.uk> wrote:
Quote:
The question: has anyone tried to (or more usefully, succeeded
in) generating CSS files from an XML document transformed using XSL? |
Trivial, easy and just a bad idea, so don't do it.
CSS is plain text. Use the right XSL output method and you can make
some - anything you want, whatever content you like.
However you shouldn't _need_ dynamic CSS. An apparent need for such a
thing usually indicates that the HTML itself is broken and has
inadequate specificity of usable selectors (i.e., get some better
classes in there). If the selectors are adequate, then a _static_ CSS
document can deliver all you need.
This technique is often seen in conjunction with absolute CSS
positioning, and indicating that the design positioning is inflexible.