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

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -