From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/76947 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: parameter setting Date: Sat, 16 Jun 2012 15:18:11 +0200 Message-ID: References: <4E63CEE0-BC3A-4C66-91FB-DEF9FF197BE4@uva.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Apple Message framework v1278) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1339852723 18940 80.91.229.3 (16 Jun 2012 13:18:43 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 16 Jun 2012 13:18:43 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Jun 16 15:18:41 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 1Sfstk-0000vO-OC for gctc-ntg-context-518@m.gmane.org; Sat, 16 Jun 2012 15:18:40 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 52539101F2; Sat, 16 Jun 2012 15:18:34 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id ZMSfG4xN-w8s; Sat, 16 Jun 2012 15:18:34 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id ECBA1101EA; Sat, 16 Jun 2012 15:18:19 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C2EE6101EC for ; Sat, 16 Jun 2012 15:18:16 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id ZddxFPHrUmai for ; Sat, 16 Jun 2012 15:18:16 +0200 (CEST) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id 06CC8101EA for ; Sat, 16 Jun 2012 15:18:16 +0200 (CEST) Original-Received: from mail-wi0-f173.google.com (mail-wi0-f173.google.com [209.85.212.173]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q5GDIFjF022672 for ; Sat, 16 Jun 2012 15:18:15 +0200 Original-Received: by wibhj6 with SMTP id hj6so315376wib.2 for ; Sat, 16 Jun 2012 06:18:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=HA+fkJnyVQGvzv0IO6Jok0L0SyV5UjFlkrMYY86JvD8=; b=zQmGH9u4RJawxOyLpfKawskhsyn0U2Be16i2Rns2WBrZZ6tZ7m0LmBhvvb6PEwoO7l WiExsgbYPfCBe3f8XMU/XScL4mC4TBmmXetsDXyHs3XBu4Ibb+FQJcJvotNfSr0XP9QT AR6arJME59+KWl6LbsqGaBpXIgJ4NIhOE7I1Hrt0mS05fG34sE4E/L4niuwG4kMJp+f2 5xUzY7LHp1HtAE3nwEGiX7iJQfFI4O5aOp2hkTH4mjj3zhfy66OUICcCJmjJaE1La/Jd zummZpNlR9JSo7/wGjAnOPbV3uUu/5ylGG9EJa3vnldXGwv9BSFq19w5/U92mB5lziWD k9ww== Original-Received: by 10.216.202.170 with SMTP id d42mr4717955weo.83.1339852695223; Sat, 16 Jun 2012 06:18:15 -0700 (PDT) Original-Received: from [192.168.2.36] (p57AFB22C.dip.t-dialin.net. [87.175.178.44]) by mx.google.com with ESMTPS id et10sm10634173wib.2.2012.06.16.06.18.13 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 16 Jun 2012 06:18:14 -0700 (PDT) In-Reply-To: <4E63CEE0-BC3A-4C66-91FB-DEF9FF197BE4@uva.nl> X-Mailer: Apple Mail (2.1278) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.212.173; 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: 0QHn1ifzM - 45781553e140 - 20120616 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.13 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:76947 Archived-At: Am 16.06.2012 um 14:11 schrieb Meer, H. van der: > In order to be able to use attributes on xml-nodes freely, the following = situations can arise: > = > The foregroundcolor parameter gets a value: > correctly sets ..[foregroundcolor=3D\xmlatt{#1}{colo= r}] color to red. > = > However, in the next case the current foregroundcolor should be left as i= s, but reverts to black: > ..[foregroundcolor=3D] and is apparently reset to the general defa= ult. When you write =93foregroundcolor=3D=94 you apply *nothing* to the key and = the last setting is changed. > trying the following seemed the solution, but it does not work: > ..[\doifnot{\xmlatt{#1}{color}}{\empty}{foregroundcolor=3D\xmlatt{#1}{col= or}}] > giving in the log: > {foregroundcolor=3Dorange}' in line 16 (249>:) > check > missing or ungrouped '=3D' after '\doifnot {}{} > = > Putting the above \doif inside an \expanded{} does not alter the behaviou= r. > = > How to accomplish leaving the parameter as is for an absent attribute? You can try =93\expdoifnot{\xmlatt{#1}{color}}{}{backgroundcolor=3D\xmlatt{= #1}{color}}=94 but I can=92t say for sure without a example. 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 ___________________________________________________________________________= ________