Bill Fenner wrote: > Still working on my xml2rfc plugin... there's a web formatting service > for xml2rfc-format documents at xml.resource.org . I wrote a java > command that posts the file to the conversion service and saves the > result; this works fine if I call it as, e.g., > > <command name="xml2rfc.webform"> > <class>com.att.research.fenner.xmleditapp.xml2rfc.WebForm</class> > </command> > <command name="xml2rfc.webform2"> > <macro><sequence> > <command name="xml2rfc.webform" parameter="%D" /> > </sequence></macro> > </command> > > What I'd like to do, however, is call this inside a process - I'd like > to have xxe provide me the temp directory and use <copyDocument> and > <upload> like I do with the other transforms. > > Is it possible to call a command from a process? It didn't look > possible given commands.pdf; is it possible for a plugin to extend the > syntax with a custom command here?
A ``normal'' command acts on the view of a document (XML nodes, graphical objects used to represent the nodes, selection). A process command contains elements that act on files in a temporary working directory (like ant tasks). There is no way to use a normal command inside a process command because they are conceptually very different. What you need is in fact a 100% Java equivalent of the <shell> element in a process command. You are right. This feature is missing. We'll implement it in next version. That is, we'll define a Java interface for such extension object and we'll enhance the grammar of XXE configuration files to allow specifying a new kind of child element in a process command.

