SharePoint Data View XSLT Tips and Tricks – Limit text field
Here is an XSLT syntax used to limit the number of characters of a text column (in this example the title field), In case the text is more than 50 characters long this function will substring it from the start and up to its last occurrence of a white space and add 3 points after it –
If you don’t mind your text being cut off after the limited number of characters you could use this shorter XSLT syntax –
To count how many characters can fit your designated area you can use this nice online tool.
This is a cool trick to use, but if your text field should fit into one row only, you shouldn’t bother with it and it will be smarter to use this CSS Truncate String with Ellipsis technique which is supported in almost all browsers (even by IE8 believe it or not!).