Hi,
template name=paragrapher
param text
if contains($text, \n\n)
<p>
substring-before($, \n\n)
</p>
call-template name=paragrapher
with-param name=text select=substring-after($text, \n\n)
else
<p>
$text
</p>
i.e. recursion is your friend. You should make sure the template handles
whitespace characters between the two LINE FEEDs, but that shouldn't be too
hard to implement.
Jarno
-----Original Message-----
From: ext Stevenson Ngila
[mailto:Stevenson(_at_)epr(_dot_)footman-walker(_dot_)com]
Sent: 28. August 2002 14:51
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: RE: [xsl] Data from DB in xsl
if the user input the following text using the form:
"This new status will be used by the DQA team when performing defect
analysis.The status should be called "Defect Analysis" and is
neither under
Development or Support.
To assist managers when tracking call progress, we need an
option on the
filter whereby the last update is displayed instead of the
call description.
Please see attached screen designs."
This statement contains two paragraphs. If it's saved in the
database, how
can i make it to be formatted(xslt) exactly the way it(2
paragraphs) is
instead of it giving me one paragraph.
-----Original Message-----
From: owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
[mailto:owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com]On Behalf Of
Khan, Amir
Sent: 28 August 2002 13:48
To: 'xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com'
Subject: RE: [xsl] Data from DB in xsl
sounds like you want to use <pre>whatevertext</pre>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list