Petr Nalevka wrote:
> 
> first of all thanks for this excellent editor which I think is now the
> only reasonable way how to edit DocBook for non-technical people in a a
> visual manner.
> 
> My issue is: I have a huge modular document which has more than 120
> pages 

120 pages is not that big. We routinely test XXE against a 600 page book
without major performance problems. The slowness probably comes from
your (high-resolution) images. I would recommend to try working with the
CSS style sheet called "Images displayed as thumbnails".



> including maybe 30 images and huge tables. This makes XML Mind
> perform very slowly when I open the main document with all the
> XIncludes. It takes 20 seconds just to resize the editor window.
> 
> I'm wondering if there is a way how to customize the DocBook styles to
> only show a preview of the included fragment (anyway it is not directly
> editable in the main document), or if it would be possible to only show
> an empty box saying that here is an include from a ceratin href and I
> could do CTRL+Shift+E to follow the include into a new tab as usual.
> 
> I'm not much familiar with the customization documentation, so I wonder
> if this could be achieved just in the customization layer, not touching
> XXE sources.
> 
> What would be really great, to have it just in styles so beside "Show
> info about included elements" in Menu->View I could choose "Collapsed
> includes" or something similar.
> 

Yes, this is possible (and even pretty easy to do) but you need to
specify such CSS style sheet yourself. This CSS style sheet should
contain the following rule:

---
@namespace prop "http://www.xmlmind.com/xmleditor/namespace/property";;

*:property(prop|inclusion) {
    content: property(prop|inclusion);
    color: red;
}
---

How to do this cleanly (that is, not touching XXE sources or
configurations) is explained in "XMLmind XML Editor - Configuration and
Deployment", "Adding a custom CSS style sheet"
http://www.xmlmind.com/xmleditor/_distrib/doc/configure/add_css.html

--> The quick and dirty way: add the above CSS rule in
XXE_install_dir/addon/config/docbook/css/docbook.css if your document is
a DocBook 4 document and in
XXE_install_dir/addon/config/docbook5/css/docbook5.css if your document
is a DocBook 5 document.






Reply via email to