From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/67262 Path: news.gmane.org!not-for-mail From: "R. Ermers" Newsgroups: gmane.comp.tex.context Subject: Re: referring to floats in xml Date: Tue, 22 Mar 2011 08:42:55 +0100 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 (Apple Message framework v1082) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1300779797 16433 80.91.229.12 (22 Mar 2011 07:43:17 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 22 Mar 2011 07:43:17 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Mar 22 08:43:13 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 1Q1wFF-0006qO-Hf for gctc-ntg-context-518@m.gmane.org; Tue, 22 Mar 2011 08:43:13 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1C893CAB3F; Tue, 22 Mar 2011 08:43:02 +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 3qZyRHCNOoie; Tue, 22 Mar 2011 08:42:59 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 69308CAB35; Tue, 22 Mar 2011 08:42:59 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id F04B4CAB35 for ; Tue, 22 Mar 2011 08:42:57 +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 dk6mO+wf11iE for ; Tue, 22 Mar 2011 08:42:46 +0100 (CET) Original-Received: from filter3-til.mf.surf.net (filter3-til.mf.surf.net [194.171.167.219]) by balder.ntg.nl (Postfix) with ESMTP id C9BF0CAAFF for ; Tue, 22 Mar 2011 08:42:46 +0100 (CET) Original-Received: from cpsmtpb-ews05.kpnxchange.com (cpsmtpb-ews05.kpnxchange.com [213.75.39.8]) by filter3-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p2M7guKa021906 for ; Tue, 22 Mar 2011 08:42:56 +0100 Original-Received: from cpbrm-ews22.kpnxchange.com ([10.94.84.153]) by cpsmtpb-ews05.kpnxchange.com with Microsoft SMTPSVC(6.0.3790.4675); Tue, 22 Mar 2011 08:42:55 +0100 Original-Received: from CPSMTPM-CMT105.kpnxchange.com ([195.121.3.21]) by cpbrm-ews22.kpnxchange.com with Microsoft SMTPSVC(6.0.3790.4675); Tue, 22 Mar 2011 08:42:56 +0100 Original-Received: from imac-van-robert.lan ([77.168.85.243]) by CPSMTPM-CMT105.kpnxchange.com with Microsoft SMTPSVC(7.0.6002.18264); Tue, 22 Mar 2011 08:42:55 +0100 In-Reply-To: X-Mailer: Apple Mail (2.1082) X-OriginalArrivalTime: 22 Mar 2011 07:42:55.0589 (UTC) FILETIME=[C1CB4950:01CBE864] X-RcptDomain: ntg.nl X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=213.75.39.8; country=NL; latitude=52.5000; longitude=5.7500; http://maps.google.com/maps?q=52.5000,5.7500&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0eEm7GUSs - fd400b8e7412 - 20110322 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.219 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:67262 Archived-At: Thanks very much, Aditya for your advice. I really appreciate it. I tried your suggestions. > 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}} The section titles and numbers are doubled now, most likely due to other mappings that. The subsection and subsubsection titles need to be mapped as such, a generic mapping for all section heads is not feasible (I think). > % Then flush para separately > % \xmlall{#1}{/para} This does not work, because the sections contain all kinds of elements, not just .
text
text
I tried \xmlall{#1} with other elements, but the result is a mess. I need an lpath symbol that refers to all underlying elements. I tried {+}, {*}, {//}, etc. > % or > % \xmlconcat {#1} {/para} {\par} > % or better, add a contents tag around the contents > %
... > % ... > %
> % and then use > % \xmlfirst{#1}{/contents} > I had thought about this, but it would ruin the docbook structure of the document, and my editor programme would no longer accept it. The programme already complains about the change of \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 ___________________________________________________________________________________