From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7015 invoked by alias); 17 Oct 2008 05:50:32 -0000 Received: (qmail 7006 invoked by uid 22791); 17 Oct 2008 05:50:31 -0000 X-Spam-Check-By: sourceware.org Received: from fg-out-1718.google.com (HELO fg-out-1718.google.com) (72.14.220.157) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 17 Oct 2008 05:49:42 +0000 Received: by fg-out-1718.google.com with SMTP id e12so310170fga.0 for ; Thu, 16 Oct 2008 22:49:39 -0700 (PDT) Received: by 10.181.50.7 with SMTP id c7mr974755bkk.100.1224222578577; Thu, 16 Oct 2008 22:49:38 -0700 (PDT) Received: by 10.181.7.15 with HTTP; Thu, 16 Oct 2008 22:49:38 -0700 (PDT) Message-ID: Date: Fri, 17 Oct 2008 05:50:00 -0000 From: "Yang SongXiang" To: docbook-tools-discuss@sourceware.org Subject: Re: How to generate index? Cc: "=?ISO-8859-1?Q?=C9ric_Bischoff?=" In-Reply-To: <200809241442.47715.ebischoff@nerim.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200809231105.44294.ebischoff@nerim.net> <200809241442.47715.ebischoff@nerim.net> X-IsSubscribed: yes Mailing-List: contact docbook-tools-discuss-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: docbook-tools-discuss-owner@sourceware.org X-SW-Source: 2008/txt/msg00003.txt.bz2 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: .... ]> .... <--- 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