Skip to main content
summaryrefslogtreecommitdiffstats
blob: 15ea6fc8754e4f7df6d5d6afc02c4c52186d9752 (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
<%!
/*  Copyright 2008 IBM Corp.  All rights reserved.  This source code is made available under the terms of the Eclipse Public License, v1.0. */
%>
<%-- parentControl : name of parent control or empty string
	control : current control element or empty string 
--%>
    <control 
        type="<c:get select="local-name($control)"/>"
	    parent="<c:get select="$parentControl"/>" 
		<%-- copy attributes --%>
		<c:iterate select="$control/@*" var="attr">
			<c:get select="local-name($attr)"/>="<f:replaceAll value="&" replacement="&amp;"><c:get select="$attr"/></f:replaceAll>"
		</c:iterate>
	>
<%-- copy elements (gridData|gridLayout|event|item) as child elements --%>
	<c:iterate select="$control/gridLayout | $control/gridData | $control/event | $control/item" 
		var="childData">
		<c:dump select="$childData"/>
	</c:iterate>
<%-- close control element --%>
    </control>
<c:setVariable var="parentControl" select="string($control/@name)"/>
<%-- process child control elements at same depth as parent --%>
<c:iterate select="$control/*"
	var="control">
	<c:if test="not(local-name($control) = 'gridData' or local-name($control) = 'gridLayout' or local-name($control) = 'event' or local-name($control) = 'item')">
		<c:include template="templates/wizardPage/flattenControl.jet" passVariables="control,parentControl"/>
	</c:if>
</c:iterate>

Back to the top