docbook: re:Re: index generation
Subject:
re:Re: index generation
From:
Greg Ferguson ####@####.####
Date:
2 Apr 2003 19:33:04 -0000
Message-Id: <200304021922.h32JMQjx021572@hoop.timonium.sgi.com>
On Wed, 2 Apr 2003 09:45:49 -0800 Peter Jay Salzman ####@####.#### wrote:
> hi greg et al,
>
> ok, first an apology. i didn't know about the mailing list search, but
> i do now. :) anyway, i'm getting an error. here's a snippet of the
> makefile:
>
> STYLE='/usr/share/sgml/docbook/stylesheet/dsssl/modular/html/ldp.dsl'
> TARGET=lkmpg
>
> all:
> collateindex.pl -N -o index.sgml
> jade -t sgml -V html-index -d ${STYLE} ${TARGET}.sgml
>
>
> at this point (the invocation of jade), i get an error:
>
> jade:index.sgml:1:6:E: document type does not allow element "INDEX"
> here
> jade:lkmpg.sgml:96:85:E: end tag for "APPENDIX" which is not finished
>
> index.html contains (in its entirety):
>
> <index>
>
> <!-- This file was produced by collateindex.pl. -->
> <!-- Remove this comment if you edit this file by hand! -->
> </index>
>
>
> lkmpg.sgml (the relevent portion) contains:
>
> <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook V3.1//EN" [
> <!ENTITY TheIndex SYSTEM "index.sgml">
> ]>
> <book>
> ...
As someone else suggested, try it outside of a container element:
...
<appendix><title>Where To Go From Here</title>&WhereFromHere;</appendix>
&TheIndex;
</book>
Also, if referencing the LDP stylesheet (I assume it's the same as what
is provided on our website), you need to use an identifier when utilizing
it in a jade command line:
STYLE='/usr/share/sgml/docbook/stylesheet/dsssl/modular/html/ldp.dsl#html'
> > 3. Now run the the tools to generate the index:
> >
> > collateindex.pl -N -o index.sgml
> > jade -t sgml -V html-index -d <style> My-HOWTO.sgml
> > collateindex.pl -g -t Index -i doc-index -o index.sgml HTML.index
--
Ferg