Re: [xsl] Got a slick XPath expression to convert NEW YORK to New_York?

Subject: Re: [xsl] Got a slick XPath expression to convert NEW YORK to New_York?
From: "Martin Honnen martin.honnen@xxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 20 Dec 2023 19:04:30 -0000
On 20/12/2023 19:59, dvint dvint@xxxxxxxxx wrote:
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.


Can't you use replace('$str:[]#', '[:\[\]#"]', '\\$0')?

Current Thread