From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/67240 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: referring to floats in xml Date: Mon, 21 Mar 2011 11:44:13 -0400 (EDT) Message-ID: References: <123216F8-B630-4FB5-AF30-0A3A4CE3BC79@hccnet.nl> <3BE7A960-6099-48D3-9D37-F5DAA0DD61C6@hccnet.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 1300722284 9129 80.91.229.12 (21 Mar 2011 15:44:44 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 21 Mar 2011 15:44:44 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Mar 21 16:44:39 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 1Q1hHb-0001eX-Dd for gctc-ntg-context-518@m.gmane.org; Mon, 21 Mar 2011 16:44:39 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C1AF2CAB15; Mon, 21 Mar 2011 16:44:28 +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 6DOzL3n--+pT; Mon, 21 Mar 2011 16:44:26 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 780ABCAB19; Mon, 21 Mar 2011 16:44:26 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 86955CAB19 for ; Mon, 21 Mar 2011 16:44:24 +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 lEj9zFAN1++g for ; Mon, 21 Mar 2011 16:44:12 +0100 (CET) Original-Received: from filter2-til.mf.surf.net (filter2-til.mf.surf.net [194.171.167.218]) by balder.ntg.nl (Postfix) with ESMTP id C3FCDCAB15 for ; Mon, 21 Mar 2011 16:44:12 +0100 (CET) Original-Received: from tombraider.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.12.86]) by filter2-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p2LFiJQJ019793 for ; Mon, 21 Mar 2011 16:44:21 +0100 Original-Received: FROM [10.0.2.15] (bas3-montreal02-1096682363.dsl.bell.ca [65.94.11.123]) By tombraider.mr.itd.umich.edu ID 4D877252.4585C.10333 ; Authuser adityam; 21 Mar 2011 11:44:18 EDT In-Reply-To: <3BE7A960-6099-48D3-9D37-F5DAA0DD61C6@hccnet.nl> User-Agent: Alpine 2.01 (LNX 1266 2009-07-14) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=141.211.12.86; country=US; region=MI; city=Ann Arbor; postalcode=48109; latitude=42.2923; longitude=-83.7145; metrocode=505; areacode=734; http://maps.google.com/maps?q=42.2923,-83.7145&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0bElPIkMU - f7deacf7aa64 - 20110321 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.218 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:67240 Archived-At: On Mon, 21 Mar 2011, R. Ermers wrote: > Thanks, Aditya, The first problem is adequately solved by adding []. I'll prepare an example for the second problem. > > A related problem is referring to sections and other blocks. > >
Cows > cows cows cows. As I told in
> > The title is mapped as follows (lpath): > \xmlsetsetup{#1}{section/title}{xml:section/title} > > \startxmlsetups xml:section:title > \section{\xmlflush{#1}} > \stopxmlsetups > > The section is not mapped: > \startxmlsetups xml:section > \xmlflush{#1} > \stopxmlsetups > > Adding [\xmlatt{#1}{id}] to xml:section:title does not work of course. > Using [\xmlatt{#1}{id}] with xml:section puts the id before the \section > command. I think one of the other commands has to be used in such a way > that the id is flushed forward after the \section command. Map section to include both id and title. (Untested) \startxmlsetups xml:section \section[\xmlatt{#1}{id}]{\xmlfirst{#1}{/title}} % or slightly better % \section[\xmlattdef{#1}{id}{+}]{\xmlfirst{#1}{/title}} % Then flush para separately % \xmlall{#1}{/para} % or % \xmlconcat {#1} {/para} {\par} % or better, add a contents tag around the contents %
... % ... %
% and then use % \xmlfirst{#1}{/contents} \stopxmlsetups Aditya ___________________________________________________________________________________ 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 ___________________________________________________________________________________