Home › Forums › General XMetaL Discussion › Applying a custom css when using the multiple html file output › Reply To: Applying a custom css when using the multiple html file output
Reply to: Applying a custom css when using the multiple html file output
November 10, 2011 at 11:14 pmThe DITA OT seems to have a limitation that causes it to fail to put CSS links into the TOC file as you might expect it to. There is code there that looks like it should work, and I don't see why it is failing when the CSS links (that use similar code) work for the individual HTML topic files.
The main file that does the Multiple HTML transform is this:
It doesn't really do much except set up the XSLT output to be XML (to produce XHTML output) and then import this file, which does most of the work for the TOC:
map2htmtoc.xsl
That file is where most of the magic for the TOC happens.
It contains this template that should build up and insert CSS links:
My tests show that this is failing for some reason, but I can't figure out why.
If you need a solution immediately I'd just hard code what you need into the main template and leave it at that for now. The easiest way to do that is to change the following. My new stuff is in blue. You would obviously change the text “insert your path here” to be your actual path.
If I have some time I might have a look further to see what is really going on there. I suspect this should already be a known issue and that it likely would have a bug listed at the DITA OT project at SourceForge: http://sourceforge.net/tracker/?group_id=132728&atid=725074