[NTG-context] xml table reading problem

Johannes Graumann johannes_graumann at web.de
Sat Apr 8 03:45:40 CEST 2006


Derived from the 'figure' and 'table' examples in the XML example document,
I came up with the following set of mapping rules for formating XML tables
with ConTeXt. 

\defineXMLnested      [tr]    \bTR    \eTR
\defineXMLnested      [td]    \bTD    \eTD

When compiling a file with this rule set, I get the following error:

! Missing { inserted.
<to be read again>
\doifsomething #1->\edef
                         \!!stringa {#1}\ifx \!!stringa \empty
\expandafter ...

\switchtobodyfont [#1]->\doifsomething {#1}
                                            {\doifdefinedelse {\??ft

\XML:ele:/table ...nown}] {\XMLpop {caption}} \ix
                                                  \bTABLE \XMLpop
{content} ...
l.437                   </table>

When switching to scroll mode, the tables come out ok, but I'm unable to use 


to refer to them ...

Any input would be highly appreciated.

On a side note: how do I, in a document with
general '\setupinterlinespace[line=2\bodyfontsize]' switch to 'small'
interlinespace for floatcaptions (and footnotes)?

Tried '\setupcaptions[style={small
\setupinterlinespace[small]},width=\textwidth]', but that doesn't work ...

Thanks, Joh

More information about the ntg-context mailing list