I want to add some strings in the text right after a leading space. Any ideas how to detect the leading space? Thanks.
For example, I would like to add “def” in front of abc but after the leading space.
<AAA>
<CCC> abc</CCC>
</AAA>
Output should become: ” defabc”
Assuming, from your tag, that you are trying to do this in xslt, I’d use XSLT’s starts-with function.
If you provide some example XSLT code, it’d be easier to explain more.