xsl-list
[Top] [All Lists]

RE: table-row height attribute

2004-03-09 14:20:33
-----Original Message-----
From: Mark Williams

As you probably know, if the text in a cell is too long it wraps
to the next line and increases the row height.
The spec says that specifying a height fixes the height, by which
I assumed it meant that any wrapping text would be lost.
Either I've misread the spec or FOP doesn't implement
it correctly for table rows.

Ah, in that case.. of course. I thought it did clip, but so it doesn't :(
(is why I was a bit puzzled by the problem)

I appreciate what you say about keeping text within the row size,
but I don't have control over the size of the text inputted.

Hmm. Indeed you don't, but do you have the possibility of extracting the
first n characters from the strings in question, where n is based on the
font metrics and the width of the cell (?)

Remote guess, but if you can 'normalize' the text in this fashion during the
XSL Transform, this might just be your way out.


Cheers,

Andreas


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>