This is the mail archive of the docbook-tools-discuss@sourceware.org mailing list for the docbook-tools project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: How to generate index?


All,

With days try, I'd figure out how to generate the index page for DSL,
by using docbook2pdf. Though Norman Walsh had wrote a
document(http://www.fifi.org/doc/docbook-dsssl-doc/indexing.html) for
this topic, but it's too old(it's1998 year) for newcomer try on
current Linux system, and furthermore, he only covered sgm, no XML
covered, which is widely used by today's docbook..

I summarized the steps here:

1) Create a blank xml file(named as myidx.xml) here by typing $touch myidx.xml
2) Make the myidx.xml as entity of your docbook XML file:
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook V3.1//EN" [
....
<!ENTITY myidx SYSTEM "myidx.xml">
....
]>

....
<--- add this at the end -->
&myidx;

3) Generate the HTML.index by typing $docbook2html -o tmp -V
html-index your_src.xml

4) Get the generated HTML.index by typing $cp tmp/HTML.index .

5) ./collateindex.pl -o myidx HTML.index

6) Now, you type $docbook2pdf your_src.xml
to generate the index page.


Thanks for Bischoff 's help and answering my question here.


Best Regards
-Scord


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]