[NTG-context] Re: Map XML attributes to variables, dynamically

2023-08-10 Thread Hans Hagen via ntg-context
On 8/10/2023 10:50 AM, Hans Hagen via ntg-context wrote: On 8/10/2023 10:37 AM, Hans Hagen wrote: On 8/10/2023 10:14 AM, Thangalin wrote: Here's an MWE: attached the more final version -

[NTG-context] Re: Map XML attributes to variables, dynamically

2023-08-10 Thread Hans Hagen via ntg-context
On 8/10/2023 10:37 AM, Hans Hagen wrote: On 8/10/2023 10:14 AM, Thangalin wrote: Here's an MWE: % SOT \startbuffer[demo] Text Goes Here Different Text Goes Here \stopbuffer \startxmlsetups xml:xhtml    \xmlsetsetup{\xmldocument}{*}{-}    \xmlsetsetup{\xmldocument}{html|body}{xml:*}   

[NTG-context] Re: Map XML attributes to variables, dynamically

2023-08-10 Thread Hans Hagen
On 8/10/2023 10:14 AM, Thangalin wrote: Here's an MWE: % SOT \startbuffer[demo] Text Goes Here Different Text Goes Here \stopbuffer \startxmlsetups xml:xhtml \xmlsetsetup{\xmldocument}{*}{-} \xmlsetsetup{\xmldocument}{html|body}{xml:*} \xmlsetsetup{\xmldocument}{div}{xml:*}

[NTG-context] Re: Map XML attributes to variables, dynamically

2023-08-10 Thread Thangalin
Here's an MWE: % SOT \startbuffer[demo] Text Goes Here Different Text Goes Here \stopbuffer \startxmlsetups xml:xhtml \xmlsetsetup{\xmldocument}{*}{-} \xmlsetsetup{\xmldocument}{html|body}{xml:*} \xmlsetsetup{\xmldocument}{div}{xml:*} \stopxmlsetups \xmlregistersetup{xml:xhtml}

[NTG-context] Re: Map XML attributes to variables, dynamically

2023-08-10 Thread Hans Hagen
On 8/10/2023 9:10 AM, Thangalin wrote: Environments for the DIV element gets translated using: \startxmlsetups xml:div \setvariable {div} {\xmlatt{#1}{class}} {#1} \start[\xmlatt{#1}{class}]\xmlflush{#1}\stop \stopxmlsetups \setMPtext{1}{\usermap[concurrent.title]}