I'm just to stupid to get this done ... can I ask for one more glance at my combined folly? Why doesn't this compile? texexec --ctx=COOnTeXML.ctx Versuch.odt Joh Hans Hagen wrote:
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 -----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net
___________________________________________________________________________________