My answer is about a *personal* customization of DocBook (i.e. which is 
to be installed in <XXE_user_preferences_dir>/config/).

If your question was about a system-wide customization of DocBook, do 
not hesitate to ask your question one more time.



Claus Bech Rasmussen - TELMORE wrote:
> I've created a few commands that I'd like to put into the DocBook menu,
> but I'd rather keep my stuff in it's own configuration folder as I do
> other things too. Currently I add an include line to the docbook
> configuration to slurp in my extras when working with DocBook documents,
> but I'd like to know if there's something I can do to load my
> configuration without touching the docbook files at all?

Yes. See http://www.xmlmind.com/xmleditor/_distrib/docs/configure/ch04.html

There is even a ready to use example: 
<XXE_install_dir>/docs/configure/samples2/mydocbook.xxe

which looks like this:

---
<?xml version='1.0' encoding='ISO-8859-1'?>
<configuration name="DocBook"
   xmlns="http://www.xmlmind.com/xmleditor/schema/configuration";
   xmlns:cfg="http://www.xmlmind.com/xmleditor/schema/configuration";>

   <include location="xxe-config:docbook/docbook.xxe"/>

       .
     customization items
       .
       .

</configuration>
---



> I read the documentation for <detect> and it seems that it won't try
> more options once it has found a match, so I can't reuse the docbook
> detect rules and have my configuration loaded along with the docbook
> one?

That's correct. There is no way to reuse an existing <detect>. You need 
to completely rewrite your own <detect> if you want to cutomize 
something in the stock <detect>.


Reply via email to