[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] Auto-generating an index
Hi Tom, >On Fri, Feb 4, 2011 at 07:01, Thomas Schraitle <tom_schr@web.de> wrote: >> Hi, >... >> Why not using a XSLT stylesheet? In that case you can just add your >> indexterms to whatever elements you need. >> As you have to go through it anyway, you can just add some >> condition="noidx" as I've suggested in one of my last mails. > >I probably don't understand what you are doing, Tom (and xslt is >daunting to me), it looks to me like you are transforming a word or >short phrase that is already marked up (I assume by elements you mean >xml tags). Ahh, that explains a lot. :) Yes, I've assumed you have already text which is proberly marked up. Sorry for that. > I'm trying to add DB markup to small chunks of long runs >of text such as inside </para> elements. Ok, I see. This makes it obviously more difficult. In that case, you are hanging on step 1 whereas my method is located on step 2. ;) Do you have text which is repeated a lot? In that case, maybe you could split the para and search for your "expected" strings. If that's successful you can add the needed indexterms. Perhaps it only useful for a minority of your cases, but maybe it's worth a try. Tom
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]