Halliday & Matthiessen (1999: 528):
Since these resources are oriented towards discourse, many of the “textual” systems in any language have a domain potentially higher than the clause and the clause complex; they set up relationships that create semantic cohesion, and these are not restricted by the limitations of grammatical structure.