ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Extreme tables and XML conflict?
@ 2020-09-21 14:38 Denis Maier
  2020-09-21 14:46 ` Taco Hoekwater
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Denis Maier @ 2020-09-21 14:38 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 4060 bytes --]

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




[-- Attachment #1.2: Type: text/html, Size: 5073 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-09-21 16:48 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-21 14:38 Extreme tables and XML conflict? Denis Maier
2020-09-21 14:46 ` Taco Hoekwater
2020-09-21 14:50 ` Wolfgang Schuster
2020-09-21 14:56   ` Denis Maier
2020-09-21 14:54 ` Thomas A. Schmitz
2020-09-21 16:03 ` Denis Maier
2020-09-21 16:48 ` Hans Hagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).