This is the mail archive of the xsl-list@mulberrytech.com mailing list .


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

FO: Whitespace questions


Title:
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

 


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