-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIRS8586.xsl
972 lines (948 loc) · 47.5 KB
/
IRS8586.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
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
<?xml version="1.0"?>
<!DOCTYPE xsl:stylesheet [
<!ENTITY nbsp " ">
]>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:include href="PopulateTemplate.xsl"/>
<xsl:include href="CommonPathRef.xsl"/>
<xsl:include href="AddHeader.xsl"/>
<xsl:include href="AddOnTable.xsl"/>
<xsl:include href="IRS8586Style.xsl"/>
<xsl:output method="html" indent="yes" encoding="iso-8859-1"/>
<xsl:strip-space elements="*"/>
<xsl:param name="Form8586Data" select="$RtnDoc/IRS8586"/>
<xsl:template match="/">
<html lang="EN-US">
<head>
<title>
<xsl:call-template name="FormTitle">
<xsl:with-param name="RootElement" select="local-name($Form8586Data)"/>
</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"/>
<meta name="Description" content="Form 8586"/>
<META name="GENERATOR" content="IBM WebSphere Studio"/>
<script language="JavaScript" src="{$ScriptPath}/FormDisplay.js" type="text/javascript"/>
<xsl:call-template name="InitJS"/>
<style type="text/css">
<!--********************************************************************************************
HINTS: Line 2 (i) and 9 (i) to adjust these go to the Additional Data Section.
As of TY2008 there is no separated print for line 2(i)-(iv) and line 9(i)-(iv)
because the limit is 4 for (i) - (iv).
************************************************************************************************ -->
<xsl:if test="not($Print) or $Print=''">
<xsl:call-template name="IRS8586Style"/>
<xsl:call-template name="AddOnStyle"/>
</xsl:if>
</style>
<xsl:call-template name="GlobalStylesForm"/>
</head>
<body class="styBodyClass">
<form id="Form8586">
<xsl:call-template name="DocumentHeader"/>
<div class="styTBB" style="width:187mm;">
<div class="styFNBox" style="width:30mm;height:20.7mm;">
<div style="height:9mm;">Form<span class="styFormNumber"> 8586</span>
<br/>
<xsl:call-template name="SetFormLinkInline">
<xsl:with-param name="TargetNode" select="$Form8586Data"/>
</xsl:call-template>
<br/>
</div>
<div style="padding-top:0mm;">
<span class="styAgency">(Rev. December 2011)</span><br/>
<span class="styAgency">Department of the Treasury</span>
<br/>
<span class="styAgency">Internal Revenue Service</span>
<span style="padding-left:1.0mm;">(99)</span>
</div>
</div>
<div class="styFTBox" style="width:125mm;height:10mm;">
<div class="styMainTitle" style="height:12mm;padding-top:1.5mm;">
Low-Income Housing Credit
</div>
<div class="styFMT" style="height:4mm;font-size:7pt;padding-top:4mm;">
<!--<img src="{$ImagePath}/8586_Bullet_Title.gif" alt="Arrow Bullet"/> See instructions on back.<br/>-->
<img src="{$ImagePath}/8586_Bullet_Title.gif" alt="Arrow Bullet"/> Attach to your tax return.
</div>
</div>
<div class="styTYBox" style="width:32mm;height:20.7mm;">
<div class="styOMB" style="height:3mm;padding-top:.0mm;">OMB No. 1545-0984</div>
<div class="styTaxYear" style="height:10.1mm;font-size:24pt;padding-top:0mm;padding-bottom:0mm;">
<!-- 20<span class="styTYcolor">11</span> -->
</div>
<div style="height:5mm;padding-left:5mm;text-align:left;border-bottom-width:25px;">
Attachment Sequence No. <span class="styBoldText" style="font-size:8pt">36a</span>
</div>
</div>
</div>
<!-- End Form title -->
<!--Start Name and EIN Line-->
<div class="styBB" style="width:187mm">
<div class="styNameBox" style="font-size:7pt; width:151mm; height:8mm">
Name(s) shown on return<br/>
<xsl:choose>
<xsl:when test="$RtnHdrData/ReturnType='1040'">
<br/>
<xsl:call-template name="PopulateReturnHeaderFiler">
<xsl:with-param name="TargetNode">Name</xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<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>
</xsl:otherwise>
</xsl:choose>
</div>
<div style="height:4mm;padding-left:2mm;font-size:7pt;font-family:verdana;" class="styEINBox">
Identifying number<br/>
<br/>
<span style="font-weight:normal;">
<xsl:choose>
<xsl:when test="$RtnHdrData/ReturnType='1040'">
<xsl:call-template name="PopulateReturnHeaderFiler">
<xsl:with-param name="TargetNode">PrimarySSN</xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="PopulateReturnHeaderFiler">
<xsl:with-param name="TargetNode">EIN</xsl:with-param>
</xsl:call-template>
</xsl:otherwise>
</xsl:choose>
</span>
</div>
</div>
<!-- BEGIN Part I Line Items -->
<!-- Start Part I - Header -->
<div class="styBB" style="width:187mm;">
<span class="styPartName" style="width:16mm;">Part I</span>
<span class="styPartDesc" style="width:170mm;">
Buildings Placed in Service Before 2008
</span>
</div>
<!-- end Part I - Header -->
<!-- Start Line 1 row 1-->
<div style="width:187mm">
<div class="styLNLeftNumBoxSD">1</div>
<div class="styLNDesc" style="width:139mm;">
<span style="float:left">Number of Forms 8609-A attached for buildings placed in service before 2008</span>
<!--Dotted Line-->
<div class="styDotLn" style="float:right;padding-right:1mm;">.........</div>
</div>
<div class="styLNRightNumBoxNBB" style="background-color:lightgrey"/>
<div class="styLNAmountBoxNBB"/>
</div>
<!-- End Line 1row 1 -->
<!-- Start Line 1 row 2-->
<div style="width:187mm">
<div class="styLNLeftNumBoxSD"/>
<div class="styLNDesc" style="width:109mm;">
<!--Dotted Line-->
<span class="styBoldText" style="float:left;">
<span/>.
<span style="width:16px;"/>.
<span style="width:16px;"/>.
<span style="width:16px;"/>.
<span style="width:16px;"/>.
<span style="width:16px;"/>.
<span style="width:16px;"/>.
<span style="width:16px;"/>.
<span style="width:16px;"/>.
<span style="width:16px;"/>.
<span style="width:16px;"/>.
<span style="width:16px;"/>.
<span style="width:16px;"/>.
<span style="width:16px;"/>.
<span style="width:16px;"/>.
<span style="width:16px;"/>.
<span style="width:16px;"/>.
<span style="width:16px;"/>.
</span>
<span style="float:right; margin-right:2mm;">
<img src="{$ImagePath}/8586_Bullet_L1.gif" alt="Arrow Bullet"/>
</span>
</div>
<div class="styIRS8586DotBB" style="width:27mm; margin-right:3mm;text-align:right;">
<xsl:call-template name="PopulateText">
<xsl:with-param name="TargetNode" select="$Form8586Data/NumberOfForms8609AAtchBF2008"/>
</xsl:call-template>
</div>
<div class="styLNRightNumBoxNBB" style="background-color:lightgrey"/>
<div class="styLNAmountBoxNBB"/>
</div>
<!-- End Line 1 row 2-->
<!-- Start Line 2 -->
<div style="width:187mm;" >
<div class="styLNLeftNumBoxSD">2</div>
<div class="styLNDesc" style="width:139mm">
Has there been a decrease in the qualified basis of any buildings accounted for on line 1 since the close of the preceding tax year?
<span style="width:2mm;"/>
<span>
<xsl:call-template name="PopulateSpan">
<xsl:with-param name="TargetNode" select="$Form8586Data/DecrInQlfyBasisOfBldgsBF2008"/>
</xsl:call-template>
<input type="Checkbox" class="styCkbox">
<xsl:call-template name="PopulateYesCheckbox">
<xsl:with-param name="TargetNode" select="$Form8586Data/DecrInQlfyBasisOfBldgsBF2008"/>
</xsl:call-template>
</input>
</span>
<span style="width:1mm;"/>
<label>
<xsl:call-template name="PopulateLabelYes">
<xsl:with-param name="TargetNode" select="$Form8586Data/DecrInQlfyBasisOfBldgsBF2008"/>
</xsl:call-template>
<b> Yes </b>
</label>
<span style="width:2mm;"/>
<span>
<xsl:call-template name="PopulateSpan">
<xsl:with-param name="TargetNode" select="$Form8586Data/DecrInQlfyBasisOfBldgsBF2008"/>
</xsl:call-template>
<input type="Checkbox" class="styCkbox">
<xsl:call-template name="PopulateNoCheckbox">
<xsl:with-param name="TargetNode" select="$Form8586Data/DecrInQlfyBasisOfBldgsBF2008"/>
</xsl:call-template>
</input>
</span>
<span style="width:1mm;"/>
<label>
<xsl:call-template name="PopulateLabelNo">
<xsl:with-param name="TargetNode" select="$Form8586Data/DecrInQlfyBasisOfBldgsBF2008"/>
</xsl:call-template>
<b>No </b>
</label>
<span style="width:2mm;"/>
If "Yes," enter the building identification numbers (BINs) of the buildings that had a decreased basis. If you need more space, attach a schedule.
<span style="width:1mm;"/>
<!--Push Pin Image -->
<xsl:call-template name="SetFormLinkInline">
<xsl:with-param name="TargetNode" select="$Form8586Data/BldgIdOfBldgWithDecreasedBasis"/>
</xsl:call-template>
</div>
<div class="styGenericDiv">
<div class="styLNRightNumBoxNBB" style="width:8mm;height:11mm;padding-top:0px; background-color:lightgrey"/>
<div class="styLNAmountBoxNBB" style="width:32mm;height:11mm;padding-top:0px;"/>
</div>
</div>
<xsl:variable name="ESCount" select="count($Form8586Data/BldgIdOfBldgWithDecreasedBasis/BldgIdNbrBF2008)"/>
<xsl:variable name="containerHeight" select="5"/>
<xsl:variable name="preMax">
<xsl:choose>
<xsl:when test="$ESCount mod 4 = 0">
<xsl:value-of select="$ESCount div 4"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="ceiling($ESCount div 4)"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<div class="styIRS8586TableContainer" id="part1TPctn" style="">
<xsl:attribute name="style"><xsl:if test="$ESCount > $containerHeight">
height:4mm;
</xsl:if></xsl:attribute>
<!-- print logic -->
<!-- <xsl:call-template name="SetInitialState"/>-->
<!-- end -->
<table class="styIRS8586Table" cellpadding="0" cellspacing="0" border="0" style="">
<xsl:choose>
<xsl:when test="($Print!=$Separated) or (($Print = $Separated) and (count($Form8586Data/BldgIdOfBldgWithDecreasedBasis/BldgIdNbrBF2008) <5))">
<xsl:call-template name="partI3bLoop">
<xsl:with-param name="ESCount" select="$ESCount"/>
<xsl:with-param name="max">
<xsl:choose>
<xsl:when test="$preMax = 0">
<xsl:value-of select="1"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$preMax"/>
</xsl:otherwise>
</xsl:choose>
</xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:if test="($Print = $Separated) and (count($Form8586Data/BldgIdOfBldgWithDecreasedBasis/BldgIdNbrBF2008) >4)">
<xsl:call-template name="PopulateAdditionalDataTableMessage">
<xsl:with-param name="TargetNode" select="$Form8586Data/BldgIdOfBldgWithDecreasedBasis"/>
</xsl:call-template>
<div class="styGenericDiv">
<span style="width:6mm;font-weight:bold;">
(i)
</span>
<span style="width:25mm;border-bottom:1px black solid"/>
<span style="width:2mm"/>
<span style="width:6mm;font-weight:bold">
(ii)
</span>
<span style="width:25mm;border-bottom:1px black solid"/>
<span style="width:2mm"/>
<span style="width:6mm;font-weight:bold">
(iii)
</span>
<span style="width:25mm;border-bottom:1px black solid"/>
<span style="width:2mm"/>
<span style="width:6mm;font-weight:bold">
(iv)
</span>
<span style="width:25mm;border-bottom:1px black solid"/>
<span style="width:9.8mm;"/>
<span style="width:8.5mm;height:5mm;background-color:lightgrey;border-left:1px solid black; border-right:1px solid black"/>
</div>
<br/>
</xsl:if>
</xsl:otherwise>
</xsl:choose>
</table>
</div>
<!-- End Line 2 -->
<!-- Start Line 3 -->
<div style="width:187mm;">
<div style="float:left;clear:none;">
<div class="styLNLeftNumBoxSD">3</div>
<div class="styLNDesc" style="width:139mm;">
Current year credit from attached Form(s) 8609-A for buildings placed in service before 2008
<span style="float:left">(see instructions)
<!--Push Pin image -->
<xsl:call-template name="SetFormLinkInline">
<xsl:with-param name="TargetNode" select="$Form8586Data/CurrentYearCreditBF2008"/>
</xsl:call-template>
</span>
<!--Dotted Line-->
<div class="styDotLn" style="float:right;padding-right:1mm;">...........................</div>
</div>
</div>
<div style="float:right;clear:none;">
<div class="styLNRightNumBox" style="height:8mm;padding-top:4mm;">3</div>
<div class="styLNAmountBox" style="height:8mm;padding-top:4mm;">
<xsl:call-template name="PopulateAmount">
<xsl:with-param name="TargetNode" select="$Form8586Data/CurrentYearCreditBF2008"/>
</xsl:call-template>
</div>
</div>
</div>
<!-- End Line 3 -->
<!-- Start Line 4 -->
<div style="width:187mm">
<div style="float:left;clear:none;">
<div class="styLNLeftNumBoxSD">4</div>
<div class="styLNDesc" style="width:139mm;">
Low-income housing credit for buildings placed in service before 2008, from partnerships, S corporations,
estates, and trusts
<!--Dotted Line-->
<span style="padding-right:1mm;font-weight:bold;letter-spacing:3mm">.......................</span>
</div>
</div>
<div style="float:right;clear:none;">
<div class="styLNRightNumBox" style="height:8mm;padding-top:4mm;">4</div>
<div class="styLNAmountBox" style="height:8mm;padding-top:4mm;">
<xsl:call-template name="PopulateAmount">
<xsl:with-param name="TargetNode" select="$Form8586Data/LowIncomeHousingCreditsBF2008"/>
</xsl:call-template>
</div>
</div>
</div>
<!-- End Line 4 -->
<!-- Start Line 5 -->
<div style="width:187mm">
<div style="float:left;clear:none;">
<div class="styLNLeftNumBoxSD">5</div>
<div class="styLNDesc" style="width:139mm;">
Add lines 3 and 4. Estates and trusts, go to line 6. Partnerships and S corporations, stop here and report
<span style="float:left;">this amount on Schedule K. All others, stop here and report this amount on Form 3800, line 1d
</span>
<!--Dotted Line-->
<div class="styDotLn" style="float:right;padding-right:1mm;">...</div>
</div>
</div>
<div style="float:right;clear:none;">
<div class="styLNRightNumBox" style="height:8mm;padding-top:4mm;">5</div>
<div class="styLNAmountBox" style="height:8mm;padding-top:4mm;">
<xsl:call-template name="PopulateAmount">
<xsl:with-param name="TargetNode" select="$Form8586Data/LowIncmHsnCrPlusCurrYrCrBF2008"/>
</xsl:call-template>
</div>
</div>
</div>
<!-- End Line 5 -->
<!-- Start Line 6 -->
<div style="width:187mm">
<div style="float:left;clear:none;">
<div class="styLNLeftNumBoxSD" style="padding-top:4mm;">6</div>
<div class="styLNDesc" style="width:139mm;padding-top:4mm;">
<span style="float:left;">Amount allocated to beneficiaries of the estate or trust (see instructions) </span>
<!--Dotted Line-->
<div class="styDotLn" style="float:right;padding-right:1mm;">...........</div>
</div>
</div>
<div style="float:right;clear:none;">
<div class="styLNRightNumBox" style="height:8mm;padding-top:4mm;">6</div>
<div class="styLNAmountBox" style="height:8mm;padding-top:4mm;">
<xsl:call-template name="PopulateAmount">
<xsl:with-param name="TargetNode" select="$Form8586Data/AmountAllocatedtoBeneficiaries"/>
</xsl:call-template>
</div>
</div>
</div>
<!-- End Line 6 -->
<!-- Start Line 7 -->
<div class="styBB" style="width:187mm">
<div style="float:left;clear:none;">
<div class="styLNLeftNumBoxSD" style="padding-top:4mm;">7</div>
<div class="styLNDesc" style="width:139mm;padding-top:4mm;">
<span style="float:left;">Estates and trusts, subtract line 6 from line 5. Report this amount on Form 3800, line 1d </span>
<!--Dotted Line-->
<div class="styDotLn" style="float:right;padding-right:1mm;">......</div>
</div>
</div>
<div style="float:right;clear:none;">
<div class="styLNRightNumBoxNBB" style="height:8mm;padding-top:4mm;">7</div>
<div class="styLNAmountBoxNBB" style="height:8mm;padding-top:4mm;">
<xsl:call-template name="PopulateAmount">
<xsl:with-param name="TargetNode" select="$Form8586Data/PassiveActivityOrTotCurrYearCr"/>
</xsl:call-template>
</div>
</div>
</div>
<!-- End Line 7 -->
<!-- Start Part II - Header -->
<div class="styBB" style="width:187mm;">
<span class="styPartName" style="width:16mm;">Part II</span>
<span class="styPartDesc" style="width:170mm;">
Buildings Placed in Service After 2007
</span>
</div>
<!-- end Part II - Header -->
<!-- Start Line 8 row 1-->
<div style="width:187mm">
<div class="styLNLeftNumBoxSD">8</div>
<div class="styLNDesc" style="width:139mm;">
<span style="float:left">Number of Forms 8609-A attached for buildings placed in service after 2007</span>
<!--Dotted Line-->
<div class="styDotLn" style="float:right;padding-right:1mm;">.........</div>
</div>
<div class="styLNRightNumBoxNBB" style="background-color:lightgrey"/>
<div class="styLNAmountBoxNBB"/>
</div>
<!-- End Line 8 row 1 -->
<!-- Start Line 8 row 2-->
<div style="width:187mm">
<div class="styLNLeftNumBoxSD"/>
<div class="styLNDesc" style="width:109mm;">
<!--Dotted Line-->
<span class="styBoldText" style="float:left;">
<span/>.
<span style="width:16px;"/>.
<span style="width:16px;"/>.
<span style="width:16px;"/>.
<span style="width:16px;"/>.
<span style="width:16px;"/>.
<span style="width:16px;"/>.
<span style="width:16px;"/>.
<span style="width:16px;"/>.
<span style="width:16px;"/>.
<span style="width:16px;"/>.
<span style="width:16px;"/>.
<span style="width:16px;"/>.
<span style="width:16px;"/>.
<span style="width:16px;"/>.
<span style="width:16px;"/>.
<span style="width:16px;"/>.
<span style="width:16px;"/>.
</span>
<span style="float:right; margin-right:2mm">
<img src="{$ImagePath}/8586_Bullet_L1.gif" alt="Arrow Bullet"/>
</span>
</div>
<div class="styIRS8586DotBB" style="width:27mm; margin-right:3mm;text-align:right;">
<xsl:call-template name="PopulateText">
<xsl:with-param name="TargetNode" select="$Form8586Data/NumberOfForms8609AAtchAF2007"/>
</xsl:call-template>
</div>
<div class="styLNRightNumBoxNBB" style="background-color:lightgrey"/>
<div class="styLNAmountBoxNBB"/>
</div>
<!-- End Line 8 row 2-->
<!-- Start Line 9 -->
<div style="width:187mm">
<div class="styLNLeftNumBoxSD">9</div>
<div class="styLNDesc" style="width:139mm;">
Has there been a decrease in the qualified basis of any buildings accounted for on line 8 since the close of the preceding tax year?
<span style="width:2mm;"/>
<span>
<xsl:call-template name="PopulateSpan">
<xsl:with-param name="TargetNode" select="$Form8586Data/DecrQlfyBasisOfBuildingsAF2007"/>
</xsl:call-template>
<input type="Checkbox" class="styCkbox">
<xsl:call-template name="PopulateYesCheckbox">
<xsl:with-param name="TargetNode" select="$Form8586Data/DecrQlfyBasisOfBuildingsAF2007"/>
</xsl:call-template>
</input>
</span>
<span style="width:1mm;"/>
<label>
<xsl:call-template name="PopulateLabelYes">
<xsl:with-param name="TargetNode" select="$Form8586Data/DecrQlfyBasisOfBuildingsAF2007"/>
</xsl:call-template>
<b> Yes </b>
</label>
<span style="width:2mm;"/>
<span>
<xsl:call-template name="PopulateSpan">
<xsl:with-param name="TargetNode" select="$Form8586Data/DecrQlfyBasisOfBuildingsAF2007"/>
</xsl:call-template>
<input type="Checkbox" class="styCkbox">
<xsl:call-template name="PopulateNoCheckbox">
<xsl:with-param name="TargetNode" select="$Form8586Data/DecrQlfyBasisOfBuildingsAF2007"/>
</xsl:call-template>
</input>
</span>
<span style="width:1mm;"/>
<label>
<xsl:call-template name="PopulateLabelNo">
<xsl:with-param name="TargetNode" select="$Form8586Data/DecrQlfyBasisOfBuildingsAF2007"/>
</xsl:call-template>
<b>No </b>
</label>
<span style="width:2mm;"/>
If "Yes," enter the building identification numbers (BINs) of the buildings that had a decreased basis. If you need more space, attach a schedule.
<span style="width:1mm;"/>
<!--Push Pin Image -->
<xsl:call-template name="SetFormLinkInline">
<xsl:with-param name="TargetNode" select="$Form8586Data/DecrInQlfyBasisOfBldgsAF2007"/>
</xsl:call-template>
</div>
<div class="stygenericDiv">
<div class="styLNRightNumBoxNBB" style="width:8mm;height:11mm; background-color:lightgrey"/>
<div class="styLNAmountBoxNBB" style="width:32mm;height:11mm"/>
</div>
</div>
<!--Start (i) row -->
<xsl:variable name="ES9Count" select="count($Form8586Data/DecrInQlfyBasisOfBldgsAF2007/BldgIdNbrAF2007)"/>
<xsl:variable name="containerHeight9" select="5"/>
<xsl:variable name="preMax9">
<xsl:choose>
<xsl:when test="$ES9Count mod 4 = 0">
<xsl:value-of select="$ES9Count div 4"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="ceiling($ES9Count div 4)"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<div class="styIRS8586TableContainer" id="part1TPctn">
<xsl:attribute name="style"><xsl:if test="$ES9Count > $containerHeight">
height:8mm;
</xsl:if></xsl:attribute>
<!-- print logic -->
<!-- <xsl:call-template name="SetInitialState"/>-->
<!-- end -->
<table class="styIRS8586Table" cellpadding="0" cellspacing="0" border="0">
<xsl:choose>
<xsl:when test="($Print!=$Separated) or (($Print = $Separated) and (count($Form8586Data/DecrInQlfyBasisOfBldgsAF2007/BldgIdNbrAF2007) <5))">
<xsl:call-template name="partII9bLoop">
<xsl:with-param name="ES9Count" select="$ES9Count"/>
<xsl:with-param name="max">
<xsl:choose>
<xsl:when test="$preMax9 = 0">
<xsl:value-of select="1"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$preMax9"/>
</xsl:otherwise>
</xsl:choose>
</xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:if test="($Print = $Separated) and (count($Form8586Data/BldgIdOfBldgWithDecreasedBasis/BldgIdNbrBF2008) >4)">
<xsl:call-template name="PopulateAdditionalDataTableMessage">
<xsl:with-param name="TargetNode" select="$Form8586Data/DecrInQlfyBasisOfBldgsAF2007/BldgIdNbrAF2007"/>
</xsl:call-template>
<div class="styGenericDiv">
<span style="width:6mm;font-weight:bold;">
(i)
</span>
<span style="width:25mm;border-bottom:1px black solid"/>
<span style="width:2mm"/>
<span style="width:6mm;font-weight:bold">
(ii)
</span>
<span style="width:25mm;border-bottom:1px black solid"/>
<span style="width:2mm"/>
<span style="width:6mm;font-weight:bold">
(iii)
</span>
<span style="width:25mm;border-bottom:1px black solid"/>
<span style="width:2mm"/>
<span style="width:6mm;font-weight:bold">
(iv)
</span>
<span style="width:25mm;border-bottom:1px black solid"/>
<span style="width:9.8mm;"/>
<span style="width:8.5mm;height:5mm;background-color:lightgrey;border-left:1px solid black; border-right:1px solid black"/>
</div>
<br/>
</xsl:if>
</xsl:otherwise>
</xsl:choose>
</table>
</div>
<!-- End Line 9 -->
<!-- Start Line 10 -->
<div style="width:187mm">
<div style="float:left;clear:none;">
<div class="styLNLeftNumBox">10</div>
<div class="styLNDesc" style="width:139mm;">
Current year credit from attached Form(s) 8609-A for buildings placed in service after 2007
<span style="float:left"> (see instructions)
<!--Push Pin image -->
<xsl:call-template name="SetFormLinkInline">
<xsl:with-param name="TargetNode" select="$Form8586Data/CurrentYearCreditAF2007"/>
</xsl:call-template>
</span>
<!--Dotted Line-->
<div class="styDotLn" style="float:right;padding-right:1mm;">...........................</div>
</div>
</div>
<div style="float:right;clear:none;">
<div class="styLNRightNumBox" style="height:8mm;padding-top:4mm;">10</div>
<div class="styLNAmountBox" style="height:8mm;padding-top:4mm;">
<xsl:call-template name="PopulateAmount">
<xsl:with-param name="TargetNode" select="$Form8586Data/CurrentYearCreditAF2007"/>
</xsl:call-template>
</div>
</div>
</div>
<!-- End Line 10 -->
<!-- Start Line 11 -->
<div style="width:187mm">
<div style="float:left;clear:none;">
<div class="styLNLeftNumBox">11</div>
<div class="styLNDesc" style="width:139mm;">
Low-income housing credit for buildings placed in service after 2007, from partnerships, S corporations,
<span style="float:left;">estates, and trusts </span>
<!--Dotted Line-->
<div class="styDotLn" style="float:right;padding-right:1mm;">............................</div>
</div>
</div>
<div style="float:right;clear:none;">
<div class="styLNRightNumBox" style="height:8mm;padding-top:4mm;">11</div>
<div class="styLNAmountBox" style="height:8mm;padding-top:4mm;">
<xsl:call-template name="PopulateAmount">
<xsl:with-param name="TargetNode" select="$Form8586Data/LowIncomeHousingCreditsAF2007"/>
</xsl:call-template>
</div>
</div>
</div>
<!-- End Line 11 -->
<!-- Start Line 12 -->
<div style="width:187mm">
<div style="float:left;clear:none;">
<div class="styLNLeftNumBox">12</div>
<div class="styLNDesc" style="width:139mm;">
Add lines 10 and 11. Estates and trusts, go to line 13. Partnerships and S corporations, stop here and
<span style="float:left;">report this amount on Schedule K. All others, stop here and report this amount on Form 3800, line 4d
</span>
<!--Dotted Line-->
<div class="styDotLn" style="float:right;padding-right:1mm;">.</div>
</div>
</div>
<div style="float:right;clear:none;">
<div class="styLNRightNumBox" style="height:8mm;padding-top:4mm;">12</div>
<div class="styLNAmountBox" style="height:8mm;padding-top:4mm;">
<xsl:call-template name="PopulateAmount">
<xsl:with-param name="TargetNode" select="$Form8586Data/LowIncmHsnCrPlusCurrYrCrAF2007"/>
</xsl:call-template>
</div>
</div>
</div>
<!-- End Line 12 -->
<!-- Start Line 13 -->
<div style="width:187mm">
<div style="float:left;clear:none;">
<div class="styLNLeftNumBox" style="padding-top:4mm;">13</div>
<div class="styLNDesc" style="width:139mm;padding-top:4mm;">
<span style="float:left;">Amount allocated to beneficiaries of the estate or trust (see instructions) </span>
<!--Dotted Line-->
<div class="styDotLn" style="float:right;padding-right:1mm;">...........</div>
</div>
</div>
<div style="float:right;clear:none;">
<div class="styLNRightNumBox" style="height:8mm;padding-top:4mm;">13</div>
<div class="styLNAmountBox" style="height:8mm;padding-top:4mm;">
<xsl:call-template name="PopulateAmount">
<xsl:with-param name="TargetNode" select="$Form8586Data/AmtAlloctoBeneficiaries"/>
</xsl:call-template>
</div>
</div>
</div>
<!-- End Line 13 -->
<!-- Start Line 14 -->
<div style="width:187mm">
<div style="float:left;clear:none;">
<div class="styLNLeftNumBox" style="padding-top:4mm;">14</div>
<div class="styLNDesc" style="width:139mm;padding-top:4mm;">
<span style="float:left;">Estates and trusts, subtract line 13 from line 12. Report this amount on Form 3800, line 4d </span>
<!--Dotted Line-->
<div class="styDotLn" style="float:right;padding-right:1mm;">.....</div>
</div>
</div>
<div style="float:right;clear:none;">
<div class="styLNRightNumBox" style="height:8mm;padding-top:4mm;">14</div>
<div class="styLNAmountBox" style="height:8mm;padding-top:4mm;">
<xsl:call-template name="PopulateAmount">
<xsl:with-param name="TargetNode" select="$Form8586Data/EstatesAndTrustsResult"/>
</xsl:call-template>
</div>
</div>
</div>
<!-- End Line 14 -->
<!-- Start Page footer -->
<div style="border-top:1 solid Black; font-size:7pt; width:187mm">
<div style="font-weight:bold; float:left; padding-top:0.5mm">
For Paperwork Reduction Act Notice, see instructions.
</div>
<div style="float:right">
Cat. No. 63987I
<span style="width:45mm"/>
Form <b style="font-size:9pt">8586</b> Rev. (12-2011)
</div>
</div>
<p style="page-break-before:always"/>
<!-- end Page footer -->
<!--Start ADDITIONAL DATA PAGE -->
<div class="styLeftOverTitleLine" id="LeftoverData" style="font-family:verdana, arial, sans-serif">
<div class="styLeftOverTitle">
Additional Data
</div>
<div class="styLeftOverButtonContainer">
<input class="styLeftoverTableBtn" type="button" value="Return to Form" onclick="javascript:returnToWriteInImage()" tabindex="1"/>
</div>
</div>
<table class="styLeftOverTbl">
<xsl:call-template name="PopulateCommonLeftover">
<xsl:with-param name="TargetNode" select="$Form8586Data"/>
</xsl:call-template>
</table>
<!-- end ADDITIONAL DATA PAGE -->
<!--start Separated Print for Part I, Line 2: HINTS:as of TY2008 there is no separated print for Part 1, Line 2(i) - (iv) -->
<xsl:if test="($Print = $Separated) and (count($Form8586Data/BldgIdOfBldgWithDecreasedBasis/BldgIdNbrBF2008) >4)">
<br/>
<span class="styRepeatingDataTitle">Form 8586, Part I, Line 2 - Building Identification Numbers</span>
<table class="styDepTbl" style="font-size: 7pt">
<thead class="styTableThead"/>
<tfoot/>
<tbody>
<xsl:for-each select="$Form8586Data/BldgIdOfBldgWithDecreasedBasis">
<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>
<th style="width:12mm; text-align: left">
(<xsl:number value="position()" format="i"/>)
</th>
<td style="text-align:left;">
<xsl:call-template name="PopulateText">
<xsl:with-param name="TargetNode" select="."/>
</xsl:call-template>
</td>
</tr>
</xsl:for-each>
</tbody>
</table>
</xsl:if>
<!--start Separated Print for Part II, Line 9 HINTS:as of TY2008 there is no separated print for Part 2, Line 9(i) - (iv)-->
<xsl:if test="($Print = $Separated) and (count($Form8586Data/DecrInQlfyBasisOfBldgsAF2007) >4)">
<br/>
<span class="styRepeatingDataTitle">Form 8586, Part II, Line 9 - Building Identification Numbers</span>
<table class="styDepTbl" style="font-size: 7pt">
<thead class="styTableThead"/>
<tfoot/>
<tbody>
<xsl:for-each select="$Form8586Data/DecrInQlfyBasisOfBldgsAF2007">
<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>
<th style="width:12mm; text-align: left">
(<xsl:number value="position()" format="i"/>)
</th>
<td style="text-align:left;">
<xsl:call-template name="PopulateText">
<xsl:with-param name="TargetNode" select="."/>
</xsl:call-template>
</td>
</tr>
</xsl:for-each>
</tbody>
</table>
</xsl:if>
</form>
</body>
</html>
</xsl:template>
<!--*******************
Part I line 2(i)-(iv)
*******************-->
<xsl:template name="partI3bLoop">
<xsl:param name="index" select="1"/>
<xsl:param name="max"/>
<xsl:if test="$index <= $max">
<div class="styGenericDiv" style="width:140mm;height:6mm;">
<div class="styGenericDiv" style="width:6mm;font-weight:bold;">
<xsl:if test="(($Form8586Data/BldgIdOfBldgWithDecreasedBasis/BldgIdNbrBF2008[$index*4-3]) or ($index*4-3 < 5)) and (($index*4-3) < 5)">
(<xsl:number value="$index*4-3" format="i"/>)
</xsl:if>
</div>
<div class="styGenericDiv" style="text-align:left;width:20mm;">
<xsl:if test="($Form8586Data/BldgIdOfBldgWithDecreasedBasis/BldgIdNbrBF2008[$index*4-3]) or ($index*4-3 < 5)">
<div style="border-bottom:1px solid black">
<xsl:call-template name="PopulateText">
<xsl:with-param name="TargetNode" select="$Form8586Data/BldgIdOfBldgWithDecreasedBasis/BldgIdNbrBF2008[$index*4-3]"/>
</xsl:call-template>
</div>
</xsl:if>
</div>
<div class="styGenericDiv" style="width:2mm"/>
<div class="styGenericDiv" style="width:6mm;font-weight:bold">
<xsl:if test="(($Form8586Data/BldgIdOfBldgWithDecreasedBasis/BldgIdNbrBF2008[$index*4-2]) or ($index*4-3 < 5)) and (($index*4-3) < 5)">
(<xsl:number value="$index*4-2" format="i"/>)
</xsl:if>
</div>
<div class="styGenericDiv" style="text-align:left;width:20mm;">
<xsl:if test="($Form8586Data/BldgIdOfBldgWithDecreasedBasis/BldgIdNbrBF2008[$index*4-2]) or ($index*4-3 < 5)">
<div style="border-bottom:1px solid black">
<xsl:call-template name="PopulateText">
<xsl:with-param name="TargetNode" select="$Form8586Data/BldgIdOfBldgWithDecreasedBasis/BldgIdNbrBF2008[$index*4-2]"/>
</xsl:call-template>
</div>
</xsl:if>
</div>
<div class="styGenericDiv" style="width:2mm"/>
<div class="styGenericDiv" style="width:6mm;font-weight:bold;">
<xsl:if test="(($Form8586Data/BldgIdOfBldgWithDecreasedBasis/BldgIdNbrBF2008[$index*4-1]) or ($index*4-3 < 5)) and (($index*4-3) < 5)">
(<xsl:number value="$index*4-1" format="i"/>)
</xsl:if>
</div>
<div class="styGenericDiv" style="text-align:left;width:20mm">
<xsl:if test="($Form8586Data/BldgIdOfBldgWithDecreasedBasis/BldgIdNbrBF2008[$index*4-1]) or ($index*4-3 < 5)">
<div style="border-bottom:1px solid black">
<xsl:call-template name="PopulateText">
<xsl:with-param name="TargetNode" select="$Form8586Data/BldgIdOfBldgWithDecreasedBasis/BldgIdNbrBF2008[$index*4-1]"/>
</xsl:call-template>
</div>
</xsl:if>
</div>
<div class="styGenericDiv" style="width:2mm"/>
<div class="styGenericDiv" style="width:6mm;font-weight:bold">
<xsl:if test="(($Form8586Data/BldgIdOfBldgWithDecreasedBasis/BldgIdNbrBF2008[$index*4]) or ($index*4-3 < 5)) and (($index*4-3) < 5)">
(<xsl:number value="$index*4" format="i"/>)
</xsl:if>
</div>
<div class="styGenericDiv" style="text-align:left;width:23mm;">
<xsl:if test="($Form8586Data/BldgIdOfBldgWithDecreasedBasis/BldgIdNbrBF2008[$index*4]) or ($index*4-3 < 5)">
<div style="border-bottom:1px solid black">
<xsl:call-template name="PopulateText">
<xsl:with-param name="TargetNode" select="$Form8586Data/BldgIdOfBldgWithDecreasedBasis/BldgIdNbrBF2008[$index*4]"/>
</xsl:call-template>
</div>
</xsl:if>
</div>
</div>
<div class="styGenericDiv" style="width:35mm;height:6mm">
<div class="styGenericDiv" style="border-left:1px solid black;border-right:1px solid black; width:8.2mm; background-color:lightgrey;height:6mm"/>
<div class="styGenericDiv" style="height:6mm;width:25mm"/>
</div>
<xsl:call-template name="partI3bLoop">
<xsl:with-param name="index" select="$index+1"/>
<xsl:with-param name="max" select="$max"/>
</xsl:call-template>
</xsl:if>
</xsl:template>
<!-- **********************
Part II,Line 9(i)-(iv)
********************** -->
<xsl:template name="partII9bLoop">
<xsl:param name="index" select="1"/>
<xsl:param name="max"/>
<xsl:if test="$index <= $max">
<div class="styGenericDiv" style="width:140mm;height:6mm;">
<div class="styGenericDiv" style="width:6mm;font-weight:bold;">
<xsl:if test="(($Form8586Data/DecrInQlfyBasisOfBldgsAF2007/BldgIdNbrAF2007[$index*4-3]) or ($index*4-3 < 5)) and (($index*4-3) < 5)">
(<xsl:number value="$index*4-3" format="i"/>)
</xsl:if>
</div>
<div class="styGenericDiv" style="text-align:left;width:20mm;">
<xsl:if test="($Form8586Data/DecrInQlfyBasisOfBldgsAF2007/BldgIdNbrAF2007[$index*4-3]) or ($index*4-3 < 5)">
<div style="border-bottom:1px solid black">
<xsl:call-template name="PopulateText">
<xsl:with-param name="TargetNode" select="$Form8586Data/DecrInQlfyBasisOfBldgsAF2007/BldgIdNbrAF2007[$index*4-3]"/>
</xsl:call-template>
</div>
</xsl:if>
</div>
<div class="styGenericDiv" style="width:2mm"/>
<div class="styGenericDiv" style="width:6mm;font-weight:bold">
<xsl:if test="(($Form8586Data/DecrInQlfyBasisOfBldgsAF2007/BldgIdNbrAF2007[$index*4-2]) or ($index*4-3 < 5)) and (($index*4-3) < 5)">
(<xsl:number value="$index*4-2" format="i"/>)
</xsl:if>
</div>
<div class="styGenericDiv" style="text-align:left;width:20mm;">
<xsl:if test="($Form8586Data/DecrInQlfyBasisOfBldgsAF2007/BldgIdNbrAF2007[$index*4-2]) or ($index*4-3 < 5)">
<div style="border-bottom:1px solid black">
<xsl:call-template name="PopulateText">
<xsl:with-param name="TargetNode" select="$Form8586Data/DecrInQlfyBasisOfBldgsAF2007/BldgIdNbrAF2007[$index*4-2]"/>
</xsl:call-template>
</div>
</xsl:if>
</div>
<div class="styGenericDiv" style="width:2mm"/>
<div class="styGenericDiv" style="width:6mm;font-weight:bold;">
<xsl:if test="(($Form8586Data/DecrInQlfyBasisOfBldgsAF2007/BldgIdNbrAF2007[$index*4-1]) or ($index*4-3 < 5)) and (($index*4-3) < 5)">
(<xsl:number value="$index*4-1" format="i"/>)
</xsl:if>
</div>
<div class="styGenericDiv" style="text-align:left;width:20mm">
<xsl:if test="($Form8586Data/DecrInQlfyBasisOfBldgsAF2007/BldgIdNbrAF2007[$index*4-1]) or ($index*4-3 < 5)">
<div style="border-bottom:1px solid black">
<xsl:call-template name="PopulateText">
<xsl:with-param name="TargetNode" select="$Form8586Data/DecrInQlfyBasisOfBldgsAF2007/BldgIdNbrAF2007[$index*4-1]"/>
</xsl:call-template>
</div>
</xsl:if>
</div>
<div class="styGenericDiv" style="width:2mm"/>
<div class="styGenericDiv" style="width:6mm;font-weight:bold">
<xsl:if test="(($Form8586Data/DecrInQlfyBasisOfBldgsAF2007/BldgIdNbrAF2007[$index*4]) or ($index*4-3 < 5)) and (($index*4-3) < 5)">
(<xsl:number value="$index*4" format="i"/>)
</xsl:if>
</div>
<div class="styGenericDiv" style="text-align:left;width:23mm;">
<xsl:if test="($Form8586Data/DecrInQlfyBasisOfBldgsAF2007/BldgIdNbrAF2007[$index*4]) or ($index*4-3 < 5)">
<div style="border-bottom:1px solid black">
<xsl:call-template name="PopulateText">
<xsl:with-param name="TargetNode" select="$Form8586Data/DecrInQlfyBasisOfBldgsAF2007/BldgIdNbrAF2007[$index*4]"/>
</xsl:call-template>
</div>
</xsl:if>
</div>
</div>
<div class="styGenericDiv" style="width:35mm;height:6mm">
<div class="styGenericDiv" style="border-left:1px solid black;border-right:1px solid black; width:8.2mm; background-color:lightgrey;height:6mm"/>
<div class="styGenericDiv" style="height:6mm;width:25mm"/>
</div>
<xsl:call-template name="partII9bLoop">
<xsl:with-param name="index" select="$index+1"/>
<xsl:with-param name="max" select="$max"/>
</xsl:call-template>
</xsl:if>
</xsl:template>
</xsl:stylesheet>