Hi Hussein,
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>
Thanks,
Jeff
--
XMLmind XML Editor Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xmleditor-support