-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAffiliatedGroupSchedule.xsl
364 lines (303 loc) · 16.1 KB
/
AffiliatedGroupSchedule.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
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
<?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/AffiliatedGroupSchedule" />
<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=''">
<!--Generic CSS Styles are located in the template called below -->
<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" style="width: 80mm">
<xsl:value-of select="$depDocTitle" />
</span>
</div>
<!--Adding template for common left over data -->
<xsl:call-template name="PopulateDepCommonLeftover"><xsl:with-param name="TargetNode" select="$DependencyData" /></xsl:call-template>
<table class="styDepTbl">
<!--********************************************************-->
<!--
<thead class="styTableThead">
<tr class="styDepTblHdr">
<th class="styDepTblCell" scope="col" nowrap="nowrap">Business Name</th>
<th class="styDepTblCell" scope="col" nowrap="nowrap">Address US</th>
<th class="styDepTblCell" scope="col" nowrap="nowrap">Foreign Address</th>
<th class="styDepTblCell" scope="col" nowrap="nowrap">EIN</th>
<th class="styDepTblCell" scope="col" nowrap="nowrap">Electing Org</th>
<th class="styDepTblCell" scope="col" nowrap="nowrap">Total Grassroots Lobbying</th>
<th class="styDepTblCell" scope="col" nowrap="nowrap">Total Direct Lobbying</th>
<th class="styDepTblCell" scope="col" nowrap="nowrap">Total Lobbying Expenditures</th>
<th class="styDepTblCell" scope="col" nowrap="nowrap">Other Exempt Purpose Expenditures</th>
<th class="styDepTblCell" scope="col" nowrap="nowrap">Total Exempt Purpose Expenditures</th>
<th class="styDepTblCell" scope="col" nowrap="nowrap">Lobbying Nontaxable Amount</th>
<th class="styDepTblCell" scope="col" nowrap="nowrap">Grassroots Nontaxable Amount</th>
<th class="styDepTblCell" scope="col" nowrap="nowrap">Tot Lobbying Grassroot Minus Non tx</th>
<th class="styDepTblCell" scope="col" nowrap="nowrap">Tot Lobby Expend Mns Lobbying Non tx</th>
<th class="styDepTblCell" scope="col" nowrap="nowrap">Share Of Excess Lobbying Expendtrs</th>
</tr>
</thead>
<tfoot></tfoot>
<tbody>
-->
<xsl:for-each select="$DependencyData/AffiliatedSchedule">
<tr>
<td class="styDepTblCell" style = "width:187mm">
<xsl:attribute name="class">
<xsl:choose>
<xsl:when test="position() mod 2 = 1">styDepTblRow1</xsl:when>
<xsl:otherwise>styDepTblRow2</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<!--Displaying Dependencies-->
<div class="styTopSectionLine">
<div style="float: left; clear: none">
<div style="float:left;clear:none;"><span class="styTopSectionLineLbl" style="font-weight:bold;text-align:left;font-size:10pt;">Affiliated Group Business Name:</span></div>
<div class="styExplanationLine">
<xsl:call-template name="PopulateText">
<xsl:with-param name="TargetNode" select="BusinessName/BusinessNameLine1"/>
</xsl:call-template>
</div>
</div>
</div>
<div class="styTopSectionLine">
<div style="float: left; clear: none">
<div style="float:left;clear:none;"><span class="styTopSectionLineLbl" style="font-weight:bold;text-align:left;font-size:10pt;"></span></div>
<div class="styExplanationLine">
<xsl:call-template name="PopulateText">
<xsl:with-param name="TargetNode" select="BusinessName/BusinessNameLine2"/>
</xsl:call-template>
</div>
</div>
</div>
<div class="styTopSectionLine">
<div style="float: left; clear: none">
<div style="float:left;clear:none;"><span class="styTopSectionLineLbl" style="font-weight:bold;text-align:left;font-size:10pt;">Address. Either US or Foreign Type:</span></div>
<div class="styExplanationLine">
<xsl:if test="AddressUS/AddressLine1 != ''">
<xsl:call-template name="PopulateText">
<xsl:with-param name="TargetNode" select="AddressUS/AddressLine1" />
</xsl:call-template>
</xsl:if>
<xsl:if test="AddressUS/AddressLine1 != ''"><br/></xsl:if>
<xsl:if test="AddressUS/AddressLine2 != ''">
<xsl:call-template name="PopulateText">
<xsl:with-param name="TargetNode" select="AddressUS/AddressLine2" />
</xsl:call-template><br/>
</xsl:if>
<xsl:if test="AddressUS/City != ''">
<xsl:call-template name="PopulateText">
<xsl:with-param name="TargetNode" select="AddressUS/City" />
</xsl:call-template>,
</xsl:if>
<xsl:if test="AddressUS/State != ''">
<xsl:call-template name="PopulateText">
<xsl:with-param name="TargetNode" select="AddressUS/State" />
</xsl:call-template><span style="width: 4px"></span>
</xsl:if>
<xsl:call-template name="PopulateText">
<xsl:with-param name="TargetNode" select="AddressUS/ZIPCode" />
</xsl:call-template>
<!-- foreign Address -->
<xsl:if test="ForeignAddress/AddressLine1 != ''">
<xsl:call-template name="PopulateText">
<xsl:with-param name="TargetNode" select="ForeignAddress/AddressLine1" />
</xsl:call-template><br/>
</xsl:if>
<xsl:if test="ForeignAddress/AddressLine2 != ''">
<xsl:call-template name="PopulateText">
<xsl:with-param name="TargetNode" select="ForeignAddress/AddressLine2" />
</xsl:call-template><br/>
</xsl:if>
<xsl:if test="ForeignAddress/City != ''">
<xsl:call-template name="PopulateText">
<xsl:with-param name="TargetNode" select="ForeignAddress/City" />
</xsl:call-template>,
</xsl:if>
<xsl:if test="ForeignAddress/ProvinceOrState != ''">
<xsl:call-template name="PopulateText">
<xsl:with-param name="TargetNode" select="ForeignAddress/ProvinceOrState" />
</xsl:call-template>,
</xsl:if>
<xsl:call-template name="PopulateText">
<xsl:with-param name="TargetNode" select="ForeignAddress/Country" />
</xsl:call-template>
<span style="width: 4mm"></span>
<xsl:call-template name="PopulateText">
<xsl:with-param name="TargetNode" select="ForeignAddress/PostalCode" />
</xsl:call-template>
</div>
</div>
</div>
<div class="styTopSectionLine">
<div style="float: left; clear: none">
<div style="float:left;clear:none;"><span class="styTopSectionLineLbl" style="font-weight:bold;text-align:left;font-size:10pt;">EIN:</span></div>
<div class="styExplanationLine">
<xsl:call-template name="PopulateEIN">
<xsl:with-param name="TargetNode" select="EIN"/>
</xsl:call-template>
</div>
</div>
</div>
<div class="styTopSectionLine">
<div style="float: left; clear: none">
<div style="float:left;clear:none;"><span class="styTopSectionLineLbl" style="font-weight:bold;text-align:left;font-size:10pt;">Electing Organization Checkbox:</span></div>
<div class="styExplanationLine">
<input type="checkbox" class="styCkbox">
<xsl:call-template name="PopulateCheckbox">
<xsl:with-param name="TargetNode" select="ElectingOrg"/>
<xsl:with-param name="BackupName">IRS1065ScheduleKTotalForeignTaxesPaid</xsl:with-param>
</xsl:call-template>
</input>
</div>
</div>
</div>
<div class="styTopSectionLine">
<div style="float: left; clear: none">
<div style="float:left;clear:none;"><span class="styTopSectionLineLbl" style="font-weight:bold;text-align:left;font-size:10pt;">Total Grassroots Lobbying:</span></div>
<div style="float:left;clear:none;width:44mm;text-align:left">
<xsl:call-template name="PopulateAmount">
<xsl:with-param name="TargetNode" select="TotalGrassrootsLobbying"/>
</xsl:call-template>
</div>
</div>
</div>
<div class="styTopSectionLine">
<div style="float: left; clear: none">
<div style="float:left;clear:none;"><span class="styTopSectionLineLbl" style="font-weight:bold;text-align:left;font-size:10pt;">Total Direct Lobbying:</span></div>
<div style="float:left;clear:none;width:44mm;text-align:left">
<xsl:call-template name="PopulateAmount">
<xsl:with-param name="TargetNode" select="TotalDirectLobbying"/>
</xsl:call-template>
</div>
</div>
</div>
<div class="styTopSectionLine">
<div style="float: left; clear: none">
<div style="float:left;clear:none;"><span class="styTopSectionLineLbl" style="font-weight:bold;text-align:left;font-size:10pt;">Total Lobbying Expenditures:</span></div>
<div style="float:left;clear:none;width:44mm;text-align:left">
<xsl:call-template name="PopulateAmount">
<xsl:with-param name="TargetNode" select="TotalLobbyingExpenditures"/>
</xsl:call-template>
</div>
</div>
</div>
<div class="styTopSectionLine">
<div style="float: left; clear: none">
<div style="float:left;clear:none;"><span class="styTopSectionLineLbl" style="font-weight:bold;text-align:left;font-size:10pt;">Other Exempt Purpose Expenditures:</span></div>
<div style="float:left;clear:none;width:44mm;text-align:left">
<xsl:call-template name="PopulateAmount">
<xsl:with-param name="TargetNode" select="OtherExemptPurposeExpenditures"/>
</xsl:call-template>
</div>
</div>
</div>
<div class="styTopSectionLine">
<div style="float: left; clear: none">
<div style="float:left;clear:none;"><span class="styTopSectionLineLbl" style="font-weight:bold;text-align:left;font-size:10pt;">Total Exempt Purpose Expenditures:</span></div>
<div style="float:left;clear:none;width:44mm;text-align:left">
<xsl:call-template name="PopulateAmount">
<xsl:with-param name="TargetNode" select="TotalExemptPurposeExpenditures"/>
</xsl:call-template>
</div>
</div>
</div>
<div class="styTopSectionLine">
<div style="float: left; clear: none">
<div style="float:left;clear:none;"><span class="styTopSectionLineLbl" style="font-weight:bold;text-align:left;font-size:10pt;">Lobbying Nontaxable Amount:</span></div>
<div style="float:left;clear:none;width:44mm;text-align:left">
<xsl:call-template name="PopulateAmount">
<xsl:with-param name="TargetNode" select="LobbyingNontaxableAmount"/>
</xsl:call-template>
</div>
</div>
</div>
<div class="styTopSectionLine">
<div style="float: left; clear: none">
<div style="float:left;clear:none;"><span class="styTopSectionLineLbl" style="font-weight:bold;text-align:left;font-size:10pt;">Grassroots Nontaxable Amount:</span></div>
<div style="float:left;clear:none;width:44mm;text-align:left">
<xsl:call-template name="PopulateAmount">
<xsl:with-param name="TargetNode" select="GrassrootsNontaxableAmount"/>
</xsl:call-template>
</div>
</div>
</div>
<div class="styTopSectionLine">
<div style="float: left; clear: none">
<div style="float:left;clear:none;"><span class="styTopSectionLineLbl" style="font-weight:bold;text-align:left;font-size:10pt;">Tot Lobbying Grassroot Minus Non Tx:</span></div>
<div style="float:left;clear:none;width:44mm;text-align:left">
<xsl:call-template name="PopulateAmount">
<xsl:with-param name="TargetNode" select=" TotLobbyingGrassrootMinusNontx"/>
</xsl:call-template>
</div>
</div>
</div>
<div class="styTopSectionLine">
<div style="float: left; clear: none">
<div style="float:left;clear:none;"><span class="styTopSectionLineLbl" style="font-weight:bold;text-align:left;font-size:10pt;">Tot Lobby Expend Mns Lobbying Non Tx:</span></div>
<div style="float:left;clear:none;width:44mm;text-align:left">
<xsl:call-template name="PopulateAmount">
<xsl:with-param name="TargetNode" select="TotLobbyExpendMnsLobbyingNontx"/>
</xsl:call-template>
</div>
</div>
</div>
<div class="styTopSectionLine">
<div style="float: left; clear: none">
<div style="float:left;clear:none;"><span class="styTopSectionLineLbl" style="font-weight:bold;text-align:left;font-size:10pt;">Share Of Excess Lobbying:</span></div>
<div style="float:left;clear:none;width:44mm;text-align:left">
<xsl:call-template name="PopulateAmount">
<xsl:with-param name="TargetNode" select="ShareOfExcessLobbyingExpendtrs"/>
</xsl:call-template>
</div>
</div>
</div>
<!-->
<div class="styTopSectionLine">
<div style="float: left; clear: none">
<div style="float:left;clear:none;"><span class="styTopSectionLineLbl" style="font-weight:bold;text-align:right;font-size:10pt;">Expenditures:</span></div>
<div class="styExplanationLine">
<xsl:call-template name="PopulateText">
<xsl:with-param name="TargetNode" select="Expenditures"/>
</xsl:call-template>
</div>
</div>
</div>
-->
</td>
</tr>
</xsl:for-each>
<!-- </tbody>-->
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>