La 'define' tag

Description

This tag allows to define a macro. The body of a macro must contain one and only root tag (use bloc tag if needed) ; it can not be empty (nor <xpp:define name=”…”></xpp:define> nor <xpp:define name=”…”/>). The body of a macro can contain several child tags.

The content of a macro is expanded using the expand tag.

You can also define macros inside an expand tag (with select attribute). This macros are known by underlying expand, by the expand in which they are defined, but not outside.

Syntaxe

Definition

<xpp:define name="NAME">
Body
</xpp:define>

Defines a macro named NAME with content Body.

Expansion

<xpp:expand select="NAME"/>

Expands the content of the macro named NAME (the entire tag is remplaced by Body as defined above).

 
expp/tags/define.txt · Last modified: 2007/04/22 10:52 by 192.168.5.50
 
Recent changes RSS feed Creative Commons License Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki