[NTG-context] MathML when processing XML

Duncan Hothersall dh at capdm.com
Mon May 30 22:23:43 CEST 2022

Answering my own question - the rules in x-mathml.mkxl/.lmt assume *only*
an mml: namespace on MathML elements. Having built my current project on
the basis of the examples in the XML in mkiv manual, I had two layers of
namespaces in addition to that. Redoing the mappings for the MathML
elements resulted in glorious formulas coming out.


On Sun, 29 May 2022 at 22:23, Duncan Hothersall <dh at capdm.com> wrote:

> This feels like a really stupid question but I can't find an answer to it
> anywhere.
> When processing an XML file directly with ConTeXt, i.e.
> using \startxmlsetups rules, how can I make use of the MathML module for
> the MathML content in my XML source? Should I include a specific piece of
> code with a \registerctxluafile command as well as / instead of
> \usemodule[mathml]? Do I need to use something other than \xmlflush to pass
> the XML to the module?
> Sorry, it's probably obvious but I can't work it out!
> Thanks.
> Duncan

Duncan Hothersall, Operations Director
CAPDM Limited - Online Program Enablers
0131 677 2400  www.capdm.com
Registered in Scotland: SC168970       VAT: 682 846 983
Registered address: 20 Forth Street Edinburgh EH1 3LH UK

Capture, author, publish, deliver and manage your learning materials.

*Sign up to the CAPDM newsletter here <http://eepurl.com/bqzBQn>*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20220530/b8902e48/attachment.htm>

More information about the ntg-context mailing list