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

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

Reply via email to