[NTG-context] understanding \xmlsetup

Hans Hagen pragma at wxs.nl
Sun May 10 19:24:48 CEST 2015


On 5/10/2015 6:45 PM, Pablo Rodriguez wrote:
> Dear list,
>
> to setup the language attribute in <div> and <span> elements from HTML,
> Hans kindly provided me with the following setup:
>
>      \startxmlsetups xml:lang
>           \begingroup
>               \language[\xmlatt{#1}{lang}]
>               \xmlsetup{#1}{xml:\xmltag{#1}}
>           \endgroup
>      \stopxmlsetups
>
> In order to be able to understand what \xmlsetup does, what would be the
> difference in replacing "\xmlsetup{#1}{xml:\xmltag{#1}}" with
> "\xmlflush{#1}" in the previous setup?

the \xmlsetup is more explicit


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------


More information about the ntg-context mailing list