From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/86793 Path: news.gmane.org!not-for-mail From: Xan Newsgroups: gmane.comp.tex.context Subject: Problems with XML and table of contents Date: Thu, 27 Mar 2014 11:55:14 +0100 Message-ID: <20140327115514.835dd13a92d28cab9989a4db@telefonica.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1395917724 1319 80.91.229.3 (27 Mar 2014 10:55:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 27 Mar 2014 10:55:24 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Mar 27 11:55:35 2014 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WT7yA-0006Xn-9C for gctc-ntg-context-518@m.gmane.org; Thu, 27 Mar 2014 11:55:34 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 70AAF101F1; Thu, 27 Mar 2014 11:55:33 +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 ePijnT6jdu4w; Thu, 27 Mar 2014 11:55:31 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 0E4BB101EB; Thu, 27 Mar 2014 11:55:31 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 852E4101EB for ; Thu, 27 Mar 2014 11:55:29 +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 pyijMuJ13B22 for ; Thu, 27 Mar 2014 11:55:28 +0100 (CET) Original-Received: from filter5-til.mf.surf.net (filter5-til.mf.surf.net [194.171.167.221]) by balder.ntg.nl (Postfix) with ESMTP id E5E22101E1 for ; Thu, 27 Mar 2014 11:55:18 +0100 (CET) Original-Received: from smtp.movistar.es (smtp22.acens.net [86.109.99.146]) by filter5-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s2RAtGDs009794 for ; Thu, 27 Mar 2014 11:55:17 +0100 X-CTCH-RefID: str=0001.0A0B0203.53340393.0161, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 X-CTCH-Spam: Unknown Original-Received: from rulot (81.32.88.229) by smtp.movistar.es (8.6.117.05) (authenticated as dxpublica) id 53205A140081056B for ntg-context@ntg.nl; Thu, 27 Mar 2014 10:55:15 +0000 X-Mailer: Sylpheed 3.3.1 (GTK+ 2.24.22; i686-pc-linux-gnu) X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=86.109.99.146; country=ES; latitude=40.0000; longitude=-4.0000; http://maps.google.com/maps?q=40.0000,-4.0000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0WLGyTg3d - aef0b4bf28d9 - 20140327 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.221 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:86793 Archived-At: Hi, I have this: \definehead [Fitxa] [subsubject] \setuphead [Fitxa][textstyle=sca,align=normal,color=headingcolor,before={},ownnumber=yes,incrementnumber=yes,number=no,strut=no] \setuplabeltext [Fitxa=Fitxa] \setuplist[Fitxa] [margin=4em,interaction=text,color=green,textcommand=\WORD] %\setuplist [Fitxa] [width=2em,criterium=all,interaction=all] \newcounter\FitxaNumber \def\fitxa#1% {\doglobal\increment\FitxaNumber \Fitxa{\FitxaNumber}{#1}} \setupcombinedlist[content][list={chapter,section,subsection,Fitxa,tasca},interaction=all,textcolor=black] and \startxmlsetups xml:demo:titol \fitxa{\xmltext{#1}{/}} \stopxmlsetups In the document all is ok, but in the table of contents, I get "phantom" content. Any clue? Thanks in advance, Xan ___________________________________________________________________________________ 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 ___________________________________________________________________________________