Page 1 of 1

Adding .css to Toc.Html

Posted: Wed Jul 30, 2014 7:07 pm
by Arghyle
Hi there - couple quick questions about using the args.css parameter to customize my webhelp:

1) I've set the args.css value to a relative path that points to my own stylesheet (it's set to ${pd}\..\styles\Help.css). After the transformation, my content files do contain a link to the Help.css file. But the Toc.Html file does NOT contain a link to Help.css (and I need it to). Any suggestions as to why the Toc.Html file doesn't contain the link? Hopefully I'm missing something simple.

2) When using args.css, is the transformation supposed to automatically copy the stylesheet to the output location, or is that a manual step that needs to be performed after the transformation?

Thanks!

-- Jim

Re: Adding .css to Toc.Html

Posted: Fri Aug 01, 2014 5:49 pm
by adrian
Hi,

1. I've tested with Oxygen v16.0 and the css specified in 'args.css' does appear in 'toc.html':
<link rel="stylesheet" type="text/css" href="mycss.css">
What version of Oxygen are you using?

2. You need to set an additional parameter 'args.copycss' to 'yes'.

Regards,
Adrian

Re: Adding .css to Toc.Html

Posted: Mon Aug 04, 2014 10:13 pm
by Arghyle
Hello Adrian - thanks for the reply.

I am currently using version XML Editor 15.2, build 2014022718.

And I just tried it again to make sure I'm not imagining it, but there is definitely no link to my custom .Css in the Toc.Html file.

-- Jim

Re: Adding .css to Toc.Html

Posted: Wed Aug 06, 2014 8:05 pm
by adrian
Hello Jim,

We tested with your specific version and build number of Oxygen on Windows, but could not reproduce what you described. With an existing CSS path set for args.css we always obtained the expected result (CSS linked in index and toc).
If you specify a CSS file that does not exist, then it's not linked in either the toc or index.

On what platform are you running Oxygen (Windows, Linux, OS X)?
If you are on a platform with a case sensitive file system (Linux and sometimes OS X), make sure you use correct uppercase/lowercase for the CSS path and name in the args.css value. Browse for the file using the Browse button that Oxygen provides, at least for testing purposes.

Regards,
Adrian