Nic Miloslav
Example 32***
The value of function last() depends on context. You can select the last element of given type (Stylesheet 1). Difference between Stylesheet 2 and Stylesheet 3 is very instructive. In Stylesheet 2 the function is in template.The context is therefore a single chapter element. In Stylesheet 3 the function is in for-each element. The context is therefore all selected chapters.