79077279

Date: 2024-10-11 08:08:02
Score: 1
Natty:
Report link

To complete @jens-erat 's answer, with XQuery 1.0 (without string-join),
data() will concatenate your sequences,
a bit of replace will allow you to control (remove) whatever separator it decided to use,
and a substring will remove your tuned separator from before the first item:

substring(replace(data(<ul>{for $v in distinct-values(//li) return concat(", ",$v)}</ul>)," ,",","),3)

(that's for those who like me are stuck 10 years ago with an Oracle 11.2's XMLTable to operate)

Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @jens-erat
  • Low reputation (0.5):
Posted by: Guillaume Outters