Hi Hussein, Thanks very much for your quick help. The Macro works really great now (except your mentioned bug). so I'm looking forward to version 2.10 :))
wbr, Roman > -----Urspr?ngliche Nachricht----- > Von: Hussein Shafie [mailto:hussein at pixware.fr] > Gesendet: Donnerstag, 19. Mai 2005 18:10 > An: Huditsch Roman > Cc: xmleditor-support at xmlmind.com > Betreff: Re: AW: AW: WG: [XXE] command for inserting 2 elements > > Huditsch Roman wrote: > > Thanks very much for your help. > > Attached are the desired files. > > "normen.zip" should be dezipped into the config folder of XXE > > --> The good news: the macro-command below works fine. > > --- > <cfg:command name="insertNumListenPunkt"> > <cfg:macro> > <cfg:sequence> > <cfg:command name="selectNode" > parameter="ancestorOrSelf[implicitElement] > {http://www.lexisnexis.at/schema/norm}listeneintrag"/> > > <cfg:command name="paste" > parameter="after <?xml > version='1.0'?> <ns:clipboard > xmlns:ns='http://www.xmlmind.com/xmleditor/namespace/clipboard' > xmlns:norm='http://www.lexisnexis.at/schema/norm'><norm: > listnum></norm:listnum><norm:listeneintrag>< > norm:absatz></norm:absatz></norm:listeneintrag> > </ns:clipboard>"/> > </cfg:sequence> > </cfg:macro> > </cfg:command> > --- > > In the parameter of a command, a qualified name is > represented as follows > "{http://www.lexisnexis.at/schema/norm}listeneintrag", > *except* when this parameter is a self-contained, > well-formed, parseable, XML snippet, in which case, you need > to use standard namespace prefixes. > > --> The bad news: undoing this macro-command crashes XXE! > > This severe bug is pretty old. I've reproduced it with V2.7. > It cannot occur with a DTD, only with a W3C XML Schema or > with a RELAX NG schema. > > This bug will be fixed in V2.10. > > --- > PS: Find attached to this document a simplified version of > normen.xxe containing the above macro-command. >

