On 27.05.2024 18:29, Hussein Shafie wrote:
(1) I found out that sometimes I/O is rendered with I/ on one line and O on the next line. Is there a way to force I/O to always stay togetherin the same line?"I/O" split between lines: sorry, no clue.
I'm not sure if FOP has some option to control this. But you can add quite simple template into your XSLT stylesheet customization to wrap "I/O" into formatting object that would prevent line break:
<xsl:template match="text()"> <xsl:analyze-string select="." regex="I/O"> <xsl:matching-substring> <fo:inline keep-together.within-line="always"> <xsl:value-of select="."/> </fo:inline> </xsl:matching-substring> <xsl:non-matching-substring> <xsl:value-of select="."/> </xsl:non-matching-substring> </xsl:analyze-string> </xsl:template> -- ------------------------------------------------------------------ Jirka Kosek e-mail: ji...@kosek.cz http://xmlguru.cz ------------------------------------------------------------------ Professional XML and Web consulting and training services DocBook/DITA customization, custom XSLT/XSL-FO document processing ------------------------------------------------------------------ Bringing you XML Prague conference http://xmlprague.cz ------------------------------------------------------------------
OpenPGP_signature.asc
Description: OpenPGP digital signature
-- XMLmind XML Editor Support List xmleditor-support@xmlmind.com http://www.xmlmind.com/mailman/listinfo/xmleditor-support