Collecting text

The csl:collect-text instruction appends text collected from several nodes to ContentMap item generated by parent csl:template.

Text collection is done by traversing the source document subtree from current node, and concatenated content of all text nodes. Traversing is done in document order.

<csl:collect-text select="xpath-expr"
                  max-length="50"/>