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 &lt;?xml version='1.0'?&gt; 
&lt;ns:clipboard 
xmlns:ns='http://www.xmlmind.com/xmleditor/namespace/clipboard' 
xmlns:norm='http://www.lexisnexis.at/schema/norm'&gt;&lt;norm:listnum&gt;&lt;/norm:listnum&gt;&lt;norm:listeneintrag&gt;&lt;norm:absatz&gt;&lt;/norm:absatz&gt;&lt;/norm:listeneintrag&gt;&lt;/ns:clipboard&gt;"/>
       </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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: normen.xxe
Type: text/xml
Size: 1676 bytes
Desc: not available
Url : 
http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20050519/2f3dd22f/attachment.xml
 

Reply via email to