Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > CDATA's \n to <BR>

Reply
Thread Tools

CDATA's \n to <BR>

 
 
Son KwonNam
Guest
Posts: n/a
 
      08-13-2003
I'm working with XSLT for changing XML to XSLT.

for example, I have the follower xml data
---------
<article writer="you">
<contents><![CDATA[
Hello,
How are you?
]]></contents>
---------

then I want to get the following html
---------
<div>Writer : you</div>
<p>Hello,<br>
Hwo are you?</br>
</p>
---------

As you see, I put "<br>\n" whenever meet new line.

How can I get this html through XSLT?
Any hint?

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off




Advertisments