11. Using a custom CSS style sheet to style the HTML files generated by the Convert Document submenu

Procedure:

  1. Copy your custom CSS style sheet to the custom/ directory.

    Let's suppose the name of the custom CSS style sheet is fancy.css.

  2. Add one or more of the following property configuration element to your custom .xxe file, depending on the kind of HTML files you want to style (HTML Help, Java Help, Eclipse Help and Epub are all HTML-based formats):

    Configuration NameConvert toProperty Configuration Element

    DITA

    DITA Map

    DITA BookMap

    XHTML multi-page

    <property name="dita.toXHTML.resource.css"
      url="true">fancy.css</property>
    XHTML single page
    <property name="dita.toXHTML1.resource.css" 
      url="true">fancy.css</property>
    HTML Help
    <property name="dita.toHTMLHelp.resource.css" 
      url="true">fancy.css</property>
    Web Help
    <property name="dita.toWebHelp.resource.css" 
      url="true">fancy.css</property>
    Eclipse Help
    <property name="dita.toEclipseHelp.resource.css" 
      url="true">fancy.css</property>
    EPUB
    <property name="dita.toEPUB.resource.css" 
      url="true">fancy.css</property>

    DocBook Assembly 5.1 and 5.2

    HTML multi-page

    <property name="asm.toHTML.resource.css"
      url="true">fancy.css</property>
    HTML single page
    <property name="asm.toHTML1.resource.css" 
      url="true">fancy.css</property>
    HTML Help
    <property name="asm.toHTMLHelp.resource.css" 
      url="true">fancy.css</property>
    Web Help
    <property name="asm.toWebHelp.resource.css" 
      url="true">fancy.css</property>
    Eclipse Help
    <property name="asm.toEclipseHelp.resource.css" 
      url="true">fancy.css</property>
    EPUB
    <property name="asm.toEpub.resource.css" 
      url="true">fancy.css</property>

    DocBook 5.1 and 5.2

    HTML multi-page

    <property name="db51.toHTML.resource.css"
      url="true">fancy.css</property>
    HTML single page
    <property name="db51.toHTML1.resource.css" 
      url="true">fancy.css</property>
    HTML Help
    <property name="db51.toHTMLHelp.resource.css" 
      url="true">fancy.css</property>
    Web Help
    <property name="db51.toWebHelp.resource.css" 
      url="true">fancy.css</property>
    Eclipse Help
    <property name="db51.toEclipseHelp.resource.css" 
      url="true">fancy.css</property>
    EPUB
    <property name="db51.toEpub.resource.css" 
      url="true">fancy.css</property>

    DocBook 5.0

    HTML multi-page

    <property name="db5.toHTML.resource.css"
      url="true">fancy.css</property>
    HTML single page
    <property name="db5.toHTML1.resource.css" 
      url="true">fancy.css</property>
    HTML Help
    <property name="db5.toHTMLHelp.resource.css" 
      url="true">fancy.css</property>
    Web Help
    <property name="db5.toWebHelp.resource.css" 
      url="true">fancy.css</property>
    Eclipse Help
    <property name="db5.toEclipseHelp.resource.css" 
      url="true">fancy.css</property>
    EPUB
    <property name="db5.toEpub.resource.css" 
      url="true">fancy.css</property>

    DocBook 4

    HTML multi-page

    <property name="docb.toHTML.resource.css" 
      url="true">fancy.css</property>
    HTML single page
    <property name="docb.toHTML1.resource.css" 
      url="true">fancy.css</property>
    HTML Help
    <property name="docb.toHTMLHelp.resource.css" 
      url="true">fancy.css</property>
    Web Help
    <property name="docb.toWebHelp.resource.css" 
      url="true">fancy.css</property>
    Eclipse Help
    <property name="docb.toEclipseHelp.resource.css" 
      url="true">fancy.css</property>
    EPUB
    <property name="docb.toEpub.resource.css" 
      url="true">fancy.css</property>