the cleanest way is: \startxmlsetups xml:mysetups \xmlsetsetup{\xmldocument}{text:p}{xml:paragraph} \stopxmlsetups \xmlregistersetup{xml:mysetups} \startxmlsetups xml:paragraph \xmlflush{#1}\endgraf \stopxmlsetups \usezipfile[\inputfilename] \starttext \xmlprocess{main}{*/content.xml}{} \stoptext and then: texexec --lua --purge --environment=yourstyle.tex Versuch.odt (you need to add the .tex, there is a buglet) however, more fun is: texexec --ctx=openoffice Versuch.odt with (someplace in your tree) openoffice.ctx <?xml version='1.0' standalone='yes'?> ctx:job ctx:messageopen office processing ctx:preprocess/ ctx:flags ctx:flagpurge ctx:flagtexengine=luatex ctx:flaginterface=en ctx:process ctx:resources ctx:environmentt-openoffice.tex ctx:postprocess/ and t-openoffice.tex as style ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------