I have the following xml document:
<?xml version="1.0" encoding="UTF-8"?>
<root>
<data>
<child1> Well, some spaces and nbsps  </child1>
<child2>  some more   or whatever </child2>
<child3> a nice text</child3>
<child4>how to get rid of all the nasty spaces  ? </child4>
</data>
</root>
I have to remove all non-breakable spaces, concatenate the text and nomalize it.
My xpath query (it works fine for concatenation and normalization - I have inserted the replacement with 'x' only for test purposes):
normalize-space(replace(string-join(//data/*,' '),' ','x'))
My problem: I can't find the " "
-whitespace to replace it.
Looking forward to your answers,