\startenvironment t-openoffice.tex \startxmlsetups office \xmlsetsetup{main}{text:p|text:span}{*} \stopxmlsetups \xmlregistersetup{office} \startxmlsetups text:p \xmlflush{#1}\par \stopxmlsetups \startxmlsetups text:span \bgroup \xmlfilter{main}{office:automatic-styles/style:style/style:text-properties/command(do:style:text-properties)} \xmlflush{#1} \egroup \stopxmlsetups \startxmlsetups do:style:text-properties \xmlval{fo:font-weight}{\xmlatt{#1}{font-weight}}{}% todo: namespaces in attributes % \xmlval{fo:font-style}{\xmlatt{#1}{font-style}}{} \stopxmlsetups \xmlmapvalue {fo:font-weight} {bold} {\bf} \xmlmapvalue {fo:font-style} {italic} {\it} \starttext %\xmlprocess{main}{zip://*/content.xml}{} \xmlprocess{main}{content.xml}{} \stoptext \stopenvironment