-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIRS1120ScheduleG.xsl
799 lines (799 loc) · 37.6 KB
/
IRS1120ScheduleG.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
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xsl:stylesheet [
<!ENTITY nbsp " ">
]>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="html" indent="yes"/>
<xsl:strip-space elements="*"/>
<xsl:include href="PopulateTemplate.xsl"/>
<xsl:include href="AddHeader.xsl"/>
<xsl:include href="CommonPathRef.xsl"/>
<xsl:include href="AddOnTable.xsl"/>
<xsl:include href="IRS1120ScheduleGStyle.xsl"/>
<xsl:param name="FormData" select="$RtnDoc/IRS1120ScheduleG"/>
<xsl:template match="/">
<html>
<head>
<!-- Set Document Title -->
<title>
<xsl:call-template name="FormTitle">
<xsl:with-param name="RootElement" select="local-name($FormData)"/>
</xsl:call-template>
</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"/>
<!-- Set Target to Top -->
<!-- <meta http-equiv="Window-target" content="_top" /> -->
<!-- Set Filename and Description -->
<meta name="Description" content="Schedule G (Form 1120)"/>
<script language="JavaScript" src="{$ScriptPath}/FormDisplay.js" type="text/javascript"/>
<xsl:call-template name="InitJS"/>
<style type="text/css">
<!--Note:
Part I Table; Form PDF shows 10 data rows and scroll bar will display on 11 data rows;
Part II Table: Form PDF shows 10 data rows and no scroll bar will display becz table is at the end of the form.
-->
<xsl:if test="not($Print) or $Print=''">
<xsl:call-template name="IRS1120ScheduleGStyle"/>
<xsl:call-template name="AddOnStyle"/>
</xsl:if>
</style>
<xsl:call-template name="GlobalStylesForm"/>
</head>
<!-- <body onload="init();"> -->
<body class="styBodyClass">
<form name="Form1120ScheduleG">
<!-- END FORM HEADER -->
<xsl:call-template name="DocumentHeader"/>
<div class="IRS1120ScheduleG_styBB" style="width:187mm;">
<div class="styFNBox" style="width:33.3mm;height:23mm;">
<div class="styFormNumber" style="font-size: 10pt;">
SCHEDULE G<br/>
<div class="styFormNumber" style="font-size: 9pt;">(Form 1120)</div>
<span style="font-size:7pt;">(Rev. December 2011) </span>
</div>
<!--General Dependency Push Pin -->
<xsl:call-template name="SetFormLinkInline">
<xsl:with-param name="TargetNode" select="$FormData"/>
</xsl:call-template>
<br/>
<span class="styAgency">Department of the Treasury</span>
<br/>
<span class="styAgency">Internal Revenue Service</span>
</div>
<div class="styFTBox" style="width:120mm;height:23mm;">
<div class="styMainTitle" style="height:8mm;">
Information on Certain Persons Owning the
<span style=" padding-left:2mm;width:118mm;text-align:center">
Corporation's Voting Stock
</span>
</div>
<br/>
<span style="text-align:center;">
<img src="{$ImagePath}/1120_Bullet_Md.gif" alt="MediumBullet"/>
<b>Attach to Form 1120. </b>
</span>
</div>
<div class="styTYBox" style="width:30mm;height:23mm;">
<div class="styOMB" style="height:2mm;border-bottom-width:0px;">OMB No. 1545-0123</div>
<!--<div class="styTY" style="height:10mm;padding-top:2mm">20<span class="styTYColor">11</span></div>-->
</div>
</div>
<!-- BEGIN FORM HEADER -->
<!-- BEGIN TAXPAYER INFO -->
<div style="width:186mm;float:left;clear:left;border-top:1 solid black;">
<!-- Name -->
<div class="styNameBox" style="width:136mm;height:8mm;font-size:7pt;font-weight:normal;">
Name<br/>
<span>
<xsl:call-template name="PopulateReturnHeaderFiler">
<xsl:with-param name="TargetNode">BusinessNameLine1</xsl:with-param>
</xsl:call-template>
<br/>
<xsl:call-template name="PopulateReturnHeaderFiler">
<xsl:with-param name="TargetNode">BusinessNameLine2</xsl:with-param>
</xsl:call-template>
</span>
</div>
<!-- EIN -->
<div class="styEINBox" style="width:50mm;height:8mm;padding-left:2mm;font-size:6pt;font-weight:bold;">
Employer identification number (EIN)
<br/>
<br/>
<span style="text-align:left;font-weight:normal;">
<xsl:call-template name="PopulateReturnHeaderFiler">
<xsl:with-param name="TargetNode">EIN</xsl:with-param>
</xsl:call-template>
</span>
</div>
</div>
<!-- END TAXPAYER INFO -->
<!-- BEGIN PART I HEADER -->
<!-- BEGIN PART I -->
<div class="styBB" style="width:187mm;border-top-width:1px">
<div class="styPartName" style="width:23mm;">Part I</div>
<div class="styPartDesc" style="width:164mm;font-weight:normal">
<b>Certain Entities Owning the Corporation’s Voting Stock. </b>(Form 1120, Schedule K,
Question 4a). Complete columns (i) through (v) below for any foreign or domestic corporation,
partnership (including any entity treated as a partnership), trust, or tax-exempt organization
that owns directly 20% or more, or owns, directly or indirectly, 50% or more of the total voting
power of all classes of the corporation’s stock entitled to vote (see instructions).
</div>
</div>
<div>
<!-- END PART I HEADER -->
<!-- button display logic -->
<div class="styBB" style="width:187mm;float:none;clear:none;border-top-width:1px;">
<div class="styGenericDiv" style="height:4mm;padding-top:0mm;float:right;">
<xsl:call-template name="SetDynamicTableToggleButton">
<xsl:with-param name="TargetNode" select="$FormData/EntityInformation"/>
<xsl:with-param name="containerHeight" select="6"/>
<xsl:with-param name="headerHeight" select="1"/>
<xsl:with-param name="containerID" select="'EntityInformationTableContainer'"/>
</xsl:call-template>
</div>
</div>
<!-- end button display logic -->
<!-- END PART I HEADER -->
<div class="IRS1120ScheduleG_styTableContainer" id="EntityInformationTableContainer">
<!-- print logic -->
<xsl:call-template name="SetInitialState"/>
<!-- end -->
<table class="IRS1120ScheduleG_styTable" cellspacing="0" name="STCapGainTable" id="STCapGainTable">
<!-- BEGIN PART I TABLE HEADER -->
<tr>
<th class="IRS1120ScheduleG_styTableCellA" style="width:70mm;text-align:center;font-weight:normal;" scope="col">
(i) Name of Entity
</th>
<th class="IRS1120ScheduleG_styTableCellB" style="width20mm;font-weight:normal;" scope="col">
(ii) Employer Identification Number<br/> (if any)
</th>
<th class="IRS1120ScheduleG_styTableCellC" style="text-align:center;font-weight:normal;" scope="col">
(iii) Type of Entity
</th>
<th class="IRS1120ScheduleG_styTableCellD" style="text-align:center;font-weight:normal;" scope="col">
(iv) Country of<br/>Organization
</th>
<th class="IRS1120ScheduleG_styTableCellE" style="text-align:center;font-weight:normal;border-right-width:0px" scope="col">
(v) Percentage Owned<br/>in Voting Stock
</th>
</tr>
<!-- END PART I TABLE HEADER -->
<!-- BEGIN PART I TABLE -->
<!-- Display all rows: If the print parameter is not set to be Separated, OR -->
<!-- If the print parameter is separated, but there are fewer elements than the container height (7) -->
<xsl:if test="($Print != $Separated) or (count($FormData/EntityInformation) <= 6) ">
<xsl:for-each select="$FormData/EntityInformation">
<tr>
<td class="IRS1120ScheduleG_styTableCellA" style="width:70mm;" scope="row">
<!-- If this is the last row, do not display a bottom line -->
<xsl:if test="(position() = last()) and (count($FormData/EntityInformation) >5)">
<xsl:attribute name="style">border-bottom-width:0px;width:70mm;</xsl:attribute>
</xsl:if>
<!--<span class="IRS1120ScheduleG_styLN" style="font-size:8pt;">
<xsl:if test="position() = 1"/></span>-->
<!--modify left border for this cell here -->
<xsl:call-template name="PopulateText">
<xsl:with-param name="TargetNode" select="EntityName/BusinessNameLine1"/>
</xsl:call-template>
<br/>
<xsl:call-template name="PopulateText">
<xsl:with-param name="TargetNode" select="EntityName/BusinessNameLine2"/>
</xsl:call-template>
</td>
<td class="IRS1120ScheduleG_styTableCellB" style="padding-left:2mm;text-align:left">
<xsl:if test="EmplrIdentificationNumber">
<xsl:call-template name="PopulateEIN">
<xsl:with-param name="TargetNode" select="EmplrIdentificationNumber"/>
</xsl:call-template>
</xsl:if>
<xsl:if test="EINMissingReason">
<xsl:call-template name="PopulateText">
<xsl:with-param name="TargetNode" select="EINMissingReason"/>
</xsl:call-template>
</xsl:if>
</td>
<td class="IRS1120ScheduleG_styTableCellC" style="padding-left:2mm;text-align:left">
<xsl:call-template name="PopulateText">
<xsl:with-param name="TargetNode" select="EntityType"/>
</xsl:call-template>
</td>
<td class="IRS1120ScheduleG_styTableCellD" style="padding-left:2mm;text-align:center">
<xsl:call-template name="PopulateText">
<xsl:with-param name="TargetNode" select="CountryOfOrganization"/>
</xsl:call-template>
</td>
<td class="IRS1120ScheduleG_styTableCellE" style="text-align:right;padding-right:4mm;border-right-width:0px">
<xsl:call-template name="PopulatePercent">
<xsl:with-param name="TargetNode" select="PercentageOwnedVotingStock"/>
</xsl:call-template>
</td>
<td class="IRS1120ScheduleG_styTableLastCol" id="Table1LastCol"/>
</tr>
</xsl:for-each>
</xsl:if>
<!-- Build blank row 1 for Part I table -->
<xsl:if test="count($FormData/EntityInformation) < 1 or
((count($FormData/EntityInformation) > 6) and ($Print = $Separated))">
<tr>
<td class="IRS1120ScheduleG_styTableCellA">
<span class="IRS1120ScheduleG_styLN" style="font-size:8pt"/>
<xsl:call-template name="PopulateAdditionalDataTableMessage">
<xsl:with-param name="TargetNode" select="$FormData/EntityInformation"/>
</xsl:call-template>
</td>
<td class="IRS1120ScheduleG_styTableCellB">
<span style="width: 4px"/>
</td>
<td class="IRS1120ScheduleG_styTableCellC">
<span style="width: 4px"/>
</td>
<td class="IRS1120ScheduleG_styTableCellD">
<span style="width: 4px"/>
</td>
<td class="IRS1120ScheduleG_styTableCellE" style="border-right-width:0px">
<span style="width: 4px"/>
</td>
</tr>
</xsl:if>
<!-- Build blank row 2 for Part I table -->
<xsl:if test="count($FormData/EntityInformation) < 2 or
((count($FormData/EntityInformation) > 6) and ($Print = $Separated))">
<tr>
<td class="IRS1120ScheduleG_styTableCellA">
<span style="width: 4px"/>
</td>
<td class="IRS1120ScheduleG_styTableCellB">
<span style="width: 4px"/>
</td>
<td class="IRS1120ScheduleG_styTableCellC">
<span style="width: 4px"/>
</td>
<td class="IRS1120ScheduleG_styTableCellD">
<span style="width: 4px"/>
</td>
<td class="IRS1120ScheduleG_styTableCellE" style="border-right-width:0px">
<span style="width: 4px"/>
</td>
</tr>
</xsl:if>
<!-- Build blank row 3 for Part I table -->
<xsl:if test="count($FormData/EntityInformation) < 3 or
((count($FormData/EntityInformation) > 6) and ($Print = $Separated))">
<tr>
<td class="IRS1120ScheduleG_styTableCellA">
<span style="width: 4px"/>
</td>
<td class="IRS1120ScheduleG_styTableCellB">
<span style="width: 4px"/>
</td>
<td class="IRS1120ScheduleG_styTableCellC">
<span style="width: 4px"/>
</td>
<td class="IRS1120ScheduleG_styTableCellD">
<span style="width: 4px"/>
</td>
<td class="IRS1120ScheduleG_styTableCellE" style="border-right-width:0px">
<span style="width: 4px"/>
</td>
</tr>
</xsl:if>
<!-- Build blank row 4 for Part I table -->
<xsl:if test="count($FormData/EntityInformation) < 4 or
((count($FormData/EntityInformation) > 6) and ($Print = $Separated))">
<tr>
<td class="IRS1120ScheduleG_styTableCellA">
<span style="width: 4px"/>
</td>
<td class="IRS1120ScheduleG_styTableCellB">
<span style="width: 4px"/>
</td>
<td class="IRS1120ScheduleG_styTableCellC">
<span style="width: 4px"/>
</td>
<td class="IRS1120ScheduleG_styTableCellD">
<span style="width: 4px"/>
</td>
<td class="IRS1120ScheduleG_styTableCellE" style="border-right-width:0px">
<span style="width: 4px"/>
</td>
</tr>
</xsl:if>
<!-- Build blank row 5 for Part I table -->
<xsl:if test="count($FormData/EntityInformation) < 5 or
((count($FormData/EntityInformation) > 6) and ($Print = $Separated))">
<tr>
<td class="IRS1120ScheduleG_styTableCellA">
<span style="width: 4px"/>
</td>
<td class="IRS1120ScheduleG_styTableCellB">
<span style="width: 4px"/>
</td>
<td class="IRS1120ScheduleG_styTableCellC">
<span style="width: 4px"/>
</td>
<td class="IRS1120ScheduleG_styTableCellD">
<span style="width: 4px"/>
</td>
<td class="IRS1120ScheduleG_styTableCellE" style="border-right-width:0px">
<span style="width: 4px"/>
</td>
</tr>
</xsl:if>
<!-- Build blank row 6 for Part I table -->
<xsl:if test="count($FormData/EntityInformation) < 6 or
((count($FormData/EntityInformation) > 6) and ($Print = $Separated))">
<tr>
<td class="IRS1120ScheduleG_styTableCellA" style="border-bottom-width:0px">
<span style="width: 4px"/>
</td>
<td class="IRS1120ScheduleG_styTableCellB" style="border-bottom-width:0px">
<span style="width: 4px"/>
</td>
<td class="IRS1120ScheduleG_styTableCellC" style="border-bottom-width:0px">
<span style="width: 4px"/>
</td>
<td class="IRS1120ScheduleG_styTableCellD" style="border-bottom-width:0px">
<span style="width: 4px"/>
</td>
<td class="IRS1120ScheduleG_styTableCellE" style="border-bottom-width:0px;border-right-width:0px">
<span style="width: 4px"/>
</td>
</tr>
</xsl:if>
</table>
</div>
</div>
<xsl:call-template name="SetInitialDynamicTableHeight">
<xsl:with-param name="TargetNode" select="$FormData/EntityInformation"/>
<xsl:with-param name="containerHeight" select="6"/>
<xsl:with-param name="headerHeight" select="1"/>
<xsl:with-param name="containerID" select="'EntityInformationTableContainer'"/>
</xsl:call-template>
<!-- END PART I TABLE -->
<!-- &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& -->
<!-- BEGIN PART II HEADER -->
<!-- BEGIN PART II -->
<div class="styBB" style="width:187mm;border-top-width:0px">
<div class="styPartName" style="width:23mm;">Part II</div>
<div class="styPartDesc" style="width:164mm;font-weight:normal">
<b>Certain Individuals and Estates Owning the Corporation’s Voting Stock. </b>(Form 1120, Schedule K,
Question 4b). Complete columns (i) through (iv) below for any individual or estate that owns directly 20%
or more, or owns, directly or indirectly, 50% or more of the total voting power of all classes of the
corporation’s stock entitled to vote (see instructions).
</div>
</div>
<!-- END PART II HEADER -->
<!-- BEGIN PART II TABLE -->
<!-- button display logic -->
<div class="styBB" style="width:187mm;float:none;clear:none;border-top-width:1px;">
<div class="styGenericDiv" style="height:4mm;padding-top:0mm;float:right;">
<xsl:call-template name="SetDynamicTableToggleButton">
<xsl:with-param name="TargetNode" select="$FormData/IndividualInformation"/>
<xsl:with-param name="containerHeight" select="6"/>
<xsl:with-param name="headerHeight" select="1"/>
<xsl:with-param name="containerID" select="'IndividualInformationTableContainer'"/>
</xsl:call-template>
</div>
</div>
<!-- end button display logic -->
<div class="IRS1120ScheduleG_styTableContainer" id="IndividualInformationTableContainer">
<!-- print logic -->
<xsl:call-template name="SetInitialState"/>
<!-- end -->
<table class="IRS1120ScheduleG_styTable" cellspacing="0" name="STCapGainTable" id="STCapGainTable">
<tr>
<th class="IRS1120ScheduleG_styTableCellA" style="width:70mm;text-align:center;font-weight:normal;" scope="col">
(i) Name of Individual or Estate
</th>
<th class="IRS1120ScheduleG_styTableCellB" style="width20mm;font-weight:normal;" scope="col">
(ii) Identifying Number <br/>(if any)
</th>
<th class="IRS1120ScheduleG_styTableCellD" style="text-align:center;font-weight:normal;" scope="col">
(iii) Country of Citzenship<br/>(see instructions)
</th>
<th class="IRS1120ScheduleG_styTableCellE" style="text-align:center;font-weight:normal;border-right-width:0px" scope="col">
(iv) Percentage Owned <br/>in Voting Stock
</th>
</tr>
<!-- END PART I TABLE HEADER -->
<!-- BEGIN PART I TABLE -->
<!-- Display all rows: If the print parameter is not set to be Separated, OR -->
<!-- If the print parameter is separated, but there are fewer elements than the container height (7) -->
<xsl:if test="($Print != $Separated) or (count($FormData/IndividualInformation) <= 6) ">
<xsl:for-each select="$FormData/IndividualInformation">
<tr>
<td class="IRS1120ScheduleG_styTableCellA" style="width:70mm;" scope="row">
<!-- If this is the last row, do not display a bottom line -->
<xsl:if test="(position() = last()) and (count($FormData/IndividualInformation) >5)">
<xsl:attribute name="style">border-bottom-width:0px;width:70mm;</xsl:attribute>
</xsl:if>
<!--<span class="IRS1120ScheduleG_styLN" style="font-size:8pt;">
<xsl:if test="position() = 1"/></span>-->
<!--modify left border for this cell here -->
<xsl:call-template name="PopulateText">
<xsl:with-param name="TargetNode" select="IndividualEstateName"/>
</xsl:call-template>
</td>
<td class="IRS1120ScheduleG_styTableCellB" style="padding-left:2mm;text-align:left">
<xsl:if test="IdentifyingNumber">
<xsl:call-template name="PopulateEIN">
<xsl:with-param name="TargetNode" select="IdentifyingNumber"/>
</xsl:call-template>
</xsl:if>
<xsl:if test="IdentifyingSSNNumber">
<xsl:call-template name="PopulateSSN">
<xsl:with-param name="TargetNode" select="IdentifyingSSNNumber"/>
</xsl:call-template>
</xsl:if>
<xsl:if test="MissingIdentifyingNumberReason">
<xsl:call-template name="PopulateText">
<xsl:with-param name="TargetNode" select="MissingIdentifyingNumberReason"/>
</xsl:call-template>
</xsl:if>
<xsl:if test="Blank">
<xsl:call-template name="PopulateText">
<xsl:with-param name="TargetNode" select="Blank"/>
</xsl:call-template>
</xsl:if>
</td>
<td class="IRS1120ScheduleG_styTableCellD" style="padding-left:2mm;text-align:center">
<xsl:call-template name="PopulateText">
<xsl:with-param name="TargetNode" select="CountryOfCitizenship"/>
</xsl:call-template>
</td>
<td class="IRS1120ScheduleG_styTableCellE" style="text-align:right;border-right-width:0px">
<!-- If this is the last row, do not display a bottom line
<xsl:if test="(position() = last()) and (count($FormData/ShortTermCapitalGainAndLoss) >6)">
<xsl:attribute name="style">border-bottom-width:0px;</xsl:attribute>
</xsl:if> -->
<span style="text-align:left;width:3mm;" class="styGenericDiv"/>
<span style="text-align:right;float:right;" class="styGenericDiv">
<xsl:call-template name="PopulatePercent">
<xsl:with-param name="TargetNode" select="VotingStockPercentageOwned"/>
</xsl:call-template>
</span>
</td>
<td class="IRS1120ScheduleG_styTableLastCol" id="Table1LastCol"/>
</tr>
</xsl:for-each>
</xsl:if>
<!-- Depending on the number of data rows, insert blank rows to fill the container height -->
<!-- For separated print where there are more data elements than the container height, -->
<!-- display a message in the first row directing the user to the additional data table -->
<!-- Build blank row 1 for Part II Table -->
<xsl:if test="count($FormData/IndividualInformation) < 1 or
((count($FormData/IndividualInformation) > 6) and ($Print = $Separated))">
<tr>
<td class="IRS1120ScheduleG_styTableCellA">
<span class="IRS1120ScheduleG_styLN" style="font-size:8pt"/>
<xsl:call-template name="PopulateAdditionalDataTableMessage">
<xsl:with-param name="TargetNode" select="$FormData/EntityInformation"/>
</xsl:call-template>
</td>
<td class="IRS1120ScheduleG_styTableCellB">
<span style="width: 4px"/>
</td>
<td class="IRS1120ScheduleG_styTableCellD">
<span style="width: 4px"/>
</td>
<td class="IRS1120ScheduleG_styTableCellE" style="border-right-width:0px">
<span style="width: 4px"/>
</td>
</tr>
</xsl:if>
<!-- Build blank row 2 for Part II Table -->
<xsl:if test="count($FormData/IndividualInformation) < 2 or
((count($FormData/IndividualInformation) > 6) and ($Print = $Separated))">
<tr>
<td class="IRS1120ScheduleG_styTableCellA">
<span style="width: 4px"/>
</td>
<td class="IRS1120ScheduleG_styTableCellB">
<span style="width: 4px"/>
</td>
<td class="IRS1120ScheduleG_styTableCellD">
<span style="width: 4px"/>
</td>
<td class="IRS1120ScheduleG_styTableCellE" style="border-right-width:0px">
<span style="width: 4px"/>
</td>
</tr>
</xsl:if>
<!-- Build blank row 3 for Part II Table -->
<xsl:if test="count($FormData/IndividualInformation) < 3 or
((count($FormData/IndividualInformation) > 6) and ($Print = $Separated))">
<tr>
<td class="IRS1120ScheduleG_styTableCellA">
<span style="width: 4px"/>
</td>
<td class="IRS1120ScheduleG_styTableCellB">
<span style="width: 4px"/>
</td>
<td class="IRS1120ScheduleG_styTableCellC">
<span style="width: 4px"/>
</td>
<td class="IRS1120ScheduleG_styTableCellD" style="border-right-width:0px">
<span style="width: 4px"/>
</td>
</tr>
</xsl:if>
<!-- Build blank row 4 for Part II Table -->
<xsl:if test="count($FormData/IndividualInformation) < 4 or
((count($FormData/IndividualInformation) > 6) and ($Print = $Separated))">
<tr>
<td class="IRS1120ScheduleG_styTableCellA">
<span style="width: 4px"/>
</td>
<td class="IRS1120ScheduleG_styTableCellB">
<span style="width: 4px"/>
</td>
<td class="IRS1120ScheduleG_styTableCellC">
<span style="width: 4px"/>
</td>
<td class="IRS1120ScheduleG_styTableCellD" style="border-right-width:0px">
<span style="width: 4px"/>
</td>
</tr>
</xsl:if>
<!-- Build blank row 5 for Part II Table -->
<xsl:if test="count($FormData/IndividualInformation) < 5 or
((count($FormData/IndividualInformation) > 6) and ($Print = $Separated))">
<tr>
<td class="IRS1120ScheduleG_styTableCellA">
<span style="width: 4px"/>
</td>
<td class="IRS1120ScheduleG_styTableCellB">
<span style="width: 4px"/>
</td>
<td class="IRS1120ScheduleG_styTableCellC">
<span style="width: 4px"/>
</td>
<td class="IRS1120ScheduleG_styTableCellD" style="border-right-width:0px">
<span style="width: 4px"/>
</td>
</tr>
</xsl:if>
<!-- Build blank row 6 for Part II Table -->
<xsl:if test="count($FormData/IndividualInformation) < 6 or
((count($FormData/IndividualInformation) > 6) and ($Print = $Separated))">
<tr>
<td class="IRS1120ScheduleG_styTableCellA" style="border-bottom-width:0px">
<span style="width: 4px"/>
</td>
<td class="IRS1120ScheduleG_styTableCellB" style="border-bottom-width:0px">
<span style="width: 4px"/>
</td>
<td class="IRS1120ScheduleG_styTableCellC" style="border-bottom-width:0px">
<span style="width: 4px"/>
</td>
<td class="IRS1120ScheduleG_styTableCellD" style="border-bottom-width:0px;border-right-width:0px">
<span style="width: 4px"/>
</td>
</tr>
</xsl:if>
</table>
</div>
<xsl:call-template name="SetInitialDynamicTableHeight">
<xsl:with-param name="TargetNode" select="$FormData/IndividualInformation"/>
<xsl:with-param name="containerHeight" select="6"/>
<xsl:with-param name="headerHeight" select="1"/>
<xsl:with-param name="containerID" select="'IndividualInformationTableContainer'"/>
</xsl:call-template>
<!-- END PART II TABLE -->
<!-- &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& -->
<!-- BEGIN FOOTER -->
<div class="IRS1120ScheduleG_styFormFooter" style="width:187mm;border-top-width: 0px;">
<span style="width:103mm;font-weight:bold;font-size:6.5pt;" class="styGenericDiv">
For Privacy Act and Paperwork Reduction Act Notice, see the Instructions.
</span>
<span class="styGenericDiv" style="font-weight:normal;font-size:7pt;text-align:center;" >Cat. No. 52684S</span>
<span class="styGenericDiv" style="float:right;width:57.5mm;font-weight:bold;font-size:7pt;">
Schedule G (Form 1120) (Rev. 12-2011)
</span>
</div>
<!-- BEGIN FOOTER -->
</form>
<!-- leftover data table -->
<br class="pageend"/>
<div class="styLeftOverTitleLine" id="LeftoverData">
<div class="styLeftOverTitle">
Additional Data
</div>
<div class="styLeftOverButtonContainer">
<input class="styLeftoverTableBtn" TabIndex="1" type="button" value="Return to Form" onclick="javascript:returnToWriteInImage();"/>
</div>
</div>
<table class="styLeftOverTbl">
<xsl:call-template name="PopulateCommonLeftover">
<xsl:with-param name="TargetNode" select="$FormData"/>
<xsl:with-param name="DescWidth" select="100"/>
</xsl:call-template>
</table>
<!-- Additonal Data Table for Part I -->
<xsl:if test="($Print = $Separated) and (count($FormData/EntityInformation) > 7)">
<span class="styRepeatingDataTitle">
<br/>Form 1120 Schedule G, Part I, - Entity Information
</span>
<table class="styDepTbl" style="font-size:7pt">
<thead class="styTableHead">
<tr>
<th class="IRS1120ScheduleG_styTableCellA" style="width:70mm;text-align:center;font-weight:normal;" scope="col">
<span style="font-weight:bold;">(i) Name of Entity </span>
</th>
<th class="IRS1120ScheduleG_styTableCellB" style="width20mm;font-weight:normal;" scope="col">
<span style="font-weight:bold;">(ii) Employer Identification Number<br/> (if any) </span>
</th>
<th class="IRS1120ScheduleG_styTableCellC" style="text-align:center;font-weight:normal;" scope="col">
<span style="font-weight:bold;">(iii) Type of Entity</span>
</th>
<th class="IRS1120ScheduleG_styTableCellD" style="text-align:center;font-weight:normal;" scope="col">
<span style="font-weight:bold;">(iv) Country of <br/>Organization</span>
</th>
<th class="IRS1120ScheduleG_styTableCellE" style="text-align:center;font-weight:normal;border-right-width:0px" scope="col">
<span style="font-weight:bold;">(v) Percentage Owned<br/>in Voting Stock</span>
</th>
</tr>
</thead>
<tbody>
<xsl:for-each select="$FormData/EntityInformation">
<tr>
<!--Define background colors to the rows -->
<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>
<td class="IRS1120ScheduleG_styTableCellA" style="width:70mm;padding-left:2mm;text-align:left;" scope="row">
<!-- If this is the last row, do not display a bottom line -->
<xsl:if test="(position() = last()) and (count($FormData/EntityInformation) >5)">
<xsl:attribute name="style">border-bottom-width:0px;width:70mm;padding-left:2mm;text-align:left;</xsl:attribute>
</xsl:if>
<!--modify left border for this cell here -->
<xsl:call-template name="PopulateText">
<xsl:with-param name="TargetNode" select="EntityName/BusinessNameLine1"/>
</xsl:call-template>
<br/>
<xsl:call-template name="PopulateText">
<xsl:with-param name="TargetNode" select="EntityName/BusinessNameLine2"/>
</xsl:call-template>
</td>
<td class="IRS1120ScheduleG_styTableCellB" style="padding-left:2mm;text-align:left">
<xsl:if test="EmplrIdentificationNumber">
<xsl:call-template name="PopulateEIN">
<xsl:with-param name="TargetNode" select="EmplrIdentificationNumber"/>
</xsl:call-template>
</xsl:if>
<xsl:if test="EINMissingReason">
<xsl:call-template name="PopulateText">
<xsl:with-param name="TargetNode" select="EINMissingReason"/>
</xsl:call-template>
</xsl:if>
</td>
<td class="IRS1120ScheduleG_styTableCellC" style="padding-left:2mm;text-align:left;">
<xsl:call-template name="PopulateText">
<xsl:with-param name="TargetNode" select="EntityType"/>
</xsl:call-template>
</td>
<td class="IRS1120ScheduleG_styTableCellD" style="text-align:center;">
<xsl:call-template name="PopulateText">
<xsl:with-param name="TargetNode" select="CountryOfOrganization"/>
</xsl:call-template>
</td>
<td class="IRS1120ScheduleG_styTableCellE" style="text-align:right;padding-right:2mm;border-right-width:0px">
<span style="text-align:left;width:3mm;" class="styGenericDiv"/>
<span style="text-align:right;float:right;" class="styGenericDiv">
<xsl:call-template name="PopulatePercent">
<xsl:with-param name="TargetNode" select="PercentageOwnedVotingStock"/>
</xsl:call-template>
</span>
</td>
<td class="IRS1120ScheduleG_styTableLastCol" id="Table1LastCol"/>
</tr>
</xsl:for-each>
</tbody>
</table>
</xsl:if>
<!-- End Part I separated data -->
<!-- Additonal Data Table for Part II -->
<xsl:if test="($Print = $Separated) and (count($FormData/IndividualInformation) > 7)">
<span class="styRepeatingDataTitle">
<br/>
Form 1120 Schedule G, Part II - Individual Information
</span>
<table class="styDepTbl" style="font-size:7pt">
<thead class="styTableHead">
<tr>
<th class="IRS1120ScheduleG_styTableCellA" style="width:90mm;font-weight:normal;text-align:center" scope="col">
<span style="font-weight:bold;">(i) Name of Individual or Estate </span>
</th>
<th class="IRS1120ScheduleG_styTableCellA" style="width:20mm;text-align:center;font-weight:normal;" scope="col">
<span style="font-weight:bold;text-align:center">(ii) Identifying Number<br/> (if any)</span>
</th>
<th class="IRS1120ScheduleG_styTableCellA" style="width:40mm;text-align:center;font-weight:normal;" scope="col">
<span style="font-weight:bold;">(iii) Country of Citizenship<br/>(see instruction) </span>
</th>
<th class="IRS1120ScheduleG_styTableCellA" style="text-align:center;font-weight:normal;border-right-width:0px" scope="col">
<span style="font-weight:bold;">(iv) Percentage<br/>Owened in Voting Stock</span>
</th>
</tr>
</thead>
<tbody>
<xsl:for-each select="$FormData/IndividualInformation">
<tr>
<!--Define background colors to the rows -->
<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>
<td class="IRS1120ScheduleG_styTableCellA" style="width:70mm;padding-left:2mm;text-align:left;" scope="row">
<!-- If this is the last row, do not display a bottom line -->
<xsl:if test="(position() = last()) and (count($FormData/IndividualInformation) >5)">
<xsl:attribute name="style">border-bottom-width:0px;width:90mm;padding-left:2mm;text-align:left;</xsl:attribute>
</xsl:if>
<!--<span class="IRS1120ScheduleG_styLN" style="font-size:8pt;">
<xsl:if test="position() = 1"/></span>-->
<!--modify left border for this cell here -->
<xsl:call-template name="PopulateText">
<xsl:with-param name="TargetNode" select="IndividualEstateName"/>
</xsl:call-template>
</td>
<td class="IRS1120ScheduleG_styTableCellB" style="padding-left:2mm;text-align:left">
<xsl:if test="IdentifyingNumber">
<xsl:call-template name="PopulateEIN">
<xsl:with-param name="TargetNode" select="IdentifyingNumber"/>
</xsl:call-template>
</xsl:if>
<xsl:if test="IdentifyingSSNNumber">
<xsl:call-template name="PopulateSSN">
<xsl:with-param name="TargetNode" select="IdentifyingSSNNumber"/>
</xsl:call-template>
</xsl:if>
<xsl:if test="MissingIdentifyingNumberReason">
<xsl:call-template name="PopulateText">
<xsl:with-param name="TargetNode" select="MissingIdentifyingNumberReason"/>
</xsl:call-template>
</xsl:if>
<xsl:if test="Blank">
<xsl:call-template name="PopulateText">
<xsl:with-param name="TargetNode" select="Blank"/>
</xsl:call-template>
</xsl:if>
</td>
<td class="IRS1120ScheduleG_styTableCellC" style="width:40mm;text-align:center;">
<xsl:call-template name="PopulateText">
<xsl:with-param name="TargetNode" select="CountryOfCitizenship"/>
</xsl:call-template>
</td>
<td class="IRS1120ScheduleG_styTableCellD" style="width:36mm;text-align:right;border-right-width:0px">
<!-- If this is the last row, do not display a bottom line
<xsl:if test="(position() = last()) and (count($FormData/ShortTermCapitalGainAndLoss) >6)">
<xsl:attribute name="style">border-bottom-width:0px;</xsl:attribute>
</xsl:if> -->
<!--<span style="text-align:left;width:3mm;" class="styGenericDiv"/>-->
<!--<span style="text-align:right;float:right;" class="styGenericDiv">-->
<xsl:call-template name="PopulatePercent">
<xsl:with-param name="TargetNode" select="VotingStockPercentageOwned"/>
</xsl:call-template>
<!--</span>-->
</td>
<td class="IRS1120ScheduleG_styTableLastCol" id="Table1LastCol"/>
</tr>
</xsl:for-each>
</tbody>
</table>
</xsl:if>
<!-- End Part II separated data -->
</body>
</html>
</xsl:template>
</xsl:stylesheet>