There are two different types of text elements. The text element allows you to enter static text and format it, but it also allows you to display dynamic contents from the XML source in it. You can even combine both types in one text element. The second type of text frame are XSL text elements, which are e.g. used for conditional purposes.
Digression:
Fo-Blocks and Block Containers
Dynamic contents from the XML source