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? Many thanks for your help, Pablo -- http://www.ousia.tk
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 -----------------------------------------------------------------
participants (2)
-
Hans Hagen
-
Pablo Rodriguez