This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Separating String

 
Tushar Kherde
Ranch Hand
Posts: 56
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I faceing problem in separating String using XSL
eg. countryShortName i wnt to split this string like
Country Short Name

Please Help
 
Dave Lenton
Ranch Hand
Posts: 1241
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It'll be a bit messy, but you can use a combination of the string functions contains(), substring-before() and substring-after() to break a string up... but it could get nasty if the only thing you are using to tokenise the string is to look for upper case letters.
 
vinay kumar
Ranch Hand
Posts: 31
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tushar,
here is the code.



(replace greaterthan symbol in if condition with ampersandGTsemicolon )

output of above code: country Short Name

Cheers
vinay
[ October 02, 2006: Message edited by: vinay kumar ]
 
Tushar Kherde
Ranch Hand
Posts: 56
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Vinay and Dave

Its working fine.

 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic