I have an XSL transformation which outputs HTML. In the head
element I have a CSS file reference.
XSLT 2.0 provides the unparsed-text() function to read documents via URL that are not XML.
In XSLT 1.0, if you don't need to be too script about the CSS, you can use the following to make the CSS file XML-compatible. And, fortunately, the browsers tolerate the HTML comments.
CSS
body
{
margin: 0;
}
div > p
{
background-color: yellow;
}
]]>
XSLT