* problem with xtable
@ 2012-06-16 10:24 Meer, H. van der
2012-06-16 13:51 ` Wolfgang Schuster
0 siblings, 1 reply; 2+ messages in thread
From: Meer, H. van der @ 2012-06-16 10:24 UTC (permalink / raw)
To: ConTeXt NTG
[-- Attachment #1.1: Type: text/plain, Size: 1002 bytes --]
Using \startxtable gives an error, whereas \startembeddedxtable does not. What is the cause, what is the difference?
Hans van der Meer
Error: Runaway argument?
\xmlflush {test::4}\stopxtable \endgroup
\stoptext
! File ended while scanning use of \buff_gobble.
Working:
\startxmlsetups xmlcommon:table
\startembeddedxtable[
\xmlflush{#1}
\stopembeddedxtable
\stopxmlsetups
Not working:
\startxmlsetups xmlcommon:table
\startxtable
\xmlflush{#1}
\stopxtable
\stopxmlsetups
Calling this with:
\usemodule[hvdm-xml] % contains simple definitions for <table> <tr> <td> through \startxcell etc.
\startxmlsetups test
\xmlsetsetup{\xmldocument}{test}{test:*}
\stopxmlsetups\xmlregistersetup{test}
\startxmlsetups test:test
\xmlflush{#1}
\stopxmlsetups
\startbuffer[test-1]
<?xml version="1.0" encoding="UTF-8"?>
<test>
<table>
<tr>
<td>one</td>
<td>two</td>
</tr>
</table>
</test>
\stopbuffer
\starttext
\xmlprocessbuffer{test}{test-1}{}
\stoptext
[-- Attachment #1.2: Type: text/html, Size: 4387 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: problem with xtable
2012-06-16 10:24 problem with xtable Meer, H. van der
@ 2012-06-16 13:51 ` Wolfgang Schuster
0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Schuster @ 2012-06-16 13:51 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 969 bytes --]
Am 16.06.2012 um 12:24 schrieb Meer, H. van der:
> Using \startxtable gives an error, whereas \startembeddedxtable does not. What is the cause, what is the difference?
That’s a side effect of the implementation of the buffer mechanism which is used by xtables, as a result of this you can’t use buffer environments in the argument of another command.
> Error: Runaway argument?
> \xmlflush {test::4}\stopxtable \endgroup
> \stoptext
> ! File ended while scanning use of \buff_gobble.
>
> Working:
> \startxmlsetups xmlcommon:table
> \startembeddedxtable[
> \xmlflush{#1}
> \stopembeddedxtable
> \stopxmlsetups
>
> Not working:
> \startxmlsetups xmlcommon:table
> \startxtable
> \xmlflush{#1}
> \stopxtable
> \stopxmlsetups
>
> Calling this with:
> \usemodule[hvdm-xml] % contains simple definitions for <table> <tr> <td> through \startxcell etc.
The version of your module on tlcontrib don’t contain such definitions.
Wolfgang
[-- Attachment #1.2: Type: text/html, Size: 2723 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-06-16 13:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-16 10:24 problem with xtable Meer, H. van der
2012-06-16 13:51 ` Wolfgang Schuster
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).