The in the example above outputs a sentence "Text in heading 1", with Heading 1 as style. The outputs the name of a model element, with Heading 2 as style.
The static way of specifying heading requires you to provide the style name in the template.
In contrast to the static way, here is an example that shows the dynamic way of specifying heading: