Why would you store data with line breaks in an XML element attribute that way in the first place? Sounds like instead of havin <tag attribute="values with line breaks" /> you should reformat your data to be more flexible such as something like: <tag> <attr_tag>value1</attr_tag> <attr_tag>value2</attr_tag> <attr_tag>value3</attr_tag> </tag>
Just my $.02 Laurent On 2/13/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Hello, in one of my solutions I solved the problem with the symbol font: <fo:inline font-family="Symbol"> </fo:inline> Greez Tobias Manuel Mall <[EMAIL PROTECTED]> wrote on 13.02.2007 14:10:35: > On Tuesday 13 February 2007 21:52, Gregan, Miroslav wrote: > > Thanks you for your answers > > > > Actually I afraid I did not ask my question clearly enough. > > The @value which is the content of an XML File's element which > > contains a String. > > This String has to be formatted (a little bit if possible :-) ) with > > new lines. > > So that the text: > > > > Mister T"NewLineChar"Hannibal Smith"NewLineChar"Looping > > > > Where "NewLineChar" should be the expected character > > > > After rendering FOP will look like in PDF format to: > > > > Mister T > > Hannibal Smith > > Looping > > > > > > Is it possible? Or should I find a way to use multiple blocks? > > > As mentioned in previous responses you need to add the linefeed > characters to the value. However, in addition you need to set the > property linefeed-treatment="preserve" on the enclosing fo:block > otherwise the linefeeds in the text will be treated like / converted to > spaces and don't generate a line break. > > > Thank you. > > > > Miroslav > > > > > Manuel > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] >
