Thank you very much. It works like a charm.
Pavel

-----Original Message-----
From: Hussein Shafie [mailto:[email protected]] 
Sent: Wednesday, October 08, 2008 7:46 PM
To: Skopik Pavel
Cc: xmleditor-support at xmlmind.com
Subject: Re: [XXE] DocBook - styling structure view for refentry

Skopik Pavel wrote:
> 
> we have a few documents containing refentries (300-600 refentries).
When
> using the structure view I would also like to see the content of the
> refname element so that it is easier for me to navigate in the
contents.
> 
> I had a look at the structure.css file and tried to do some
> customization so that the content of the refname element is put right
> after the refentry in the strucutred view as it is in the case of
> chapter titles etc. But I had no luck.
> 
> I parallely did for refname what is done for sections, chapters etc.,
> but I guess this is not the way. I would be grateful for some advice.
> Thank you.
> 

--> Please find attached to this email:

* docbook_css_structure.css to replace
XXE_install_dir/addon/config/docbook/css/structure.css

* docbook5_css_structure.css to replace
XXE_install_dir/addon/config/docbook5/css/structure.css

These CSS files have been tested only against XXE v4.1. They should be
available out of the box in the next release.



--> These CSS make use of the xpath() CSS extension (see
http://www.xmlmind.com/xmleditor/_distrib/doc/csssupport/xpath.html):

refentry {
    content: xpath("join(.//db5:refname, ', ')");
    color: gray;
}

This kind of content:xpath() is efficient but completely static. If you
prefer something less efficient but much more dynamic, replace the above
rule by:

refentry {
    content: label(xpath, "join(.//db5:refname, ', ')");
    color: gray;
}

See http://www.xmlmind.com/xmleditor/_distrib/doc/csssupport/label.html

Reply via email to