Adding .css to Toc.Html

Oxygen general issues.
Arghyle
Posts: 5
Joined: Mon Mar 31, 2014 1:19 am

Adding .css to Toc.Html

Post 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
adrian
Posts: 2883
Joined: Tue May 17, 2005 4:01 pm

Re: Adding .css to Toc.Html

Post 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
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Arghyle
Posts: 5
Joined: Mon Mar 31, 2014 1:19 am

Re: Adding .css to Toc.Html

Post 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
adrian
Posts: 2883
Joined: Tue May 17, 2005 4:01 pm

Re: Adding .css to Toc.Html

Post 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
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Post Reply