Adding .css to Toc.Html
Oxygen general issues.
-
- Posts: 5
- Joined: Mon Mar 31, 2014 1:19 am
Adding .css to Toc.Html
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
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
-
- Posts: 2883
- Joined: Tue May 17, 2005 4:01 pm
Re: Adding .css to Toc.Html
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
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
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
-
- Posts: 5
- Joined: Mon Mar 31, 2014 1:19 am
Re: Adding .css to Toc.Html
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
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
-
- Posts: 2883
- Joined: Tue May 17, 2005 4:01 pm
Re: Adding .css to Toc.Html
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
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
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service