hi,
just saw that the command is missing an <, anyway, I had it right before,
and didn't work either, unfortunately.
once again.
<cfg:command name="insertNumListenPunkt">
<cfg:macro>
<cfg:sequence>
<cfg:command name="selectNode"
parameter="ancestor[implicitElement] punkt"/>
<cfg:command name="paste" parameter="after <?xml
version='1.0'?><listnum></listnum><punkt><absatz></absatz></punkt>"/>
</cfg:sequence>
</cfg:macro>
</cfg:command>
/christoph
-----Urspr?ngliche Nachricht-----
Von: Hussein Shafie [mailto:hussein at pixware.fr]
Gesendet: Dienstag, 17. Mai 2005 14:48
An: Klocker Christoph
Betreff: Re: [XXE] command for inserting 2 elements
I have deleted your last email from the mailing list by error. Please
send it again.
Klocker Christoph wrote:
>
> I have this structure
>
> <numbered_list>
> <list_numbering></listnumbering>
> <entry>
> <absatz>STRING<absatz>
> </entry>
> </numbered_list>
>
> I try to achieve a command that inserts me a new <listnumbering> and a
> new <entry> as both are required, after the previous one. The carriage
> is positioned at the "STRING."
>
> <list_numbering></listnumbering>
> <entry>
> <absatz><absatz>
> </entry>
>
> the result should be this:
>
> <numbered_list>
> <list_numbering>1.1</listnumbering>
> <entry>
> <absatz>STRING<absatz>
> </entry>
> <list_numbering></listnumbering>
> <entry>
> <absatz><absatz>
> </entry>
> </numbered_list>
>
>
> I got it working when the list_numbering is an attribute, with the
> insertNode command.