xsl-list
[Top] [All Lists]

RE: transform slash n or $$$$ to line break

2003-01-24 07:03:08
Hello Sasha,

what you should do is split your string into substrings.
So you split the string every time before $$$$ and put a <fo:block/> tag
after each substring.

String replacement functions can be easily found on this list.

Kind regards,
Ismaël

-----Original Message-----
From: Sascha Assbach [mailto:sascha(_at_)assbach(_dot_)de]
Sent: vrijdag 24 januari 2003 14:56
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] transform slash n or $$$$ to line break


Hi there,

is there any way to transform a string like "$$$$" into a <fo:block/> to
make a line-break?
Or is there "even" a way to transform "\n" to <fo:block/>

here are two examples

<TermineStatusNotiz>Verzögerung in Monaten$$$$Verzögerung in
Monaten$$$$Dritte Zeile</TermineStatusNotiz>

--> shall be transformed with XSLT to

<fo:block>
Verzögerung in Monaten<fo:block/>Verzögerung in Monaten<fo:block/>Dritte
Zeile
</fo:block>

so that there is a linebreak in the PDF output.

The input can also contain "\n" as a linebreak. Like

<TermineStatusNotiz>
Verzögerung in Monaten
Verzögerung in Monaten
Dritte Zeile
</TermineStatusNotiz>

What can i do?


I hope you can help me,
Sascha


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

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