Overview | Standard JET2 Control Tags
--- | ---

controlTags

Control flow and data management tags. This tags allow templates to evaluate conditions, perform loops and access and set information in the template input.

Tag Summary
<c:addElement> | Create a new model element under the selected node
<c:addTextElement> | Create a new model element node under the selected element, and whose text content is the content of this tag
<c:case> | *** DEPRECATED - use 'when' tag instead
<c:choose> | Define a group of mutually exclusive choices
<c:copyElement> | Copy the selected node to the selected location
<c:deepContent> | Designate the insertion point for child content generated from a c:deepIterate tag
<c:deepIterate> | Do a deep (recusive) iteration by repeated evaluating the 'select' expression on previous results
<c:dump> | Writes out the DOM subtree under a specified model node
<c:get> | Write a the result of an XPath expression
<c:if> | Process the tag contents if a test condition is satisfied
<c:include> | Process the referenced template, and include its results in the output of the current template
<c:initialCode> | A child tag of the 'userRegion' tag containing the initial code to write
<c:invokeTransform> | Invoke the another transformation, passing it the current transformation's source model and context variables
<c:iterate> | Write the tag contents for each in the template input model identified by an XPath expression
<c:load> | Load the referenced model, and set the passed variable to the loaded document root
<c:loadContent> | Extends the model by parsing its contents as XML
<c:log> | Write a message to the transformation log
<c:marker> | Create an Eclipse task marker refering to the text contained in the tag
<c:otherwise> | Define a default case for a 'choose' tag
<c:override> | *** Deprecated: Use the 'overrides' attribute on 'transform' extension in plugin
<c:removeElement> | Remove the selected node from the document tree
<c:replaceStrings> | Replaces one set of strings in its content with another set of strings and writes out the result
<c:set> | Set an attribute on an object selected by an XPath expression
<c:setVariable> | Create a variable whose value is set to the result of the provided XPath expression
<c:stringTokens> | Parses a string into tokens and iterates over its content for each token
<c:userRegion> | Define a region in the generated text where users may write customized code
<c:visit> | Define content to process for an object found by the parent 'visitor' tag, provided a condition is met
<c:visitor> | *** PROTOTYPE *** Iterate over an object and all its contained objects, typically be doing a depth-first traversal
<c:when> | Define a one of the mutually exclusive cases of a 'choose' tag
<c:with> | Evaluate the tag body with the XPath context set to the result of the'select' XPath expression

Example Directive
| <%@taglib prefix="c" id="org.eclipse.jet.controlTags"%>