Erik B. wrote:

Is it possible to set a marker in a document, e.g.*[version]* and have
it parsed during conversion by passing a parameter like --version=1.2.3?

Sorry but I'm not sure to understand this.

A conversion is basically running an XSLT stylesheet on the document being edited. A customized XSLT stylesheet can indeed find and process "markers" found in the document being converted.

It's quite easy to pass any parameter you want to the XSLT stylesheets used by XMLmind XML Editor. See http://www.xmlmind.com/xmleditor/_distrib/doc/help/conversion_parameters_editor.html

It's also easy to customize the XSLT stylesheets used by XMLmind XML Editor. See "Customize Document Conversion Stylesheets" in http://www.xmlmind.com/xmleditor/_distrib/doc/help/customizeConfigurationMenu.html




Or alternatively to use something like <version>...</version> and have
it replaced with <version>1.2.3</version> during parsing.


XMLmind XML Editor allows you to do anything you want in a document being created, opened, checked for validity, saved, saved as, etc. However you have to program in Java for that.

You need to develop a custom OpenedDocumentHook. A custom OpenedDocumentHook is typically declared in a "customize.xxe_gui" XML file.

References:

* http://www.xmlmind.com/xmleditor/_distrib/doc/api/com/xmlmind/xmleditapp/kit/OpenedDocumentHook.html

* http://www.xmlmind.com/xmleditor/_distrib/doc/gui/openedDocumentHook.html


--
XMLmind XML Editor Support List
xmleditor-support@xmlmind.com
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Reply via email to