Philippe Nobili wrote: > Thanks for your reply. My comments below. >> * Customizing an XXE configuration in a clean and maintainable way is >> explained here: "Customizing an existing configuration" -- >> http://www.xmlmind.com/xmleditor/_distrib/doc/configure/customizing.html >> (but I guess that you already know that). >> > Yes, we hope we did this more or less cleanly... we have been using the > same customized XXE configuration (DocBook-4) since version 3.7 of > XMLMind; as you say, it's easy to maintain it. > > Our only concern is: how could we dynamically choose between several > customized XXE configurations (say, for DocBook-4). By dynamically we > mean after XXE has started. > > The only way we have found so far is to replace physically one > customization by another one or change its name and restart XXE... > neither very elegant, nor convenient since we often edit DocBook > document with different conversion typesetting constraints. > > If you have any clue on how to achieve this, it would help **a lot**. A > "simple" "Load Configuration" feature (we can live with only one > DocBook-4 customization active at a time) would already be very appreciated. >> * You'll very seldom have to update your customization when you'll >> upgrade your version of XXE. I would even say that I don't see why you >> would need to change anything in it before next major version upgrade >> (v5, currently not planned). >> > True; so far the only think we had to change is when you add new > conversion procedures (for example very lately for E-Pub); then we have > to copy the procedure just to make shure we deliver our icons & stylesheets. > > As long as you do not modifiy the signature of your procedures, it is OK.
--> Complete replacement for xslMenu.incl means: create a totally custom "Convert Document" sub-menu. You probably don't care about ePub, so the fact that we support it in our stock configuration should have no impact on your customization. Please forget about the stock configuration and write a complete, *100%* *original*, replacement of xslMenu.incl which is based on the configuration elements documented in "XMLmind XML Editor - Configuration and Deployment" -- http://www.xmlmind.com/xmleditor/_distrib/doc/configure/index.html --> Why dynamically switch configurations? You'll have very hard times convincing us that this is really needed. You could: [a] Use the role attribute (or any other such ``semantic-less attribute'') of the root element of your documents to automatically select a variant of the DocBook 4 configuration. See the "detect" configuration element: http://www.xmlmind.com/xmleditor/_distrib/doc/configure/detect.html [b] OR Add several "Convert Document" sub-menus to the "DocBook" menu, each one being adapted to a certain use case.

