Dear Aditya,
thanks greatly for your advice! It works! I now can influence how my tables look like.
Do you think it is possible to typeset an xml file that contains On Thu, 17 Mar 2011, R. Ermers wrote: Dear All, I am still trying to typeset cals tables. I have
1. an environment document with instructions.
2. an xml docbook file containing cals tables Note that the original cals tables (docbook standard) use There is a bug in lxml-dir.lua. Open lxml-dir.lua and change local collection = xml.applylpath({ getid(xml.load(filename)) },"directive") -- is { } needed ? to local collection = xml.applylpath(getid(xml.load(filename)),"directive") -- AM: removed { } [@Hans: I do not checked if this affects other uses of directives.load(...).] Then run c --make to regenerate formats. After that create three files: %% directives.xml
<?xml version="1.0" standalone="yes"?>
<directives>
<directive attribute="cdx" value="color" element="cals:table"
setup="cdx:cals:table:colors"/>
</directives> %% table.xml
<?xml version="1.0" standalone="yes"?> %% test.tex
\usemodule[cals] \startsetups cdx:cals:table:colors
\setupTABLE[each][each][background=color,backgroundcolor=red]
\stopsetups \starttext
\xmlloaddirectives{directives.xml}
\xmlprocess{xml:cals:process}{table.xml}{}
\stoptext Then compile test.tex to get a table with a red background. Aditya
___________________________________________________________________________________
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
___________________________________________________________________________________