This "xmLP" test file has sample macros embedded in an XHTML 1.0 document. The macro is an unused text macro.
Just some text, but spread over three lines, to check that newlines are handled properly.
The macro is an unused XML macro. The XML here is a snippet of XHTML.
<dl> <dt>Title #1</dt> <dd>Description #1</dd> <dt>Title #2</dt> <dd>Description #2</dd> </dl>
The output file here is plain text.
Plain text macros are inserted into plain text output files.
Animal #1[3] Animal #2[4] Animal #3[5]
Animal #1[3] Animal #2[4] Animal #3[5]
The output file here is XML (XHTML, actually).
<html version="-//W3C//DTD XHTML 1.1//EN"> <head profile=""> <title>Test 1-5</title> </head> <body> <dl> <dt>Title <em>of</em> #1</dt> <dd>Description #1</dd> <dt>Title <em>of</em> #2</dt> <dd>Description #2</dd> </dl> </body> </html>
XML macros are inserted into an XML output file.
<dt>Title <em>of</em> #1</dt><dd>Description #1</dd>
<dt>Title <em>of</em> #2</dt><dd>Description #2</dd>
<html version="-//W3C//DTD XHTML 1.1//EN"> <head profile=""> <title>Test 1-6</title> </head> <body> <dl>Explanation #1[6] Explanation #2[7] </dl> </body> </html>
Plain text macros are invoked inside a plain text macro. This macro is then invoked in a file.
All Animals[8]
XML macros are invoked inside an XML macro. This macro is then invoked in a file.
<html version="-//W3C//DTD XHTML 1.1//EN"> <head profile=""> <title>Test 1-8</title> </head> <body> <dl>Explanation #1[6] Explanation #2[7] </dl> </body> </html>
All Explanations[9]