Subject: [xsl] Re: [XSL-FO] Linebreaks on a page break (linefeed-treatment) From: "Flynn, Peter pflynn@xxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Mon, 2 Jul 2018 08:01:05 -0000 |
On 2018-07-02 08:31:06+01:00 Mathias Leclercq mathias.leclercq@xxxxxxxxx wrote: Someone suggested me to replace linefeed characters in my text area with an empty block <fo:block></fo:block>. Problem is, I don't know what character to look for (xml is encoded in utf-8 on a windows machine). The numeric character entity 
 matches a newline, so replace(textArea,'
[
]*','
') will replace all multiple newlines with a single newline. If you are constrained to using XPath 1.0, you could write a recursive named template to do the job, testing for two newlines each time, and replacing with one, until no double newlines are left, then emitting an <fo:block/> ///Peter
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Re: [XSL-FO] Linebreaks on a , Mathias Leclercq mat | Thread | [xsl] Re: [XSL-FO] Linebreaks on a , Mathias Leclercq mat |
[xsl] Re: [XSL-FO] Linebreaks on a , Mathias Leclercq mat | Date | [xsl] XSL-List Guidelines, Tommie Usdin btusdin |
Month |