xml - XSL-FO whitespaces between elements -
i'm using code make two-level numbering, "1.1. chapter one", example.
<fo:inline> <xsl:number from="book" count="chapter"/>. <xsl:number from="chapter" count="chapter"/>. <xsl:text> </xsl:text> <xsl:apply-templates select="....."/> </fo:inline>
but discovered code generates following text:
1. 1. chapter 1
- space between xsl:number elements. , not want happen. have
<xsl:strip-space elements="*"/>
but not anything.
how rid of these parasite spaces?
set periods .
in xsl:text
tag
<fo:inline> <xsl:number from="book" count="chapter"/><xsl:text>.</xsl:text> <xsl:number from="chapter" count="chapter"/><xsl:text>.</xsl:text> <xsl:text> </xsl:text> <xsl:apply-templates select="....."/> </fo:inline>
Comments
Post a Comment