Global CSS file for DocBook project without editing the head

cube
Posts: 13

Global CSS file for DocBook project without editing the head

Wed Oct 16, 2013 12:23 pm

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: 5088

Re: Global CSS file for DocBook project without editing the

Wed Oct 16, 2013 12:34 pm

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

Return to “DocBook”

Who is online

Users browsing this forum: No registered users and 0 guests