Thanks for the detailed response.

Turning off the quick start cache makes all the difference! May be it
should be noted in the documentation :-)

The 'add custom element templates' tool looks very useful, but I was
trying to write a customisation file that I could roll out to all my
users. Is it possible to copy the template created through the tool so
that they can be distributed?

We are just starting to learn how to get the most out of XXE, it is a
real up hill struggle to convince the authors to use a different tool
and the more customisation that I can give them the more likely it is
they will see the benefits.

Thanks

Richard



On 03/06/2011 16:31, Hussein Shafie wrote:
> ===================================================================
> IMPORTANT! Starting from XXE v4.9, you must disable the quick start
> cache before customizing the configurations by hand.
> 
> See
> http://www.xmlmind.com/xmleditor/_distrib/doc/help/com.xmlmind.guiutil.PreferencesEditorDialog.html#cacheOptions
> ===================================================================
> 
> 
> 
> On 06/03/2011 02:48 PM, Richard Taylor wrote:
>>
>> I am having a rather frustrating time trying to get a simple
>> customisation to DocBook5 working (6 hours so far and counting).
>>
> 
> Really sorry for that.
> 
> 
> 
> 
>> I have the following in a file called (on OS X):
>>
>> .../Library/Application
>> Support/XMLmind/XMLEditor4/addon/cy_custom/customize.xxe
> 
> customize.xxe is a name reserved for a customization which is not
> associated to a specific document type. We recommend to rename this file
> to docbook5.xxe.
> 
> 
> 
> 
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <configuration mimeType="application/x-docbook-5+xml" name="DocBook v5+"
>>                xmlns="http://www.xmlmind.com/xmleditor/schema/configuration";
>>                xmlns:xslt="http://www.w3.org/1999/XSL/Transform";
>>                xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>>                xmlns:xs="http://www.w3.org/2001/XMLSchema";
>>                xmlns:xlink="http://www.w3.org/1999/xlink";
>>                xmlns:xi="http://www.w3.org/2001/XInclude";
>>                xmlns:svg="http://www.w3.org/2000/svg";
>>                xmlns:html="http://www.w3.org/1999/xhtml";
>>                xmlns:db="http://docbook.org/ns/docbook";
>>
>> xmlns:cfg="http://www.xmlmind.com/xmleditor/schema/configuration";>
>>   <include location="xxe-config:docbook5/docbook5.xxe"/>
>>
>>   <elementTemplate name="requirement" selectable="true">
>>
>> <db:formalpara><db:title/><db:para/><db:procedure><db:title/><db:step><db:para/></db:step></db:procedure></db:formalpara>
>>   </elementTemplate>
>>
>>   <!--INCLUDE THIS RATHER THAN THE ABOVE LINE
>>     IF YOU HAVE INSTALLED THE "MathML support" ADD-ON
>>   <include location="mathml-config:db5mml/db5mml.xxe"/>
>> -->
>> </configuration>
>>
> 
> A formalpara is basically a title + a para. It may not contain a
> procedure. See http://www.docbook.org/tdg5/en/html/formalpara.html
> 
> XXE silently ignores invalid element templates, that's why you don't see
> it listed by the Edit tool.
> 
> 
> 
> --> If you have XXE Professional Edition, the safest way to add custom
> element templates is to do that from within XXE.
> 
> See this tutorial:
> 
> http://www.xmlmind.com/xmleditor/_tutorial/element_template/index.html
> 
> Its screencast:
> 
> http://www.xmlmind.com/xmleditor/_tutorial/element_template/video/element_template.html
> 
> 
> 
>> When I open a DocBook5 document I would expect (from reading the
>> documentation) that an element called formalpara(requirement) should be
>> listed in the available node list. But no such node is listed.
>>
>> The log output after loading the DocBook5 document is:
>>
>> Loading configuration "/Users/rjt/Library/Application
>> Support/XMLmind/XMLEditor4/addon/sample_customize_xxe/customize.xxe"...
>> Loading configuration "/Users/rjt/Library/Application
>> Support/XMLmind/XMLEditor4/addon/cy_custom/customize.xxe"...
>> Registering XSL-FO processor plug-in
>> "com.xmlmind.xmleditext.fop1_foprocessor.FOP"...
>> Registering image toolkit plug-in
>> "com.xmlmind.xmleditext.batik_imagetoolkit.BatikImageToolkit"...
>> Loading configuration
>> "/Applications/Editors/XMLEditor.app/Contents/Resources/addon/config/xhtml/xhtml_strict.xxe"...
>> Loading configuration
>> "/Applications/Editors/XMLEditor.app/Contents/Resources/addon/config/xhtml/xhtml_loose.xxe"...
>> Loading configuration
>> "/Applications/Editors/XMLEditor.app/Contents/Resources/addon/config/dita/topic.xxe"...
>> Loading configuration
>> "/Applications/Editors/XMLEditor.app/Contents/Resources/addon/config/dita/map.xxe"...
>> Loading configuration
>> "/Applications/Editors/XMLEditor.app/Contents/Resources/addon/config/docbook5/docbook5.xxe"...
>> Loading configuration
>> "/Applications/Editors/XMLEditor.app/Contents/Resources/addon/config/docbook/docbook.xxe"...
>> Loading configuration
>> "/Applications/Editors/XMLEditor.app/Contents/Resources/addon/config/dita/ditaval.xxe"...
>> Loading configuration
>> "/Applications/Editors/XMLEditor.app/Contents/Resources/addon/config/dita/bookmap.xxe"...
>> Loading configuration "/Users/rjt/Library/Application
>> Support/XMLmind/XMLEditor4/addon/xxe_config_pack/config/template/template.xxe"...
>> Loading configuration "/Users/rjt/Library/Application
>> Support/XMLmind/XMLEditor4/addon/xxe_config_pack/gui/gui.xxe"...
>> Loading configuration "/Users/rjt/Library/Application
>> Support/XMLmind/XMLEditor4/addon/xxe_config_pack/spreadsheet/functions.xxe"...
>> Loading configuration "/Users/rjt/Library/Application
>> Support/XMLmind/XMLEditor4/addon/xxe_config_pack/config/configuration.xxe"...
>> Loading configuration "/Users/rjt/Library/Application
>> Support/XMLmind/XMLEditor4/addon/xxe_config_pack/addon/addon.xxe"...
>> Loading document "/Users/rjt/Tmp/requirements.xml"...
>> Loading RELAX NG schema
>> "file:/Applications/Editors/XMLEditor.app/Contents/Resources/addon/config/docbook5/rng/V5.0/docbook.rng"...
>> Schema
>> "file:/Applications/Editors/XMLEditor.app/Contents/Resources/addon/config/docbook5/rng/V5.0/docbook.rng"
>> cached.
>> Processing inclusions in "file:/Users/rjt/Tmp/requirements.xml"...
>> Stripping ignoreable whitespace from
>> "file:/Users/rjt/Tmp/requirements.xml"...
>> Checking "/Users/rjt/Tmp/requirements.xml" validity...
>> Loading schematron
>> "file:/Applications/Editors/XMLEditor.app/Contents/Resources/addon/config/docbook5/rng/V5.0/docbook.sch".
>> "/Users/rjt/Tmp/requirements.xml" is valid.
>>
>> I have tried lots of different options but I just can't get any
>> customisations to be loaded.
>>
>> Version information:
>>
>> XMLmind XML Editor Professional Edition 4.9.0
>>
>> XMLmind XML Editor Configurations
>> /Users/rjt/Library/Application
>> Support/XMLmind/XMLEditor4/addon/xxe_config_pack/addon/addon.xxe
>> /Users/rjt/Library/Application
>> Support/XMLmind/XMLEditor4/addon/xxe_config_pack/config/configuration.xxe
>> /Users/rjt/Library/Application
>> Support/XMLmind/XMLEditor4/addon/cy_custom/customize.xxe
>> /Users/rjt/Library/Application
>> Support/XMLmind/XMLEditor4/addon/sample_customize_xxe/customize.xxe
>> /Users/rjt/Library/Application
>> Support/XMLmind/XMLEditor4/addon/xxe_config_pack/spreadsheet/functions.xxe
>> /Users/rjt/Library/Application
>> Support/XMLmind/XMLEditor4/addon/xxe_config_pack/gui/gui.xxe
>> /Users/rjt/Library/Application
>> Support/XMLmind/XMLEditor4/addon/xxe_config_pack/config/template/template.xxe
>> /Applications/Editors/XMLEditor.app/Contents/Resources/addon/config/dita/bookmap.xxe
>> /Applications/Editors/XMLEditor.app/Contents/Resources/addon/config/dita/ditaval.xxe
>> /Applications/Editors/XMLEditor.app/Contents/Resources/addon/config/docbook/docbook.xxe
>> /Applications/Editors/XMLEditor.app/Contents/Resources/addon/config/docbook5/docbook5.xxe
>> /Applications/Editors/XMLEditor.app/Contents/Resources/addon/config/dita/map.xxe
>> /Applications/Editors/XMLEditor.app/Contents/Resources/addon/config/dita/topic.xxe
>> /Applications/Editors/XMLEditor.app/Contents/Resources/addon/config/xhtml/xhtml_loose.xxe
>> /Applications/Editors/XMLEditor.app/Contents/Resources/addon/config/xhtml/xhtml_strict.xxe
>> XML Catalogs
>> /Applications/Editors/XMLEditor.app/Contents/Resources/addon/batik_imagetoolkit/svg_catalog.xml
>> /Applications/Editors/XMLEditor.app/Contents/Resources/addon/config/catalog.xml
>> /Applications/Editors/XMLEditor.app/Contents/Resources/addon/config/dita/catalog.xml
>> /Applications/Editors/XMLEditor.app/Contents/Resources/addon/config/docbook/catalog.xml
>> /Applications/Editors/XMLEditor.app/Contents/Resources/addon/config/xhtml/catalog.xml
>> Spell-Checker Dictionaries
>> /Applications/Editors/XMLEditor.app/Contents/Resources/addon/spell/en.dar
>> Java[tm] Runtime Environment
>> awt.toolkit=apple.awt.CToolkit
>> Java(TM) SE Runtime Environment 1.6.0_24
>> Java HotSpot(TM) Client VM 19.1-b02-334
>> Mac OS X 10.6.7 i386
>>
> 
>  
> --
> XMLmind XML Editor Support List
> [email protected]
> http://www.xmlmind.com/mailman/listinfo/xmleditor-support
> 
> 
> 

 
--
XMLmind XML Editor Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Reply via email to