Skip to content
RobertTheGrey edited this page Jan 12, 2013 · 1 revision

<content>

Captures output contained within the content element to a text spool or local variable.

with name=""

<content name="x">anyXml</content>

Spools all output in the content element into a named text writer. The named content can be placed as output later with a <use/> element, or can be accessed directly with the Content["x"] dictionary.

with var="" or def=""

<content var="x">anyXml</content> 
or 
<content def="x">anyXml</content>

Spools all output into a temporary text writer, then assigns the results into a new string local variable named by the var attribute value.

with set=""

<content set="x">anyXml</content>
or
<content set="x" add="before|after|replace">anyXml</content>

Spools all output into a temporary text writer, then assigns the results into an existing local variable named by the set attribute value.

If the content element also contains add="after" the captured content will be appended to the end of the variable's existing value. If it contains add="before" the content will be appended to the front of the existing variable value.

Clone this wiki locally