Autodefined variables

PDML2 has a number of pre-defined variables (e.g. pagenumber etc.) that you can insert in your PDML2 documents. During the parsing the variables will be replaced with actual information.


Variable Description
&pagenumber; Filled in with the current pagenumber at runtime. Remember to start your pages with the <page> tag. This tag can be used anywhere within the <body> element.
&pagecount; Filled in with the total number of pages at runtime. This tag can be used anywhere within the <body> element.
&title; Filled in with the text from the documents <title> tag from the <header> section. This tag can be used anywhere within the <body> element.
&author; Filled in with the text from the documents <author> tag from the <header> section. This tag can be used anywhere within the <body> element.
&subject; Filled in with the text from the documents <subject> tag from the <header> section. This tag can be used anywhere within the <body> element.
&creator; Filled in with the text from the documents <creator> tag from the <header> section. This tag can be used anywhere within the <body> element.


Example


<pdml>
<header>
	<title>Hello PDML</title>
</header>
<body>
This is page &amp;pagenumber; of &amp;pagecount; pages.
</body>
</pdml>