[NTG-context] XML/MathML namespace handling bug

Hugo Landau hlandau at devever.net
Fri Mar 26 06:02:56 CET 2021


> in x-math.mkiv search for
> 
>    \startxmlsetups mml:apply
> 
> and replace this bit:
> 
>             \edef\mmlapplyaction{\xmlfilter{#1}{/*/tag()}}
>             \doifelsesetups {mml:apply:mml:\mmlapplyaction} {
>                 \xmlsetup{#1}{mml:apply:mml:\mmlapplyaction}
>              } {
>                 \xmlsetup{#1}{mml:\mmlapplyaction}
>              }
> 
> (btw, isn't content mathml more fun than presentation mathml?)
Works nicely. For <eq/> I also had to change this part from name() to
tag():

\startxmlsetups mml:relation
    \edef\mmlapplyaction{\xmlfilter{#1}{/*/tag()}}
    \MMLcreset \xmlsetup{#1}{mml:relation:\xmlattdef{#1}{align}{\MMLrelationalign}}
\stopxmlsetups


More information about the ntg-context mailing list