From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/82922 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: register in xml Date: Tue, 11 Jun 2013 13:08:38 +0200 Message-ID: References: <51B70329.1020205@uni-bonn.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1370948942 29765 80.91.229.3 (11 Jun 2013 11:09:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 11 Jun 2013 11:09:02 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Jun 11 13:09:02 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UmMRf-00038C-Mx for gctc-ntg-context-518@m.gmane.org; Tue, 11 Jun 2013 13:08:59 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4CA1E10211; Tue, 11 Jun 2013 13:08:57 +0200 (CEST) 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 KxWrvBs4illR; Tue, 11 Jun 2013 13:08:52 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id E2387101FA; Tue, 11 Jun 2013 13:08:51 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5A2B6101FA for ; Tue, 11 Jun 2013 13:08:51 +0200 (CEST) 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 E1-maolbsWvt for ; Tue, 11 Jun 2013 13:08:50 +0200 (CEST) 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 5C83F101E4 for ; Tue, 11 Jun 2013 13:08:40 +0200 (CEST) Original-Received: from mail-ee0-x22f.google.com (mail-ee0-x22f.google.com [IPv6:2a00:1450:4013:c00::22f]) by filter5-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r5BB8dia009368 for ; Tue, 11 Jun 2013 13:08:39 +0200 Original-Received: by mail-ee0-f47.google.com with SMTP id e49so3569631eek.20 for ; Tue, 11 Jun 2013 04:08:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=TAVcA8OYu94keUUAKg6srYJsIDwRZ/QbvMORP+uReeA=; b=unhobaEl5KPBIvqpUARBF5tVSOmoOa9QU/IsYFs2eJAEXVP1/CODlkDqRNeuyNVCWW HBkoG5Ygduus1J1zqlYFNrVtNlm8eD9OZoNS/KHijfRbp345PffslzSL8dQWyMKTc0LX ZaysmVLK9u7Pyq/nBtCkVkU0wizWClSSgfrwoxs4BS2nF+X4M3EA7troDofsWDHztfEs yIoOlXUsDrw6d8yVWZ3hc2TXdfdUva6qz+6Z5qzPeHDEWTd7YhBC3UvDfL9NjjI+cLwQ dzIy5zwWPiqWx9kiOYAFdHLWbm+k2bUq2l5hj66BMhulOhU8WGmTS0My6g846RfPOR7o F9wA== X-Received: by 10.14.47.73 with SMTP id s49mr7807114eeb.71.1370948919418; Tue, 11 Jun 2013 04:08:39 -0700 (PDT) Original-Received: from keima.localdomain (nrbg-4d0743e7.pool.mediaWays.net. [77.7.67.231]) by mx.google.com with ESMTPSA id bk1sm29621806eeb.5.2013.06.11.04.08.38 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 11 Jun 2013 04:08:39 -0700 (PDT) In-Reply-To: <51B70329.1020205@uni-bonn.de> X-Mailer: Apple Mail (2.1508) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=2a00:1450:4013:c00::22f; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0WJKX8DMJ - 2c2c55c4728d - 20130611 X-Scanned-By: CanIt (www . roaringpenguin . com) 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:82922 Archived-At: Am 11.06.2013 um 12:59 schrieb Thomas A. Schmitz : > Hi, > = > may I interest you in a rerun of a question I asked half a year ago? How = do you do an index from xml? Here is my naive approach, which ends in all e= ntries being filed under "x," which is less than ideal. What would be the p= roper way of doing this? > = > Thanks > = > Thomas > = > \starttext > = > \startbuffer[demo] > >

Gustave Flaubert, GustaveFlaubert.

>
> \stopbuffer > = > \startxmlsetups xml:test > \xmlsetsetup{#1}{*}{-} > \xmlsetsetup{#1}{document|p|indexterm}{xml:*} > \stopxmlsetups > = > \xmlregistersetup{xml:test} > = > \startxmlsetups xml:document > \xmlflush{#1} > \stopxmlsetups > = > \startxmlsetups xml:p > \xmlflush{#1} > \par > \stopxmlsetups > = > \startxmlsetups xml:indexterm > \index{\xmlflush{#1}} \expanded{\index{=85}} Wolfgang ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________