
<!-- THIS-IS-INTERNAL-RXML-DOC-AUTOMATICLY-GENERATED-FROM-THE-MANUAL -->
</dump-if>







































































<table cellpadding=1 cellspacing=0 border=0>
<tr>
<td bgcolor=#113377 width=1%>



<b><font color=#ffffff size=+3 >&nbsp;&lt;define&gt;&nbsp;...&nbsp;&lt;/define&gt;&nbsp;</font></b>

</td>
<td>
<img src=/internal-roxen-unit width=200 height=1 alt=""></td>
</tr>

<tr>
<td bgcolor=black colspan=2>


<table cellpadding=4 border=0 cellspacing=0 width=100%>
<tr>
<td bgcolor=#ffffff>



<tt>&lt;define&gt;</tt> is defined in the <i>Main RXML parser</i> module.
<p>
Defines new tags, container tags or defines.


<br clear=all>
<img src=/internal-roxen-unit width=1 height=10 alt="">

</td>
</tr>
</table>


<table cellpadding=4 border=0 cellspacing=0>
<tr>
<td bgcolor=#113377 width=1%>
<font color=white>Attributes</font>
</td>
<td bgcolor=#ffffff>
<img src=/internal-roxen-unit width=100% height=1 alt=""></td>
</tr>
<tr>

<td bgcolor=#ffffff colspan=2>






<a href="#container">container</a>,
<a href="#name">name</a>,
<a href="#tag">tag</a>,
<a href="#default_</b></tt><i>attribute</i><tt><b>">default_</b></tt><i>attribute</i><tt><b></a>,
&nbsp;

</td>
</tr>
</table>


</td>
</tr>
</table>






































<p>
<b><font color=#113377 size=+2 >Attributes</font></b>



<dl>

<p><dt><tt><b><a name="container">container</a></b></tt>=<i>name</i>
<dd>
Define a new RXML container tag, or override a previous definition.




<p><dt><tt><b><a name="name">name</a></b></tt>

<dd>
Sets the specified define. Can be inserted later by the
<tt>&lt;insert&gt;</tt> tag.



<p><dt><tt><b><a name="tag">tag</a></b></tt>

<dd>
Defines a new RXML tag, or overrides a previous definition.



<p><dt><tt><b><a name="default_</b></tt><i>attribute</i><tt><b>">default_</b></tt><i>attribute</i><tt><b></a></b></tt>=<i>value</i>
<dd>
Set a default value for an attribute, that will be used when the
attribute is not specified when the defined tag is used.



</dl>

<p>
You can use a few special tokens in the definition of tags and
container tags:

<dl>
<p><dt><tt><b>#args#</b></tt><dd>All arguments sent to the tag. Useful when
defining a new tag that is more or less only an alias for an old one.

<p><dt><tt><b>&amp;attribute;</b></tt><dd>Inserts the value of that attribute.
</dl>


<dl>

</dl>










<b><font color=#113377 size=+2 >Example</font></b>


<table border=0 cellpadding=1 cellspacing=0 bgcolor=#000000>
<tr>
<td>
<table border=0 cellspacing=0 cellpadding=4>
 <tr>
  <td valign=top bgcolor=#113377>
   <font color=#ffffff><b>source code</b></font>
  </td>
  <td bgcolor=white>
<pre><define name=foo>
<define container=h1>
<gtext fg=blue #args#><contents></gtext>
</define>

<h1>Hello</h1>
</define>
<insert name=foo "<"=&lt; ">"=&gt; ></pre>
   <br clear=all>
   <img src=/internal-roxen-unit width=1 height=1 alt="">
  </td>
 </tr>
 <tr>
  <td height=1 bgcolor=#113377><img src=/internal-roxen-unit width=1 height=1 alt=""></td>
  <td height=1 bgcolor=#ffffff>

   <table border=0 cellpadding=0 cellspacing=0 width=100%>
    <tr>
     <td bgcolor=#000000>
     <img src=/internal-roxen-unit width=1 height=1 alt=""></td>
    </tr>
   </table>
  </td>
 </tr>
 <tr>
  <td valign=top bgcolor=#113377>
  <font color=#ffffff><b>result</b></font>
</td>
<td valign=top bgcolor=#ffffff>


<define container=h1>
<gtext fg=blue #args#><contents></gtext>
</define>

<h1>Hello</h1>


   <br clear=all>
   <img src=/internal-roxen-unit width=1 height=1 alt="">
</td>
</tr>

</table>
</td>
</tr>
</table><p>
<table border=0 cellpadding=1 cellspacing=0 bgcolor=#000000>
<tr>
<td>
<table border=0 cellspacing=0 cellpadding=4>
 <tr>
  <td valign=top bgcolor=#113377>
   <font color=#ffffff><b>source code</b></font>
  </td>
  <td bgcolor=white>
<pre><define name=foo>
<define tag=test default_foo=foo
  default_bar=bar>
The test tag: Testing testing.
Foo is &foo;, bar is &bar;
</define>

<test foo=Hello bar=World>
<br><test foo=Hello>
</define>
<insert name=foo "<"=&lt; ">"=&gt; ></pre>
   <br clear=all>
   <img src=/internal-roxen-unit width=1 height=1 alt="">
  </td>
 </tr>
 <tr>
  <td height=1 bgcolor=#113377><img src=/internal-roxen-unit width=1 height=1 alt=""></td>
  <td height=1 bgcolor=#ffffff>

   <table border=0 cellpadding=0 cellspacing=0 width=100%>
    <tr>
     <td bgcolor=#000000>
     <img src=/internal-roxen-unit width=1 height=1 alt=""></td>
    </tr>
   </table>
  </td>
 </tr>
 <tr>
  <td valign=top bgcolor=#113377>
  <font color=#ffffff><b>result</b></font>
</td>
<td valign=top bgcolor=#ffffff>


<define tag=test default_foo=foo
  default_bar=bar>
The test tag: Testing testing.
Foo is &foo;, bar is &bar;
</define>

<test foo=Hello bar=World>
<br><test foo=Hello>


   <br clear=all>
   <img src=/internal-roxen-unit width=1 height=1 alt="">
</td>
</tr>

</table>
</td>
</tr>
</table><p>


<if not cookie=rxml-help>

</td></tr>
</table>
</body>
</html>


