maxwell wrote:
> On Sun, 21 Feb 2010 11:04:07 +0100, Hussein Shafie <hussein at xmlmind.com>
> wrote:
>> XXE is extensible by downloading and installing add-ons. Therefore I
>> suggest to package your custom configuration as an add-on. (More info
>> http://www.xmlmind.com/xmleditor/contribute.html#package_addon)
>> ...
> 
> This looks like a good solution, however we can't figure out what this
> step means:
> 
>> Copy this add-on to a public HTTP server. Example:
>> http://www.umiacs.umd.edu/public/xxe/my_config.xxe_addon pointing to
>> http://www.umiacs.umd.edu/public/xxe/my_config.zip
> 
> It sounds like the URL
> "http://www.umiacs.umd.edu/public/xxe/my_config.xxe_addon"; should somehow
> "be" the file at "http://www.umiacs.umd.edu/public/xxe/my_config.zip";
> (which on some systems would be the file
> /var/www/public/xxe/my_config.zip).  But we're not sure how this aliasing
> is done.  One of our people who knows more about http servers than I do
> wrote:
> 
>> There are ways to configure Apache to feed different files 
>> based on filetypes, but that's a VERY unusual way to configure it.
> 
> I tried just renaming the .zip file to .xxe_addon, but that doesn't work.
> 
> Can you point me to how this is done?
> 

What follows is also described here:
http://www.xmlmind.com/xmleditor/_distrib/doc/dev/plugin.html#pack_addons

* my_config.xxe_addon must start with
---
<a:addon location="my_config.zip"
---
That is, my_config.xxe_addon *points* to my_config.zip.

* my_config.xxe_addon must be archived inside my_config.zip (at the same
level as the other files comprising your add-on).

* Also copy my_config.xxe_addon nearby my_config.zip

Now, we have this:

C:\temp> dir
my_config.xxe_addon
my_config.zip

C:\temp> unzip -v my_config.zip
my_config/my_config.xxe_addon
my_config/foo.xxe
my_config/foo.rnc
...

* Let's suppose you have http://www.acme.com/~mike mapped to
C:\Documents and settings\mike\public_html\
(This is often the case on Unix. Ask your sysadmin for more info.)

Now do this:

C:\temp> copy my_config.xxe_addon C:\Documents and
settings\mike\public_html\

C:\temp> copy my_config.zip C:\Documents and settings\mike\public_html\

* Now tell your users to add
http://www.acme.com/~mike/my_config.xxe_addon to the "Download add-ons
from these servers" list displayed in Options|Preferences, "Install
add-ons" section.




Reply via email to