xsl template for converting string to xsl-fo table
Dear experts,
here is the story:
-from the database I get a simple string, which i just need to output to a table cell,
-but sometimes I get a string which has newlines (	 )and tab character ( ) in it,
--whenever I get this kind of string, I'd like to output it in a table cell which would mimic the NL&TAB formatting
I wanted to mimic the formatting by the means of a table. I am able to convert newlines to <fo:table-rows> and recursively print it out, but now I am stuck with recursivelly creating table-cells.
The code bellow creates table with corresponding number of rows (each new line is new table row)
There are many ways to learn to code these days. From coding bootcamps like Flatiron School to online courses to totally free beginner resources. The best way to learn to code depends on many factors, but the most important one is you. See what course is best for you.
Open in new window