[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: How to expand a string

Subject: RE: How to expand a string
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Wed, 30 Aug 2006 10:11:50 +0100
RE:  How to expand a string
Easy enough in 2.0:

replace($in, '(\p{Ll})(\p{Lu})', '$1 $2')

Michael Kay
http://www.saxonica.com/
 

> -----Original Message-----
> From: scarleton@xxxxxxxxx [mailto:scarleton@xxxxxxxxx] On 
> Behalf Of Sam Carleton
> Sent: 29 August 2006 22:26
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.