Skip to main content
summaryrefslogtreecommitdiffstats
blob: 81fc10e70ae1bdfeb440f5f7bc155166eb5f3db9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<%@jet package="org.eclipse.jet.internal.compiler.templates" 
               class="XMLStartGenerator" 
               imports="org.eclipse.jet.internal.compiler.*"
               %>
<%
	GenXMLElement element = (GenXMLElement) argument;
%>
		RuntimeTagElement <%= element.getTagVariable() %> = context.getTagFactory().createRuntimeTag(_jetns_<%= element.getNSPrefix() %>, "<%= element.getTagNCName() %>", "<%= element.getName() %>", <%= element.getTagInfoVariable() %>);
		<%= element.getTagVariable() %>.setRuntimeParent(<%= element.getParentTagVariable() %>);
		<%= element.getTagVariable() %>.setTagInfo(<%= element.getTagInfoVariable() %>);
		<%= element.getTagVariable() %>.doStart(context, out);
<%  if(element.hasBody()) { %>
<%     if(element.requiresNewWriter()) { %>
		JET2Writer <%= element.getTagVariable() %>_saved_out = out;
<%     } %>
		while (<%= element.getTagVariable() %>.okToProcessBody()) {
<%     if(element.requiresNewWriter()) { %>
			out = out.newNestedContentWriter();
<%     } %>
		
<%  } %>

Back to the top