Camille B?gnis wrote: > I am currently evaluating XXE for deployment at a client that requires > advanced editing assistance. > > In order to normalize documents contents, it has been decided to > maintain a dictionary of typical sentences, used at specific places. For > example, when describing an engine, a sentence like this could be inserted: > "This engine consists of *4* cylinders, and *8* valves." > > In this example, the *numbers* are parameters provided by the writer at > writing time. So the dictionary (XML for easy maintenance) would contain > something like this: > <element id="eng-char"> > <sentence>This engine consists of <param/> cylinders, and <param/> > valves.</sentence> > ... > ... > <element> > > So when the user selects the <phrase role="eng-char"> element in XXE, it > is presented with a form (or equivalent) where he can choose the > sentence in a list, and fill parameters. > > Did some of you already implemented something similar?
Not here at XMLmind. > Is this something that is reasonably easy to do with XXE? Clearly *yes*, the problem is that you'll have to read tons of documentation. What you describe is a custom command. There are two ways to implement such custom command. [A] Using a macro-command. See http://www.xmlmind.com/xmleditor/_distrib/doc/commands/ch02.html However, macro-commands having been designed to do simple things, attempting to implement this command with a macro may be quite challenging. This macro needs to use something like <get expression="document(xxx)/yyy"/> to pull the template from the dictionary file. See http://www.xmlmind.com/xmleditor/_distrib/doc/commands/xpath_get.html (Documents returned by the document() XPath function are cached, therefore this should efficient. See http://www.xmlmind.com/xmleditor/_distrib/doc/commands/xpathfunc.html) [B] In Java[tm]. See http://www.xmlmind.com/xmleditor/_distrib/doc/dev/command.html With Java, you'll have no headaches compared to [A]. All in all, I would recommend [A], and if this fails (cannot be done, mind-boggling, you hate it, too crude in terms of GUI, etc), [B] (cannot fail).

