Henning Hraban Ramm said this at Fri, 23 Sep 2005 16:29:17 +0200:
Am 2005-09-22 um 09:53 schrieb Jessica Holle:
There I don't find something which helps me. The input must not be only XML. In can also be CVS or something else...
You will have to convert your XML file to become a ConTeXt table, use XSLT or some scripting language. ConTeXt's TABLE format ("HTML tables") is very suitable for such.
I'm not sure I understand the "CVS or something else" part from the original poster, but XML-style tables can very feasibly be mixed with other ConTeXt code: \usemodule [contml] % load the simple default xml vocab \autoXMLnamespace [context] % avoid prefixing elements w/ context: \setupcolors [state=start] % not necessary, helps with example \starttext \section{Some \ConTeXt} \startXMLdata <table frame="off" background="color" color="white"> <tr backgroundcolor="red"> <td>some</td> <td>XML</td> </tr> <tr backgroundcolor="green"> <td>xx</td> <td>xx</td> </tr> </table> \stopXMLdata I can also have normal \TeX-like \inframed[frame=off,background=color,backgroundcolor=yellow] {markup}. \stoptext
Is it possible to fill a table or a document in ConTeXt with content from a XML file?
You can replace the \startXMLdata-\stopXMLdata block with (in this case) \processXMLfilegrouped{table.xml} where table.xml holds a table similar to the above. -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Adam T. Lindsay, Computing Dept. atl@comp.lancs.ac.uk Lancaster University, InfoLab21 +44(0)1524/510.514 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-