Here is the sample xml document.
count the number of words
For this example I want
in xslt i think you would need to process to remove any double spacing and then count the remaining spaces to find an answer. although im sure there are better ways!
no words...
this example code works, ammended it from a stylesheet i had which was processing some legacy code into usefull html output!
updated code to improve against errors, catches duplicate whitespace and also catches empty nodes :>
Updated to solve additional problem!
it was empty
wordcount:
pass:
fail: