This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
Strings are basically lists of characters. But in XQuery it is hard to access the individual characters and you cannot use sequence manipulation on the string. string-to-codepoints is way too long to type. You could not treat the string as sequence, as they could not nest, but now there are arrays and you can treat the string as array: "string"(3) becomes r "string"?* becomes ("s", "t", "r", "i", "n", "g") Then you can use all the sequence stuff on it. ("string"?*)[. > "n"]=>reverse()=>string-join() and get "ts" The NCName could be an contains test. "string"?str = true(), "string"?xxx = false() Or a some matching. Would be more general. "string"?str = "string", "string"?tr = "tring", "string"?ing = "ing", "string"?xxx = "" Perhaps also remove the silly FORX0003 and let tokenize("string", "") = "string"?* Too bad it is too late to make string-join(tokenize($foo)) = $foo