Global CSS file for DocBook project without editing the head

cube
Posts: 13
Joined: Mon Jul 29, 2013 6:14 pm

Global CSS file for DocBook project without editing the head

Post by cube »

Hi,

it is possible to apply a CSS for the author mode without editing the header of the XML files?

Snippet from the personal.xml example

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE personnel PUBLIC "PERSONNEL" "personal.dtd">
<?xml-stylesheet type="text/css" href="personal.css"?>
<personnel/
I am not allowed to add my custom styles to the XML files. :cry:

Thanks!
cube
Radu
Posts: 9045
Joined: Fri Jul 09, 2004 5:18 pm

Re: Global CSS file for DocBook project without editing the

Post by Radu »

Hi,

In the Oxygen Preferences->"Document Type Association" page you can edit the Docbook (4 or 5) document type association. In the "Document Type Edit" dialog you go to the Author tab which has a CSS tab. That tab links to the default CSS used for Docbook editing located in:

OXYGEN_INSTALL_DIR/frameworks/docbook/css/docbook.css

You could either edit that CSS and add in it an import to your custom CSS or add in your custom CSS an import to the main "docbook.css" and refer to your custom CSS in the document type CSS list.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply