From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/65026 Path: news.gmane.org!not-for-mail From: "Thomas A. Schmitz" Newsgroups: gmane.comp.tex.context Subject: Re: Fwd: Re: xml-processing: missing or ungrouped '=' Date: Sat, 8 Jan 2011 18:00:59 +0100 Message-ID: <60F4B08E-CF99-4FE8-B8B0-0084F281BDB2@uni-bonn.de> References: <4D283A80.9090909@jander.de> <4D284759.6030802@wxs.nl> <4D285AEB.5080009@jander.de> <3DB8F220-B0CC-403D-A13C-E5B59C6DEA39@uni-bonn.de> <4D287357.3000906@jander.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1082) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1294506096 32601 80.91.229.12 (8 Jan 2011 17:01:36 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 8 Jan 2011 17:01:36 +0000 (UTC) To: mailing ConTeXt users list for Original-X-From: ntg-context-bounces@ntg.nl Sat Jan 08 18:01:32 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 1PbcAW-0002df-CO for gctc-ntg-context-518@m.gmane.org; Sat, 08 Jan 2011 18:01:32 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0A341CA9BD; Sat, 8 Jan 2011 18:01:31 +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 v0IgItHh40ca; Sat, 8 Jan 2011 18:01:30 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0C09ACA9B8; Sat, 8 Jan 2011 18:01:22 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 28E0FCA9B4 for ; Sat, 8 Jan 2011 18:01:21 +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 glslCn5FqvBJ for ; Sat, 8 Jan 2011 18:01:16 +0100 (CET) Original-Received: from filter1-til.mf.surf.net (filter1-til.mf.surf.net [194.171.167.217]) by balder.ntg.nl (Postfix) with ESMTP id 08F4DCA9B8 for ; Sat, 8 Jan 2011 18:01:16 +0100 (CET) Original-Received: from uni-bonn.de (mail.uni-bonn.de [131.220.15.113]) by filter1-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p08H1FKb001124 for ; Sat, 8 Jan 2011 18:01:15 +0100 Original-Received: from [87.178.47.4] (account tschmit1@uni-bonn.de HELO [192.168.0.2]) by fe2.uni-bonn.de (CommuniGate Pro SMTP 5.2.12) with ESMTPA id 53059278 for ntg-context@ntg.nl; Sat, 08 Jan 2011 18:01:15 +0100 In-Reply-To: <4D287357.3000906@jander.de> X-Mailer: Apple Mail (2.1082) X-Bayes-Prob: 0.5 (Score 0, tokens from: ) X-CanIt-Geo: ip=131.220.15.113; country=DE; region=07; city=Bonn; latitude=50.7333; longitude=7.1000; http://maps.google.com/maps?q=50.7333,7.1000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 08DR51fHg - d4397a4ea85d - 20110108 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.217 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:65026 Archived-At: On Jan 8, 2011, at 3:23 PM, Achim Jander wrote: > Hi Thomas, > yes, of course you are right, but thats not making the problems. Its switched in while making a "minimal" example. > My problem or maxbe misunderstanding ist what I try to achieve with Sorry, but I still don't have the faintest idea what it is you want to do. Your minimal example doesn't show it, and your explanations differ from one message to the next. In one of your mails, you said this: > If the title comes with an number-element I want to set ownnumber=..., but if they have no numbers, I want to set number=no If this is what you're looking for, here's what I would suggest: \startbuffer[test] more text more text more text more text \stopbuffer \startxmlsetups xml:testsetups \xmlsetsetup{\xmldocument}{a|b|chapter}{xml:*} \stopxmlsetups \xmlregistersetup{xml:testsetups} \startxmlsetups xml:a \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:b \startparagraph \xmlflush{#1} \stopparagraph \stopxmlsetups \startxmlsetups xml:chapter \doifelse {\xmlatt{#1}{num}} {} {\setuphead[chapter][number=no] \startchapter[title={\xmlatt{#1}{title}}] \xmlflush{#1} \stopchapter} {\setuphead[chapter][number=yes] \setupheadnumber[chapter][\xmlatt{#1}{num}] \startchapter[title={\xmlatt{#1}{title}}] \xmlflush{#1} \stopchapter} \stopxmlsetups \starttext \xmlprocessbuffer{main}{test}{} \stoptext It's trivial to change the test from an attribute to a element>, but maybe that's not what you're looking for... Thomas ___________________________________________________________________________________ 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 ___________________________________________________________________________________