In XPath I want to insert some newlines when using concat(…)
and/or string-join(…)
. From Line breaks (\n) via concat() in XPath? I learned I can insert a newline using codepoints-to-string(10)
. For two of them I can do concat(codepoints-to-string(10), codepoints-to-string(10))
, but that seems sort of long. From concatenate a string/character n number of times in xpath I learned I can apparently do string-join((1 to 2)!codepoints-to-string(10))
or something close, but I'm not sure that that brings much improvement.
Is there some more compact way to represent two or more newlines together in XPath?