List,

I am trying to use tables in an export with tagging to support CSS styling for eventual ebook production (with the added hope that cross-references and perhaps indexing someday might be supported). I have run into an odd limitation. It seems that only tagged element may not be present in a table.

The primary use is to manage text in sidebars (first or last column, moved by CSS to the correct position, for a two- or three-column one-row table).

It looks like tagged elements are not currently supported within tables.

I had thought of putting the table into a tagged element and using nth-child selectors to apply CSS to cells by column, but that is finicky and it does not offer the flexibility that tagged elements provide.

Can anyone suggest another alternative?

Example follows. As supplied, no tagged elements are generated and all is well. Uncomment either the start/stop element lines in the table to get one tagged element in the output, or the getbuffer line to get two (or all to get three, or...). There are similar problems with tabulate and xtables, but only TABLE is shown here.
\setupstructure        [state=start,
                        method=auto]
\setuptagging          [state=start]
\setupbackend          [export=yes]
\setupexport           [title={Test Example}]

\setelementbackendtag  [Block]
\setelementnature      [Block][display]
\setelementbackendtag  [Column]
\setelementnature      [Column][display]
\setelementbackendtag  [Text]
\setelementnature      [Text][display]

\define\DummyText{Lorem ipsum dolor sit amet, \ldots}

\startbuffer[Demo]
  \startelement[Block]
  \startelement[Text]
  \DummyText \DummyText
  \DummyText \DummyText
  \stopelement
  \stopelement
\stopbuffer

\starttext
\startchapter[title={One}]
\startsection[title={OneDotOne}]
\bTABLE
  \bTR
    \bTD
%     \startelement[Column]%  adds 1 tagged elements
        \DummyText \DummyText
%       \getbuffer[Demo]%     adds 2 tagged elements
%     \stopelement
    \eTD
    \bTD
        \DummyText \DummyText
    \eTD
  \eTR
\eTABLE
\stopsection%
\startsection[title={OneDotTwo}]
\startparagraph
  \DummyText
\stopparagraph
\stopsection
\stopchapter
\stoptext

--
Rik