-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAdjLTContractsSimplifiedSch.xsl
191 lines (188 loc) · 10.3 KB
/
AdjLTContractsSimplifiedSch.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
<?xml version="1.0" encoding="UTF-8" ?>
<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="AdjLTContractsSimplifiedSchData" select="$RtnDoc/AdjLTContractsSimplifiedSch" />
<!-- Template to display Itemized Other Income Schedule -->
<xsl:template name="ShowAdjLTContractsSimplifiedSch">
<!-- Itemized Other Income Schedule Data -->
<table id="AdjLTContractsSimplifiedSchTbl" class="styDepTblLandscape">
<thead class="styDepTableThead">
<tr class="styDepTblHdr">
<th class="styDepTblCell" scope="col" style="font-size: 7pt;">a. Contract number</th>
<th class="styDepTblCell" scope="col" style="font-size: 7pt;">b. Job name</th>
<th class="styDepTblCell" scope="col" style="font-size: 7pt;">c. Other identifying information</th>
<th class="styDepTblCell" scope="col" style="font-size: 7pt;">Year identifier</th>
<th class="styDepTblCell" scope="col" style="font-size: 7pt;">a. Income previously reported based on estimated contract price and costs</th>
<th class="styDepTblCell" scope="col" style="font-size: 7pt;">b. Income allocable to each prior year based on actual contract price and costs</th>
<th class="styDepTblCell" scope="col" style="font-size: 7pt;">c. Net adjustment to income from long-term contracts</th>
</tr>
</thead>
<tfoot></tfoot>
<tbody>
<xsl:for-each select="$AdjLTContractsSimplifiedSchData/Schedule">
<tr>
<!-- Set row background color -->
<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" scope="col" style="text-align:left;font-size: 7pt; width: 35mm;">
<xsl:attribute name="rowspan">
<xsl:value-of select="count(PYLongTermContract)"/>
</xsl:attribute>
<xsl:call-template name="PopulateText">
<xsl:with-param name="TargetNode" select="ContractNumber" />
</xsl:call-template>
</td>
<td class="styDepTblCell" scope="col" style="text-align:left;font-size: 7pt;">
<xsl:attribute name="rowspan">
<xsl:value-of select="count(PYLongTermContract)"/>
</xsl:attribute>
<xsl:call-template name="PopulateText">
<xsl:with-param name="TargetNode" select="JobName" />
</xsl:call-template>
</td>
<td class="styDepTblCell" scope="col" style="text-align:left;font-size: 7pt;">
<xsl:attribute name="rowspan">
<xsl:value-of select="count(PYLongTermContract)"/>
</xsl:attribute>
<xsl:call-template name="PopulateText">
<xsl:with-param name="TargetNode" select="OtherIdentifyingInformation" />
</xsl:call-template>
</td>
<!-- Test for no data or only one instance of data - if, then fill the cell with the proper color -->
<xsl:if test="count(PYLongTermContract)=0 or count (PYLongTermContract)=1">
<td class="styDepTblCell" scope="col" style="text-align:center;font-size: 7pt; width: 15mm;">
<xsl:call-template name="PopulateText">
<xsl:with-param name="TargetNode" select="PYLongTermContract/Year" />
</xsl:call-template>
</td>
<td class="styDepTblCell" scope="col" style="text-align:right;font-size: 7pt; width: 30mm;">
<xsl:call-template name="PopulateAmount">
<xsl:with-param name="TargetNode" select="PYLongTermContract/PYIncmPrevRptBasedOnEstimated" />
</xsl:call-template>
</td>
<td class="styDepTblCell" scope="col" style="text-align:right;font-size: 7pt; width: 30mm;">
<xsl:call-template name="PopulateAmount">
<xsl:with-param name="TargetNode" select="PYLongTermContract/IncomeAllocablePYActual" />
</xsl:call-template>
</td>
<td class="styDepTblCell" scope="col" style="text-align:right;font-size: 7pt; width: 30mm;">
<xsl:call-template name="PopulateAmount">
<xsl:with-param name="TargetNode" select="PYLongTermContract/PYNetAdjustmentToIncome" />
</xsl:call-template>
</td>
</xsl:if>
<!-- If there is more than one set of data, show the first set with dark blue background -->
<xsl:if test="count(PYLongTermContract)>1">
<td class="styDepTblRow1Cell" scope="col" style="text-align:center;font-size: 7pt; width: 15mm;">
<xsl:call-template name="PopulateText">
<xsl:with-param name="TargetNode" select="PYLongTermContract/Year" />
</xsl:call-template>
</td>
<td class="styDepTblRow1Cell" scope="col" style="text-align:right;font-size: 7pt; width: 30mm;">
<xsl:call-template name="PopulateAmount">
<xsl:with-param name="TargetNode" select="PYLongTermContract/PYIncmPrevRptBasedOnEstimated" />
</xsl:call-template>
</td>
<td class="styDepTblRow1Cell" scope="col" style="text-align:right;font-size: 7pt; width: 30mm;">
<xsl:call-template name="PopulateAmount">
<xsl:with-param name="TargetNode" select="PYLongTermContract/IncomeAllocablePYActual" />
</xsl:call-template>
</td>
<td class="styDepTblRow1Cell" scope="col" style="text-align:right;font-size: 7pt; width: 30mm;">
<xsl:call-template name="PopulateAmount">
<xsl:with-param name="TargetNode" select="PYLongTermContract/PYNetAdjustmentToIncome" />
</xsl:call-template>
</td>
</xsl:if>
</tr>
<!-- For Each remaining set of data, make rows with alternating bgcolors -->
<xsl:for-each select="PYLongTermContract">
<xsl:if test="position() > 1">
<tr>
<!-- Set row background color -->
<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" scope="col" style="text-align:center;font-size: 7pt; width: 15mm;">
<xsl:call-template name="PopulateText">
<xsl:with-param name="TargetNode" select="Year" />
</xsl:call-template>
</td>
<td class="styDepTblCell" scope="col" style="text-align:right;font-size: 7pt; width: 30mm">
<xsl:call-template name="PopulateAmount">
<xsl:with-param name="TargetNode" select="PYIncmPrevRptBasedOnEstimated" />
</xsl:call-template>
</td>
<td class="styDepTblCell" scope="col" style="text-align:right;font-size: 7pt; width: 30mm">
<xsl:call-template name="PopulateAmount">
<xsl:with-param name="TargetNode" select="IncomeAllocablePYActual" />
</xsl:call-template>
</td>
<td class="styDepTblCell" scope="col" style="text-align:right;font-size: 7pt; width: 30mm">
<xsl:call-template name="PopulateAmount">
<xsl:with-param name="TargetNode" select="PYNetAdjustmentToIncome" />
</xsl:call-template>
</td>
</tr>
</xsl:if>
</xsl:for-each> <!-- End of For Each remaining set of data, make rows with alternating bgcolors -->
</xsl:for-each> <!-- End of For Each schedule -->
</tbody>
</table>
</xsl:template>
<!-- Main template -->
<xsl:param name="depDocTitle">
<xsl:call-template name="PopulateDisplayName"><xsl:with-param name="TargetNode" select="$AdjLTContractsSimplifiedSchData" /></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="Author" content="Chris Sinderson" />
<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">
<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="DocumentHeaderDependencyLandscape" />
<div class="styDepTitleLineLandscape">
<span class="styDepTitle">
<span style="width:82mm;"><xsl:value-of select="$depDocTitle" /></span>
</span>
</div>
<xsl:call-template name="PopulateDepCommonLeftoverLandscape"><xsl:with-param name="TargetNode" select="$AdjLTContractsSimplifiedSchData"/></xsl:call-template>
<span style="height:5px;"></span>
<!-- Transform Itemized Other Income Schedule -->
<xsl:call-template name="ShowAdjLTContractsSimplifiedSch" />
<br/>
</body>
</html>
</xsl:template>
</xsl:stylesheet>