Skip to main content
summaryrefslogtreecommitdiffstats
blob: 2b15aa8e35026333784ef89ed8ffa4158149d14d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<link rel="STYLESHEET" href="../../../book.css" charset="ISO-8859-1" type="text/css"/>
<TITLE>overview.html</TITLE>
</HEAD>
<BODY>
<TABLE border="0" cellpadding="0" cellspacing="1" width="100%">

	<TBODY>
		<TR>
			<TH align="left">
			<P>Overview</P>
			</TH>
			<TH align="right">Standard JET2 Control Tags</TH>
		</TR>
	</TBODY>
</TABLE>
<P>controlTags</P>
<P><P>            Control flow and data management tags. This tags allow templates to evaluate conditions, perform loops and access and set information in the template input.<P>         </P>
<HR>
<TABLE border="1" width="100%">
	<TBODY>
		<TR>
			<TH colspan="2" align="left">Tag Summary</TH></TR>
		<TR>
			<TD width="10%"><A href="addElementTag.html">&lt;c:addElement&gt;</A></TD>
			<TD><!--	Begin addElement description -->
			<P>               Create a new model element under the selected node
			<!--	End addElement description -->
			</TD>
		</TR>
		<TR>
			<TD width="10%"><A href="addTextElementTag.html">&lt;c:addTextElement&gt;</A></TD>
			<TD><!--	Begin addTextElement description -->
			<P>               Create a new model element node under the selected element, and whose text content is the content of this tag
			<!--	End addTextElement description -->
			</TD>
		</TR>
		<TR>
			<TD width="10%"><A href="caseTag.html">&lt;c:case&gt;</A></TD>
			<TD><!--	Begin case description -->
			<P>               *** DEPRECATED  - use 'when' tag instead
			<!--	End case description -->
			</TD>
		</TR>
		<TR>
			<TD width="10%"><A href="chooseTag.html">&lt;c:choose&gt;</A></TD>
			<TD><!--	Begin choose description -->
			<P>               Define a group of mutually exclusive choices
			<!--	End choose description -->
			</TD>
		</TR>
		<TR>
			<TD width="10%"><A href="copyElementTag.html">&lt;c:copyElement&gt;</A></TD>
			<TD><!--	Begin copyElement description -->
			<P>               Copy the selected node to the selected location
			<!--	End copyElement description -->
			</TD>
		</TR>
		<TR>
			<TD width="10%"><A href="dumpTag.html">&lt;c:dump&gt;</A></TD>
			<TD><!--	Begin dump description -->
			Writes out the DOM subtree under a specified model node
			<!--	End dump description -->
			</TD>
		</TR>
		<TR>
			<TD width="10%"><A href="getTag.html">&lt;c:get&gt;</A></TD>
			<TD><!--	Begin get description -->
			<P>               Write a the result of an XPath expression
			<!--	End get description -->
			</TD>
		</TR>
		<TR>
			<TD width="10%"><A href="ifTag.html">&lt;c:if&gt;</A></TD>
			<TD><!--	Begin if description -->
			<P>               Process the tag contents if a test condition is satisfied
			<!--	End if description -->
			</TD>
		</TR>
		<TR>
			<TD width="10%"><A href="includeTag.html">&lt;c:include&gt;</A></TD>
			<TD><!--	Begin include description -->
			<P>               Process the referenced template, and include its results in the output of the current template
			<!--	End include description -->
			</TD>
		</TR>
		<TR>
			<TD width="10%"><A href="initialCodeTag.html">&lt;c:initialCode&gt;</A></TD>
			<TD><!--	Begin initialCode description -->
			<P>               A child tag of the 'userRegion' tag containing the initial code to write
			<!--	End initialCode description -->
			</TD>
		</TR>
		<TR>
			<TD width="10%"><A href="invokeTransformTag.html">&lt;c:invokeTransform&gt;</A></TD>
			<TD><!--	Begin invokeTransform description -->
			<P>               Invoke the another transformation, passing it the current transformation's source model and context variables
			<!--	End invokeTransform description -->
			</TD>
		</TR>
		<TR>
			<TD width="10%"><A href="iterateTag.html">&lt;c:iterate&gt;</A></TD>
			<TD><!--	Begin iterate description -->
			<P>               Write the tag contents for each in the template input model identified by an XPath expression
			<!--	End iterate description -->
			</TD>
		</TR>
		<TR>
			<TD width="10%"><A href="loadTag.html">&lt;c:load&gt;</A></TD>
			<TD><!--	Begin load description -->
			<P>               Load the referenced model, and set the passed variable to the loaded document root
			<!--	End load description -->
			</TD>
		</TR>
		<TR>
			<TD width="10%"><A href="loadContentTag.html">&lt;c:loadContent&gt;</A></TD>
			<TD><!--	Begin loadContent description -->
			Extends the model by parsing its contents as XML
			<!--	End loadContent description -->
			</TD>
		</TR>
		<TR>
			<TD width="10%"><A href="logTag.html">&lt;c:log&gt;</A></TD>
			<TD><!--	Begin log description -->
			<P>               Write a message to the transformation log
			<!--	End log description -->
			</TD>
		</TR>
		<TR>
			<TD width="10%"><A href="markerTag.html">&lt;c:marker&gt;</A></TD>
			<TD><!--	Begin marker description -->
			<P>               Create an Eclipse task marker refering to the text contained in the tag
			<!--	End marker description -->
			</TD>
		</TR>
		<TR>
			<TD width="10%"><A href="otherwiseTag.html">&lt;c:otherwise&gt;</A></TD>
			<TD><!--	Begin otherwise description -->
			<P>               Define a default case for a 'choose' tag
			<!--	End otherwise description -->
			</TD>
		</TR>
		<TR>
			<TD width="10%"><A href="overrideTag.html">&lt;c:override&gt;</A></TD>
			<TD><!--	Begin override description -->
			<P>               *** Deprecated: Use the 'overrides' attribute on 'transform' extension in plugin
			<!--	End override description -->
			</TD>
		</TR>
		<TR>
			<TD width="10%"><A href="removeElementTag.html">&lt;c:removeElement&gt;</A></TD>
			<TD><!--	Begin removeElement description -->
			<P>               Remove the selected node from the document tree
			<!--	End removeElement description -->
			</TD>
		</TR>
		<TR>
			<TD width="10%"><A href="replaceStringsTag.html">&lt;c:replaceStrings&gt;</A></TD>
			<TD><!--	Begin replaceStrings description -->
			Replaces one set of strings in its content with another set of strings and writes out the result
			<!--	End replaceStrings description -->
			</TD>
		</TR>
		<TR>
			<TD width="10%"><A href="setTag.html">&lt;c:set&gt;</A></TD>
			<TD><!--	Begin set description -->
			<P>               Set an attribute on an object selected by an XPath expression
			<!--	End set description -->
			</TD>
		</TR>
		<TR>
			<TD width="10%"><A href="setVariableTag.html">&lt;c:setVariable&gt;</A></TD>
			<TD><!--	Begin setVariable description -->
			<P>               Create a variable whose value is set to the result of the provided XPath expression
			<!--	End setVariable description -->
			</TD>
		</TR>
		<TR>
			<TD width="10%"><A href="stringTokensTag.html">&lt;c:stringTokens&gt;</A></TD>
			<TD><!--	Begin stringTokens description -->
			Parses a string into tokens and iterates over its content for each token
			<!--	End stringTokens description -->
			</TD>
		</TR>
		<TR>
			<TD width="10%"><A href="userRegionTag.html">&lt;c:userRegion&gt;</A></TD>
			<TD><!--	Begin userRegion description -->
			<P>               Define a region in the generated text where users may write customized code
			<!--	End userRegion description -->
			</TD>
		</TR>
		<TR>
			<TD width="10%"><A href="visitTag.html">&lt;c:visit&gt;</A></TD>
			<TD><!--	Begin visit description -->
			<P>               Define content to process for an object found by the parent 'visitor' tag, provided a condition is met
			<!--	End visit description -->
			</TD>
		</TR>
		<TR>
			<TD width="10%"><A href="visitorTag.html">&lt;c:visitor&gt;</A></TD>
			<TD><!--	Begin visitor description -->
			<P>               *** PROTOTYPE *** Iterate over an object and all its contained objects, typically be doing a depth-first traversal
			<!--	End visitor description -->
			</TD>
		</TR>
		<TR>
			<TD width="10%"><A href="whenTag.html">&lt;c:when&gt;</A></TD>
			<TD><!--	Begin when description -->
			<P>               Define a one of the mutually exclusive cases of a 'choose' tag
			<!--	End when description -->
			</TD>
		</TR>
	</TBODY>
</TABLE>
<HR>
<TABLE border="1" width="100%">
	<TBODY>
		<TR>
			<TH colspan="2" align="left">Example Directive</TH></TR>
		<TR>
			<TD width="10%"></TD>
			<TD><SPAN style="font-family: sans-serif"><SPAN
				style="font-family: monospace">&lt;%@taglib prefix=&quot;c&quot;
			id=&quot;org.eclipse.jet.controlTags&quot;%&gt;</SPAN></SPAN></TD>
		</TR>
	</TBODY>
</TABLE>
</BODY>
</HTML>

Back to the top