Returns the collection of text or cdata nodes. Synonymous with the pattern textnode() | cdata().
Syntax
text()
Remarks
Note that there is a subtle difference between the Microsoft® Internet Explorer 5 implementation and the December 1998 XSL Working Draft, which normalizes adjacent text and CDATA nodes into a single string that is matched in its entirety by "text()".
The text collection is different than the DOM text and XQL text methods, which return strings and not a list of text nodes. The XQL text method is not supported in this release.
Example
Find the text or CDATA nodes in each p element in the current context:
p/text()