docs.roxen.comBack to normal mode
DocsRoxen2.2Web Site Creator ManualVariable Tags
Copyright © 2004, Roxen Internet Software
Suggestions, comments & compliments
manuals@roxen.com

<define></define>

Provided by module: Tags: RXML 2 tags

Defines variables, tags, containers and if-callers.

The values of the attributes given to the defined tag are available in the scope created within the define tag.


Attributes

variable="name"

Sets the value of the variable to the contents of the container.


tag="name"

Defines a tag that outputs the contents of the container.


<define tag="hi">Hello &_.name;!</define>
<hi name="Martin"/>
Hello Martin!

container="name"

Defines a container that outputs the contents of the container.


if="name"

Defines an if-caller that compares something with the contents of the container.


trimwhites

Trim all white space characters from the beginning and the end of the contents.


preparse="preparse"

Sends the definition through the RXML parser when defining. (Without this attribute, the definition is only RXML parsed when it is invoked.)


&_.args; (provided by Tags: RXML 2 tags)

The full list of the attributes, and their arguments, given to the tag.


&_.contents; (provided by Tags: RXML 2 tags)

The containers contents.


&_.rest-args; (provided by Tags: RXML 2 tags)

A list of the attributes, and their arguments, given to the tag, excluding attributes with default values defined.


<attrib></attrib>

Provided by module: Tags: RXML 2 tags

When defining a tag or a container the tag <attrib> can be used to define default values of the attributes that the tag/container can have. The attrib tag must be the first tag(s) in the define tag.


Attributes

name="name"

The name of the attribute which default value is to be set.


<contents/>

Provided by module: Tags: RXML 2 tags

As the contents entity, but unquoted.