Hi Hans, please consider the following example. \setupbackend[export=yes,xhtml=yes,css=yes] \setupheadertexts[{\startelement[header] test \stopelement}] \starttext \startbuffer \startparagraph \input tufte \stopparagraph \startparagraph \input ward \stopparagraph \stopbuffer \startsection[title=first head] \getbuffer \stopsection \startsection[title=second head] \getbuffer \stopsection %% try to comment this section \startsection[title=third head] \getbuffer \stopsection \stoptext The section-title order is now 3, 1, 2 (in the XHTML output). This problem appears only if there is a page break. After commenting the last section the XHTML output looks like expected. Best wishes Andreas PS. I’ve encountered another export problem. Perhaps it is because of an not intending using of \settaggedmetadata … Here is an example. \setupbackend[export=yes,xhtml=yes,css=yes] \startsetups document:start \settaggedmetadata[title=\documentvariable{title}] \stopsetups \startdocument [title=This document title is wrapped in section-tags] \startsection[title=test] \startparagraph \input tufte \stopparagraph \stopsection \stopdocument