On 3/6/24 17:35, Wolfgang Schuster wrote:
Pablo Rodriguez via ntg-context schrieb am 06.03.2024 um 16:52:
[...] I wonder whether this requires a minimal sample to be fixed.
Yes, a minimal example would help because \setupmetadata works in your previous example.
Many thanks for your reply, Wolfgang. Now I have the minimal sample: \startbuffer[demo] <doc> <div id="header"> <h2 class="author">author</h2> </div> <text> text </text> </doc> \stopbuffer \starttext \startxmlsetups xml:initialize \xmlsetsetup{#1}{doc}{xml:*} \xmlsetsetup{\xmldocument} {(div|section)[@id='header']} {xml:meta} \xmlsetsetup{\xmldocument} {(h2|p)[contains(@class,'author')]} {xml:title:author} \stopxmlsetups \xmlregistersetup{xml:initialize} \startxmlsetups xml:doc \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:text \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:meta %\aftergrouped{\setupinteraction% \setupmetadata [author={\xmlconcat{#1}{/h2[contains(@class,'author')]}{, }}] %} \stopxmlsetups \startxmlsetups xml:title:author \xmlflush{#1} \stopxmlsetups \setupinteraction[state=start] \xmlprocessbuffer{main}{demo}{} \stoptext With \setupmetadata it breaks compilation. I know it is not the most elegant code, but in my real environment xml:title:author outputs text. Many thanks for your help, Pablo