-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDeemedDivElectRespectFormerPFICStmt.xsl
247 lines (223 loc) · 11.4 KB
/
DeemedDivElectRespectFormerPFICStmt.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
<?xml version="1.0" encoding="UTF-8" ?>
<!-- 09-11-2012 - Created as per UWR 58627 - Jeremy Nichols -->
<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="CommonPathRef.xsl"/>
<xsl:include href="AddHeader.xsl"/>
<xsl:include href="AddOnTable.xsl"/>
<xsl:param name="DependencyData" select="$RtnDoc/DeemedDivElectFmrPFICStmt" />
<!-- Display Name Deemed Dividend Election Statement -->
<!-- Main template -->
<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"></script>
<xsl:call-template name="InitJS"></xsl:call-template>
<style type="text/css">
</style>
<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" />
<div class="styDepTitleLine">
<span class="styDepTitle">
<span style="width:187mm;"><xsl:value-of select="$depDocTitle" /></span>
</span>
</div>
<xsl:call-template name="PopulateDepCommonLeftover"><xsl:with-param name="TargetNode" select="$DependencyData"/></xsl:call-template>
<div class="styTopSectionLine" style="width:187mm;">
<div class=" styTopSectionLineLbl" style="float:left;clear:none;">Name:</div>
<div style="float:left;clear:none;">
<xsl:if test="$DependencyData/PersonName !=''">
<xsl:call-template name="PopulateText">
<xsl:with-param name="TargetNode" select="$DependencyData/PersonName"/>
</xsl:call-template><br/>
</xsl:if>
<xsl:if test="$DependencyData/Name/BusinessNameLine1 !=''">
<xsl:call-template name="PopulateText">
<xsl:with-param name="TargetNode" select="$DependencyData/Name/BusinessNameLine1"/>
</xsl:call-template>
</xsl:if>
<xsl:if test="$DependencyData/Name/BusinessNameLine2 !=''">
<br/>
<xsl:call-template name="PopulateText">
<xsl:with-param name="TargetNode" select="$DependencyData/Name/BusinessNameLine2"/>
</xsl:call-template>
</xsl:if>
</div>
</div>
<div class="styTopSectionLine" style="width:187mm;">
<div class="styTopSectionLineLbl" style="float:left;clear:both;">Address:</div>
<div style="float:left;clear:right;">
<xsl:if test="$DependencyData/Address">
<xsl:call-template name="PopulateUSAddressTemplate">
<xsl:with-param name="TargetNode" select="$DependencyData/Address"/>
</xsl:call-template>
</xsl:if>
<xsl:if test="$DependencyData/ForeignAddress">
<xsl:call-template name="PopulateForeignAddressTemplate">
<xsl:with-param name="TargetNode" select="$DependencyData/ForeignAddress"/>
</xsl:call-template>
</xsl:if>
</div>
</div>
<!-- Placed line and label formatting within choose statement 3/16/07 -->
<xsl:choose>
<xsl:when test="$DependencyData/SocialSecurityNumber">
<!-- added Line label for ssn case -->
<div class="styTopSectionLine" style="width:187mm;">
<div class="styTopSectionLineLbl" style="float:left;clear:both;">Social Security Number: </div>
<div style="float:left;clear:right;">
<xsl:call-template name="PopulateSSN">
<xsl:with-param name="TargetNode" select="$DependencyData/SocialSecurityNumber"/>
</xsl:call-template>
</div>
</div>
</xsl:when>
<xsl:when test="$DependencyData/MissingEINReason">
<!-- added Line label for missing ein case -->
<div class="styTopSectionLine" style="width:187mm;">
<div class="styTopSectionLineLbl" style="float:left;clear:both;"> Missing EIN reason:
</div>
<div style="float:left;clear:right;">
<xsl:call-template name="PopulateText">
<xsl:with-param name="TargetNode" select="$DependencyData/MissingEINReason" />
</xsl:call-template>
</div>
</div>
</xsl:when>
<xsl:otherwise>
<!-- added Line label for ein case here-->
<div class="styTopSectionLine" style="width:187mm;">
<div class="styTopSectionLineLbl" style="float:left;clear:both;"> Employer Identification Number: </div>
<div style="float:left;clear:right;">
<xsl:call-template name="PopulateEIN"><xsl:with-param name="TargetNode" select="$DependencyData/EmployerIdentificationNumber" />
</xsl:call-template>
</div>
</div>
</xsl:otherwise>
</xsl:choose>
<div class="styTopSectionLine" style="width:187mm;">
<div class="styTopSectionLineLbl" style="float:left;clear:both;">Tax year in which the amount was previously included in income:</div>
<div style="float:left;clear:right;">
<xsl:call-template name="PopulateYear">
<xsl:with-param name="TargetNode" select="$DependencyData/TaxYearAmountIncludedInIncome"/>
</xsl:call-template>
</div>
</div>
<div class="styTopSectionLine" style="width:187mm;">
<div class="styTopSectionLineLbl" style="float:left;clear:both;">The law under which the amount was previously included in income:</div>
<div style="float:left;clear:right;">
<xsl:call-template name="PopulateText">
<xsl:with-param name="TargetNode" select="$DependencyData/LawUnderWhichAmountWasIncluded"/>
</xsl:call-template>
</div>
</div>
<div class="styTopSectionLine" style="width:187mm;">
<div class="styTopSectionLineLbl" style="float:left;clear:both;">Description of transaction in which the shareholder acquired the stock of the PFIC from the other US person:</div>
<div style="float:left;clear:right;">
<xsl:call-template name="PopulateText">
<xsl:with-param name="TargetNode" select="$DependencyData/DescriptionOfTransaction"/>
</xsl:call-template>
</div>
</div>
<div class="styTopSectionLine" style="width:187mm;">
<div class="styTopSectionLineLbl" style="float:left;clear:both;">The law under which the shareholder’s holding period includes the holding period of the other US person:</div>
<div style="float:left;clear:right;">
<xsl:call-template name="PopulateText">
<xsl:with-param name="TargetNode" select="$DependencyData/ShareholdersHoldingPeriodLaw"/>
</xsl:call-template>
</div>
</div>
<div class="styTopSectionLine" style="width:187mm;">
<div class="styTopSectionLineLbl" style="float:left;clear:both;">The termination date as defined in Regulations section 1298-3(d) for the former PFIC:</div>
<div style="float:left;clear:right;">
<xsl:call-template name="PopulateText">
<xsl:with-param name="TargetNode" select="$DependencyData/TerminationDate"/>
</xsl:call-template>
</div>
</div>
<div class="styTopSectionLine" style="width:187mm;">
<div class="styTopSectionLineLbl" style="float:left;clear:both;">The beginning date of the taxable year of the shareholding in which the termination date falls (i.e., the election year):</div>
<div style="float:left;clear:right;">
<xsl:call-template name="PopulateText">
<xsl:with-param name="TargetNode" select="$DependencyData/TaxYearBeginDate"/>
</xsl:call-template>
</div>
</div>
<div class="styTopSectionLine" style="width:187mm;">
<div class="styTopSectionLineLbl" style="float:left;clear:both;">The ending date of the taxable year of the shareholding in which the termination date falls (i.e., the election year):</div>
<div style="float:left;clear:right;">
<xsl:call-template name="PopulateText">
<xsl:with-param name="TargetNode" select="$DependencyData/TaxYearEndDate"/>
</xsl:call-template>
</div>
</div>
<table id="DARSTbl" class="styDepTbl">
<thead class="styTableThead">
<tr class="styDepTblHdr">
<th class="styDepTblCell" scope="col">Tax year for each tax year the taxpayer held the stock (i.e., the PFIC stock the taxpayer held on the CFC qualification date).</th>
<th class="styDepTblCell" scope="col">Post 1986 E&P Prorated to the Shareholder for the tax year specified.</th>
<th class="styDepTblCell" scope="col">Amount of Post-1986 E&P in Post1986EIProratedShrHldr that is prorated to the shareholder for the tax year specified.</th>
<th class="styDepTblCell" scope="col">Explanation that shows the calculation of this amount as required under Section 1297(e) PFIC for the election year.</th>
</tr>
</thead>
<tfoot></tfoot>
<tbody>
<xsl:for-each select="$DependencyData/ShareholdersProRataShareSchedule">
<tr>
<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="styDepTblCell" style="text-align:left">
<xsl:call-template name="PopulateText">
<xsl:with-param name="TargetNode" select="TxYrTPHeldStock"/>
</xsl:call-template>
</td>
<td class="styDepTblCell" style="text-align:right">
<xsl:call-template name="PopulateAmount">
<xsl:with-param name="TargetNode" select="Post1986EPProratedShrHldrTxYr"/>
</xsl:call-template>
</td>
<td class="styDepTblCell" style="text-align:right">
<xsl:call-template name="PopulateAmount">
<xsl:with-param name="TargetNode" select="Post1986EPProratedtoShrHldr"/>
</xsl:call-template>
</td>
<td class="styDepTblCell" style="text-align:left">
<xsl:call-template name="PopulateText">
<xsl:with-param name="TargetNode" select="Calculation"/>
</xsl:call-template>
</td>
</tr>
</xsl:for-each>
</tbody>
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>