* 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
* Re: Extreme tables and XML conflict?
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
` (3 subsequent siblings)
4 siblings, 0 replies; 7+ messages in thread
From: Taco Hoekwater @ 2020-09-21 14:46 UTC (permalink / raw)
To: mailing list for ConTeXt users
> On 21 Sep 2020, at 16:38, Denis Maier <denis.maier.lists@mailbox.org> wrote:
>
> Hi,
>
> I'm a bit confused, but this here won't compile:
>
> =================
>
> \startxmlsetups xml:table
> \startxtable
> \startxrow
> \startxcell one \stopxcell
> \startxcell two \stopxcell
> \stopxrow
> \stopxtable
> \stopxmlsetups
The normal xtables don’t like to be called from inside other constructs. Use this instead:
\startxmlsetups xml:table
\message{xml:table}
\startembeddedxtable
\startxrow
\startxcell one \stopxcell
\startxcell two \stopxcell
\stopxrow
\stopembeddedxtable
\stopxmlsetups
Best wishes,
Taco
___________________________________________________________________________________
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
* Re: Extreme tables and XML conflict?
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
` (2 subsequent siblings)
4 siblings, 1 reply; 7+ messages in thread
From: Wolfgang Schuster @ 2020-09-21 14:50 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Denis Maier
Denis Maier schrieb am 21.09.2020 um 16:38:
> 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
\startxmlsetups xml:table
\startembeddedxtable
\startxrow
...
\stopxrow
\stopembeddedxtable
\stopxmlsetups
Wolfgang
___________________________________________________________________________________
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
* Re: Extreme tables and XML conflict?
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:54 ` Thomas A. Schmitz
2020-09-21 16:03 ` Denis Maier
2020-09-21 16:48 ` Hans Hagen
4 siblings, 0 replies; 7+ messages in thread
From: Thomas A. Schmitz @ 2020-09-21 14:54 UTC (permalink / raw)
To: mailing list for ConTeXt users
On 9/21/20 4:38 PM, Denis Maier wrote:
> Hi,
>
> I'm a bit confused, but this here won't compile:
xtables manual, chapter 13.
Thomas
___________________________________________________________________________________
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
* Re: Extreme tables and XML conflict?
2020-09-21 14:50 ` Wolfgang Schuster
@ 2020-09-21 14:56 ` Denis Maier
0 siblings, 0 replies; 7+ messages in thread
From: Denis Maier @ 2020-09-21 14:56 UTC (permalink / raw)
To: Wolfgang Schuster, mailing list for ConTeXt users
Am 21.09.2020 um 16:50 schrieb Wolfgang Schuster:
> Denis Maier schrieb am 21.09.2020 um 16:38:
>> Hi,
>>
>> I'm a bit confused, but this here won't compile:
>>
>> [...]
>
> \startxmlsetups xml:table
> \startembeddedxtable
> \startxrow
> ...
> \stopxrow
> \stopembeddedxtable
> \stopxmlsetups
>
> Wolfgang
>
Thanks. Just like it's written in the documentation...
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Extreme tables and XML conflict?
2020-09-21 14:38 Extreme tables and XML conflict? Denis Maier
` (2 preceding siblings ...)
2020-09-21 14:54 ` Thomas A. Schmitz
@ 2020-09-21 16:03 ` Denis Maier
2020-09-21 16:48 ` Hans Hagen
4 siblings, 0 replies; 7+ messages in thread
From: Denis Maier @ 2020-09-21 16:03 UTC (permalink / raw)
To: ntg-context
Thanks everyone. I'm on the way now.
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Extreme tables and XML conflict?
2020-09-21 14:38 Extreme tables and XML conflict? Denis Maier
` (3 preceding siblings ...)
2020-09-21 16:03 ` Denis Maier
@ 2020-09-21 16:48 ` Hans Hagen
4 siblings, 0 replies; 7+ messages in thread
From: Hans Hagen @ 2020-09-21 16:48 UTC (permalink / raw)
To: mailing list for ConTeXt users, Denis Maier
On 9/21/2020 4:38 PM, Denis Maier wrote:
> Hi,
>
> I'm a bit confused, but this here won't compile:
> \startxmlsetups xml:table
> \startxtable
> \startxrow
> \startxcell one \stopxcell
> \startxcell two \stopxcell
> \stopxrow
> \stopxtable
> \stopxmlsetups
when used this way you need:
\startembeddexstable
\stopembeddexstable
(at the outer level they are buffers)
-----------------------------------------------------------------
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 : 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).