Using xsl 2.0 I\'m trying to convert all uppercase text to having only the first letter of text in each node upper-case. Their are a large number of possible child elements.
This transformation produces the wanted result regardles of the punctuation that delimits the words:
When applied on the provided XML document:
text text text
BLAH BLAH BLAH
the wanted, correct result is produced:
text text text
Blah Blah Blah
When applied on this XML document:
text text text
BLAH$BLAH -BLAH;
again the correct result is produced:
text text text
Blah$Blah -Blah;
Explanation:
Proper use of the
Proper use of the \p{L} character class.
Proper use of the