On 01/10/2011 09:48 PM, Jeff Hooker wrote: > > I've got an odd issue with a command that for wrapping some text in an > element > and applying an attribute to the element (pasted below). > > Under conditions that I cannot reliably duplicate, the command becomes grayed > out on the toolbar. Once these conditions are met and the command is grayed > out, > closing and opening the document does not return the command to availability, > but doing a "Select all children" from the root node of the document and then > pasting it overtop itself does. Got any idea what could be causing > this behavior? > > <command name="pmc.wrapMessage" > xmlns="http://www.xmlmind.com/xmleditor/schema/configuration" > xmlns:db="http://docbook.org/ns/docbook" > > > xmlns:dbx="http://sourceforge.net/projects/docbook/defguide/schema/extra-markup" > > xmlns:html="http://www.w3.org/1999/xhtml" > xmlns:mml="http://www.w3.org/1998/Math/MathML" > xmlns:svg="http://www.w3.org/2000/svg" > xmlns:xi="http://www.w3.org/2001/XInclude" > xmlns:xlink="http://www.w3.org/1999/xlink"> > <macro undoable="true" > repeatable="false" > trace="false"> > <sequence> > <command name="wrap" > parameter="[implicitElement] > {http://docbook.org/ns/docbook}phrase"/> > <command name="putAttribute" > parameter="[implicitElement] role message"/> > <command name="insert" > parameter="after[implicitElement] #text"/> > </sequence> > </macro> > </command> >
Your command looks perfectly sane. Under certain circumstances, XXE almost certainly raises an exception when you use this command. Please run XXE with a console[*], reproduce the problem and then send me what's printed on it (plus, of course, a description of what you did). --- [*] Please refer to this FAQ: http://www.xmlmind.com/xmleditor/faq.html#display_exception_in_console --- XXE seems to freeze when I do such and such action. What's going on? --- -- XMLmind XML Editor Support List [email protected] http://www.xmlmind.com/mailman/listinfo/xmleditor-support

