Hello, I'm writing a XML style sheet for ConTeXt, which contains the following definitions: \defineXMLargument [chapter] {\chapter{\XMLvar{chapter}{title}{}}} \defineXMLargument [tableofcontents] {\completecontent} When reading a file like <document> <frontmatter> <titlepage> ... </titlepage> <dedication> ... </dedication> <aknowledgements> ... </aknowledgements> <abstract> ... </abstract> <tableofcontents/> </frontmatter> <bodymatter> <chapter> <title> Title </title> <p>Text.</p> </chapter> </bodymatter> <appendices> ... </appendices> </document> I get the 'Contents' title of the table of contents, but the Chapter does not show up ... any hints? Thanks, Joh