From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/71935 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: xml and lua again Date: Tue, 25 Oct 2011 12:10:56 +0200 Message-ID: References: <4EA2F34E.6080202@uni-bonn.de> <4EA53B44.1040105@wxs.nl> <4EA55792.9090408@uni-bonn.de> <4EA5598A.4060109@wxs.nl> <4EA599BE.2050304@uni-bonn.de> <4EA5B2F2.2050700@wxs.nl> <4EA684D9.2040702@uni-bonn.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1319537503 6554 80.91.229.12 (25 Oct 2011 10:11:43 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 25 Oct 2011 10:11:43 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Oct 25 12:11:39 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 1RIdys-0007zv-N7 for gctc-ntg-context-518@m.gmane.org; Tue, 25 Oct 2011 12:11:38 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 13BA1CB098; Tue, 25 Oct 2011 12:11:36 +0200 (CEST) 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 NfyRJsUUC5SQ; Tue, 25 Oct 2011 12:11:30 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 52FB6CB085; Tue, 25 Oct 2011 12:11:30 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5CEDBCB085 for ; Tue, 25 Oct 2011 12:11:28 +0200 (CEST) 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 0ESJZDB1H0I2 for ; Tue, 25 Oct 2011 12:11:17 +0200 (CEST) Original-Received: from filter3-til.mf.surf.net (filter3-til.mf.surf.net [194.171.167.219]) by balder.ntg.nl (Postfix) with ESMTP id 2F0B5CB083 for ; Tue, 25 Oct 2011 12:11:17 +0200 (CEST) Original-Received: from mail-fx0-f41.google.com (mail-fx0-f41.google.com [209.85.161.41]) by filter3-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p9PABA8k024721 for ; Tue, 25 Oct 2011 12:11:16 +0200 Original-Received: by faat2 with SMTP id t2so450400faa.14 for ; Tue, 25 Oct 2011 03:11:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=FNLkKcp2crSFlsYs/KIU3yBiL+7YV9NJBkvDKvub4Ck=; b=BWUWHorVA/D/0HCpJmc5ClNcpKjoIQDeEPApiQrTfF5NFYLkzGcbLKk+f2PmJaDM8f XksoAgWCd2P7ZOf4J9QsI4VwCZ9sMO9RPASZd8ymSED+3YkUMcmMZXsSIbrkGTKP5cky bq+X5F12PEmjTKFTcZLznn4RUpKAxG4WeC3YQ= Original-Received: by 10.223.14.140 with SMTP id g12mr17401448faa.34.1319537470009; Tue, 25 Oct 2011 03:11:10 -0700 (PDT) Original-Received: from [192.168.2.35] (p5482C42C.dip.t-dialin.net. [84.130.196.44]) by mx.google.com with ESMTPS id n25sm37505972fah.15.2011.10.25.03.11.06 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 25 Oct 2011 03:11:09 -0700 (PDT) In-Reply-To: <4EA684D9.2040702@uni-bonn.de> X-Mailer: Apple Mail (2.1251.1) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.161.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: 0eFMWba9B - 632330dc6a44 - 20111025 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.219 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:71935 Archived-At: Am 25.10.2011 um 11:43 schrieb Thomas A. Schmitz: > On 10/24/11 8:48 PM, Hans Hagen wrote: >> sure, oryou can play with >> = >> if xml.filter(t,".[@frame=3Don]) then >> = >> the x-*.lua show some tricks >> = > = > OK, I'm in my "stubborn" mode then: why doesn't this work: > = > [=85] > = > \startxmlsetups xml:nattable > \startluacode > if xml.attribute(t, "/", "frame", "off") =3D=3D "on" then > context("Yes, the frame is really on!") > else > context("Nope, sorry, it's still off.") > end if xml.attribute(lxml.id("#1"), "/", "frame", "off") =3D=3D "on" then % context("Yes, the frame is really on!") else % context("Nope, sorry, it's still off.") end % Wolfgang ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________