[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Conditional splitting of string with XSL
Hello , I have a simple XML file as below: <verylongtext> longtextlongtextlongtext ongtextlongtextlongtextlon textlongtextlongtextlongtex longtextlongtextlongte tlongtextlongtextlongtextlongtext ongtextlongtext ongtextlongte tlongtextlongtextlongtextlongtextlon textlongtext ongtextlo gtextlongtext..can be very long.. </verylongtext> I want to write a XSL stylesheet which can split the <verylongtext> data into multiple lines of 20 charcaters each. I need only 1st 3 lines after splitting. If there is a space character in data, then the split needs to be done just before the space, and the space character should be the <= 20th character.. Can anybody please help me with this problem.. Or is this at all possible with XSL..? Will appreciate an early reply.. Regards, Mukul __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
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
|