Hi,

I'm a bit confused, but this here won't compile:

=================
\startbuffer[test]
<?xml version="1.0" encoding="utf-8" ?>
<article>
Test
<table/>
</article>
\stopbuffer

\startxmlsetups xml:test
    \xmlsetsetup{#1}{*}{-}
    \xmlsetsetup{#1}{article}{xml:*}
    \xmlsetsetup{#1}{table[@content-type!='parallel']}{xml:table}
    \stopxmlsetups

\xmlregistersetup{xml:test}

\startxmlsetups xml:article
\starttext
    \xmlflush{#1}
\stoptext
\stopxmlsetups

\startxmlsetups xml:table
  \startxtable
    \startxrow
      \startxcell one \stopxcell
      \startxcell two \stopxcell
    \stopxrow
  \stopxtable
\stopxmlsetups

\xmlprocessbuffer{test}{test}{}
================

The process just stops in the middle. This is the error message from the live version from the homepage:

resolvers       | formats | executing runner 'run luametatex format': 
/opt/context/lmtx/tex/texmf-linux-64/bin/luametatex --jobname="texweb" 
--fmt=/opt/context/lmtx/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.fmt
 
--lua=/opt/context/lmtx/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.lui
 cont-yes.mkiv --c:currentrun=1 --c:fulljobname="./texweb.tex" --c:input="./texweb.tex" 
--c:kindofrun=1 --c:maxnofruns=9 --c:texmfbinpath="/opt/context/lmtx/tex/texmf-linux-64/bin"
This is LuaMetaTeX, Version 2.06.12
open source     > level 1, order 1, name 'cont-yes.mkiv'
system          >
system          > ConTeXt  ver: 2020.06.30 17:30 MKIV beta  fmt: 2020.7.1  int: 
english/english
system          >
system          > 'cont-new.mkiv' loaded
open source     > level 2, order 2, name 
'/opt/context/lmtx/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
system          > beware: some patches loaded from cont-new.mkiv
close source    > level 2, order 2, name 
'/opt/context/lmtx/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
system          > files > jobname 'texweb', input './texweb', result 'texweb'
fonts           > latin modern fonts are not preloaded
languages       > language 'en' is active
open source     > level 2, order 3, name './texweb.tex'
fonts           > preloading latin modern fonts (second stage)
fonts           > defining > source file 
'/opt/texweb/opt/context/lmtx/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf'
 is not found
fonts           > defining > using source file 
'/opt/context/lmtx/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf' due to 
cache mismatch
fonts           > defining > source file 
'/opt/texweb/opt/context/lmtx/tex/texmf/fonts/opentype/public/lm-math/latinmodern-math.otf'
 is not found
fonts           > defining > using source file 
'/opt/context/lmtx/tex/texmf/fonts/opentype/public/lm-math/latinmodern-math.otf' due 
to cache mismatch
fonts           > 'fallback modern-designsize rm 12pt' is loaded
close source    > level 2, order 3, name './texweb.tex'
close source    > level 1, order 3, name 'cont-yes.mkiv'

tex error       > error not related to input file:
tex error       >   tex: ?
tex error       >   lua: ?
tex error       >   mps: -
mtx-context     | fatal error: return code: 256


Putting a simple string into the xml:table setup let's me compile the file:

=================
\startbuffer[test]
<?xml version="1.0" encoding="utf-8" ?>
<article>
Test
<table/>
</article>
\stopbuffer

\startxmlsetups xml:test
    \xmlsetsetup{#1}{*}{-}
    \xmlsetsetup{#1}{article}{xml:*}
    \xmlsetsetup{#1}{table[@content-type!='parallel']}{xml:table}
    \stopxmlsetups

\xmlregistersetup{xml:test}

\startxmlsetups xml:article
\starttext
    \xmlflush{#1}
\stoptext
\stopxmlsetups

\startxmlsetups xml:table
  asdfasdfasdf
\stopxmlsetups

\xmlprocessbuffer{test}{test}{}
================

OTOH, this here works as well:

\starttext
  \startxtable
    \startxrow
      \startxcell one \stopxcell
      \startxcell two \stopxcell
    \stopxrow
  \stopxtable
\stoptext

What am I missing?

Best,
Denis



___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to