From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/108786 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Denis Maier Newsgroups: gmane.comp.tex.context Subject: Extreme tables and XML conflict? Date: Mon, 21 Sep 2020 16:38:10 +0200 Message-ID: <372764f1-a5ac-2297-cdf7-c6bf08f82a86@mailbox.org> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8323755663628851161==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28704"; mail-complaints-to="usenet@ciao.gmane.io" To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Mon Sep 21 16:40:10 2020 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kKMzA-0007Kw-Vg for gctc-ntg-context-518@m.gmane-mx.org; Mon, 21 Sep 2020 16:40:09 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id D36891A90DB; Mon, 21 Sep 2020 16:38:17 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tBIltRCIGfU7; Mon, 21 Sep 2020 16:38:16 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id D6B6F1A90E5; Mon, 21 Sep 2020 16:38:16 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id C87BE1A90E5 for ; Mon, 21 Sep 2020 16:38:15 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RQx80imyTwkv for ; Mon, 21 Sep 2020 16:38:15 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=80.241.56.152; helo=mout-p-102.mailbox.org; envelope-from=denis.maier.lists@mailbox.org; receiver= Original-Received: from mout-p-102.mailbox.org (mout-p-102.mailbox.org [80.241.56.152]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 23FA11A8EAB for ; Mon, 21 Sep 2020 16:38:15 +0200 (CEST) Original-Received: from smtp2.mailbox.org (smtp2.mailbox.org [80.241.60.241]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-102.mailbox.org (Postfix) with ESMTPS id 4Bw6Vt5mL1zKmLl for ; Mon, 21 Sep 2020 16:38:14 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mailbox.org; h= content-type:content-type:mime-version:date:date:message-id :subject:subject:from:from:received; s=mail20150812; t= 1600699091; bh=8cHPCzVTW70L2mHTV7QlNdC7nPns8lvoYbXYEUgdQJM=; b=E OHAmIFyDCJlO1t5fd+dbzLOieoFshh8je9963WoJDf8NZFO03DhTGkZ9xk7C7Rut 2auoo/ijjvdWa+vlYj6GYGIWcFyhn8jSVe/ZPXpQWLFqDcgGeR8dEOHwSQibAqI2 mU0eHw61+DLPlSlpscKtWFqPDoMHPumk+8H/nAjUfMBVmRqQazfylGK5yHHHz/fH HMoDMgmoKyJaowrCxr5HXaaJQ1lx4JavlJw4hXz50pBVDNwxGEM2/FGwdvwjFTiL lD2ZPfkGFd4wcRyQar9dNr/YB3v+VzIWVIQRAA+lWqH2+I91F+Rta8dM6b0ycKeM sEY9ScBS1AJZErTLWn6cQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1600699092; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=wogialMXzfSAsL4XHz5Mc/4bivRveCT2rUOGCltiqWI=; b=NUqrFrJu+NxaVXFt9zRNPF7ck8P+EbjKOR7FIQQrv5TLQhcJ15S76EcJO5ORdPSGcRdJex caFL6aL8P3yysWW97J626HHpGmkU1UlhpvUBcf3+uEOdXxo0WSxgVOH6UI32Dv1N3pZ4OL kYrWETRMQEQ05FPX9I07k7vfus/r9NYgmgF7ytLoCS4SRSJ1lDnjN1DqE6xscU5UJw4MZ7 Mp65k2hOiCPgFgS77te9zQARhy77K38kDqNhNz7sU7o4sm/zhHvqiY9uaD8Vrr7+/dfLOP XO03h9e9x8ROMjVCuJ7QWt3zfFISmFsKu/mkIYBxGivPf6aYtvp8q+yH0BDmnA== X-Virus-Scanned: amavisd-new at heinlein-support.de Original-Received: from smtp2.mailbox.org ([80.241.60.241]) by spamfilter04.heinlein-hosting.de (spamfilter04.heinlein-hosting.de [80.241.56.122]) (amavisd-new, port 10030) with ESMTP id hehpdgkfvhIR for ; Mon, 21 Sep 2020 16:38:11 +0200 (CEST) X-Rspamd-Score: -2.90 / 15.00 / 15.00 X-Rspamd-Queue-Id: C3AB61708 X-Rspamd-UID: 6f4c56 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.io gmane.comp.tex.context:108786 Archived-At: This is a multi-part message in MIME format. --===============8323755663628851161== Content-Type: multipart/alternative; boundary="------------2F14D63117BF2B9E2476B052" This is a multi-part message in MIME format. --------------2F14D63117BF2B9E2476B052 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Hi, I'm a bit confused, but this here won't compile: ================= \startbuffer[test]
Test \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]
Test
\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 --------------2F14D63117BF2B9E2476B052 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit 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



--------------2F14D63117BF2B9E2476B052-- --===============8323755663628851161== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============8323755663628851161==--