aspose file tools*
The moose likes XML and Related Technologies and the fly likes Trim space in XML Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Trim space in XML" Watch "Trim space in XML" New topic
Author

Trim space in XML

Suresh Kanagalingam
Ranch Hand

Joined: Aug 17, 2001
Posts: 82
Hi,
I am doing a transformation of XML to CSV format using XSL (Using Xalan). Can anyone tell me how I can trim leading and trailing space in XML tokens when I write the data to CSV file?
Thanks
Suresh
Tina Desai
Ranch Hand

Joined: Mar 13, 2003
Posts: 365
Have u tried this -
normalize-space($ListToBeSent)?
Tina


Alongwith being a good coder, try to be a good professional as well!
Suresh Kanagalingam
Ranch Hand

Joined: Aug 17, 2001
Posts: 82
Thanks Tina. It works.
Suresh
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Trim space in XML