From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/67116 Path: news.gmane.org!not-for-mail From: "R. Ermers" Newsgroups: gmane.comp.tex.context Subject: Re: cals tables - UNSOLVED Date: Fri, 18 Mar 2011 08:47:22 +0100 Message-ID: <78B175D1-D98C-4958-9101-663B74D9C860@hccnet.nl> References: <4C7BC223-69A3-4DE0-A03C-D8CDEB6F35EC@hccnet.nl> <4D74C459.1070604@wxs.nl> <5C3DA588-D509-4A2B-8510-DA6C26A6EFF1@hccnet.nl> <4D7780E8.4000301@wxs.nl> <9E26EDD5-2B1E-4BA2-B39F-04FC510F9DFB@hccnet.nl> <506D6753-407C-48E3-8EE2-AB2D7DCE3F6F@hccnet.nl> <8EE590AC-597D-454A-BED3-A69ADF17E388@hccnet.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1082) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1300434456 25935 80.91.229.12 (18 Mar 2011 07:47:36 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 18 Mar 2011 07:47:36 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Mar 18 08:47:32 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Q0UPE-0005jf-Oz for gctc-ntg-context-518@m.gmane.org; Fri, 18 Mar 2011 08:47:32 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6D1D8CAAFB; Fri, 18 Mar 2011 08:47:28 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id hjNdo+Pyh+wA; Fri, 18 Mar 2011 08:47:25 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 26D55CAAED; Fri, 18 Mar 2011 08:47:25 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C8691CAAED for ; Fri, 18 Mar 2011 08:47:23 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id l0lN47iKBDw9 for ; Fri, 18 Mar 2011 08:47:21 +0100 (CET) Original-Received: from filter2-nij.mf.surf.net (filter2-nij.mf.surf.net [195.169.124.153]) by balder.ntg.nl (Postfix) with ESMTP id 15585CAAE2 for ; Fri, 18 Mar 2011 08:47:21 +0100 (CET) Original-Received: from cpsmtpb-ews01.kpnxchange.com (cpsmtpb-ews01.kpnxchange.com [213.75.39.4]) by filter2-nij.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p2I7HuaF028862 for ; Fri, 18 Mar 2011 08:17:56 +0100 Original-Received: from cpbrm-ews26.kpnxchange.com ([10.94.84.157]) by cpsmtpb-ews01.kpnxchange.com with Microsoft SMTPSVC(6.0.3790.4675); Fri, 18 Mar 2011 08:47:23 +0100 Original-Received: from CPSMTPM-CMT101.kpnxchange.com ([195.121.3.17]) by cpbrm-ews26.kpnxchange.com with Microsoft SMTPSVC(6.0.3790.4675); Fri, 18 Mar 2011 08:47:22 +0100 Original-Received: from imac-van-robert.lan ([77.168.85.243]) by CPSMTPM-CMT101.kpnxchange.com with Microsoft SMTPSVC(7.0.6002.18264); Fri, 18 Mar 2011 08:47:22 +0100 In-Reply-To: X-Mailer: Apple Mail (2.1082) X-OriginalArrivalTime: 18 Mar 2011 07:47:22.0415 (UTC) FILETIME=[B72EB3F0:01CBE540] X-RcptDomain: ntg.nl X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=213.75.39.4; country=NL; latitude=52.5000; longitude=5.7500; http://maps.google.com/maps?q=52.5000,5.7500&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0aEkvhUtc - 4b906e934b14 - 20110318 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.153 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:67116 Archived-At: 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 > > > setup="cdx:cals:table:colors"/> > > > > %% table.xml > > > > > > > alpha > beta > gamma > > > > > one > two > three > > > four > five > six > > > > > > > %% 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 > ___________________________________________________________________________________ ___________________________________________________________________________________ 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 ___________________________________________________________________________________