Hi Hans, I do not how to correctly process heads containing some XML tags. AFAIK XML macros are mostly defined with \unxepand, maybe there something could be done? What is the problem -- assume XML like <chapter><title>Chapter <em>really</em> important</title></chapter> and a couple of XML parser definitions for chapter, title and em. And now, if <chapter><title> expands e.g. into \chapter{\XMLflush{title}}, the ConTeXt write out into *.tui file line: c \listentry{chapter}{1}{}{Chapter <em>really<em/> important}{1::0:0:0:0:0:0:0::1}{1} so the <em> stays unexpanded. Using tui file record back (in \placecontent, for example) results to string "Chapter <em>really<em/> important" as it is of course not passed through XML engine. What to do to get chapter title in tui expanded? BTW -- another problem with tui/tuo I described before some time (and nobody answered me :-( -- UTF encoded XML string are written into tui in form of expanded UTF characters (like \char 253) and backward usage of this strings leads to loss of spaces at the end of words. This is bad too. Have a nice day and thank you, Martin