Jeremy Quinn wrote:
> Is it possible for individuals, in a group of users of XXE, to have
> their own local templates (unique or overriding existing), in a
> situation where they are all accessing the same shared configuration
> repository via HTTP (as setup in their XXE_CONFIG environment variable)?
>
> Without duplicating the shared CSS, XSD, icons, config-include etc. files.
Yes. They must add customizations of system-wide configurations in their
~/.xxe2/config/ directory.
Here's an excerpt of the FAQ of our new Web site (released in a few days):
============================================================
Q: How can I customize the bundled DocBook
configuration?
A: The basic idea is to create in your home
directory a XXE configuration file which imports
the bundled DocBook configuration and which adds a
few custom configuration items to it.
1. Create a docbook/ subdirectory in
~/.xxe2/config/ (C:\Documents and
Settings\<user>\xxe2\config\ on Windows). This
allows to keep all the resources needed by
your custom DocBook configuration in the same
place.
2. Create your custom DocBook configuration file
in this docbook/ subdirectory.
Example: mydocbook.xxe defines a custom
macro-command called docb.openDocument and
adds a button executing this command to the
DocBook tool bar.
---
<?xml version='1.0' encoding='ISO-8859-1'?>
<configuration name="DocBook"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://www.xmlmind.com/xmleditor/schema/configuration"
xmlns:cfg="http://www.xmlmind.com/xmleditor/schema/configuration">
<include location="docbook/docbook.xxe" system="true" />
<command name="docb.openDocument">
<macro>
<sequence>
<command name="get"
parameter="[implicitElement][URL] ./@url" />
<command name="XXE.open" parameter="%_" />
</sequence>
</macro>
</command>
<toolBar>
<insert />
<button toolTip="Open Document" icon="icons/edit.gif">
<command name="docb.openDocument" />
</button>
</toolBar>
</configuration>
---
Notes:
+ The custom configuration is called
"DocBook" just like the bundled DocBook
configuration.
+ The <include> element is used to import
all the configuration items from the
bundled DocBook configuration.
+ The <insert> element inside the <toolBar>
element is used to insert all the tool
bar buttons specified in the bundled
DocBook configuration before the new
button.
+ The above example assumes that a icons/
subdirectory containing file edit.gif is
found in docbook/.
If you need to do all this, not only for you, but
also for a group of XXE users, this is possible
too but you'll have to create a similar docbook/
subdirectory on a HTTP server and then use the
XXE_CONFIG environment variable. This is described
in the Power User's Guide.
===================================================
In the above FAQ, we use a custom DocBook tool bar as an example but the
above FAQ also applies to elementTemplates for a custom DTD/XML Schema.
PS: No, for now, there is no way for an end-user to save as an
elementTemplate, an element he/she has created interactively.