[xsl:fo] : spaces underlining issues.

Discussion in 'XML' started by Gilles Kuhn, Jan 18, 2004.

  1. Gilles Kuhn

    Gilles Kuhn Guest

    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.
     
    Gilles Kuhn, Jan 18, 2004
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    1
    Views:
    5,148
    Darren Kopp
    Feb 22, 2006
  2. Kelwin Delaunay

    Inline Underlining in XHTML Strict?

    Kelwin Delaunay, Apr 26, 2004, in forum: HTML
    Replies:
    18
    Views:
    22,013
    greatbigmassive
    Sep 16, 2009
  3. Gillian White

    Hyperlinks With No Underlining

    Gillian White, Jun 7, 2004, in forum: HTML
    Replies:
    14
    Views:
    979
    Karl Groves
    Jun 7, 2004
  4. bernhard

    underlining <sup>

    bernhard, Nov 2, 2005, in forum: HTML
    Replies:
    17
    Views:
    3,606
    Alan J. Flavell
    Nov 5, 2005
  5. DC
    Replies:
    2
    Views:
    7,170
Loading...

Share This Page