Hi, please consider the example at http://wiki.contextgarden.net/Export#More_useful_example and its result at http://wiki.contextgarden.net/Export#raw.xml_2 etc. The <metadata> tags end up within the first section (in this case: chapter), even if they’re defined before \starttext. Please fix, thanks. Further, I wonder about the tagging of footnotes (and probably other references, didn’t look into them yet): This is completely visual instead of semantical: (in *-raw.xml:) Quoth<descriptionsymbol detail="footnote"><sup>1</sup></descriptionsymbol> ... <description detail="footnote" chain="footnote"> <descriptiontag><sup>1</sup> </descriptiontag> <descriptioncontent>by Edgar Allan Poe</descriptioncontent> </description> (in *-div.xhtml:) Quoth<div class="descriptionsymbol footnote"><div class="sup">1</div></div> ... <div class="description footnote"> <div class="descriptiontag"><div class="sup">1</div> </div> <div class="descriptioncontent">by Edgar Allan Poe</div> </div> In raw.xml I’d prefer something like Quoth<description detail="footnote" id="1">by Edgar Allan Poe</description> or Quoth<description detail="footnote" id="1" /> ... <description detail="footnote" id="1"> <descriptiontag>1</descriptiontag> <descriptioncontent>by Edgar Allan Poe</descriptioncontent> </description> and in div.xhtml something that works in HTML, like a title: Quoth<div class="descriptionsymbol footnote" title="by Edgar Allan Poe"><div class="sup">1</div></div> or a link: Quoth<a href="#footnote_1"><div class="descriptionsymbol footnote"><div class="sup">1</div></div></a> … <a name=„footnote_1“> <div class="description footnote"> <div class="descriptiontag"><div class="sup">1</div> </div> <div class="descriptioncontent">by Edgar Allan Poe</div> </div> </a> Greetlings, Hraban --- http://www.fiee.net http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer)