Page 1 of 1

Author Mode - Numbering of XIncluded documents reset

Posted: Fri Nov 20, 2009 8:44 pm
by Zearin
The Context
I'm editing a DocBook “Book” element. It contains Parts, lots of Chapters, and lots of Sections. Therefore, I have used plenty of XIncludes to manage all the content better.

The Problem
However, when I go to an included file in Author mode, the numbering for the Chapter/Section/whatever is reset. So I might be editing Chapter 24, but it is labelled as Chapter 1.

The Question
This is actually more than an inconvenience, because I'm referring to a hardcopy of the book and it completely throws off my place when the numbering is reset. I did look around the help files and searched these forums for a solution, but I didn't find much for this specific problem. (A couple of “close-but-no-cigar” results.)

Am I missing something? Is there an oXygen processing instruction to fix this? (Or anything else, for that matter?)

Re: Author Mode - Numbering of XIncluded documents reset

Posted: Mon Nov 23, 2009 11:35 am
by sorin_ristache
Hello,

In the current version (11.0) you can avoid re-numbering the included part when it is opened as a separate file by disabling the chapter numbers in the default DocBook CSS stylesheet, that is ${frameworks}/docbook/css/docbook.css. Please remove all occurences of counter(chapter_count) from that CSS stylesheet.

Other option could be editing the XIncluded part in place in the context of the containing document but that is not implemented yet in Author mode.


Regards,
Sorin