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