File: Data.xml
this is a test
File: Transform.xslt
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
String handling
The sentence: '
' has
select="count(tokenize($sentence, '\s+'))" />
words.
Output:
String handling
The sentence: '
this is a test
' has
4
words.