Hello Hussein,
thank you very much, but our problem seems to have another orgin, maybe
because of our unusual (?) usage of XXE.
I should describe the situation:
There are two documents opened (Left/Right View) at the same time
Parts of the "left" Document are xincluded in the "right" Document.
Furthermore the visualisation of he "right" document is based on statements
like <background-color:concatenate(xpath(....> referencing at the xincluded
parts of "left"
After editing attributes within the "left" document, we use a macro that:
1. Switches to the right document ... .<command name="XXE.edit"
parameter="file:...RightDocument.xml" />
2. Save all changes . <command name="XXE.saveAll" />
3. Should update the Inclusions .... <command name="updateInclusions" />
4. and refresh .... <command name="refresh"
parameter="rebuild[implicitDocument]" />
.. so the "right" document get the new visualisation.
When I process these sequence as single steps (Execute command menu item
and/or Redraw menu item) anything works fine.
As a macro, updateInclusion + refresh do not work.
Same behavior appears with other commands (e.g. selectNode), so I think the
orgin of the problem is based on the ("incomplete"?) switch between the two
documents during the processing of the macro. (?)
Any idea?
Thanks a lot
Stefan
-----Ursprüngliche Nachricht-----
Von: Hussein Shafie [mailto:[email protected]]
Gesendet: Montag, 1. August 2011 12:37
An: Stefan Klatt
Cc: [email protected]
Betreff: Re: [XXE] Forcing Redraw
On 08/01/2011 11:17 AM, Stefan Klatt wrote:
> After switching from one view to another I`d like to redraw the view
inside
> a macro analogous to he redraw option from the menu.
>
> The refresh command (in all variants) doesn`t show the same results.
>
> Is there any way to include a "menu redraw" inside a macro?
>
Yes, the "Redraw" menu item is equivalent to the sequence of the
following commands:
1. Command "updateInclusions" with no parameter.
2. Command "refresh" with parameter "rebuild[implicitDocument]".
References:
*
http://www.xmlmind.com/xmleditor/_distrib/doc/commands/updateInclusions.html
* http://www.xmlmind.com/xmleditor/_distrib/doc/commands/refresh.html
--
XMLmind XML Editor Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xmleditor-support