At 13:42 -0500 23.01.2004, Hemond, Steve wrote:
I need to be able to generate html out of my docbook xml documents with
the formatting I want ... I can specify a parameter to Xalan so
it will add <href="stylesheet.css" etc..etc..> in the file but that way,
I need the .css to follow every document. I don't want this ... I don't
want to have to send the .css also. Is there any way I can reformat my
document so everything will be included in the html file?

CSS can be included in an HTML document using the <style> tag. See:

        http://www.w3.org/TR/html4/present/styles.html#h-14.2.3

You could embed your entire CSS stylesheet into the HTML document this way, either by copying the CSS into your XSLT manually, or by using Xalan's 'document()' function to pull in an external stylesheet (stored in a separate file) and embed it in the output HTML.

Angus
--
Business: http://www.nomadcode.com/    Personal: http://www.raingod.com/angus/

Reply via email to