On Thu, 19 Apr 2007 12:27:02 +0200, Hussein Shafie <hussein at xmlmind.com> wrote:
> > [1] * A command element cannot contain both a process and a macro. > > * A command element is a declaration, not an invocation. It does not > have a parameter attribute. > > ==> Please validate your configuration files by opening them in XXE as > you would do for any document instance (the schema of XXE configuration > files is built-in). > ok I undenrtand my mistake. > > > [2] You almost never need to insert a text node. Text nodes are almost > always automatically created because the DTD/schema specifies this. > > I suspect that, in fact, you want to add a mtex_preview element > containing the URL of generated preview. This should look like this. > > <command name="tex2img"> > <macro> > <sequence> > <command name="tex2img_Step1" > parameter="'%0'" /> > > <command name="insert" > parameter="after[implicitElement] mtex_preview" /> > > <!-- The newly inserted mtex_preview element is > automatically selected. --> > > <!-- If mtex_preview has been declared in the DTD > to contain text, then there is already a text > node in it and the caret is already inside this node. --> > > <command name="insertString" > parameter="/tmp/%R/tex%0.png" > </sequence> > </macro> > </command> > > <command name="tex2img_Step1"> > <process> > <mkdir dir="/tmp/%R" quiet="true"/> > <copyDocument selection="true" to="/tmp/%R/tex%0.tex" /> > <shell command="~/.xxe/addon/texmathtoimg /tmp/%R/tex%0.tex > /tmp/%R/tex%0.png"/> > </process> > </command> > > > this works you 're great :D ! > [3] copyDocument selection="true" copy XML nodes and not plain text. > Therefore I doubt that to="/tmp/%R/tex%0.tex" will produce a valid TeX > file. > no of course, I had to do a pretreatemnt before. There is a way to dump plain text instead of xml ? thanks a lot for your help. > > -- > XMLmind XML Editor Support List > xmleditor-support at xmlmind.com > http://www.xmlmind.com/mailman/listinfo/xmleditor-support -- Cyprien Le Pann?rer

