Chris Johnson wrote:
> I really enjoy editing my DocBook files with XXE, but I have recently
> been adding <sectioninfo> elements to my files. Now when I collapse the
> nodes of my DocBook file the titles aren't displayed in the <section>'s
> that have a <sectioninfo> element - only the <sectioninfo> is displayed.
> I *could* add a <title> to the <sectioninfo> element, but that seems
> redundant to me...
> 
> I think this display is awkward - 

Not when the <sectioninfo> contains a <title>.



> is there a way to override this so collapsed nodes display titles only?

No, because <sectioninfo> always comes before <title>.

Here's what you can do (the quick and dirty way, just to give you the 
basic idea):

[1] Edit <XXE_install_dir>/docbook/css/collapsible.imp

[2] After

---
set,
book,
part,
reference,
chapter,
preface,
article,
sect1,
sect2,
sect3,
sect4,
section,
appendix,
figure,
example,
table {
     collapsible: yes;
     not-collapsible-head: 1; /* title or metainfo */
}
---

Add:

---
section:contains-element(sectioninfo) {
     not-collapsible-head: 2; /* both sectioninfo and title */
}
---

By doing this, collapsed <section>s containing both a <sectioninfo> and 
a <title> will display their first 2 elements (the <sectioninfo> and the 
<title>).

Clean method for customizing the DocBook CSS style sheet described in:
http://www.xmlmind.com/xmleditor/_distrib/docs/configure/ch04.html


Reply via email to