From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/71939 Path: news.gmane.org!not-for-mail From: Martin Fechner Newsgroups: gmane.comp.tex.context Subject: xml and lpath Date: Tue, 25 Oct 2011 12:52:51 +0200 Message-ID: <4EA69503.9020705@bbaw.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1319539999 24756 80.91.229.12 (25 Oct 2011 10:53:19 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 25 Oct 2011 10:53:19 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Tue Oct 25 12:53:11 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 1RIed5-0007Dr-Ks for gctc-ntg-context-518@m.gmane.org; Tue, 25 Oct 2011 12:53:11 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C2671CB094; Tue, 25 Oct 2011 12:53:10 +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 19sPDkFFQR6h; Tue, 25 Oct 2011 12:53:08 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 17D17CB089; Tue, 25 Oct 2011 12:53:08 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A8D15CB089 for ; Tue, 25 Oct 2011 12:53:06 +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 0hJ5Q3MIMqak for ; Tue, 25 Oct 2011 12:52:55 +0200 (CEST) Original-Received: from filter4-nij.mf.surf.net (filter4-nij.mf.surf.net [195.169.124.155]) by balder.ntg.nl (Postfix) with ESMTP id A11D9CB083 for ; Tue, 25 Oct 2011 12:52:55 +0200 (CEST) Original-Received: from mail.bbaw.de (mail.bbaw.de [194.95.188.6]) by filter4-nij.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p9PAqrjC013994 for ; Tue, 25 Oct 2011 12:52:53 +0200 Original-Received: from mailhub.bbaw.de (unknown [192.168.4.1]) by mail.bbaw.de (Postfix) with ESMTP id 8694E4A8060 for ; Tue, 25 Oct 2011 12:52:51 +0200 (CEST) Original-Received: by mailhub.bbaw.de (Postfix, from userid 10) id 081FC93853; Tue, 25 Oct 2011 12:52:51 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by mailhub.bbaw.de (Postfix) with ESMTP id B2DB493856 for ; Tue, 25 Oct 2011 12:52:51 +0200 (CEST) Original-Received: from mailhub.bbaw.de (localhost [127.0.0.1]) by localhost (AvMailGate-2.1.4-7) id 5941-0CDXey; Tue, 25 Oct 2011 12:52:51 +0200 (CEST) Original-Received: from [192.168.1.197] (unknown [192.168.1.197]) by mailhub.bbaw.de (Postfix) with ESMTP id 900229384F for ; Tue, 25 Oct 2011 12:52:51 +0200 (CEST) User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:6.0.2) Gecko/20110902 Thunderbird/6.0.2 X-AntiVirus: checked by Avira MailGate (version: 2.1.4-7; AVE: 7.9.6.84; VDF: 7.11.16.136; host: mailhub); id=5941-0CDXey X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=194.95.188.6; country=DE; region=16; city=Berlin; latitude=52.5167; longitude=13.4000; http://maps.google.com/maps?q=52.5167,13.4000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 04FMWQRuR - 3627668bf183 - 20111025 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.155 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:71939 Archived-At: Hi all, I'm testing the possibilities of xml and ConTeXt. I was wondering if it is possible to make an extra setup for every text-element. So it would be possible to have an setup in a very flexible way. It should be something like this: \startbuffer[text] First text. Second text. Third text. Fourth text. \stopbuffer \startxmlsetups xml:textsetups \xmlsetsetup{#1}{a|b}{xml:*} \xmlsetsetup{#1}{hiding[type='begin']}{xml:hiding:begin} \xmlsetsetup{#1}{hiding[type='end'}{xml:hiding:end} \xmlsetsetup{#1}{text()}{xml:text} % Something like this is needed \stopxmlsetups \startxmlsetups xml:a \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:b \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:hiding:begin \enablemode[hiding] \stopxmlsetups \startxmlsetups xml:hiding:end \disablemode[hiding] \stopxmlsetups \startxmlsetups xml:text \startnotmode[hiding] \xmlflush{#1} \crlf \stopnotmode \stopxmlsetups So that the result will be: First text. Fourth text. Is something like this possible or is there still another way? Best regards, Martin ___________________________________________________________________________________ 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 ___________________________________________________________________________________