directives:define

The define statement has two forms:

  1. any number of keys each with single-line values
  2. a key with a multi-line value

A key is any string of characters with no whitespace. A value is whatever follows a key up to the end of the line in the first form of define or up to the first blank line (the end of the block) in the second form.

Substitution of a value for a key occurs when ${ key } is placed in the text.

Xilize markup browser rendering
>xil> each line is a key followed by a value

define. POTUS President of the United States of America
P1 George Washington
P3 Thomas Jefferson

>xil> "address" is the key, the three following lines are its value

define. ADDRESS
1600 Pennsylvania Avenue
Washington, D.C, USA
"White House web site":http://www.whitehouse.gov

${P1} was the first person to hold the office of ${POTUS}

Mailing address:

pre. ${P1}
${POTUS}
${ADDRESS}
_phone number unavailable_

The third ${POTUS} was ${P3}. Reach him at

pre. ${P3}
${POTUS}
${ADDRESS}
_phone number unavailable_

George Washington was the first person to hold the office of President of the United States of America

Mailing address:

George Washington
President of the United States of America
1600 Pennsylvania Avenue
Washington, D.C, USA
White House web site
phone number unavailable

The third President of the United States of America was Thomas Jefferson. Reach him at

Thomas Jefferson
President of the United States of America
1600 Pennsylvania Avenue
Washington, D.C, USA
White House web site
phone number unavailable

XHTML generated

<p>George Washington was the first person to hold the office of
 President of the United States of America</p>

<p>Mailing address:</p>

<pre>George Washington
President of the United States of America
1600 Pennsylvania Avenue
Washington, D.C, <span class="caps">USA</span>
<a href="http://www.whitehouse.gov">White House web site</a>
<em>phone number unavailable</em></pre>

<p>The third President of the United States of America was Thomas Jefferson.
 Reach him at</p>

<pre>Thomas Jefferson
President of the United States of America
1600 Pennsylvania Avenue
Washington, D.C, <span class="caps">USA</span>
<a href="http://www.whitehouse.gov">White House web site</a>
<em>phone number unavailable</em></pre>