I am creating an XSL-FO document to convert my XML text to PDF.
In XSL-FO, I have two elements, I would like a space between them:
<fo:block> <xsl:number/> <xsl:value-of select="@title"/> </fo:block>
Of course, XML does not consider this empty space. I tried some solutions with inline elements, for example:
<fo:block> <xsl:number/><fo:inline white-space="pre"> </fo:inline><xsl:value-of select="@title"/> </fo:block>
Also with field:
<fo:block> <xsl:number/><fo:inline margin-left="0.5cm"><xsl:value-of select="@title"/></fo:inline> </fo:block>
All these decisions ignore space, and the name looks like this: "1Introduction" instead of "1 introduction".
Any idea how to include a space between two (inline) elements?
source share