Heath, Graham wrote:
> We have some original XML data which we pass through saxon XLST stylesheet 
> to convert it into DocBook format. After that, it is copied to a well known 
> place so that XXE can read it and then convert it into HTML, after which 
> it is copied to another well known place so that Intranet users can read it.
> What I want to know is if it is possible to combine all these operations into 
> a series of button clicks within XXE? To phrase the question another way, 
> is it possible to write a plug-in that can cause the initial transformation 
> into Docbook to take place inside an XXE session? Do I need more than 
> the standard (downloadable) XXE?

Generic answer:
---------------

[1] you can do *anything* you want if you write commands in Java (what 
you describe does not look like a format plug-in or a XSL:FO processor 
plug-in or a scripting plug-in).

Custom commands like plug-ins are dynamically discovered and loaded into 
XXE at start time.

[2] Writing custom commands is possible in both Standard and 
Professional Editions and is documented in XMLmind XML Editor - 
Developer's Guide: 
http://www.xmlmind.com/xmleditor/_distrib/docs/dev/ar01s05.html

If you intend to use Standard Edition, just re-read Standard Edition 
License -- http://www.xmlmind.com/xmleditor/license.html -- to make sure 
that the custom command you are going to write does not infringe this 
license.

Specific answer:
----------------

[1] First try to implement what you want to do using macro-commands.

[2] First macro-command:
* Load XML-data file into XXE.
* Convert it to DocBook (this step is a process command).
* Close XML-data window.
* Load converted DocBook file.

Using XXE V2.3p1, you can just write a downgraded version of the above 
macro-command. To implement it full spec, you'll need command XXE.close 
available in XXE V2.4 (soon to be released).

[3] Second macro-command:
* Ask user where he/she wants to publish its HTML (unless you prefer to 
hard-wire the well known place).
* Convert the DocBook to HTML using your style sheet (this step is a 
process command).

[4] Bind these macro-commands to keyboard shortcuts, mouse clicks, menu 
entries or tool bar buttons (your choice).

All this is explained in XMLmind XML Editor - Power User's Guide: 
http://www.xmlmind.com/xmleditor/_distrib/docs/poweruser/index.html and 
should work in both Standard and Professional Edition. This is not 
complex but you'll need to spend several hours reading XMLmind XML 
Editor - Power User's Guide!

Of course, if you want something that looks and behaves extremely 
professional, we recommend that you implement custom commands in Java 
rather than using macro-commands.

The good news is that XXE V2.5 will include a *high-level* JavaScript 
API which should allow to do this in easy-to-use JavaScript (will be 
available in both Standard and Professional Editions).





Reply via email to