layout for entries in one group

"M. Niedermair" <[email protected]> Mon, 20 Feb 2006 19:12:14 +0100
Newsgroups gmane.comp.openoffice.devel.xml
Message-ID <[email protected]>
hi,

i will create a layout for listings.

...
[listing] public class Test {
[listing]     // ...
[listing] }
...

if i export the document, i get
<text:p text:style-name="Standard">Dies ist ein Text</text:p>
<text:p text:style-name="Standard"/>
<text:p text:style-name="listing">public class Test {</text:p>
<text:p text:style-name="listing">   // ...</text:p>
<text:p text:style-name="listing">}</text:p>
<text:p text:style-name="Standard"/>

How can i transform this (with xslt) to something like that (the 
'Standard' is not the problem):

<p>Dies ist ein Text</p>
<p></p>
<listing>
   <p>public class Test {</p>
   <p>   // ...</p>
   <p>}</p>
</listing>
<p></p>

by
Michael