[xsl:fo] : spaces underlining issues.

G

Gilles Kuhn

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="underline"><xsl:value-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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,564
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top