Creating Author Mode Custom CSS Layer for Docbook
Posted: Fri May 22, 2015 8:36 pm
I'm interested in creating a custom CSS for my docbook variant. I've started by creating a new document type association as and extension of docbook 5. Under the author tab of the doctype I've added my own css:
Note that my custom framework cannot reside in the Oxygen installation directory.
This all works fine. I can select the tmwbook.css file from the style toolbar. The problem is that I've got minor modifications to make and I want to inherit the core docbook.css file (${baseFramework}/css/docbook.css). tmwbook.css is a trivial customization:
When I try to import docbook.css using the ${baseFramework} variable, I get a css validation error that it cannot find the file specified. So it appears that I cannot use the variables directly in the CSS. I read in a help topic (http://www.oxygenxml.com/doc/versions/1 ... ports.html) that I can use catalogs to help resolve the import statements. Given that I can't ensure that users will install Oxygen to the same location as I want, and that we expect to upgrade as the product allows and the install directory changes, How can I construct a catalog with indirection that allows for this level of unknowns? I really could use some way of accessing ${baseFramework}.
Thanks in advance,
Steve
Code: Select all
${frameworks}/tmwbook.framework/css/tmwbook.css
This all works fine. I can select the tmwbook.css file from the style toolbar. The problem is that I've got minor modifications to make and I want to inherit the core docbook.css file (${baseFramework}/css/docbook.css). tmwbook.css is a trivial customization:
Code: Select all
@import "${baseFramework}/css/docbook.css";
@namespace oxy url('http://www.oxygenxml.com/extensions/author');
@namespace xi "http://www.w3.org/2001/XInclude";
xi|include[xpointer]:before {
content: "test";
link: oxy_concat(attr(href), "#", attr(xpointer)) !important;
Thanks in advance,
Steve