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


Hello.

My xsl file looks something like this:

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

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:

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

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
supported)

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..)

Thanks,
Klaus
-- 
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 29 July 2008 14:34:30 GMT