-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIRS8888Template.xsl
84 lines (74 loc) · 4.03 KB
/
IRS8888Template.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
<?xml version="1.0"?>
<!DOCTYPE xsl:stylesheet [<!ENTITY nbsp " ">]>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" encoding="iso-8859-1"/>
<!--
***************************************************************************************************************************************************************
IRS8888 Template
***************************************************************************************************************************************************************
Description: This stylesheet contains XSL templates that are used in every xsl "IRS Form" stylesheet.
***************************************************************************************************************************************************************
-->
<!--
***************************************************************************************************************************************************************
Name: IRS8888IndividualNumberBox
Description: Template for splitting up Number fields into individual letter boxes such as on 8849
Req Param:
Opt Param:
Called By:
Calls: PopulateID, PopulateChgHistory
Log: 2008-06-17 - James Ganzy - Initial creation
***************************************************************************************************************************************************************
-->
<xsl:template name="IRS8888IndividualNumberBox">
<xsl:param name="TargetNode"/>
<xsl:param name="BoxNum"/>
<div style="width:5mm;height:6mm;font-size:8.5pt;padding-top:1.3mm;text-align:center;border:1 solid black;border-right-width:0;clear:none;float:left">
<span>
<xsl:attribute name="id">
<xsl:call-template name="PopulateID">
<xsl:with-param name="TargetNode" select="$TargetNode"/>
</xsl:call-template>
</xsl:attribute>
<xsl:call-template name="PopulateChgHistory">
<xsl:with-param name="targetNode" select="$TargetNode"/>
<xsl:with-param name="thisTemplate" select=" 'forLetterBox' "/>
<xsl:with-param name="boxNum" select="$BoxNum"/>
</xsl:call-template>
</span>
</div>
</xsl:template>
<!--
***************************************************************************************************************************************************************
Name: IRS8888IndividualSizablenumbterBox
Description: Template for splitting up Number fields into individual letter boxes of varying sizes such as on 2290
Req Param: BoxWidth,BoxHeight,BoxTopPadding
Opt Param:
Called By:
Calls: PopulateID, PopulateChgHistory
Log: 2007-05-21 - Jason Goltermann - Initial creation
2007-06-26 - Jason Goltermann - Added <span> tags around calls to PopulateID and PopulateChangeHistory
***************************************************************************************************************************************************************
-->
<xsl:template name="IRS8888IndividualSizableNumberBox">
<xsl:param name="TargetNode"/>
<xsl:param name="BoxNum"/>
<xsl:param name="BoxWidth" />
<xsl:param name="BoxHeight" />
<xsl:param name="BoxTopPadding" />
<div style="width:{$BoxWidth};height:{$BoxHeight};padding-top:{$BoxTopPadding};font-size:8.5pt;text-align:center;border:1 solid black;clear:none;float:left" >
<span>
<xsl:attribute name="id">
<xsl:call-template name="PopulateID">
<xsl:with-param name="TargetNode" select="$TargetNode"/>
</xsl:call-template>
</xsl:attribute>
<xsl:call-template name="PopulateChgHistory">
<xsl:with-param name="targetNode" select="$TargetNode"/>
<xsl:with-param name="thisTemplate" select=" 'forLetterBox' "/>
<xsl:with-param name="boxNum" select="$BoxNum"/>
</xsl:call-template>
</span>
</div>
</xsl:template>
</xsl:stylesheet>