|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Got a slick XPath expression to convert NEW YORK t
On Wed, Dec 20, 2023 at 06:59:15PM -0000, dvint dvint@xxxxxxxxx scripsit:
> I have twist on this question.
>
> I need to escape multiple characters in a string. Chracters like : [ ] # need
> to be escaped with a \ in all cases. I think quotes are going to be added to
> this list. I need a transalate() on steroids.
replace('this is a test of [special] character # "escapes"','([\[\]#"'])','\\$1')
It'd be a stage of its own, so
((tokenize($in)
! (substring(., 1, 1) || lower-case(substring(., 2))
! replace(.,'([\[\]#"'])','\\$1'))
=> string-join('_')
in the context of the original question.
--
Graydon Saunders | graydonish@xxxxxxxxxxxx
^fs oferiode, pisses swa mfg.
-- Deor ("That passed, so may this.")
|
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
|

Cart








