Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Separating String

 
Tushar Kherde
Ranch Hand
Posts: 56
  • 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
  • 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
  • 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
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Vinay and Dave

Its working fine.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic