From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/78941 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Multipass Datasets doesn't work Date: Mon, 29 Oct 2012 10:13:27 +0100 Message-ID: References: <508E43B2.1020208@bbaw.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1351502015 21858 80.91.229.3 (29 Oct 2012 09:13:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 29 Oct 2012 09:13:35 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Oct 29 10:13:44 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TSlPi-0004BA-Th for gctc-ntg-context-518@m.gmane.org; Mon, 29 Oct 2012 10:13:42 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 73B9D10223; Mon, 29 Oct 2012 10:13:34 +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 JNsLu7mZxG9o; Mon, 29 Oct 2012 10:13:32 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 5AD33101EA; Mon, 29 Oct 2012 10:13:32 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 25D81101EA for ; Mon, 29 Oct 2012 10:13:31 +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 9UJSgJFegnCx for ; Mon, 29 Oct 2012 10:13:30 +0100 (CET) Original-Received: from filter3-utr.mf.surf.net (filter3-utr.mf.surf.net [195.169.124.154]) by balder.ntg.nl (Postfix) with ESMTP id 62706101E8 for ; Mon, 29 Oct 2012 10:13:30 +0100 (CET) Original-Received: from mail-bk0-f41.google.com (mail-bk0-f41.google.com [209.85.214.41]) by filter3-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q9T9DSgg016047 for ; Mon, 29 Oct 2012 10:13:29 +0100 Original-Received: by mail-bk0-f41.google.com with SMTP id jm1so2002206bkc.14 for ; Mon, 29 Oct 2012 02:13:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=uFfkZwZUn6Bey3i61p+vzGYK6xaWFda9vqSJAz73g3c=; b=OmHjsgcfWFYnnr6q+zS5K3mD1t/bRI6mbppSjGdpGknTvd9DAREwilDQTqROx927yI EmfqtlfyF+Fyq6ucJveZR/7glBDmwKFdlmKKGlK1pHVftV65mepYNJJrJ2j5Zv4hF5NA Vi+XcELoW90lGB5wQ9XRqbcRDbfgU6+iHtmiQWXpWujzE78nD4pP8UjwUjJcjRgBr1kD GDyBkWrTZa+5sVFZVcNxAX5stOayh8m8eUgH8H+xW2xLJSOHjHvh9c2l27x/HzmYAED5 bdnHeBrGoKxyuX7gaawR94oKuqMKNZDsm/MhBKCYEx8TCzKz65TDqqnqeV72l9Z/3YKv 86+A== Original-Received: by 10.204.152.25 with SMTP id e25mr9133150bkw.70.1351502008351; Mon, 29 Oct 2012 02:13:28 -0700 (PDT) Original-Received: from keima.localdomain (nrbg-4d075a12.pool.mediaWays.net. [77.7.90.18]) by mx.google.com with ESMTPS id z13sm3298998bkv.8.2012.10.29.02.13.26 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 29 Oct 2012 02:13:27 -0700 (PDT) In-Reply-To: <508E43B2.1020208@bbaw.de> X-Mailer: Apple Mail (2.1499) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.214.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 08IgVdskl - c7285289fa5f - 20121029 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.154 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:78941 Archived-At: Am 29.10.2012 um 09:52 schrieb Martin Fechner : > Hello, > > the simple example from the mailing-list doesn't work with the latest beta. I think the core-dat.lua is corrupted (function commands.datasetvariable) > > > \definedataset[test-1] > \definedataset[test-2] > > \starttext > > \setdataset[test-1][x=Value X 1,y=Value Y 1] > \setdataset[test-1][x=Value X 2,y=Value Y 2] > > \setdataset[test-2][a][name=Ben Lee User,job=Manager] > \setdataset[test-2][b][title=TeX by Topic] > > \startlines > \datasetvariable{test-1}{1}{x}:\datasetvariable{test-1}{1}{y} > \datasetvariable{test-1}{2}{x}:\datasetvariable{test-1}{2}{y} > \stoplines > > Name: \datasetvariable{test-2}{a}{name} \par > Job: \datasetvariable{test-2}{a}{job} \par > > \stoptext Change the following test in core-dat.lua: function commands.datasetvariable(name,tag,key) local t = collected[name] if t == nil then if trace_datasets then report_dataset("unknown: name %s (not passed to tex)",name) end elseif type(t) ~= "table" then context(tostring(t)) else t = t and (t[tag] or t[tonumber(tag)]) if not t then if trace_datasets then report_dataset("unknown: name %s with tag %s (not passed to tex)",name,tag) end - elseif type(t) ~= "table" then + elseif type(t) == "table" then local s = t[key] if type(s) ~= "table" then context(tostring(s)) elseif trace_datasets then report_dataset("table: name %s, tag %s (not passed to tex)",name,tag) end end end end Wolfgang ___________________________________________________________________________________ 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 ___________________________________________________________________________________