‣ Parent topic: Part II. Customizing the output of XMLmind DITA Converter
ditac_install_dir/xsl/xhtml/resources/base.css
ditac_install_dir/xsl/webhelp/resources/base.css
ditac_install_dir/xsl/htmlhelp/resources/base.css
ditac_install_dir/xsl/eclipsehelp/resources/base.css
ditac_install_dir/xsl/epub/resources/base.css
@import url(base.css);
RestrictionMicrosoft HTML Help viewer hh.exe does
not support @import. Therefore you must copy
base.css into your custom CSS stylesheet if you
generate HTML Help. |
@import url(base.css); .part-title, .chapter-title, .appendix-title, .section1-title, .section2-title, .section3-title, .section4-title, .section5-title, .section6-title, .section7-title, .section8-title, .section9-title, .topic-title { color: #403480; border-bottom: 2px solid #403480; }
$ ditac -images img -p xsl-resources-directory res \ -p custom-css customize/custom.css \ out/manual/_.html manual.ditamap
base.css
, to
subdirectory out/manual/res/
.custom.css
to subdirectory
out/manual/res/
.‣ Parent topic: Chapter 9. Simple customization
ditac_install_dir/xsl/fo/fo.xsl
.
It is used to generate an intermediate XSL-FO file. After that, the
XSL-FO file is converted to PDF , PostScript , RTF ,
WordprocessingML , Office Open XML (.docx) or OpenOffice/LibreOffice
(.odt) by
the means of an XSL-FO processor.<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" version="2.0"> <xsl:import href="ditac-xsl:fo/fo.xsl"/> </xsl:stylesheet>
ditac_install_dir/xsl/
. This
works because the XML catalog used by the ditac
command-line utility (found in
ditac_install_dir/schema/catalog.xml
)
contains:<rewriteURI uriStartString="ditac-xsl:" rewritePrefix="../xsl/" />
ditac_install_dir/xsl/fo/
.<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" version="2.0"> <xsl:import href="ditac-xsl:fo/fo.xsl"/> <xsl:attribute-set name="topic-title" use-attribute-sets="topic-title"> <xsl:attribute name="color">#403480</xsl:attribute> <xsl:attribute name="font-size">160%</xsl:attribute> <xsl:attribute name="padding-bottom">0.05em</xsl:attribute> <xsl:attribute name="border-bottom">0.5pt solid #403480</xsl:attribute> <xsl:attribute name="space-before.optimum">1.5em</xsl:attribute> <xsl:attribute name="space-before.minimum">1.2em</xsl:attribute> <xsl:attribute name="space-before.maximum">1.8em</xsl:attribute> </xsl:attribute-set> </xsl:stylesheet>
$ ditac -t customize/custom_fo.xsl \ out/manual.pdf manual.ditamap
-plugin
command-line option. By doing this, your custom XSLT stylesheet will
be automatically used whatever the output format which uses XSL-FO as
its intermediate format (PDF, RTF, .odt, .docx,
etc).‣ Parent topic: Chapter 9. Simple customization