[Home] [By Thread] [By Date] [Recent Entries]
At 2006-10-17 07:18 -0700, ms wrote:
Thank you for your response Ken. I was able to work out a solution for XSLT.
I am having an issue with XSLFO though. Converting CALS to PDF. Specially with the column span attribute. How do I calculate column span using namest and namend from cals for XSLFO? It seems simpler in XSLT, but I am lost with XSLFO.
And if you already have the answer for HTML using XSLT, then you are already calculating the number of columns spanned by dereferencing the named column for nameend from the named column for namest. Something like the following untested snippet: colspan="{ count( ancestor::table[1]/colspec[name=current()/@nameend]/
preceding-sibling::colspec ) -
count( ancestor::table[1]/colspec[name=current()/@namest]/
preceding-sibling::colspec )
+ 1 }"Just do the same in XSL-FO for number-columns-spanned= ... I don't see any difference between the two for spanning columns of a table cell. When I've had to work with nameend= and namest= I've used something along the lines of the above with easy success. I'm not sure why the calculation you are already doing for HTML isn't working for XSL-FO. I hope this helps. . . . . . . . . . . . . . Ken
|

Cart



