From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/11492 Path: main.gmane.org!not-for-mail From: Simon Pepping Newsgroups: gmane.comp.tex.context Subject: Re: index term in term of a definition list Date: Tue, 18 Mar 2003 22:06:49 +0100 Sender: ntg-context-admin@ntg.nl Message-ID: <20030318210649.GB1813@scaprea> References: <20030317192744.GA737@scaprea> <5.1.0.14.1.20030318090704.03f0d258@server-1> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1048022827 18092 80.91.224.249 (18 Mar 2003 21:27:07 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 18 Mar 2003 21:27:07 +0000 (UTC) Original-X-From: ntg-context-admin@ntg.nl Tue Mar 18 22:27:05 2003 Return-path: Original-Received: from ref.vet.uu.nl ([131.211.172.13] helo=ref.ntg.nl) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18vObx-0004hT-00 for ; Tue, 18 Mar 2003 22:27:05 +0100 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 63C2410B50; Tue, 18 Mar 2003 22:27:02 +0100 (MET) Original-Received: from hgatenl.hobby.nl (ns.hobby.nl [212.72.224.8]) by ref.ntg.nl (Postfix) with ESMTP id 0B3E910B4B for ; Tue, 18 Mar 2003 22:24:37 +0100 (MET) Original-Received: from hgatenl.hobby.nl (localhost [127.0.0.1]) by hgatenl.hobby.nl (8.12.6/8.12.2) with ESMTP id h2ILONCl087040 for ; Tue, 18 Mar 2003 22:24:38 +0100 (CET) (envelope-from spepping@scaprea.hobby.nl) Original-Received: (from uucp@localhost) by hgatenl.hobby.nl (8.12.6/8.12.2/Submit) with UUCP id h2ILONPC087039 for ntg-context@ntg.nl; Tue, 18 Mar 2003 22:24:23 +0100 (CET) Original-Received: from simon by scaprea.salix.nl with local (Exim 3.35 #1 (Debian)) id 18vOIM-0000oi-00; Tue, 18 Mar 2003 22:06:50 +0100 Original-To: ntg-context@ntg.nl Mail-Followup-To: ntg-context@ntg.nl Content-Disposition: inline In-Reply-To: <5.1.0.14.1.20030318090704.03f0d258@server-1> User-Agent: Mutt/1.3.28i Errors-To: ntg-context-admin@ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.0.13 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.comp.tex.context:11492 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:11492 On Tue, Mar 18, 2003 at 09:08:33AM +0100, Hans Hagen wrote: > At 08:27 PM 3/17/2003 +0100, you wrote: > >In XML documents this may occur: > > > > > > sarge > > > > sarge > > > > > > > > De groene soldaat > > > > > > > >Is it a fundamental problem to enable this in Context? If so I must > >find other solutions. > > \defineXMLenvironmentsave[indexterm][significance=] > {\bgroup > \defineXMLsave[primary]} > {\expanded{\index{\XMLflush{primary}}}% > \egroup} The term element is saved in \XMLDBterm, complete with embedded indexterm, and then used as: \startvariable{\XMLDBterm}, so the above \index command would still be in the term of the definitionlist. I now save the indexterm element when \XMLDBterm is expanded, and process it after \startvariable. However, \XMLDBterm may contain more than one indexterm element (not likely, but it can), so I would need to save a stack of them to cater for that possibility. Of course I could also expand the term element and save the expanded value in \XMLDBterm, but that has its own risks. Regards, Simon -- Simon Pepping email: spepping@scaprea.hobby.nl