473,383 Members | 1,861 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

Paragraph breaks???

me
Hello,

I have a node in my xml that is a block of information. This block has
several paragraphs--how can I maintain the paragraph breaks by using <br/>
from the source thru a xsl tranformation process?
i.e:
<information>
GM has been losing sales in the U.S. to Toyota and other Asian rivals and
has faced enormous health care and post-retirement liabilities.
On Thursday, Standard & Poor's Ratings Services cut its corporate credit
ratings to junk status for both GM and Ford Motor Co., a big blow that will
increase borrowing costs and limit fund-raising options for the nation's two
biggest automakers. The cuts were largely because of increasing concern
about the two companies' dependency on big SUVs for profits.
the cow jumped over the moon.
The 10-year-old, 20-pound male rhesus monkey was first noticed as missing
from the island April 30, the same time residents of Coosaw and Lady's
islands reported seeing him. Some residents were concerned the animal might
carry an infectious disease because Morgan Island houses primates used in
government research.
the spoon and the fork eloped to Saturn
A smiling Putin even put Bush behind the wheel of his prized 1956 Volga, a
pristine white sedan, and let him take it for a spin around the grounds of
his private compound 25 miles west of Moscow. Putin also kidded the
president about Laura Bush's recent comedy routine. The happy picture of the
two presidents summed up a theme that aides on both sides described -
powerful leaders who have a strong relationship and can discuss their
disagreements.
</information>

tia
aaron
Nov 12 '05 #1
1 1465

"me" <wu*****************@hotmail.com> wrote in message
news:uj**************@TK2MSFTNGP09.phx.gbl...
Hello,

I have a node in my xml that is a block of information. This block has
several paragraphs--how can I maintain the paragraph breaks by using <br/>
from the source thru a xsl tranformation process?
i.e:
<information>
GM has been losing sales in the U.S. to Toyota and other Asian rivals and
has faced enormous health care and post-retirement liabilities.
On Thursday, Standard & Poor's Ratings Services cut its corporate credit
ratings to junk status for both GM and Ford Motor Co., a big blow that will increase borrowing costs and limit fund-raising options for the nation's two biggest automakers. The cuts were largely because of increasing concern
about the two companies' dependency on big SUVs for profits.
the cow jumped over the moon.
The 10-year-old, 20-pound male rhesus monkey was first noticed as missing
from the island April 30, the same time residents of Coosaw and Lady's
islands reported seeing him. Some residents were concerned the animal might carry an infectious disease because Morgan Island houses primates used in
government research.
the spoon and the fork eloped to Saturn
A smiling Putin even put Bush behind the wheel of his prized 1956 Volga, a
pristine white sedan, and let him take it for a spin around the grounds of
his private compound 25 miles west of Moscow. Putin also kidded the
president about Laura Bush's recent comedy routine. The happy picture of the two presidents summed up a theme that aides on both sides described -
powerful leaders who have a strong relationship and can discuss their
disagreements.
</information>

tia
aaron

you can use xsl:preserve-space to preserve the formatting in the xml file.

thanks,
swapna
Nov 14 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: EmmettPower | last post by:
Hi, I am building a small CMS for my son's school. Ideally I want to build the system for them and hand it over so that all updates can be done through web-based forms. So far so good....
3
by: PC Datasheet | last post by:
I have three lines of text I need to concatenate into one "paragraph". The "paragraph" need to look like: Text1 Text2 Text3 where the lines of text are stacked in the "paragraph". When I use...
10
by: Evie | last post by:
I understand that when a switch statement is used without breaks, the code continues executing even after a matching case is found. Why, though, are subsequent cases not evaluated? I wrote a...
2
by: ThunStorm | last post by:
I have a script that is working but I can't figure out how to add paragraph breaks into the textarea. Can anyone help me? If you run the script, the problem will be easier to understand. If...
5
by: joelbyrd | last post by:
Didn't know exactly where to post this, but: How do I get line breaks in a textarea? I'm pulling text from a database, and this text definately has line breaks in it, because I replaced all the...
1
by: Jean-François Michaud | last post by:
Hello people, I was wondering how it I could implement keep with next logic on lines of text contained within a paragraph. I need to have at least 10 lines of text within a paragraph to be...
15
by: Yogi | last post by:
Hi there, I have a quick question. In my html document, I want to make a new paragraph whenever I have a blank line in the html source. Using <p> and </pevery time is kind of cumbersome (I want...
3
by: gentsquash | last post by:
I'm trying to display a paragraph that has a centered phrase, such as this one, in the middle of the paragraph. An example is the section "End of semester project" on my course-page ...
6
by: Haines Brown | last post by:
I'm trying to resolve a contradictory situation in which I have rows going down a page, and each consists of two elements: to the left is a thumbnail image that is a hot link; to its right is a...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.