1

After some tries I could not figure it yet, how / where should be write in a XML file:

<xsl:if test="//txtA/text() != '' ">
     <fo:block xsl:use-attribute-sets="dossier.p">
         <xsl:value-of select="//txtA/text()" linefeed-treatment="preserve"/>
     </fo:block>
</xsl:if>
kjhughes
  • 106,133
  • 27
  • 181
  • 240
Mario P C
  • 33
  • 4

1 Answers1

1

The attribute linefeed-treatment tells the formatter how to output the text inside. Because you are using xsl:value-of you are merely outputting a string. You need linefeed-treatment on the containing fo:block. Try moving it to the block and not on value-of template.

Kevin Brown
  • 8,805
  • 2
  • 20
  • 38