-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAdjToTaxableIncomeFromSchK1.xsl
114 lines (92 loc) · 4.7 KB
/
AdjToTaxableIncomeFromSchK1.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
<?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" encoding="iso-8859-1"/>
<xsl:strip-space elements="*" />
<xsl:include href="AddHeader.xsl"/>
<xsl:include href="CommonPathRef.xsl"/>
<xsl:include href="PopulateTemplate.xsl"/>
<xsl:include href="AddOnTable.xsl"/>
<xsl:param name="FormData" select="$RtnDoc/AdjToTaxableIncomeFromSchK1" />
<xsl:param name="depDocTitle">
<xsl:call-template name="PopulateDisplayName"><xsl:with-param name="TargetNode" select="$FormData" /></xsl:call-template>
</xsl:param>
<!-- Template to display Adjustment to Taxable Income From Multiple Schedules K-1 Statement -->
<xsl:template name="ShowATI">
<!-- Adjustment to Taxable Income From Multiple Schedules K-1 info Data -->
<table id="ATITbl" class="styDepTbl">
<tr class="styDepTblHdr">
<th class="styDepTblCell" scope="col" >1. Recomputation Year</th>
<th class="styDepTblCell" scope="col" >2. Name of Entity</th>
<th class="styDepTblCell" scope="col" >3. Amount of net change to depreciation under the income forecast method</th>
</tr>
<xsl:for-each select="$FormData/AdjustmentToTaxableIncome">
<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:center;width:35mm">
<xsl:call-template name="PopulateText"><xsl:with-param name="TargetNode" select="RecomputationYear" /></xsl:call-template>
</td>
<td class="styDepTblCell" style="text-align:left;width:102mm ">
<xsl:if test="NameOfEntity/BusinessNameLine1 !=''">
<xsl:call-template name="PopulateText">
<xsl:with-param name="TargetNode" select="NameOfEntity/BusinessNameLine1" />
</xsl:call-template>
<xsl:if test="NameOfEntity/BusinessNameLine2 !=''">
<br/>
<xsl:call-template name="PopulateText">
<xsl:with-param name="TargetNode" select="NameOfEntity/BusinessNameLine2" />
</xsl:call-template>
</xsl:if>
</xsl:if>
</td>
<td class="styDepTblCell" style="text-align:right;width:50mm">
<xsl:call-template name="PopulateAmount"><xsl:with-param name="TargetNode" select="AmountOfNetChangeToDeprec" /></xsl:call-template>
</td>
</tr>
</xsl:for-each>
</table>
</xsl:template>
<!-- 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="Author" content="Polina Zhuravlev" />
<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">
<div class="styDepTitle" style="width: 90mm">
<xsl:value-of select="$depDocTitle" />
</div>
</div>
<!--Adding template for left over data -->
<xsl:call-template name="PopulateDepCommonLeftover"><xsl:with-param name="TargetNode" select="$FormData" /></xsl:call-template><br/>
<xsl:call-template name="ShowATI" />
</body>
</html>
</xsl:template>
</xsl:stylesheet>