Sorry form y previous mail, I just found a solution.

<cfg:command name="delete-and-new-para">
                <cfg:macro>
                        <cfg:sequence>
                                <cfg:choice>
                                        <cfg:test
expression="not($mark)"/>
                                        <cfg:command name="delete"/>
                                </cfg:choice>
                                <cfg:command name="selectNode"
parameter="self[implicitElement]"/>
                                <cfg:command name="insert"
parameter="after[implicitElement] absatz"/>
                        </cfg:sequence>
                </cfg:macro>
        </cfg:command>

Thanks,
Roman


Reply via email to