[xsl:fo] : spaces underlining issues.

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Gilles Kuhn

    #1

    [xsl:fo] : spaces underlining issues.

    I'm using fop and I would like to underline spaces, even those located
    out of the character string. To illustrate the problem, let's have a
    look at this:

    xml doc:
    <page>
    <line>(<u> abc </u>)</line>
    </page>

    I would like the result of xsl:fo transformation to be:
    ( abc )
    ^^^^^^^^^

    but actually, I get this:
    ( abc )
    ^^^

    with the following code xsl/fo:
    .....
    <xsl:template match="page">
    <xsl:apply-templates select="line"/>
    </xsl:template>

    <xsl:template match="line">
    <fo:block><xsl: apply-templates/></fo:block>
    </xsl:template>

    <xsl:template match="u">
    <fo:inline white-space-collapse="false "
    text-decoration="und erline"><xsl:va lue-of select="."/></fo:inline>
    </xsl:template>

    even the 'white-space-collapse' attribute doesn't help!
    Does anyone have an idea?
    Thanks a lot in advance.
Working...