• Post Reply Bookmark Topic Watch Topic
  • New Topic

Trim space in XML

 
Suresh Kanagalingam
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 365
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have u tried this -
normalize-space($ListToBeSent)?
Tina
 
Suresh Kanagalingam
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Tina. It works.
Suresh
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!