Hiding section numbers in Author view for DocBook files

Oxygen general issues.
jlm05
Posts: 1
Joined: Wed Sep 03, 2014 5:19 pm

Hiding section numbers in Author view for DocBook files

Post by jlm05 »

I'm looking into using oXygen to edit DocBook source files, and am experimenting with the trial version of XML Editor. I'm also learning DocBook, so am not an expert.

One thing that is very frustrating is that I cannot seem to hide the section numbers (Section 1.1, Section 1.1.1, etc.) in front of the section titles.

I know that in the XSL you can turn off the numbering for purposes of generating output, but is there a way to get rid of the numbers when editing?

They are pretty much useless and get in the way of seeing the actual heading text.
Radu
Posts: 9498
Joined: Fri Jul 09, 2004 5:18 pm

Re: Hiding section numbers in Author view for DocBook files

Post by Radu »

Hi,

Oxygen uses CSS to render XML in the Author visual editing mode.
The main CSS used for Docbook rendering is this one:

OXYGEN_INSTALL_DIR\frameworks\docbook\css\docbook.css

In it you can search for all occurrences of content: "Section " and you'll see it uses counters like:

Code: Select all

content: "Section " counter(sect1_count, decimal) "." counter(sect2_count, decimal) "." counter(sect3_count, decimal) ": ";
which you can replace for example with:

Code: Select all


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