Wolfgang Schuster wrote: >> \xmlfilter{main}{office:automatic-styles/style:style/style:text-properties >> /command(do:style:text-properties)} >> \xmlflush{#1} >> \egroup >> \stopxmlsetups > > \startxmlsetups text:span > \bgroup > \xmlfilter{main}{office:automatic-styles/style:[EMAIL > PROTECTED]:name='\xmlatt{#1}{style-name}']/style:text-properties/command(do:style:text-properties)} > \xmlflush{#1} > \egroup > \stopxmlsetups
Hello Wolfgang, I just don't get it to run. Using the attached and context --ctx=t-openoffice Attempt.odt I get the result in the pdf ... strange whitespace and no bold anywhere to be seen. Can you give me another nudge ... I start to understand what Hans and you are actually doing, but this is still beyond me. Cheers, Joh
Attempt.odt
Description: application/vnd.oasis.opendocument.text
Attempt.pdf
Description: Adobe PDF document
t-openoffice.ctx
Description: XML document
%context --ctx=t-openoffice BoldAndItalicContent.xml \startenvironment t-openoffice.tex \startxmlsetups office \xmlsetsetup{main}{text:p|text:span}{*} \stopxmlsetups \xmlregistersetup{office} \startxmlsetups text:p \xmlflush{#1}\endgraf \stopxmlsetups \startxmlsetups text:span   \bgroup    \xmlfilter{main}{office:automatic-styles/style:[EMAIL PROTECTED]:name='\xmlatt{#1}{style-name}']/style:text-properties/command(do:style:textproperties)} \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:///\inputfilename.odt?name=content.xml}{} \usezipfile[\inputfilename.odt] \xmlprocess{main}{*/content.xml}{} \stoptext \stopenvironment
___________________________________________________________________________________ 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 ___________________________________________________________________________________