From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/53800 Path: news.gmane.org!not-for-mail From: Taco Hoekwater Newsgroups: gmane.comp.tex.context Subject: Re: filter contents of xml elements Date: Wed, 28 Oct 2009 16:32:41 +0100 Message-ID: <4AE86419.7060401@elvenkind.com> References: <4AE860A1.9000200@jhnet.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: ger.gmane.org 1256743981 29390 80.91.229.12 (28 Oct 2009 15:33:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 28 Oct 2009 15:33:01 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Oct 28 16:32:54 2009 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.50) id 1N3AW4-0003ox-O2 for gctc-ntg-context-518@m.gmane.org; Wed, 28 Oct 2009 16:32:52 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4C3CFC9B49; Wed, 28 Oct 2009 16:31:36 +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 D5JsyG+njcqk; Wed, 28 Oct 2009 16:31:33 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id F1BC2C9B16; Wed, 28 Oct 2009 16:31:32 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4EC6DC9B16 for ; Wed, 28 Oct 2009 16:31:30 +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 nMdUncat323k for ; Wed, 28 Oct 2009 16:31:27 +0100 (CET) Original-Received: from plane.elvenkind.com (elvenknd.xs4all.nl [82.95.203.226]) by balder.ntg.nl (Postfix) with ESMTP id 78DDEC9B07 for ; Wed, 28 Oct 2009 16:31:27 +0100 (CET) Original-Received: from glenlivet.elvenkind.com (glenlivet.elvenkind.com [10.10.0.6]) by plane.elvenkind.com (Postfix) with ESMTP id A1EEA802BE1A for ; Wed, 28 Oct 2009 16:32:41 +0100 (CET) User-Agent: Thunderbird 2.0.0.21 (X11/20090319) In-Reply-To: <4AE860A1.9000200@jhnet.nl> 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:53800 Archived-At: Jelle Huisman wrote: > Any hints? Thanks! The next does not deserve a price for elegance, but because \xmlflush is expandable (this is its best feature, I think!) you can use the traditional tex toolkit macros: \startxmlsetups xml:h3 \doifinstringelse{Skip title}{\xmlflush{#1}} {} {\subject{\xmlflush{#1}}} \stopxmlsetups I'm fairly certain that there are nicer solutions, however. Best wishes, Taco ___________________________________________________________________________________ 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 ___________________________________________________________________________________