Easy enough in 2.0:
replace($in, '(\p{Ll})(\p{Lu})', '$1 $2')
Michael Kay
http://www.saxonica.com/
-----Original Message-----
From: scarleton(_at_)gmail(_dot_)com [mailto:scarleton(_at_)gmail(_dot_)com]
On
Behalf Of Sam Carleton
Sent: 29 August 2006 22:26
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] How to expand a string
I am transforming some xml to html. I have values like this:
FailedCriteria
NoSampleDetected
OutsideOfCalibrationRange
DetectorOverRange
That I need to key off the capital letter and get this:
Failed Criteria
No Sample Detected
Outside Of Calibration Range
Detector Over Range
Is there an easy way to do it in XSLT?
Sam
--~------------------------------------------------------------------
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>
--~--