From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/74047 Path: news.gmane.org!not-for-mail From: "Meer, H. van der" Newsgroups: gmane.comp.tex.context Subject: checking attributes Date: Fri, 20 Jan 2012 15:38:26 +0000 Message-ID: <7F3A1A8A-B61B-4501-9DA3-2E993935BBEC@uva.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1327073929 20262 80.91.229.12 (20 Jan 2012 15:38:49 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 20 Jan 2012 15:38:49 +0000 (UTC) To: ConTeXt NTG Original-X-From: ntg-context-bounces@ntg.nl Fri Jan 20 16:38:43 2012 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 1RoGY6-00035N-T4 for gctc-ntg-context-518@m.gmane.org; Fri, 20 Jan 2012 16:38:42 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id AD601CB1F0; Fri, 20 Jan 2012 16:38:41 +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 HXdJN3dK6t4t; Fri, 20 Jan 2012 16:38:39 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E9230CB1D9; Fri, 20 Jan 2012 16:38:38 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7D3FACB1D9 for ; Fri, 20 Jan 2012 16:38:37 +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 hJYNTpUwapaN for ; Fri, 20 Jan 2012 16:38:35 +0100 (CET) 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 BD1CCCB1C9 for ; Fri, 20 Jan 2012 16:38:34 +0100 (CET) Original-Received: from holleman.uva.nl (holleman.uva.nl [146.50.108.228]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id q0KFcYPk016403 for ; Fri, 20 Jan 2012 16:38:34 +0100 Original-Received: from vanthoff.uva.nl (146.50.108.242) by holleman.uva.nl (146.50.108.228) with Microsoft SMTP Server (TLS) id 14.1.355.2; Fri, 20 Jan 2012 16:38:27 +0100 Original-Received: from ketelaar.uva.nl ([fe80::cc61:4c73:c438:df97]) by vanthoff.uva.nl ([::1]) with mapi id 14.01.0355.002; Fri, 20 Jan 2012 16:38:27 +0100 Thread-Topic: checking attributes Thread-Index: AQHM14mNTWeY6XGhb0yQxt0S24WH1g== Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [82.95.102.36] Content-ID: <41339D0CDB4FC94DB0B00D294FECADB1@uva.nl> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=146.50.108.228; country=NL; region=07; city=Amsterdam; latitude=52.3500; longitude=4.9167; http://maps.google.com/maps?q=52.3500,4.9167&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0rGnPCyLe - 71c70d98f824 - 20120120 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 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:74047 Archived-At: Is the following impossible? The aim is checking the value of an attribute on a node: \xmlfilter{#1}{/content[@type ==\whatever]/command(xmlcommon:content)} It seems the \whatever macro is not expanded. How to? Hans van der Meer ___________________________________________________________________________________ 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 ___________________________________________________________________________________