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: [docbook-apps] any idea why a <qandaset> would be forced to the next page


On Thu, May 08, 2003 at 01:52:30PM -0400, Robert P. J. Day wrote:
> On Thu, 8 May 2003, Bob Stayton wrote:
> 
> > On Thu, May 08, 2003 at 11:17:22AM -0400, Robert P. J. Day wrote:
> > > 
> > >   as part of a sample markup document, i have a *very* simple
> > > <qandaset>, after an introductory sentence, but when i generate
> > > the PDF (xsltproc -> fop), the entire qandaset is being forced
> > > to the next page.
> > > 
> > >   certainly, nothing i read in the semantics for qandaset suggests
> > > this should happen.
> > > 
> > >   any advice?
> > 
> > I can't seem to duplicate this problem.
> > Can you post a short sample file that illustrates it?
> 
> all right, i tracked it down and it's confusing.  all i did was remove
> 
> <xsl:attribute-set name="section.title.level1.properties">
>  <xsl:attribute name="break-before">page</xsl:attribute>
> </xsl:attribute-set>
> ----- below was removed ------
> <xsl:attribute-set name="section.title.level2.properties">
>  <xsl:attribute name="break-before">page</xsl:attribute>
> </xsl:attribute-set>
> 
> 
>   my <qandaset> is directly within a top-level section (inside a chapter),
> so (as i interpret it, i might be way off base), that section would be 
> considered a level one and, somehow, the title on my <qandaset> is being
> interpreted as s level-two section, and a pagebreak is being inserted.
> 
>   does the section.title.level2.properties attribute apply to <qandaset>
> titles as well?  that would come as a real shock, since that's not
> how i read it.

Bingo.  The template for qandaset titles calls the 'section.heading'
template.  It uses a level one down from the current section level,
as you found out.  You'll have to customize that to fix it.

-- 

Bob Stayton                                 400 Encinal Street
Publications Architect                      Santa Cruz, CA  95060
Technical Publications                      voice: (831) 427-7796
The SCO Group                               fax:   (831) 429-1887
                                            email: bobs@sco.com

---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org


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