I am trying to use XSLT 2.0 (Saxon-PE 9.6) on an HTML document to create tags that surround all contiguous runs of characters from a specified non-Latin Unicode block (space
This should work (some comments after the code):
XSLT 2.0
matching-substring
branch puts the span
around the Hindi textnon-matching-substring
branch just returns the unmodified "normal" text substring (you were returning the whole text!)