OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Subject: Re: DOCBOOK-APPS: [DOCBOOK-APPS] Help needed formatting HTML fromXML/XSL


On Tue, Mar 12, 2002 at 07:21:09AM +0100, Tim Timmerman wrote:
> Hi,
> 
>   I'm scratching my head here, trying to figure out what I'm doing
>   wrong..
> 
>   I've got a document that looks something like this:
> 
>   <book>
>    <chapter> <title>This is chapter 1</title>
>      <sect1><title> This is section 1 of ch 1</title>
>        <para> 
> 	      This is some text for section 1 
>        </para>
>      </sect1>
>      <sect1><title>This is section 2 of ch 1</title>
>        <para>
> 	     This is some text for section 2
>        </para> 
>       </sect1>
>     </chapter>
>    </book>
> 
>    When I try to render this into HTML (using XalanC 1.3,
>    docbook-xml-4.2b1, docbook-xsl-1.49) I get something which looks
>    like this:
> 
>    1. This is chapter 1
>      1.1 This is section 1 of chapter 1
>      1.2 This is section 2 of chapter 1
>      
>    This is some text for section 1
>    This is some text for section 2
> 
>    What I want is 
> 
>    1. This is chapter 1
>      1.1 This is section 1 of chapter 1
>      1.2 This is section 2 of chapter 1
>    
>    1. This is chapter 1
>      1.1 This is section 1 of chapter 1
> 	 This is some text for section 1
> 
>      1.2 This is section 2 of chapter 1
> 	 This is some text for section 2
> 
>    Which parameters do I tune ?


I'm not sure I understand this problem.
Could you clarify which of your output example
is meant to be tables of contents?

When I process your sample file with xsltproc
or Saxon, I get what you want (I think).
It appears from your sample out that
XalanC is losing the section titles.
If so, that's a pretty big bug.
You might try another processor.
-- 

Bob Stayton                                 400 Encinal Street
Publications Architect                      Santa Cruz, CA  95060
Technical Publications                      voice: (831) 427-7796
Caldera International, Inc.                 fax:   (831) 429-1887
                                            email: bobs@caldera.com


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Powered by eList eXpress LLC