Re: [NTG-context] index(register) from an XML source

2017-01-14 Thread MF
> > Now an alternative approach I thought, because the index I'm > > working on > > is a biographical index, I mean a index of cited people, with a > > biographical profile. So every entry is a few lines long. > > That's why I thought to index only the ids in the text and use a > > textcommand in

Re: [NTG-context] index(register) from an XML source

2017-01-14 Thread Hans Hagen
On 1/14/2017 3:52 PM, MF wrote: Thank you, Hans. I had found a solution, then I saw your e-mail. Anyway I've learned a lot from it. My solution was something like this: function xml.functions.indexEntry(e) local animal = animals[e.at.idref] if animal then --[[

Re: [NTG-context] index(register) from an XML source

2017-01-14 Thread Alan Braslau
On Sat, 14 Jan 2017 15:52:25 +0100 MF wrote: > Now an alternative approach I thought, because the index I'm working > on is a biographical index, I mean a index of cited people, with a > biographical profile. One can create an index with the publications module as

Re: [NTG-context] index(register) from an XML source

2017-01-14 Thread MF
Thank you, Hans. I had found a solution, then I saw your e-mail. Anyway I've learned a lot from it. My solution was something like this: function xml.functions.indexEntry(e)  local animal = animals[e.at.idref]  if animal then  --[[  context.Animal (  { animal.key

Re: [NTG-context] index(register) from an XML source

2017-01-14 Thread Hans Hagen
On 1/13/2017 6:10 PM, MF wrote: Hello list, please see this: \startbuffer[test] In this page there is a cat, a dog and a horse. In this page there's only a fox terrier. In this page you find a persian cat and a

[NTG-context] index(register) from an XML source

2017-01-13 Thread MF
Hello list, please see this: \startbuffer[test]   In this page there is a cat,   a dog  and a horse.     In this page there's only a fox terrier.     In this page you find a persian cat  and a horse.     Cat Dog