Jean Jordaan wrote:
> 
>> and more specifically "Custom CSS style sheet"
>> http://www.xmlmind.com/xmleditor/_distrib/doc/configure/custom_css.html
> 
> I found this, but as far as I can see it refers to the CSS used by XXE
> to display the document. I'm talking about the CSS included with the
> generated HTML by the "DocBook|Convert Document|Convert to HTML"
> command. It looked like "Options|Customize Configuration|Change Document
> Conversion Parameters" is the place to change. I added "myhtml.css"
> under the "Convert to single-page HTML" section, but don't see any sign
> of myhtml in the log after conversion. I do still see html.css:
> 
> """
> Copying ressources specified by "xsl/css/html.css" to "html.css"
> Copying file "file:.../addon/config/docbook/xsl/css/html.css" to
> "/tmp/xxe16829/html.css"
> Copying "/tmp/xxe16829/html.css" to ".../myfolder/docbook/html.css" (2/20)
> """
> 

Sorry for the misunderstanding.



> It looks like 'addon/config/docbook/xslMenu.incl' is relevant. It says::
> 
>   <copyProcessResources resources="xsl/css/html.css" to="html.css" />
> 
>   <transform stylesheet="xsl/html/docbook.xsl"
>              ...
>              
> documentation="http://docbook.sourceforge.net/release/xsl/current/doc/html/%{parameter.name|html.stylesheet}.html">
>     ...
>     <parameter name="html.stylesheet">html.css</parameter>
>     ...
>   </transform>
> 
> So it does pass 'html.stylesheet' parameter to 'docbook.xsl', but it
> doesn't look as if the 'copyProcessResources' step takes account of the
> parameter value.
> 

The "copyProcessResources" element (see 
http://www.xmlmind.com/xmleditor/_distrib/doc/commands/copyProcessResources.html)
 
and the "html.stylesheet" parameter (see 
http://docbook.sourceforge.net/release/xsl/current/doc/html/html.stylesheet.html)
 
are not directly related.

The parameter value just specifies the *name* of the style sheet which 
is to be referenced by each HTML page generated during the conversion 
process.

There is currently no clean way to customize this style sheet. For now, 
please directly modify XXE_install_dir/addon/config/docbook/xsl/css/html.css

Reply via email to