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: "Liam R. E. Quin liam@xxxxxxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 21 Dec 2023 00:45:54 -0000
On Wed, 2023-12-20 at 21:58 +0000, Adam Retter
adam.retter@xxxxxxxxxxxxxx wrote:
> If only XPath supported the the `\U` and `\L` operators for the
> replacement pattern in fn:replace, then I think we could likely have
> done it in a single regular expression...

Yes - i've always missed \l \u \L \U and also \< and \> in XPath.

--
Liam Quin,B https://www.delightfulcomputing.com/
Available for XML/Document/Information Architecture/XSLT/
XSL/XQuery/Web/Text Processing/A11Y training, work & consulting.
Barefoot Web-slave, antique illustrations: B http://www.fromoldbooks.org

Current Thread