This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


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: Regarding TOC


On Tue, 2002-01-22 at 15:28, Navin. wrote:
> 
> Hi
> 
> i'm using docbbok.dsl in print directory for formatting the rtf output.
> here is the sample.dsl
> 
> <!doctype style-sheet PUBLIC "-//James Clark//DTD DSSSL Style Sheet//EN"
> [<!ENTITY docbook.dsl SYSTEM "E:\Docbook\Install\openjadew1_3\usr\lib\sgml\docbook-dsssl-1.74b\print\docbook.dsl" CDATA dsssl>
> ]>
> 
>  <!-- <DEFANGED_STYLE-sheet>
>  <!-- <DEFANGED_STYLE-specification id="print" use="docbook">
>  <!-- <DEFANGED_STYLE-specification-body> 
> (define %generate-book-toc% #f)
> 
>  --> </DEFANGED_STYLE-specification-body>
>  --> </DEFANGED_STYLE-specification>
> <external-specification id="docbook"document="docbook.dsl">
>  --> </DEFANGED_STYLE-sheet>
> 
> 
> and here is the sample.sgm
> 
> <!doctype book system "IRIS_OVERVIEW.dtd">

What is in this DTD?

> <book>

The stylesheets want to generate a TOC for a book.

> <title>dfdssf</title>
> <chapter>

A chapter...

> <title>dfddsfdsfds</title>
> <section>
> <title>fgfgfdgfgdg</title>
> <article>

And article in a chapter.... a TOC for that?

> <title>
> ddffdsf</title>
> </article>
> </section>
> </chapter>
> </book>
> 

Without looking too hard...

The stylesheets are specifically for the DocBook DTD. The DocBook DTD
doesn't permit an ARTICLE within a CHAPTER.

So the strangeness may be because the stylesheets have not been adapted
for your DTD.

> 
> ...
> but when i generate rtf output using
> openjade -t rtf -d sample.dsl#print sample.sgm

-V rtf-backend is a good idea when using the DocBook stylesheets.

> 
> it gives two pages showing the book title contents before the toc.
> 
> why is it so??
> 
> plz...reply immediately.

Was I quick enough? Do I get the prize?

> 
> Navin
> 
> 
>  
> 

Anyway, I don't know what you DTD is ... but it isn't DocBook!
And you example isn't a valid DocBook document.

So, I can't be of too much help I'm afraid.

Someone else might have a clue though.


Regards,


Ian.


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