From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/64797 Path: news.gmane.org!not-for-mail From: Jon Crump Newsgroups: gmane.comp.tex.context Subject: \note and \footnote Date: Thu, 23 Dec 2010 12:11:41 -0800 Message-ID: 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 1293135117 25428 80.91.229.12 (23 Dec 2010 20:11:57 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 23 Dec 2010 20:11:57 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Dec 23 21:11:53 2010 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 1PVrVv-0008Oq-VX for gctc-ntg-context-518@m.gmane.org; Thu, 23 Dec 2010 21:11:52 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9EAB9CA954; Thu, 23 Dec 2010 21:11:50 +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 gSQpyjI7L7jr; Thu, 23 Dec 2010 21:11:48 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E25E3CA947; Thu, 23 Dec 2010 21:11:47 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 08B26CA947 for ; Thu, 23 Dec 2010 21:11:47 +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 z+BYVGEmBUxj for ; Thu, 23 Dec 2010 21:11:44 +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 19AB3CA90E for ; Thu, 23 Dec 2010 21:11:44 +0100 (CET) Original-Received: from mail-qw0-f41.google.com (mail-qw0-f41.google.com [209.85.216.41]) by filter3-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id oBNKBgbs007503 for ; Thu, 23 Dec 2010 21:11:43 +0100 Original-Received: by qwa26 with SMTP id 26so6454727qwa.14 for ; Thu, 23 Dec 2010 12:11:41 -0800 (PST) Original-Received: by 10.229.241.69 with SMTP id ld5mr7534255qcb.189.1293135101775; Thu, 23 Dec 2010 12:11:41 -0800 (PST) Original-Received: by 10.229.239.11 with HTTP; Thu, 23 Dec 2010 12:11:41 -0800 (PST) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.216.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0eDKIbGVE - c38a614de4d6 - 20101223 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:64797 Archived-At: All, Something elementary, I'm sure, that I'm not understanding. I'm trying to achieve parallel footnotes in arab/english texts, ie. each footnote in the Arabic text has a corresponding footnote in the English text. Both should point to the same footnote text. Like this:
some arab text more arab text
some english text more english text
text for note ONE text for note TWO
I thought to use TeX's \note[ref], but the following doesn't seem to work. \startxmlsetups xml:ref \define\thisRefName{\xmlatt{#1}{target}} \xmldoifelse{#1}{parent::div[@type='arText']} {\footnote[\thisRefName]{\xmlfirst{#1}{root::/body/text/div[@type='fnotes']/note[@xml:id==string.sub('\xmlatt{#1}{target}',2)]}}} {\note[\thisRefName]} \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:div:fnotes \placefootnotes \stopxmlsetups I just get ?? for the reference markers in the English text. Any clues as to what I'm doing wrong; or, is there a better way altogether to approach this? Jon ___________________________________________________________________________________ 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 ___________________________________________________________________________________