At 04:23 PM 6/10/2002 +0200, Simon Pepping wrote:
>Hi,
>
>This file causes an error which I think should not occur. The error
>does not occur when I remove \NC from \XMLDBshowElementTH. It seems to
>me that either \csname next1\endcsname or \p!doprocessaction has the
>wrong value.
>
>\tracingmacros=2\tracingcommands=2
>
>\def\XMLDBshowElementTH#1{\NC\csname XMLDB#1\endcsname}
>
>\starttext
>\def\XMLDBElementList{revnumber,date,authorinitials,revremark,revdescription}
>\starttabulate[|l|l|l|l|l|]
>     \processcommacommand[\XMLDBElementList]\XMLDBshowElementTH \NC\NR\ML
>\stoptabulate
>
>\stoptext


Ah, you mean the \par message? This is related to the non existing i.e. 
only living inside tex \endtemplate primitive and the message is one of 
those originating deep inside tex when tex is not really able to determine 
the problem (similar things happen with missing { or } messages when 
v/halignments are used in the wrong v/h mode).

The problem is that commalist processing can be nested and has no grouping, 
which means that the internal counters get confused when used inside 
implicitly grouped situations like alignment cells. So, one way out is a 
rather dirty trick:

\expanded{\globalprocesscommalist[\XMLDBElementList]}

i.e. use a special version of comma list processing

[BTW, i now have a version of bTABLE cum suis running which breaks across 
pages and has auto-repeated headers, handy for xml too]

Hans

-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | [EMAIL PROTECTED]
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
                        information: http://www.pragma-ade.com/roadmap.pdf
                     documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------

Reply via email to