Hans,

Thank you for your clarification ! Just to answer your question: 'lxp.lom' is not something specific to ConTeXt — it comes from LuaExpat, a very common XML parser used in many Lua examples and libraries. When writing a small didactic TEI-demo in MkIV (my purpose is to document ConTeXt Garden and some pages on TEI-XML for a Wikibook in French, which I'm currently writing), I instinctively used it because it provides a very simple Lua object model (tag attr, array-like children) , which is handy for beginners experimenting with XML in Lua.

I lately understand that ConTeXt aims to remain completely self-contained, and that the internal XML machinery should be preferred. The failure occurred simply because 'lxp.lom' is not part of the standalone environment, both in MkIV and in LMTX.

No problem at all: I will rewrite the TEI example using ConTeXt’s native XML interface(\xmlload, xml-first, xml-text, etc.). This will make it fully portable across both MkIV and LMTX.

Thanks again !

JP


Le 30/11/2025 à 21:45, Hans Hagen via ntg-context a écrit :
On 11/30/2025 9:24 PM, Jean-Pierre Delange via ntg-context wrote:
Hi ConTeXters !

I reply to myself regarding the issue of compiling tex-xml-tei files. ConTeXt was complaining that it could not find the ‘lxp.lom’ module, which is actually a Lua module... The reason was that I was compiling with LMTX and not with MKIV. All I had to do was run the command: context --luatex myfile.tex and the complaint disappeared. I would like to take this opportunity to ask Hans: is it a scientific and demonstrable fact that the implementation of Luatex in ConTeXt-LMTX left out this ‘lpx.lom’?

mkxl (lmtx) and mkiv have theit own cache and therefore their own database

I have no clue what lpx.lom is but do you need something that is not already in context xml support? (We try tbe self-contained.)

Hans

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
       tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!

maillist : [email protected] / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : [email protected] / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

Reply via email to