473,394 Members | 1,715 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

[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="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.
Jul 20 '05 #1
0 1590

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Rob Tweed | last post by:
I wonder if any XSL-FO experts out there can help with some questions I've had from a customer: In XSL-FO (within the fo: namespace), whats the syntax for: 1) forcing a blank line - is there...
0
by: Rary | last post by:
I am using XSL:FO to generate PDF report for my XML, generating it in tables, i want that tables should completely be at one place, if there is a page break , all the contents of the table should...
0
by: Nathan | last post by:
Hi, I seem to having a peculiar problem with the display of odd and even pages in XSL-FO. Here is a small background of the problem. My xsl stylesheet mentions my fo:layout-master-set as ...
1
by: cleary1981 | last post by:
Hi, I am trying to add page numbers to my document in xsl fo. I can get the page numbers to work but I need them to show at the bottom of each page. I know you can define an area as region-after...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.