[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

FO: Whitespace questions

Subject: FO: Whitespace questions
From: "Rebecca Lundberg" <rlundberg@xxxxxxxx>
Date: Tue, 10 Oct 2000 16:23:56 -0400
fo whitespace
When outputting an xsl translation to .pdf I have a few questions:
 
Is there any way to double space after a <fo:block>? I tried using <xsl:text>&#xA;&#xA;</xsl:text> (which works for .txt output) and it didn't work. I tried using the space-after attribute <fo:block space-after = "24pt"> and it didn't work. I can sometimes get away with using <fo:block line-height = "24pt"> but it's not always possible due to the output requirements.
 
 
This leads to how to preserve whitespace... <xsl:preserve-space elements="*"/> didn't work.
 
Within a list-item-body, I am printing a variable which might not always have a value. When it has no value, the following list-item-label and list-item-body overwrite the line where the list-item-body is empty--even if there is a label printed there.
Example of two of my list body/items:

<fo:list-item>
  <fo:list-item-label start-indent="4in">

    <fo:block>Name:</fo:block>

  </fo:list-item-label>

  <fo:list-item-body start-indent="4in">

    <fo:block><xsl:value-of select="$wholeName"/></fo:block>

  </fo:list-item-body
>
</fo:list-item>

<fo:list-item>
  <fo:list-item-label start-indent="4in">

    <fo:block>Address:</fo:block>

  </fo:list-item-label>

  <fo:list-item-body start-indent="4in">

    <fo:block><xsl:value-of select="$address"/></fo:block>

  </fo:list-item-body
>
</fo:list-item>

Thanks for your help!
Rebecca

 

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.