You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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=""
<contentname="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=""
<contentvar="x">anyXml</content>
or
<contentdef="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=""
<contentset="x">anyXml</content>
or
<contentset="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.