[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Algorithm for splitting a string at a space
Hello, I have a series of strings that I need to split if they are longer than a particular length, say 30 characters. But I need to make the split at the previous space. Here is an example string: This is a long line that I want to split at a space. The 30th character is in the middle of a word, so I need to do the split at the previous space. I am using XSLT/XPath 2.0. I am having trouble developing a good algorithm for this. Any pointers would be appreciated. Rick
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|