Wolfgang Schuster wrote: > 2007/12/18, Johannes Graumann <[EMAIL PROTECTED]>: >> Wolfgang Schuster wrote: >> >> > 2007/12/18, Johannes Graumann <[EMAIL PROTECTED]>: >> >> Thanks! I remembered this, but had lost track of where to find it ... >> >> Can someone please have a quick look at the following: >> >> >> >> \startxmlsetups xml:mysetups >> >> \xmlsetsetup{\xmldocument}{text:p}{xml:paragraph} >> >> \stopxmlsetups >> >> >> >> \xmlregistersetup{xml:mysetups} >> >> >> >> \startxmlsetups xml:paragraph >> >> \xmlflush{#1}\endgraf >> >> \stopxmlsetups >> >> >> >> \starttext >> >> \processXMLfilegrouped{zip::\env{odt}::content.xml} >> >> \stoptext >> > >> > replace this with >> > >> > \starttext >> > \xmlprocess{main}{zip::\env{odt}::content.xml}{} >> > \stoptext >> > >> > \processXMLfilegrouped did not work in combination with >> > xmlregistersetup >> > >> Thanks for the hint, but >> >> \startxmlsetups xml:mysetups >> \xmlsetsetup{\xmldocument}{text:p}{xml:paragraph} >> \stopxmlsetups >> >> \xmlregistersetup{xml:mysetups} >> >> \startxmlsetups xml:paragraph >> \xmlflush{#1}\endgraf >> \stopxmlsetups >> >> \starttext >> \xmlprocess{main}{zip::\env{odt}::content.xml}{} >> \stoptext >> >> doesn't give anything different than what I was trying before ... > > Can you send a real example (Openoffice file plus TeX file).
Attached. Thanks for your time. Joh
% texmfstart texexec --lua COOnTeXML.tex --arg="odt=someotherfile.zip" \startxmlsetups xml:mysetups \xmlsetsetup{\xmldocument}{text:p}{xml:paragraph} \stopxmlsetups \xmlregistersetup{xml:mysetups} \startxmlsetups xml:paragraph \xmlflush{#1}\endgraf \stopxmlsetups \starttext \xmlprocess{main}{zip::\env{odt}::content.xml}{} \stoptext
Versuch.odt
Description: application/vnd.oasis.opendocument.text
___________________________________________________________________________________ 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 ___________________________________________________________________________________