On Tue, Dec 02, 2008 at 07:18:49PM +0100, Hussein Shafie wrote: > * If you want to use your XSLT style sheets, it is also possible to > write a simple macro-command -- > http://www.xmlmind.com/xmleditor/_distrib/doc/commands/macro.html -- which: > > [1] Save the document being edited to disk using "XXE.save [ifNeeded]" > -- http://www.xmlmind.com/xmleditor/_distrib/doc/commands/XXE.save.html. > > [2] Invokes your XSLT scripts by the means of a process command -- > http://www.xmlmind.com/xmleditor/_distrib/doc/commands/process.html -- > to transform the file containing the document being edited. > > [3] Uses "XXE.open [reopen]" -- > http://www.xmlmind.com/xmleditor/_distrib/doc/commands/XXE.open.html -- > to replace the document being edited by the updated one.
Hi Hussein, this is great. I used this to implement a nice feature in one of my own XXE projects. I have one tiny issue though: My XSLT transformation slightly changes the indentation and white space distribution in the resulting document. That's why I would like to make XXE automatically (re)save the document after reopening it. What would be the best way to achieve this? I tried to add some commands after XXE.open to modify and save the document. But, apparently, these commands are not executed at all. Is that expected behavior? I'm using XXE 4.1.0 Personal Edition. Best regards, Carsten Milling

