Hi,
You can create index using the following code. For generating the index you
need two xsl-fo tags.
1. fo:basic-link
2 fo:page-number-citation
fo:basic-link should be present in the page which you want to display in the
index. Id attribute of fo:basic-link tag should be unique across the
document.
fo:page-number-citation searches for the matching id and displays the
pagenumber in the index.
<fo:block>
<fo:basic-link internal-destination="" id="{Some Unique ID for some
section or subsection of the document}" />
</fo:block>
In the Index if you want to display the page number of Section 1 then you
need to put section1 or some unique id in the fo:basic-link.
<fo:block>
<fo:basic-link internal-destination="" id="Section1" />
</fo:block>
In the table of contents template refer to this id as follow
<fo:block text-align="right" font-family="Times Roman" font-size="10pt">
<fo:page-number-citation ref-id="Section1" />
</fo:block>
Thanks,
Anshul Katoch
-----Original Message-----
From: Dave Pawson [mailto:davep@dpawson.co.uk]
Sent: Friday, May 27, 2005 10:26 AM
To: xmozillanickname: Xep-Support
Subject: Re: [xep-support] How can I create an index
On Thu, 2005-05-26 at 17:26 +0000, viking wrote:
> I have a stylesheet that process XML files and generates a PDFfile. I
> would like to create an index where I could provide a name and a page
> number on where to find each name throughout the document. If the
> name was mentioned on page 3 and page 10 the index should list both
> page numbers.
>
> How can I do this?
Mark each point with some xml,
In a separate mode,
xsl-for-each select = index marks
create the link, insert the content, insert the page reference.
....Or ask on the Mulberrytech xslt list.
-- Regards, Dave Pawson XSLT + Docbook FAQ http://www.dpawson.co.uk ------------------- (*) To unsubscribe, send a message with words 'unsubscribe xep-support' in the body of the message to majordomo@renderx.com from the address you are subscribed from. (*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/terms-of-service.html ------------------- (*) To unsubscribe, send a message with words 'unsubscribe xep-support' in the body of the message to majordomo@renderx.com from the address you are subscribed from. (*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/terms-of-service.htmlReceived on Fri May 27 11:06:20 2005
This archive was generated by hypermail 2.1.8 : Fri May 27 2005 - 11:06:20 PDT