2.1.13 The text Element (Inside pageParagraph)

text[pageParagraph_text] :type=(title | text) => TEXT

This text element is nested inside a pageParagraph. There is a different text element that is nested inside a container.

The element is either empty, or contains CDATA that holds almost-XHTML text: in the corpus, either an html or p element. It is almost-XHTML because the html element designates the default namespace as ‘http://xml.spss.com/spss/viewer/viewer-tree’ instead of an XHTML namespace, and because the CDATA can contain substitution variables. The following variables are supported:

&[Date]
&[Time]

The current date or time in the preferred format for the locale.

&[Head1]
&[Head2]
&[Head3]
&[Head4]

First-, second-, third-, or fourth-level heading.

&[PageTitle]

The page title.

&[Filename]

Name of the output file.

&[Page]

The page number.

&[Page] for the page number and &[PageTitle] for the page title.

Typical contents (indented for clarity):

<html xmlns="http://xml.spss.com/spss/viewer/viewer-tree">
    <head></head>
    <body>
        <p style="text-align:right; margin-top: 0">Page &[Page]</p>
    </body>
</html>

This element has the following attributes.

Attribute: type

Always text.