On 02/10/2017 09:30 AM, nobili, philippe wrote:
1) we used to refer to XXE stock configurations using 'xxe-config:'; I assumed
that this was still valid for release 7.3, and that 'xxe-config:docbook5:' was
equivalent to 'docbook5-config:'. Is is the case ?
Typo in 'xxe-config:docbook5:'? Do you mean 'xxe-config:docbook5/'?
"docbook5-config:" is GENERALLY equivalent to "xxe-config:docbook5/",
where "xxe-config:" is guaranteed to always be
XXE_install_dir/addon/config/.
"docbook5-config:" has been defined in case a user 1) uninstalls the
stock DocBook 5 configuration 2) regrets that and reinstalls it in
her/his XXE_user_preferences_dir/addon/.
In this very rare use case, "docbook5-config:" works fine but is NOT
equivalent to "xxe-config:docbook5/".
Therefore using "docbook5-config:" is a better choice than using
"xxe-config:docbook5/".
2) how can we refer to our own addons, which are installed directly in
*XXE/addon/* (as opposed to *XXE/addon/config/* for stock ones). Is there a
'xxe-addon:' ? we could not find it in the documentation.
No. This does not work this way.
The trick here is exactly the one used for the stock configurations,
like the DocBook 5 configuration.
1) Create in your add-on folder an catalog.xml file like the one below:
---
<?xml version="1.0" ?>
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog"
prefer="public">
<rewriteURI uriStartString=":cgg-customization" rewritePrefix="." />
</catalog>
---
2) Refer to the files contained in your add-on folder by using the
"cgg-customization:" prefix. Example: "cgg-customization:xsl/fo/docbook.xsl"
Of course, you can choose the URI prefix you want, except those already
defined in the stock configurations:
xxe-config:
dita-config:
ditac-xsl:
docbook51-config:
docbook5-config:
docbook-config:
xhtml-config:
--
XMLmind XML Editor Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xmleditor-support