- From: Michael Kay <mike@saxonica.com>
- Date: Tue, 20 Sep 2022 19:36:42 +0100
- To: Norm Tovey-Walsh <norm@saxonica.com>
- Cc: public-xslt-40@w3.org
I think there are two possibilities: (a) string-to-codepoints($input) ! codepoints-to-string(.) (b) if ($input) then (fn:substring($input, 1, 1), fn:characters(fn:substring($input, 2))) else () I've chosen (a), on the basis that string-to-codepoints() and codepoints-to-string() are probably fundamental to the definition of a string as a sequence of code points, whereas fn:substring(), if we chose, could be expressed in terms of fn:characters() and fn:subsequence(). Michael Kay
Received on Tuesday, 20 September 2022 18:36:58 UTC