Re: [docbook-apps] Programlising question

From
"Cob Rtayton"
Date
2010-11-10T16:56:59+00:00
ID
00f201cb80f8$415a41f0$6600a8c0@pazu
Thread
Re: [docbook-apps] Programlising question
Title: Programlising question

Is your programlisting inside an example 
element?  If so, then it is getting a keep-together.within-column="always" 
property on the block containing the title and content.  The attribute-set 
named 'example.properties' uses the attribute-set named 
'formal.object.properties', which has that keep-together property by 
default.  If you don't want that behavior, you can use:

 

<xsl:attribute-set 
name="example.properties">

  <xsl:attribute 
name="keep-together.within-column">auto</xsl:attribute>

</xsl:attribute-set>

 

The "auto" value turns off the keep.

 

If you programlisting is not inside an example, 
then something in your customization layer is adding that property, because it 
is not in the default stylesheet for programlisting itself.

 

Bob Stayton
Sagehill Enterprises


 

 

  
----- Original Message ----- 

  
From: 
  Speights, Scott 

  
To:  
  

  
Sent: Wednesday, November 10, 2010 1:10 
  AM

  
Subject: [docbook-apps] Programlising 
  question

  

  
Hello All,

  
I need to format large pieces of code in my 
  documents that are longer than one page.  

  
When the message in the program listing reaches the 
  end of the page, it doesn’t break but disappears into the bottom margin. Is there a good way 
  to get <programlisting> to break 
  pages 
  – like <para> - automatically?

  
Thanks, 
  Scott

  
 

  

  
Scott 
  Speights

  
Technical 
  Writer

  
--------------------------------------------------------------

  
Haufe-Lexware GmbH & 
  Co. KG

  
Munzinger Str. 9, 
  D-79111 Freiburg

  
Tel. +49 761 
  898-5313

  
E-Mail: 
  

  
Internet: http://www.haufe-lexware.com

  
--------------------------------------------------------------

  
Kommanditgesellschaft, Sitz und Registergericht Freiburg, HRA 4408

  
Komplementäre: Haufe-Lexware Verwaltungs GmbH,

  
Sitz und 
  Registergericht Freiburg, HRB 5557; Martin Laqua

  
Geschäftsführung: Isabel Blank, Birte Hackenjos, Jörg Frey, 
  

  
Matthias 
  Mühe, Markus Reithwiesner, Joachim Rotzinger, Dr. Carsten Thies 

  
Beiratsvorsitzende: Andrea Haufe