Dear list, I have the following sample: \startbuffer[demo] <div id="myspecialid"> <h1>Title</h1> <p>A pragraph</p> </div> \stopbuffer \startxmlsetups xml:initialize \xmlsetsetup{#1}{div|h1|p}{xml:*} \stopxmlsetups \xmlregistersetup{xml:initialize} \startxmlsetups xml:div \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:h1 \chapter[need-id-from-div]{\xmlflush{#1}} \stopxmlsetups \startxmlsetups xml:p \xmlflush{#1}\par \stopxmlsetups \starttext \xmlprocessbuffer{main}{demo}{} \stoptext How could I make that xml:h1 reads the attributes from its parent element (a division)? Many thanks for your help, Pablo -- http://www.ousia.tk