Subject: Conditional splitting of string with XSL
From: Mukul <mukulw3@xxxxxxxxx>
Date: Sun, 26 Jan 2003 02:35:59 -0800 (PST)
|
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
| Current Thread |
- [off-list] document(lang_*.xml), (continued)
- Mike Brown - Sat, 25 Jan 2003 06:43:51 -0500 (EST)
- Roger Glover - Sat, 25 Jan 2003 15:58:47 -0500 (EST)
- Daniel Veillard - Sat, 25 Jan 2003 18:12:48 -0500 (EST)
- Roger Glover - Sat, 25 Jan 2003 21:40:17 -0500 (EST)
- Mukul - Sun, 26 Jan 2003 05:35:05 -0500 (EST) <=
- Oleg Tkachenko - Sun, 26 Jan 2003 06:29:56 -0500 (EST)
- Mukul - Sun, 26 Jan 2003 11:58:00 -0500 (EST)
- B. Tommie Usdin - Sun, 26 Jan 2003 09:34:54 -0500 (EST)
- Mike Brown - Sat, 25 Jan 2003 06:44:50 -0500 (EST)
|
|