xsl-list
[Top] [All Lists]

Re: splitting terms with [A-Z] expression

2005-05-12 05:33:54
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(_at_)yahoo(_dot_)co(_dot_)uk] Sent: 12 May 2005 10:58
To: XSL List
Subject: [xsl] 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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--





--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>