[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Subject: Re: DOCBOOK-APPS: Chunking question
Am Donnerstag, 16. Januar 2003 13:34 schrieb Roel Vanhout: > Janning Vygen wrote: > > Isnt this the same as "chunk all sections"?? this is easier to > > achieve by setting parameters chunk > > look at the parameters for chunking: > > http://docbook.sourceforge.net/release/xsl/snapshot/doc/html/rn18 > >.html <xsl:param name="chunk.section.depth" select="1000"> > > <xsl:param name="chunk.first.sections" select="1"/> > > these parameters should chunk every sectx or section in your doc > > They do chunk every section, but I don't want the last section in > an hierarchy to be chunked. Eg. > > <sect1> > <sect2> > <sect3> > <para>Text1</para> > </sect3> > <sect3> > <para>Text2</para> > </sect3> > </sect2> > <sect2> > <sect3> > <sect4> > <para>Text3</para> > </sect4> > <sect4> > <para>Text4</para> > </sect4> > </sect3> > <sect3> > <para>Text5</para> > </sect3> > <sect3> > <para>Text6</para> > </sect3> > </sect2> > </sect1> > > Should be chunked like this: > page_sect1 -> empty [...] > page_sect2_1 -> contains Text1 and Text2 > page_sect2_2 -> contains Text5 and Text6 [...] > page_sect3_2 -> contains Text3 and Text4 Are you sure you want it like this?? - Text5 and Text6 resides behind Text3 and Text 4 in document order. but if chunked in your way they are in front of text3 and text4. - page_sect1 should not be emtpy, it schould contain two sections. think about the section titles and where you want them to be. I have sometimes similar problems and have a stylesheet which decides if a chunk is empty or not. If so it creates an html redirect page for cases where users just try directory names and all urls created link automatically to the first chunked section with content. So my idea of chunking in this case looks like this (imagine a navigational menubar): 1. sect1title (emtpy page, link goes directly to 1.1 ) 1.1 sect2title (with two inline sections) [page look like this: sect3title -------------- text1 sect3title -------------- text2 ] 1.2 sect2title (empty page, link goes directly to 1.2.1 ) 1.2.1 sect3title (with two inline sections) [page look like this: sect4title -------------- text3 sect4title -------------- text4 ] 1.2.2 sect3title (with two inline sections) [page look like this: sect4title -------------- text5 sect4title -------------- text6 ] maybe this discussion is going to be uninteresting for others. If you want to discuss it further maybe we should do it via PM. I would appreciate it, beacuse i struggled long time with chunking problems. kind regards janning
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Powered by eList eXpress LLC