Robert Ganowski wrote:
> I just wanted to ask about available views in View menu. Before version
> 3.1 positions of this menu were ordered by the order of loading *.xxe
> files, and next by the position of css inclusion in those *.xxe files.
> Now, in version 3.1, I found available views sorted alphabetically. 

Not really.



> I have my style called 'Metoda', which is an extension of DocBook CSS.
> But I do not want to replace the original DocBook styles. Before XXE 3.1
> my view was first in the list, so the default for DocBook documents. Now
> my documents are opened with DocBook CSS, not mine, until I change the
> name atribute of my css configuration element, eg. to <css name='0.
> Metoda' .../>. 
> 
> Is there any mechanism for sorting elements of the View menu, different
> then the one before. Is it permanent change?

You should not rely on the way XXE loads its configuration files or on
the order of <css> elements within the DocBook configuration file.

Here's how to achieve what you want:

Your custom DocBook configuration file (e.g. mydocbook.xxe) should
contain these two <css> elements:

---
  <css name="DocBook" location="xxe-config:docbook/css/docbook.css"
       alternate="true"/>
  <css name="Metoda" location="metoda.css" alternate="false" />
---

That is,
* you mark the stock DocBook CSS as being *alternate* (see
http://www.xmlmind.com/xmleditor/_distrib/doc/configure/css.html)
* and you declare your own CSS as being the *single* *default* style
sheet for DocBook.


Reply via email to