|
[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
[Recent Entries]
[Reply To This Message]
Re: splitting terms with [A-Z] expression
Subject: Re: splitting terms with [A-Z] expression
From: Rahil <qamar_rahil@xxxxxxxxxxx>
Date: Thu, 12 May 2005 13:33:54 +0100
|
Thanks Michael and David
Both your solutions worked perfectly.
And sorry, yeah, I am using XSLT2.
Thanks again
Rahil
Michael Kay wrote:
tokenize(replace($in, '[A-Z][a-z]*', '$0 '), ' ')
inserts spaces between the words and then splits on the space separators
(This is XPath 2.0 of course)
Michael Kay
http://www.saxonica.com/
-----Original Message-----
From: Rahil [mailto:qamar_rahil@xxxxxxxxxxx]
Sent: 12 May 2005 10:58
To: XSL List
Subject: splitting terms with [A-Z] expression
Hi
I need to split terms such as 'HelloThere' to the form
'Hello', 'There'
or 'Hello There'.
My simple use of the expression [A-Z] does not do the job as
I need to
recognise upper case after its first occurrence.
How do I go about it ?
Thank you for any suggestion or help.
Rahil
|
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
| RSS 2.0 |
|
| Atom 0.3 |
|
|