Hi Paul,
I misunderstood what you meant by locator.  As you said in your earlier mail, 
setting the stylesheet parameter 'index.links.to.section' to a value of  zero 
creates an href that sends the link directly to the point in the text where the 
indexterm was located.  I don't think you can get any more specific than that.  
So I think your last paragraph is satisfied.

The hot link text displayed in the index is still the section title, even 
though the link lands at the specific point.  I thought you wanted to change 
the hot text, from the section title to something like a page number, so I was 
asking about an example of what you want the hot text to say instead of the 
section title, given that page numbers don't exist in HTML output.  

Bob Stayton
Sagehill Enterprises
b...@sagehill.net


From: Pc Thoms 
Sent: Monday, July 22, 2013 5:02 PM
To: Bob Stayton 
Cc: Jirka Kosek ; docbook-apps@lists.oasis-open.org 
Subject: Re: [docbook-apps] Generating e-pub and html indexes


A specific example I should not provide, as it is beyond my expertise, but I 
have expectations and hopes for such. I am fairly competent in xml, but not 
with xslt.


If the locators in a DocBook formatted xml file can point to the <chapter/>, 
<section>, <para/>, <table/>, etc., within the document, the more specific the 
reference between the locator and the origination of the <indexterm/> so much 
the better. Preferably the generated locator will point directly to the 
originating <indexterm/> placed in the document, or the lowest hierarchical 
block element. Rather than linking to the <chapter/>, which may contain 
hundreds, to thousands, of words it would be better to link to the lowest 
hierarchical block element that contains the <indexterm/>, such as a <para/> or 
<line/> (DocBook-Publisher).
This should make the an <index/> locator link directly to specific place in the 
text, that one would presumably be interested in once they click a link.
Locators that link to the beginning of a <chapter/> or <section/> that may 
contain 500+ words is not very useful. But a locator that links one directly to 
the <section>, <para/>, <table/>, or <line/>, would serve its’ readers well.


What I’m looking for is an index locator that has an “href” attribute that 
links directly to an anchored point in an XHTML and E-Pub document.
Any assistance, and direction, is appreciated.

Paul

Reply via email to