This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes XML and Related Technologies and the fly likes text styling in csv Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "text styling in csv " Watch "text styling in csv " New topic
Author

text styling in csv

sudheer sannareddy
Greenhorn

Joined: Dec 09, 2006
Posts: 3
Hi,
I am having a problem in styling the text of a csv. The problem is as given below:
We are generating xml files and converted to csv using XSLT. Now, a part of the data in the csv file has to be highlighted (bolded and displayed in a diff color) while displaying.I am unable to do any styling in the generated csv file. But I am also generating PDF file from XML using XSLT and i am able to do styling(e,g color change in some block).

Kindly suggest me how to go ahead in doing this. Waiting for replies... .
Thanks in advance.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41586
    
  54
CSV is plain text, and includes no text styling information, so this is not possible.

If you were to create an XLS file (e.g. with a library like POI) you could include style information, but you wouldn't be able to use XSLT to do so.


Ping & DNS - my free Android networking tools app
sannareddy sudheer
Greenhorn

Joined: Jul 16, 2003
Posts: 8
Ulf Dittmer ,Thanks for the reply. If you come across any sol for the same please reply back.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41586
    
  54
There is no solution. CSV is plain text, period. If you want styles, use POI to create an XLS file.
 
 
subject: text styling in csv