Hello, the following example might not be the most minimal possible example, but I hope that it is short enough. I'm using \setupheadertexts [] [subject] to print subject into header, but the headers are screwed up in some very weird way. My real document behaves differently that this minimal example, but even here one can notice that headers say: - This is first heading - This is fourth heading - This is second heading - This is fourth heading instead of getting the second heading. Does anyone have any idea what is going on? Thank you, Mojca \startbuffer[test1] <html> <body> <h1>This is first heading</h1> <p>some text</p> <h1>This is second heading</h1> <p>some text</p> </body> </html> \stopbuffer \startbuffer[test2] <html> <body> <h1>This is third heading</h1> <p>some text</p> <h1>This is fourth heading</h1> <p>some text</p> </body> </html> \stopbuffer \startxmlsetups all:html \xmlsetsetup{main}{h1}{*} \stopxmlsetups \startxmlsetups h1 \subject{\ignorespaces\xmlflush{#1}} \stopxmlsetups \xmlregistersetup{all:html} \setuphead [subject] [style=\bfa, page=odd] \setupheadertexts [] [subject] \starttext I have some text first \xmlprocessbuffer{main}{test1}{} \xmlprocessbuffer{main}{test2}{} \stoptext