W3C home > Mailing lists > Public > www-xsl-fo@w3.org > July 2008

Apache FOP: keep-together in fo:inline elements isn't working

From: Klaus Gradinger <semtexkg@gmx.at>
Date: Tue, 29 Jul 2008 07:33:52 -0700 (PDT)
Message-ID: <18713602.post@talk.nabble.com>
To: www-xsl-fo@w3.org


My xsl file looks something like this:

  text text
  <xsl:if> text </xsl:if>
  <xsl:if> more text </xsl:if>
  return within 14 days

The problem is: In some cases (if the if condition is satisfied) the "14
days" get split up, leaving the "14" behind on the last line.

I tried to fix this with an inline element:

  text text
  <xsl:if> text </xsl:if>
  <xsl:if> more text </xsl:if>
  return within <fo:inline keep-together.within-line="always">14

it seems as if the apache fo processor is just ignoring the whole
keep-together tag... i checked on the compliance page and there is no sign
of an incompatiblity (it says partial, stating that the integer value isn't

Have i made a mistake somewhere? Can i work around this somehow (last way
out would be a checking if the if conditions are true and making the line
break myself..)

View this message in context: http://www.nabble.com/Apache-FOP%3A-keep-together-in-fo%3Ainline-elements-isn%27t-working-tp18713602p18713602.html
Sent from the w3.org - www-xsl-fo mailing list archive at Nabble.com.
Received on Tuesday, 29 July 2008 14:34:29 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:58:32 UTC