Philippe Nobili wrote:
> 
> We have two questions related to XMLMind
> 
> A- Conversion customization
> 
> Apart from having our XSL customization layers (that we load from an
> in-house XMLMind addon), we need to customize the xlsMenu.incl file
> delivered with XMLMind. The reasons why we have to do this are:
> 
> 1) To fix some problem with PNG images not being copied with the
> resources (only the draft.png is copied)
> 2) To copy our own CSS and PNG files rather than the distributed ones
> 
> So far to do this we could not find any other way than having a copy of
> almost the entire xslMenu.incl file, as they are many procedures to
> change (e.g. docb.convertStep1, docb.toHTML, docb.toHTML1, docb.toRTF,
> etc etc), even if the change is limited one line.
> 
> We have to do this at each new version to make sure we are on line with
> the current version of this file. Actually, the only thing that we need
> to customize in this file is the path to our customized resources
> (icons, CSS style sheets) that replace the resources packaged with XMLMInd.
> 
> Would you suggest a more clever way to achieve the same effect ?
> 
> 
> B- Customized XSLT Stylesheets
> 
> We would like to have several sets of customized XSLT stylesheets
> instead of one only. Would you have a suggestion on how we could achieve
> this, maybe using the load/save parameter set of XMLMind 4.3 ?

--> No, the load/save parameter set feature of XMLMind 4.3 is just a
feature targeted at the end-user which makes it easy working with
profiling style sheets.

--> There are two simple ways to customize the process commands
contained in the xlsMenu.incl file

[a] "Parametrizing the XSLT style sheets used in the Convert Document
submenu" --
http://www.xmlmind.com/xmleditor/_distrib/doc/configure/parametrize_xslt.html

[b] "Customizing the XSLT style sheets used in the Convert Document
submenu" --
http://www.xmlmind.com/xmleditor/_distrib/doc/configure/customize_xslt.html

However, the above techniques are meant to fulfill simple needs. Your
needs are pretty sophisticated, so you cannot use the above techniques.

--> You should no hesitate to write a *complete* *replacement* for
xlsMenu.incl. After all, XXE configuration files have been designed to
allow consultants to do that.

* 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).

* 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).





Reply via email to