-
Notifications
You must be signed in to change notification settings - Fork 86
content element
Captures output contained within the content element to a text spool or local variable.
<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.
<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.
<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.