-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFECRecord.xsl
293 lines (278 loc) · 13.5 KB
/
FECRecord.xsl
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
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:include href="CommonPathRef.xsl"/>
<xsl:include href="AddHeader.xsl"/>
<xsl:include href="AddOnTable.xsl"/>
<xsl:include href="PopulateTemplate.xsl"/>
<xsl:output method="html" indent="yes" />
<xsl:strip-space elements="*" />
<xsl:param name="DependencyData" select="$RtnDoc/FECRecord" />
<xsl:param name="depDocTitle">
<xsl:call-template name="PopulateDisplayName"><xsl:with-param name="TargetNode" select="$DependencyData" /></xsl:call-template>
</xsl:param>
<!-- Main template -->
<xsl:template match="/">
<html>
<head>
<title><xsl:value-of select="$depDocTitle" /></title>
<!-- No Browser Caching -->
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Cache-Control" content="no-cache" />
<meta http-equiv="Expires" content="0" />
<!-- No Proxy Caching -->
<meta http-equiv="Cache-Control" content="private" />
<!-- Define Character Set -->
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta name="Description" content= "{$depDocTitle}" />
<script language="JavaScript" src="{$ScriptPath}/FormDisplay.js" type="text/javascript"></script>
<xsl:call-template name="InitJS"></xsl:call-template>
<style type="text/css">
<xsl:if test="not($Print) or $Print=''">
<xsl:call-template name="AddOnStyle"></xsl:call-template>
</xsl:if>
</style>
<xsl:call-template name="GlobalStylesDep"/>
</head>
<body class="styBodyClass">
<xsl:call-template name="DocumentHeaderDependency"></xsl:call-template>
<div class="styDepTitleLine">
<span class="styDepTitle">
<span style="width:75mm;">
<xsl:value-of select="$depDocTitle" />
</span>
</span>
</div>
<xsl:call-template name="PopulateDepCommonLeftover"><xsl:with-param name="TargetNode" select="$DependencyData" /></xsl:call-template>
<!-- Employee TIN -->
<div class="styTopSectionLine">
<div class="styTopSectionLineLbl" style="float:left;">
<div class="styBold">Employee TIN: </div>
</div>
<div class="styExplanationLine" style="float:left">
<xsl:call-template name="PopulateSSN">
<xsl:with-param name="TargetNode" select="$DependencyData/EmployeeTIN" />
</xsl:call-template>
</div>
</div>
<!-- Employee Name Control -->
<div class="styTopSectionLine">
<div class="styTopSectionLineLbl" style="float:left;">
<div class="styBold">Employee Name Control: </div>
</div>
<div class="styExplanationLine" style="float:left">
<xsl:call-template name="PopulateText">
<xsl:with-param name="TargetNode" select="$DependencyData/EmployeeNameControl" />
</xsl:call-template>
</div>
</div>
<!-- Employee Name -->
<div class="styTopSectionLine">
<div class="styTopSectionLineLbl" style="float:left;">
<div class="styBold">Employee Name: </div>
</div>
<div class="styExplanationLine" style="float:left">
<xsl:call-template name="PopulateText">
<xsl:with-param name="TargetNode" select="$DependencyData/EmployeeName" />
</xsl:call-template>
</div>
</div>
<!-- Employee In Care Of Name -->
<div class="styTopSectionLine">
<div class="styTopSectionLineLbl" style="float:left;">
<div class="styBold">Employee In Care of Name:</div>
</div>
<div class="styExplanationLine" style="float:left">
<xsl:call-template name="PopulateText">
<xsl:with-param name="TargetNode" select="$DependencyData/EmployeeInCareOfName" />
</xsl:call-template>
</div>
</div>
<!-- Choice between Employee US Address or Foreign Address -->
<div class="styTopSectionLine">
<div class="styTopSectionLineLbl" style="float:left;">
<div class="styBold">Employee Address:</div>
</div>
<div class="styExplanationLine" style="float:left">
<!-- US Address -->
<xsl:if test="$DependencyData/USAddress">
<xsl:call-template name="PopulateText">
<xsl:with-param name="TargetNode" select="$DependencyData/USAddress/AddressLine1" />
</xsl:call-template><br/>
<xsl:call-template name="PopulateText">
<xsl:with-param name="TargetNode" select="$DependencyData/USAddress/AddressLine2" />
</xsl:call-template><br/>
<xsl:call-template name="PopulateText">
<xsl:with-param name="TargetNode" select="$DependencyData/USAddress/City" />
</xsl:call-template>,
<xsl:call-template name="PopulateText">
<xsl:with-param name="TargetNode" select="$DependencyData/USAddress/State" />
</xsl:call-template>,
<xsl:call-template name="PopulateText">
<xsl:with-param name="TargetNode" select="$DependencyData/USAddress/ZIPCode" />
</xsl:call-template>
</xsl:if>
<!-- Foreign Address -->
<xsl:if test="$DependencyData/ForeignAddress">
<xsl:call-template name="PopulateText">
<xsl:with-param name="TargetNode" select="$DependencyData/ForeignAddress/AddressLine1" />
</xsl:call-template><br/>
<xsl:call-template name="PopulateText">
<xsl:with-param name="TargetNode" select="$DependencyData/ForeignAddress/AddressLine2" />
</xsl:call-template><br/>
<xsl:call-template name="PopulateText">
<xsl:with-param name="TargetNode" select="$DependencyData/ForeignAddress/City" />
</xsl:call-template>,
<xsl:call-template name="PopulateText">
<xsl:with-param name="TargetNode" select="$DependencyData/ForeignAddress/ProvinceOrState" />
</xsl:call-template>,
<xsl:call-template name="PopulateText">
<xsl:with-param name="TargetNode" select="$DependencyData/ForeignAddress/PostalCode" />
</xsl:call-template>,
<xsl:call-template name="PopulateText">
<xsl:with-param name="TargetNode" select="$DependencyData/ForeignAddress/Country" />
</xsl:call-template>
</xsl:if>
</div>
</div>
<!-- Work Performed Residing In US Indicator -->
<div class="styTopSectionLine">
<div class="styTopSectionLineLbl" style="float:left;">
<label>
<xsl:call-template name="PopulateLabel">
<xsl:with-param name="TargetNode" select="$DependencyData/WorkPerformedResidingInUSInd"/>
</xsl:call-template>
Work Performed Residing in US Indicator:
</label>
</div><br/>
<div class="styExplanationLine" style="float:left">
<input type="checkbox" class="styCkbox">
<xsl:call-template name="PopulateCheckbox">
<xsl:with-param name="TargetNode" select="$DependencyData/WorkPerformedResidingInUSInd"/>
</xsl:call-template>
</input>
</div>
</div>
<!-- Country Code -->
<div class="styTopSectionLine">
<div class="styTopSectionLineLbl" style="float:left;">
<div class="styBold">Country Code: </div>
</div>
<div class="styExplanationLine" style="float:left">
<xsl:call-template name="PopulateText">
<xsl:with-param name="TargetNode" select="$DependencyData/CountryCd" />
</xsl:call-template>
</div>
</div>
<!-- Choice between Foreign Employer Person Name or ForeignEmployerBusinessName -->
<div class="styTopSectionLine">
<xsl:if test="$DependencyData/ForeignEmployerPersonName">
<div class="styTopSectionLineLbl" style="float:left;">
<!-- Foreign Employer Person Name -->
<div class="styBold">Foreign Employer Person Name:</div>
</div>
<div class="styExplanationLine" style="float:left">
<xsl:call-template name="PopulateText">
<xsl:with-param name="TargetNode" select="$DependencyData/ForeignEmployerPersonName" />
</xsl:call-template>
</div>
</xsl:if>
<xsl:if test="$DependencyData/ForeignEmployerBusinessName">
<div class="styTopSectionLineLbl" style="float:left;">
<!-- Foreign Employer Business Name -->
<div class="styBold">Foreign Employer Business Name:</div>
</div>
<div class="styExplanationLine" style="float:left">
<xsl:call-template name="PopulateText">
<xsl:with-param name="TargetNode" select="$DependencyData/ForeignEmployerBusinessName/BusinessNameLine1" />
</xsl:call-template><br/>
<xsl:call-template name="PopulateText">
<xsl:with-param name="TargetNode" select="$DependencyData/ForeignEmployerBusinessName/BusinessNameLine2" />
</xsl:call-template>
</div>
</xsl:if>
</div>
<!-- Employer In Care Of Name -->
<div class="styTopSectionLine">
<div class="styTopSectionLineLbl" style="float:left;">
<div class="styBold">Employer In Care of Name: </div>
</div>
<div class="styExplanationLine" style="float:left">
<xsl:call-template name="PopulateText">
<xsl:with-param name="TargetNode" select="$DependencyData/EmployerInCareOfName" />
</xsl:call-template>
</div>
</div>
<!-- Foreign Employer Address -->
<div class="styTopSectionLine">
<div class="styTopSectionLineLbl" style="float:left;">
<div class="styBold">Foreign Employer Address:</div>
</div>
<div class="styExplanationLine" style="float:left">
<xsl:call-template name="PopulateText">
<xsl:with-param name="TargetNode" select="$DependencyData/ForeignEmployerAddress/AddressLine1" />
</xsl:call-template><br/>
<xsl:call-template name="PopulateText">
<xsl:with-param name="TargetNode" select="$DependencyData/ForeignEmployerAddress/AddressLine2" />
</xsl:call-template><br/>
<xsl:call-template name="PopulateText">
<xsl:with-param name="TargetNode" select="$DependencyData/ForeignEmployerAddress/City" />
</xsl:call-template>,
<xsl:call-template name="PopulateText">
<xsl:with-param name="TargetNode" select="$DependencyData/ForeignEmployerAddress/ProvinceOrState" />
</xsl:call-template>,
<xsl:call-template name="PopulateText">
<xsl:with-param name="TargetNode" select="$DependencyData/ForeignEmployerAddress/PostalCode" />
</xsl:call-template>,
<xsl:call-template name="PopulateText">
<xsl:with-param name="TargetNode" select="$DependencyData/ForeignEmployerAddress/Country" />
</xsl:call-template>
</div>
</div>
<!-- Foreign EIN -->
<div class="styTopSectionLine">
<div class="styTopSectionLineLbl" style="float:left;">
<div class="styBold">Foreign Employer EIN:</div>
</div>
<div class="styExplanationLine" style="float:left">
<xsl:call-template name="PopulateText">
<xsl:with-param name="TargetNode" select="$DependencyData/ForeignEIN" />
</xsl:call-template>
</div>
</div>
<!--Foreign Employer Compensation Amount -->
<div class="styTopSectionLine">
<div class="styTopSectionLineLbl" style="float:left;">
<div class="styBold">Foreign Employer Compensation Amt:</div>
</div><br/>
<div class="styExplanationLine" style="float:left">
<xsl:call-template name="PopulateAmount">
<xsl:with-param name="TargetNode" select="$DependencyData/ForeignEmployerCompensationAmt" />
</xsl:call-template>
</div>
</div>
<!--Foreign Pension Received Amount-->
<div class="styTopSectionLine">
<div class="styTopSectionLineLbl" style="float:left;">
<div class="styBold">Foreign Pension Received Amt:</div>
</div>
<div class="styExplanationLine" style="float:left">
<xsl:call-template name="PopulateAmount">
<xsl:with-param name="TargetNode" select="$DependencyData/ForeignPensionReceivedAmt" />
</xsl:call-template>
</div>
</div>
<!--Foreign Pension Taxable Amount -->
<div class="styTopSectionLine">
<div class="styTopSectionLineLbl" style="float:left;">
<div class="styBold">Foreign Pension Taxable Amt:</div>
</div>
<div class="styExplanationLine" style="float:left">
<xsl:call-template name="PopulateAmount">
<xsl:with-param name="TargetNode" select="$DependencyData/ForeignPensionTaxableAmt" />
</xsl:call-template>
</div>
</div>
</body>
</html>
</xsl:template>
</xsl:stylesheet>