expansion in xml section heads
Hi all, I'm not sure if this is a bug or a feature, but I'm still having trouble understanding the new structure code. Here is a small example: \startbuffer[test] <auth> <section> <title><emph>MyTitle</emph></title> <content> Hello world </content> </section> </auth> \stopbuffer \startxmlsetups xml:mysetups \xmlsetsetup{\xmldocument}{auth|section|title|content|emph}{xml:*} \stopxmlsetups \xmlregistersetup{xml:mysetups} \startxmlsetups xml:auth \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:section \xmlflush{#1}\par \midaligned{\hl[5]} \stopxmlsetups \startxmlsetups xml:title \section{\xmlflush{#1}} \stopxmlsetups \startxmlsetups xml:content \xmlflush{#1}\par \stopxmlsetups \startxmlsetups xml:emph {\bgroup\em \xmlflush{#1}\egroup} \stopxmlsetups \setuphead [section] [style=normal, number=no, expansion=yes, page=yes] \starttext \xmlprocessbuffer{main}{test}{} \stoptext The title is not properly expanded though I have expansion=yes in my setuphead. Am I doing something wrong? All best Thomas
Thomas A. Schmitz wrote:
Hi all,
I'm not sure if this is a bug or a feature, but I'm still having trouble understanding the new structure code. Here is a small example:
i messed up the xml part when i added support for list/mark/bookmark specification ... i'll fix it (and also make expansion recognize xml mode automatically) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (2)
-
Hans Hagen
-
Thomas A. Schmitz