Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
18611 lines (17882 sloc) 689 KB
<!-- =========================================================== -->
<!-- MODULE: Legislative Branch Bills XSLT -->
<!-- VERSION: 3.2 -->
<!-- DATE: January 4, 2013 -->
<!-- Previous version and date: 3.1 September 18, 2012 -->
<!-- ============================================================= -->
<!-- Formal Public Identifier: billres.xsl -->
<!-- SYSTEM: Legislative Branch XSL -->
<!-- PURPOSE: Contains Bill-specific information for display of -->
<!-- the Bills and Resolutions on the web -->
<!-- -->
<!-- CONTAINS: 1) Calls to res.dtd and bill.dtd -->
<!-- 2) Overall structure of a Bill, Resolution, -->
<!-- Amendments -->
<!-- -->
<!-- MODULES REQUIRED: -->
<!-- XSL and DTD Common Elements
Additional files required to be placed in same folder
as billres.xsl:
table.xsl (for tables)
dotline 1.gif (to create leaders)
background.gif (parchment on enrolled bills)
light blue background.gif (blue for House engrossed bills)
12 jpegs all beginning with the word "Enrolled" (This
sets up the fancy Goudy type found at the beginning
enrolled bills. as 0f 1/1/2012 good through 115th Congress)
-->
<!-- -->
<!-- CREATED FOR: -->
<!-- House of Representatives, Senate and The Library -->
<!-- of Congress -->
<!-- ORIGINAL CREATION DATE: -->
<!-- November 25, 2003 -->
<!-- DEVELOPED BY: Government Printing Office -->
<!-- DEVELOPER: Alia Malhas/Tanya Braginsky -->
<!-- SEND COMMENTS/QUERIES TO: Kathleen Swiatek(kswiatek@gpo.gov) -->
<!-- ============================================================= -->
<!-- CHANGE HISTORY
Changes incorporated in version 3.2 (01/04/13):
These changes were done to keep the web xslt stylesheet
correctly display changes made in the xml to locator
translation since the last release which was version 5.5.1.
It should cover issues found in translation releases since
September 2012. For more information see the Release Notes under
the title Congressional bills on the Change Management website:
http://changemanagement.gpo.gov/
1. Adjusted total rows and the rules above them to more accurately
reflect printed copy.
2. Added committee-report-segment to amendments.
3. Fixed display of subscript and supescript within toc-entries
4. Brackets missing in certain scenarios around inline comments
now appear
5. Centered legis-num on endorsements for Internet Explorer
6. Fixed display of division and subdivision headers
Changes incorporated in version 3.1 (09/18/12):
These changes were done to keep the web xslt stylesheet
correctly display changes made in the xml to locator
translation since the last release which was version 5.4.2.
It should cover issues found in translation releases since
February 2012. For more information see the Release Notes under
the title Congressional bills on the Change Management website:
http://changemanagement.gpo.gov/
1. Fixed quoted-block starting with chapter level which
failed to display in Google Chrome
2. Amendment-instruction now honors the default value of the
blank-line-after attribute
3. Fixed missing opening double quote for yes-display-inline
subparagraph
4. Worked on amendment display
Changes incorporated in version 3.0 (07/02/12):
These changes were done to keep the web xslt stylesheet
correctly display changes made in the xml to locator
translation since the last release which was version 5.4.2.
It should cover issues found in translation releases since
February 2012. For more information see the Release Notes under
the title Congressional bills on the Change Management website:
http://changemanagement.gpo.gov/
1. Removed display of pre-form for amendments
2. Allow comment to display in amendments
3. Worked on missing quoted blocks from display such as when
quoted block started with a section in USC style (note verified
in Internet Explorer extensively, but may still be problems in
other browsers)
4. In Firefox, fixed display of legis-num in enrolled bills so
it no longer runs into the red border box and centered the
first-page-date in house amendments
5. In Safari, Firefox and Google Chrome, for the element
committee-report-subpara fixed the text size
6. Adjusted coding to honor display="no" in various browsers on
congress and session in house amendments
7. Added support for footnotes for various documents
Changes incorporated in version 2.9 (02/21/12):
These changes were done to keep the web xslt stylesheet
correctly display changes made in the xml to locator
translation since the last release. It should cover issues
found in translation releases since October 2011. For more
information see the Release Notes under the title Congressional
Bills on the Change Management website:http:
//www.gpoaccess.gov/icreport/legdocs/change.htm
Some of the corrections include:
1. The form printing for the resolutions in the pre-introduction stage is
incorrect. The official title, current chamber and action description
weren’t printed.
2. Change display of committee votes (House Rules).
3. Fixed problem with display of form information in enrolled
bills
4. Changed to proper format for toc-entries when these toc-entries
were to be italic or strikethrough
5. Justified text for committee reports
Changes incorporated in version 2.8 (10/21/11):
First release including rendering in browsers other than
Internet Explorer. Specifically, the web xslt stylesheet was
tested in the following browsers: Firefox (1.9.2.4280);
Safari(5.33.21.1) and Chrome (14.0.835.187).
These changes were done to keep the web xslt stylesheet
correctly display changes made in the xml to locator
translation since the last release. It should cover issues
found in translation releases since June 2011. For more
information see the Release Notes under the title Congressional
Bills on the Change Management website:http:
//www.gpoaccess.gov/icreport/legdocs/change.htm
Some of the corrections include:
1. Italic was not displaying in Firefox, Crome and Safari
2. Fixed missing type in header found before and add-phrase
element.
3. Deleted space between italic header and generated period and
em dash
4. Adjusted coding for changing element name for headers in committee
reports segments
5. Official-title now displays twice where necessary when using Firefox
6. Fixed display of outer quotes in certain nested-quoted-block scenarios
7. Added coding to keep in sync with translate including allowing added-
or deleted-phrases in afer-quoted-block, supporting subparagraph,
margin-indent among others.
Changes incorporated in version 2.9 (02/21/12):
These changes were done to keep the web xslt stylesheet
correctly display changes made in the xml to locator
translation since the last release. It should cover issues
found in translation releases since October 2011. For more
information see the Release Notes under the title Congressional
Bills on the Change Management website:http:
//www.gpoaccess.gov/icreport/legdocs/change.htm
Some of the corrections include:
1. The form printing for the resolutions in the pre-introduction stage is
incorrect. The official title, current chamber and action description
weren’t printed.
2. Change display of committee votes (House Rules).
3. Fixed problem with display of form information in enrolled
bills
4. Changed to proper format for toc-entries when these toc-entries
were to be italic or strikethrough
5. Justified text for committee reports
Changes incorporated in version 2.8 (10/21/11):
First release including rendering in browsers other than
Internet Explorer. Specifically, the web xslt stylesheet was
tested in the following browsers: Firefox (1.9.2.4280);
Safari(5.33.21.1) and Chrome (14.0.835.187).
These changes were done to keep the web xslt stylesheet
correctly display changes made in the xml to locator
translation since the last release. It should cover issues
found in translation releases since June 2011. For more
information see the Release Notes under the title Congressional
Bills on the Change Management website:http:
//www.gpoaccess.gov/icreport/legdocs/change.htm
Some of the corrections include:
1. Italic was not displaying in Firefox, Crome and Safari
2. Fixed missing type in header found before and add-phrase
element.
3. Deleted space between italic header and generated period
and em dash
4. Adjusted coding for changing element name for headers in committee
reports segments
5. Official-title now displays twice where necessary when using Firefox
6. Fixed display of outer quotes in certain nested-quoted-block scenarios
7. Added coding to keep in sync with translate including allowing added-
or deleted-phrases in afer-quoted-block, supporting subparagraph,
margin-indent among others.
Changes incorporated in version 2.7 (06/21/11):
These changes were done to keep the web xslt stylesheet
correctly display changes made in the xml to locator
translation since the last release. It should cover issues
found in translation releases since June 2010. For more
information see the Release Notes under the title Congressional
Bills on the Change Management website.
Some of the corrections include:
1. Indent level for continuation-text to show proper
indentation level
2. Removal of an unnecessary double closed quote only on the
last nested quoted block
3. Fixed Text in commitee-report-para which was printing as a
header
4. Adjusted incorrect space between open quote mark and rules
header
5. Display of Opening and closing bold brackets in a deleted
TOC
6. Added space between letters only when legis-type has data
"Report" only in committee reports
7. Display of indentation on both sides for the new attribute
for committee reports only "margin-index"
8. Added support for committee-report-subpara, Parts within
committee reports
9 Allow added and deleted phrases in the after-quoted-block
element per change in dtd.
10. Graphic element added to web display. -->
<!-- Changes incorporated in version 2.6 (06/22/10):
These changes were done to keep the web xslt stylesheet
correctly display changes made in the xml to locator
translation since the last release. It should cover issues
found in translation releases since January 2010.
Some of the corrections include:
1. Adding closing black brackets where missing, especially
when the element's indentation level has been affected by
up or down attribute values; also added missing brackets
around the clause element
2. Fixing indentation issues found in certain scenarios
involving up and down indentation attribute values
3. Correcting error where style attribute not being picked
up in nested quoted blocks.
4. Now displaying the missing legis-num on endorsements
for engrossed amendments
5. Allowing a word space between a closed quote and an
opening bracket
6. Fixing the display of appropriations section header
7. Making the legis-num on endorsements all capitalized per
correct style
8. Adding various new development elements for committee
reports including different style for committee votes for
appropriations committee
9. Dsiplaying opening bracket in commented Whereeas clause
Changes incorporated in version 2.5 (12/22/09):
These changes were done to keep the web xslt stylesheet
correctly display changes made in the xml to locator translation
since the last release. It should cover issues found in
translation releases since January 2009. Some of the corrections
include:
1. Added anchors to sections per request
2. Added committee-report-view and cbo-cost-estimate-line to the
form of committee reports
3. Added logic for undesignated-section-indent to display flush left
when necessary
4. Fixed boldface-roman reporting style for resolution
5. Made the word "Amendment" in last amendment-description cap and small
cap letter
6. Added elements for amendments when printed by GPO
7. Displayed official-title on endorsement in engrossed stage of concurrent
resolutions
8. Fixed the enum for section in appropriations style
9. Fixed form for "house-order" type in resolutions
Changes incorporated in version 2.4 (9/02/09):
These changes were done to keep the web xslt stylesheet
correctly display changes made in the xml to locator translation
since the last release. It should cover issues found in
translation releases since January 2009. Some of the corrections
include:
1. Fixed fonts for Added and deleted phrases inside header-in-text
for all styles
2. Fixed font changes necessary when Header-in-text element was
inside added and deleted phrases all styles
3. Added and Deleted phrase inside TOC which was not displaying
the strikethrough or added text
4. Worked on appropriations display to ensure that all headers
and text displayed properly, including Appropriation Headers
for Major and Intermediate levels where there were added and/or
deleted phrases was causing the headers to break to multiple lines
5. Fixed calendar number to display when display="yes" no matter
what stage the bill shows
6. Corrected errors in Enum-in-header elements in the web
7. Aligned display of tables within the web with changes made in
the table tool including quote placement issues.
8. Worked on formulas to display better on the web especially
the quote issue.
9. Text in the rules-paragraph now displays properly as running
into the enum
Changes incorporated in version 2.3 (1/05/09):
These changes were done in order to make the web xslt stylesheet
correctly display Senate bills and resolutions though changes apply
to both House and Senate bills and resolutions when necessary:
1. Fixed tables making them a larger type size and filling the width
of the bill more closely as well as removing extra closed quotes as
aligment issues.
2. Missing type such as archaic-style subsection and paragraph headers
now displays as does continuation-block text missing from some
quoted blocks and calendar numbers for Placed-on-calendar stage.
3. Returned paragraph indents to text in appropriations bills.
4. Increased the indentation off the left margin of the carryover
lines for section headers
5. Multiple Report numbers now appear on separate lines.
6. Spacing issues around em dashes, usc section symbol and between
enums worked to lessen white space
7. Missing strikethrough line in certain section enums and headers
now aapears
8. Fixed indentation on certain quoted blocks as well as missing
quote marks at the beginning of quoted blocks
9. Fixed indents on the Attest line, for continuation-text affected
by the indent="up*" attribute for italic clause etc and various
other scenarios -->
<!--
Changes incorporated in version 2.2 (8/29/08):
1. Cleaned up the indention logic to eliminate wrong indentation
on continuation-text, quoted-block elements and for the indent
attribute among other scenarios
2. Fixed error in display when quoted-block had yes-display-inline as
the attribute value on the display-inline attribute
3. Missing endorsement on Placed-on-Calendar for Senate bills now
displays
4. Correct display for added-phrase, quotes and deleted phrase in the
short-title element
5. Verified changes in 4.3.4 release work on web
Changes incorporated in version 2.1 (6/20/08):
1. All features found in the 4.3 translation release including:
new style for Division, subdivision, chapter, subchapter for
traditional-inline and appropriations styles, while the
section header for appropriation matches the traditional
and not traditional-inline style
2. The displayHeader template has been completely optimized
3. The displayEnum template has been completely optimized
4. Worked the stylesheet so that when file was pulled into a
Microsoft Word
document data did not get lost or jumbled.
5. Removed duplicate closed quotes at end of some quoted blocks
6. Fixed errors in added and deleted styles
Changes incorporated in version 2.0 (4/09/08) re-released with
css attached 4/10/09:
1. Parallel development for appropriations bills being added to
he translate allowing for the following:
a) the three appropriations blocks, small-, intermediate- and
major
b) adding and deleting phrases and elements within appro-
priations
2. Fixed double printing of subsection in archaic and archaic-
paragraph style
3. Fixed style for acronym as 1st word in header for elements from
paragraph through subitem
4. Fixed superscripts to work on all big heads
5. Added various heads as found in committee prints
6. Adjusted the indentation on whereas clauses
7. Fixed header-in-text for certain styles (olc, traditional, usc
archaic and archaic paragraph)
8. Added the generated text "Sec." in certain styles
9. Adjusted stylesheet to allow for Firefox browswer by cor-
rected certain errors reported back to GPO (Note please report
any errors specific to Firefox and we will try to incorporate
them though no other browser will be worked at the moment).
Changes incorporated in version 1.9 (2/08/08):
1. Added amendments and committee reports to the stylesheet though
continued development may be need to these documents
2. Developed display for tables that will be using the new table
tool but the existing display for legacy tables continues to work
3. In general, parallelled the development and bug issues found in
printed copy from the last release including:
a) enum-in-header in traditional style
b) allowing for multiple action-date and action-desc elements on
the endorsement
c) last section of document not holding it style in a quoted block
d) allowing the fraction in the big heads
e) allowing for added and deleted phrases in big heads
f) allowed for appropriation elements
g) fixed some reported bugs where strikethrough and italic were
not showing
Changes incorporated in version 1.8 (3/02/07):
1. Added to the coding to allow for more scenarios of a quoted-
block within resolutions
2. Fixed the coding for enrolled bills to allow for the 110th and
other Congresses
3. Adjusted coding to show constitution-articles for constitutional-
amendments
4. Fixed missing quotes at the beginning of sections within enrolled
bills
Changes incorporated in version 1.7 (4/05/06):
1. Remove informational boxes from the top of the bills.
2. Fixed the coding for enrolled bills to allow for the 109th
Congress
Changes incorporated in version 1.6 (9/23/05):
1. Eliminated display of attestor name when display="no" was the
attribute.
2. Deleted additional official-title and chamber name that was
appearing on House engrossed bills
3. Removed border box from House engrossed bills and added rule
between end of bill and endorsement where necessary on House
engrossed bills and resolutions
4. Adjusted House joint resolutions to reflect proper style.
Changes incorporated in version 1.5 (7/13/05):
1. Fixed engrossed stage to show a blue background for the House
bills and resolutions while leaving the Senate versions with a
white background
2. Added the first enrolled version of the bills and resolutions
including a border around the bill and a parchment background.
3. Changed the information in the comment box found on House bills
to correctly spell "activities" and to remove the "We welcome
your comments" line.
Changes incorporated in version 1.4 (2/22/05):
1. Added engrossed stage for both bills and simple, joint and
concurrent resolutions.
2. Fixed bugs found in display dealing with display of headers in
both traditional and archaic styles.
Changes incorporated in version 1.3.2 (1/27/05):
1. Fixed certain bugs found in the first bills of the 109th Congress
including problems with semicolons in after quoted blocks; align-
ment issues with clause as the first item in quoted block.
2. Started beginning stages of endorsed bills that simple resolutions
are now displayable.
Changes incorporated in version 1.3 (12/29/04)
1. Added the typeface display elements used to amend bills; the four
typefaces covered were strikethrough type, italic type, bold
type and bold italic type.
2. Worked on completing the other styles including the big heads in
text and toc, including internal links, in IRC, USC and traditonal
and verifying they appeared correctly in the amended styles
listed above. Started also the archaic style
3. Made corrections or additions to the header-in-text display in
olc, usc, and traditional styles.
4. Added the following elements to the resolutions which reached a
reported stage: calendar nos., report nos. and actions; also added
the endorsement.
Changes incorporated in version 1.2 (9/09/04):
1. Added the following items, at least in initial simple scenarios
in order to begin to run reported bills:
a. Added to form calendar nos., report nos. and multiple
actions, including adding the element action-instructions.
b. Added endorsement including all elements.
c. Define certain scenarios of reported bills, including without
amendment, in the nature of a substitute, both single committee
and multiple committee, and changes by one committee, showing
text in strikethrough, italic and bold roman
2. Added the beginnings of the unnumbered list, defining them from
section through sub-item but not defining them in relation to
the "up*" attributes
3. Fixed the "up1" attribute to work in archaic style
Changes incorporated in version 1.1 (7/13/04):
1. Clean up and rewrite coding to adjust and/or add to the following
coding tags and scenarios:
a. The indents="up*" attributes (up1 to up6);
b. The indent="down1" attribute;
c. The indent as absolutes in the attribute;
d. Quoted blocks affected the indent attribute occurring both
within the quoted block and after the quoted block.
e. Continuation text both in and out of quoted blocks and
affected by the "indent=up*" attribute;
f. quoted-block-continuation-text as affected by the above
indent attributes.
2. Adjust logic to allow display of xml elements under Part and
Chapter headings.
3. Account for quoted-blocks that run into the text
before the quotes.
4. Allow display of tables in the paragraph and
subparagraph elements.
-->
<!-- Changes Date: April 2008
Changes Owner : Tanya Braginsky
the complete appropriations functionality was inserted to make web to be identical with LXL translator for appropriations.
-->
<!-- ============================================================= -->
<!-- -->
<!-- -->
<!-- ========================== END ============================== -->
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ms="urn:schemas-microsoft-com:xslt" xmlns:dc="http://purl.org/dc/elements/1.1/">
<xsl:include href="table.xsl"/>
<xsl:output method="html"/>
<xsl:variable name="enact"> Be it enacted by the Senate and House of Representatives of the
United States of America in Congress assembled, </xsl:variable>
<xsl:variable name="HouseResolution"> Resolved, </xsl:variable>
<xsl:variable name="OrderedSection"> Ordered,</xsl:variable>
<xsl:variable name="HouseJoint"> Resolved by the Senate and House of Representatives of the
United States of America in Congress assembled, </xsl:variable>
<xsl:variable name="HouseConcurrent"> Resolved by the House of Representatives (the Senate
concurring), </xsl:variable>
<xsl:variable name="ConstitutionalAmendment"> Resolved by the Senate and House of
Representatives of the United States of America in Congress assembled (two-thirds of each
House concurring therein), </xsl:variable>
<xsl:variable name="SenateConcurrent"> Resolved by the Senate (the House of Representatives
concurring), </xsl:variable>
<xsl:variable name="SenateJoint"> Resolved by the Senate and House of Representatives of the
United States of America in Congress assembled, </xsl:variable>
<xsl:variable name="SenateResolution"> Resolved, </xsl:variable>
<xsl:variable name="lower" select="'abcdefghijklmnopqrstuvwxyzàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ'"/>
<xsl:variable name="upper" select="'ABCDEFGHIJKLMNOPQRSTUVWXYZÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞß'"/>
<xsl:variable name="number" select="0123456789"/>
<xsl:variable name="punc" select="."/>
<xsl:variable name="FlagTOC" select="bill/legis-body/section/subsection/toc"/>
<xsl:variable name="billType" select="bill/@bill-type"/>
<xsl:variable name="amendType" select="amendment-doc/@amend-type"/>
<xsl:variable name="resolutionType" select="resolution/@resolution-type"/>
<xsl:variable name="documentType" select="bill/@bill-type | resolution/@resolution-type"/>
<xsl:variable name="billStage" select="bill/@bill-stage"/>
<xsl:variable name="resolutionStage" select="resolution/@resolution-stage"/>
<xsl:variable name="documentStage" select="bill/@bill-stage | resolution/@resolution-stage"/>
<xsl:variable name="senateAmendment">
<xsl:call-template name="IsSenateAmendment"/>
</xsl:variable>
<xsl:variable name="isReport">
<xsl:call-template name="IsDocumentReport"/>
</xsl:variable>
<xsl:variable name="confReportStyle" select="//conference-report-form/@conference-report-style"/>
<!-- this variable we need to be able to print headers and -->
<xsl:variable name="committeeID">
<xsl:value-of select="//committee-report/@committee-id"/>
</xsl:variable>
<xsl:strip-space elements="*"/>
<xsl:template match="/">
<html encoding="utf-8">
<head>
<title>
<!--xsl:value-of select="bill/form/legis-num"/>
<xsl:value-of select="resolution/form/legis-num"/>
<xsl:value-of select="amendment-doc/amendment-form/legis-num"/-->
<xsl:call-template name="GetNumberToPrint"/>
<xsl:text> (</xsl:text>
<xsl:value-of select="bill/@bill-stage"/>
<xsl:value-of select="resolution/@resolution-stage"/>
<xsl:value-of select="amendment-doc/@amend-type"/>
<xsl:value-of select="committee-report/committee-report-form/legis-type"/>
<xsl:text>)</xsl:text>
</title>
<style type="text/css">
a {
color: blue;
text-decoration: none;
}
.allcap {
text-transform:uppercase;
}
allcapDiv {
text-transform:uppercase;
font-size: 16pt;
}
.largecap {
font-variant: small-caps;
font-weight: bold;
font-size: 18pt;
}
.mediumcap {
font-variant: small-caps;
font-weight: bold;
font-size: 16pt;
}
.smallcap {
font-variant: small-caps;
font-weight: bold;
}
.allcapnormal {
font-size: 12pt;
text-transform: uppercase;
}
.iscap {
font-variant: small-caps;
font-weight: bold;
text-transform: capitalize;
}
.simplecap {
font-variant: small-caps;
}
.simplecapEx
{
font-size: 12pt;
text-transform: uppercase;
}
.initialcap {
word-spacing: 2;
letter-spacing: 1;
font-variant: small-caps;
font-weight: bold;
text-transform: capitalize;
}
.hang {
text-indent: -2em;
}
.indent {
text-indent: 2em;
}
.indentSubsection {
text-indent: 2em;
margin-left: 0em;
text-align:justify;
}
.indentParagraph {
text-indent: 2em;
margin-left: 2em;
text-align:justify;
}
.indentSubpar {
text-indent: 2em;
margin-left: 4em;
text-align:justify;
}
.indentClause {
text-indent: 2em;
margin-left: 6em;
text-align:justify;
}
.indentSubclause {
text-indent: 2em;
margin-left: 8em;
text-align:justify;
}
.indentItem {
text-indent: 2em;
margin-left: 10em;
text-align:justify;
}
.indentSubItem {
text-indent: 2em;
margin-left: 12em;
text-align:justify;
}
indentSubsection {
text-indent: 2em;
text-align:justify;
}
.nonIndentSubsection {
text-indent:0em;
margin-left:0em;
text-align:justify;
}
.noindentParagraph {
text-indent: 0em;
margin-left: 2em;
text-align:justify;
}
.noindentSubpar {
text-indent: 0em;
margin-left: 4em;
text-align:justify;
}
.noindentClause {
text-indent: 0em;
margin-left: 6em;
text-align:justify;
}
.noindentSubclause {
text-indent: 0em;
margin-left: 8em;
text-align:justify;
}
.noindentItem {
text-indent: 0em;
margin-left: 10em;
text-align:justify;
}
.noindentSubItem {
text-indent: 0em;
margin-left: 12em;
text-align:justify;
}
.
.indentTax {
text-indent: 2em;
font-weight: normal;
font-size:13pt;
}
.legisnum {
font-size: 37pt;
font-weight: bold;
}
.legisnumAvg {
font-size: 36pt;
font-weight: bold;
letter-spacing: -2;
}
.legisnumlrg {
font-size: 37pt;
font-weight: bold;
letter-spacing: -3;
}
.legisnumSml {
font-size: 17pt;
font-weight: bold;
}
.legistype {
font-size: 30pt;
}
.chamber {
font-size: 15pt;
}
.chamberEngrHouse {
font-size: 20pt;
font-weight: bold;
font: italic;
}
.congressEnrolled {
font-size: 30pt;
font-weight: bold;
font-family: Monotype Corsiva;
}
.legisEnrolled {
font-size: 30pt;
font-weight: bold;
font-family: Monotype Corsiva;
word-spacing: 2;
letter-spacing: 1;
font-variant: normal;
text-transform: capitalize;
}
.legisEngrossed {
font-size: 30pt;
font-weight: bold;
font-family: Monotype Corsiva;
word-spacing: 2;
letter-spacing: 1;
text-transform: capitalize;
}
.sessionEnrolled {
font-size: 12pt;
font-weight: bold;
}
.dateEnrolled {
font-size: 10pt;
font: italic;
font-weight: bold;
}
.biglevel {
font-size: 26pt;
font-weight: bold;
}
.leftjustify {
text-indent: 0em;
text-align: justify;
}
.leftjustifyct {
text-indent: 0em;
}
.thinspace {
word-spacing: -5;
}
.nSpace {
word-spacing: -1;
}
.ommitedTextSpace {
word-spacing: 60;
}
.initialcapArchaic {
font-variant: normal;
text-transform: capitalize;
}
.sectionlevelOLC {
font-size:12pt;
font-weight:bold;
}
.boldfacesectionlevelOLC{
font-size:14pt;
font-weight:bold;
}
.sectionlevelOLCBold {
font-size:14pt;
font-weight:bold;
}
.divisionlevelOLC {
font-size:18pt;
font-weight:bold;
}
.titlelevelOLC {
font-size:18pt;
font-weight:bold;
}
.subtitlelevelOLC {
word-spacing: 2;
letter-spacing: 1;
font-variant: normal;
font-size:18pt;
font-weight:bold;
text-transform: capitalize;
}
.subtitlelevelOLCBold {
word-spacing: 2;
letter-spacing: 1;
font-variant: normal;
font-size:20pt;
font-weight:bold;
text-transform: capitalize;
}
.chapterlevelOLC {
font-size:16pt;
font-weight:bold;
}
.chapterlevelOLCBold {
font-size:20pt;
font-weight:bold;
}
.subchapterlevelOLC {
word-spacing: 2;
letter-spacing: 1;
font-variant: normal;
font-size:16pt;
font-weight:bold;
text-transform: capitalize;
}
.subchapterlevelOLCBold {
word-spacing: 2;
letter-spacing: 1;
font-variant: normal;
font-size:20pt;
font-weight:bold;
text-transform: capitalize;
}
.chapterlevelOLCnuclear {
font-size:16pt;
}
.sectionlevelOLCnuclear {
word-spacing: 2;
letter-spacing: 1;
font-variant: small-caps;
text-transform: capitalize;
}
.partlevelOLC {
font-size:14pt;
font-weight:bold;
}
.partlevelOLCBold {
font-size:20pt;
font-weight:bold;
}
.subpartlevelOLC {
word-spacing: 2;
letter-spacing: 1;
font-variant: normal;
font-size:14pt;
font-weight:bold;
text-transform: capitalize;
}
.subpartlevelOLCBold {
word-spacing: 2;
letter-spacing: 1;
font-variant: normal;
font-size:20pt;
font-weight:bold;
text-transform: capitalize;
}
.tocsectionOLC {
font-size: 80%;
text-indent: -2em;
margin-left: 2em;
}
.tocdivisionOLC {
font-size: 11pt;
}
.tocsubdivisionOLC {
font-size: 10pt;
font-variant: small-caps;
text-transform: capitalize;
}
.tocsubdivisionwithEnumOLC {
font-size: 10pt;
}
.toctitleOLC {
font-size: 11pt;
}
.tocsubtitleOLC {
font-variant: normal;
text-transform: capitalize;
font-size: 11pt;
}
.tocsubtitlewithenumOLC {
font-variant: normal;
font-size: 11pt;
}
.tocchapterOLC {
font-size: 11pt;
}
.tocsubchapterOLC {
font-size: 9pt;
}
.tocpartOLC {
font-size: 11pt;
}
.tocsubpartOLC {
font-variant: small-caps;
font-size: 9pt;
}
.mediumcapTrad {
font-variant: small-caps;
font-weight: bold;
font-size: 14pt;
}
.smallcapTrad {
font-variant: small-caps;
font-size: 12pt;
}
.initialcapTrad {
word-spacing: 2;
letter-spacing: 1;
font-size: 14pt;
font-variant: small-caps;
text-transform: capitalize;
}
.largecapTrad {
font-variant: small-caps;
font-size: 16pt;
}
.sectionlevelTrad {
font-size:12pt;
}
.sectionTitleTrad {
font-variant: small-caps;
text-transform: capitalize;
}
.sectionlevelTradBold {
font-size:14pt;
}
.titlelevelTrad {
font-size:16pt;
font-variant: small-caps;
text-transform: capitalize;
}
.titlelevelTradIn {
font-size:16pt;
text-transform: uppercase;
font-weight:bold;
}
.titlelevelTradEx
{
font-size:16pt;
text-transform: uppercase;
}
.titlelevelTradBold {
font-size:18pt;
}
.subtitlelevelTrad {
font-size:16pt;
word-spacing: 2;
letter-spacing: 1;
font-variant: normal;
text-transform: capitalize;
}
.subtitlelevelTradBold {
font-size:16pt;
word-spacing: 2;
letter-spacing: 1;
font-variant: normal;
text-transform: capitalize;
}
.partlevelTrad {
font-size:16pt;
font-variant: small-caps;
text-transform: capitalize;
}
.partlevelTradBold {
font-size:18pt;
}
.subpartlevelTrad {
word-spacing: 2;
letter-spacing: 1;
font-variant: normal;
font-size:16pt;
text-transform: capitalize;
}
.subpartlevelTradBold {
word-spacing: 2;
letter-spacing: 1;
font-variant: normal;
font-size:18pt;
text-transform: capitalize;
}
.chapterlevelTrad {
word-spacing: 2;
letter-spacing: 1;
text-transform: uppercase;
font-size:16pt;
font-weight:bold;
}
.chapterlevelTradBold {
word-spacing: 2;
letter-spacing: 1;
font-variant: normal;
text-transform: capitalize;
font-size:16pt;
font-weight:bold;
}
.subchapterlevelTrad {
word-spacing: 2;
letter-spacing: 1;
font-variant: small-caps;
text-transform: capitalize;
font-size:16pt;
}
.subchapterlevelTradEx
{
word-spacing: 2;
letter-spacing: 1;
text-transform: uppercase;
font-size:16pt;
}
.subchapterlevelTradInline {
word-spacing: 2;
letter-spacing: 1;
font-variant: small-caps;
font-size:16pt;
}
.subchapterlevelTradBold {
word-spacing: 2;
letter-spacing: 1;
font-variant: small-caps;
text-transform: capitalize;
font-size:18pt;
}
.tocsectionTrad {
font-size: 80%;
text-indent: -2em;
margin-left: 2em;
}
.toctitleTrad {
font-size: 11pt;
font-variant: normal;
}
.tocsubtitleTrad {
font-size: 11pt;
}
.tocchapterTrad {
font-variant: small-caps;
text-transform: capitalize;
font-size: 11pt;
}
.tocsubchapterTrad {
font-variant: normal;
font-size: 11pt;
}
.tocpartTrad {
font-variant: small-caps;
font-size: 10pt;
}
.tocsubpartTrad {
font-variant: normal;
font-size: 10pt;
}
.sectionlevelIRC {
font-size:12pt;
font-weight:bold;
}
.sectionlevelIRCEx {
font-size:12pt;
font-weight:bold;
text-transform: uppercase;
}
.sectionlevelIRCBold {
font-size:14pt;
font-weight:bold;
}
.titlelevelIRC {
font-size:18pt;
font-weight:bold;
}
.titlelevelIRCEx {
font-size:18pt;
font-weight:bold;
text-transform: uppercase;
}
.subtitlelevelIRC {
word-spacing: 2;
letter-spacing: 1;
font-variant: normal;
font-size:18pt;
font-weight:bold;
text-transform: capitalize;
}
.subtitlelevelIRCBold {
word-spacing: 2;
letter-spacing: 1;
font-variant: normal;
font-size:22pt;
font-weight:bold;
text-transform: capitalize;
}
.chapterlevelIRC {
font-size:16pt;
font-weight:bold;
}
.chapterlevelIRCEx {
font-size:16pt;
font-weight:bold;
text-transform: uppercase;
}
.chapterlevelIRCBold {
font-size:20pt;
font-weight:bold;
}
.subchapterlevelIRC {
word-spacing: 2;
letter-spacing: 1;
font-variant: normal;
font-size:16pt;
font-weight:bold;
text-transform: capitalize;
}
.subchapterlevelIRCBold {
word-spacing: 2;
letter-spacing: 1;
font-variant: normal;
font-size:20pt;
font-weight:bold;
text-transform: capitalize;
}
.partlevelIRC {
font-size:14pt;
font-weight:bold;
}
.partlevelIRCEx {
font-size:14pt;
font-weight:bold;
text-transform: uppercase;
}
.partlevelIRCBold {
font-size:20pt;
font-weight:bold;
}
.subpartlevelIRC {
word-spacing: 2;
letter-spacing: 1;
font-variant: normal;
font-size:14pt;
font-weight:bold;
text-transform: capitalize;
}
.subpartlevelIRCBold {
word-spacing: 2;
letter-spacing: 1;
font-variant: normal;
font-size:20pt;
font-weight:bold;
text-transform: capitalize;
}
.tocsectionIRC {
font-size:11pt;
}
.tocsectionIRCTax {
font-size:11pt;
font-variant: normal;
text-transform: capitalize;
}
.tocsectionIRCBold {
font-size:12pt;
}
.toclowercaseIRC {
font-size:11pt;
}
.toclowercaseIRCBold {
font-size:12pt;
}
.tocchapterIRC {
font-size: 11pt;
}
.tocBigcapsLowcapsIRC {
font-size:11pt;
font-variant: small-caps;
text-transform: capitalize;
}
.tocBigcapsLowcapsIRCBold{
font-size:12pt;
font-variant: small-caps;
text-transform: capitalize;
}
.tocpartIRC {
font-variant: normal;
text-transform: capitalize;
font-size: 11pt;
}
.tocpartIRCTax {
font-variant: normal;
font-size: 11pt;
}
.tocpartIRCBold {
font-variant: normal;
text-transform: capitalize;
font-size: 12pt;
}
.tocsubpartIRC {
font-variant: normal;
text-transform: capitalize;
font-size: 11pt;
}
.tocsubpartIRCBold {
font-variant: normal;
text-transform: capitalize;
font-size: 12pt;
}
.initialcapIRC {
word-spacing: 2;
font-variant: small-caps;
text-transform: capitalize;
}
.sectionlevelUSC {
font-size:14pt;
font-weight:bold;
}
.smallcapUSC {
font-size: 12pt;
}
.initialcapUSC {
font-variant: small-caps;
font-size: 14pt;
}
.titlelevelUSC {
font-size:18pt;
font-weight:bold;
}
.subtitlelevelUSC {
font-size:12pt;
font-weight:bold;
font-variant: normal;
text-transform: capitalize;
}
.chapterlevelUSC {
font-size:14pt;
font-weight:bold;
}
.subchapterlevelUSC {
font-size:14pt;
}
.subchapterlevelUSCEx {
font-size:14pt;
text-transform:uppercase;
}
.partlevelUSC {
font-size:14pt;
font-weight:bold;
}
.tocsectionUSC {
font-size: 80%;
text-indent: -2em;
margin-left: 2em;
}
.dot-leader {
vertical-align:bottom;
background-image:url(dot_line1.gif);
background-repeat:repeat-x;
background-position: bottom;
}
.td {
background-color: #FFFFFF;
font-size:90%;
}
.calendarOLC {
font-size:24pt;
font-weight:bold;
letter-spacing: -1;
}
.calendarOLCLongTitle {
font-size:24pt;
font-weight:bold;
letter-spacing: -1;
}
.associatedDocOLC {
font-size:14pt;
font-weight:bold;
}
.hangtable {
text-indent: -3em;
font-size:10pt;
}
.EndsmtHead {
font-size:12pt;
font-weight:bold;
}
.EndsmtSimpleCap {
font-size:10pt;
font-variant: small-caps;
}
.EndsmtMediumCap {
font-size:20pt;
font-weight:bold;
}
.EndsmtLargeCap {
font-size:28pt;
font-weight:bold;
}
.PageBreakAfter {
page-break-before: always;
}
.smtlegisnum {
font-size: 28pt;
font-weight: bold;
}
.smtlegisnumAvg {
font-size: 28pt;
font-weight: bold;
letter-spacing: -2;
}
.smtlegisnumlrg {
font-size: 28pt;
font-weight: bold;
letter-spacing: -3;
}
.bold {
font-weight: bold;
}
.brakets {
font-size: 16pt;
font-weight: bold;
font-family: Arial;
}
sub {
font-size: 10pt
}
sup {
font-size: 10pt
}
.Attest {
font-size: 13pt
}
.headerAppropMajor {
font-size: 16pt;
text-transform: uppercase;
}
.headerAppropMajorItalic {
font-size: 16pt;
text-transform: uppercase;
font:italic;
}
.headerAppropIntermediate {
font-size:16pt;
font-variant: small-caps;
text-transform: capitalize;
}
.headerAppropIntermediateItalic {
font-size:16pt;
font-variant: small-caps;
text-transform: capitalize;
font:italic;
}
.headerAppropSmall {
font-variant: small-caps;
text-transform:lowercase;
}
.headerAppropSmallItalic {
font-variant: small-caps;
text-transform:lowercase;
font:italic;
}
.subheaderApprop {
font-variant: small-caps;
text-transform: lowercase;
}
.subheaderAppropItalic {
font-variant: small-caps;
text-transform: lowercase;
font:italic;
}
.allnormal {
font-variant: normal;
text-transform: lowercase;
}
.VotesStyle {
font-family: Arial Narrow;
}
.VotesStyleSmall {
font-size:11pt;
font-family: Arial Narrow;
}
.lbexSmallText {
font-size: 12pt;
}
P.breakhere {page-break-before: always}
body {
font-size: 14pt;
margin-left: 40pt;
margin-right: 40pt;
<xsl:choose>
<xsl:when test="$resolutionStage='Enrolled-House' or $resolutionStage='Enrolled-in-Senate' or $billStage='Enrolled-Bill' or $resolutionStage='Enrolled-Bill' or $resolutionStage='Re-enrolled-in-Senate' or $billStage='Re-Enrolled-Bill'">
background-image: url(background.gif);
</xsl:when>
<xsl:when test="$resolutionStage='Engrossed-in-House' or $billStage='Engrossed-in-House' or $resolutionStage='Engrossed-House' or $billStage='Engrossed-House'">
background-image: url(light_blue_bkg.gif);
</xsl:when>
</xsl:choose>
}
</style>
</head>
<body>
<xsl:variable name="drawRedBoarder">
<xsl:choose>
<xsl:when test="$documentStage='Enrolled-in-Senate' or $documentStage='Enrolled-House' or $documentStage='Enrolled-Bill' or $documentStage='Re-Enrolled-in-Senate' or $documentStage='Re-Enrolled-Bill' ">
<xsl:text>yes</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:text>no</xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:if test="$billStage='Enrolled-Bill' or $resolutionStage='Enrolled-in-Senate' or $resolutionStage='Enrolled-House' or $resolutionStage='Enrolled-Bill'">
<table border="0" cols="2" width="100%">
<tr>
<td width="5%"/>
<td>
<xsl:if test="not(//form/legis-num/@display='no')">
<span class="sectionlevelTradBold">
<xsl:text> </xsl:text>
<xsl:apply-templates select="//form/legis-num"/>
</span>
</xsl:if>
</td>
</tr>
</table>
</xsl:if>
<xsl:choose>
<xsl:when test="$drawRedBoarder='yes'">
<table width="100%" border="3" bordercolor="#CC0000" cellspacing="0" cellpadding="30">
<tr>
<td>
<xsl:call-template name="printWebDocument"/>
</td>
</tr>
</table>
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="printWebDocument"/>
</xsl:otherwise>
</xsl:choose>
</body>
</html>
</xsl:template>
<xsl:template name="printWebDocument">
<p/>
<!-- TB 4Jan2008 -->
<xsl:if test="//pre-form/meta-senate">
<xsl:apply-templates select="//pre-form/meta-senate"/>
</xsl:if>
<xsl:apply-templates select="bill"/>
<xsl:apply-templates select="resolution"/>
<xsl:apply-templates select="amendment-doc"/>
<xsl:apply-templates select="committee-report"/>
</xsl:template>
<xsl:template name="DisplayEndorsement">
<xsl:param name="displayFlag"/>
<xsl:choose>
<xsl:when test="$displayFlag='no'"/>
<xsl:when test="//amendment-doc/@dms-id='G'">
<P CLASS="breakhere"/>
<center>
<xsl:value-of select="//amendment-form/amend-num"/>
<br/>
<p/>
<xsl:value-of select="//amendment-form/legis-num"/>
</center>
</xsl:when>
<xsl:otherwise>
<P CLASS="breakhere"/>
<center>
<table width="70%" border="0">
<xsl:if test="not(//first-page-header/@display='no' ) and not (//pre-form/@display='no') and contains(translate(//first-page-header/text(),$upper,$lower), 'committee')">
<tr>
<td>
<center>
<xsl:if test="not(//first-page-header/@display='no')">
<p class="boldfacesectionlevelOLC">
<xsl:value-of select="//first-page-header"/>
</p>
</xsl:if>
</center>
</td>
</tr>
</xsl:if>
<tr>
<td>
<p align="right" class="EndsmtHead">
<xsl:if test="not(//form/calendar/@display='no') and not (//form/@display='no')">
<xsl:apply-templates select="form/calendar"/>
</xsl:if>
<!-- TB 10Jan2008 -->
<xsl:if test="not(//amendment-form/calendar/@display='no')">
<xsl:apply-templates select="//amendment-form/calendar"/>
</xsl:if>
<xsl:if test="not(//engrossed-amendment-form/calendar/@display='no')">
<xsl:apply-templates select="//engrossed-amendment-form/calendar"/>
</xsl:if>
</p>
</td>
</tr>
<tr>
<td>
<table border="0" align="left" cols="2" width="100%">
<tr>
<td align="left" width="20%">
<div class="EndsmtSimpleCap" align="justify">
<xsl:if test="//form/congress and (not (//form/congress/@display='no') and not (//form/@display='no'))">
<xsl:apply-templates select="form/congress"/>
</xsl:if>
<xsl:if test="//amendment-form/congress">
<xsl:apply-templates select="//amendment-form/congress">
<xsl:with-param name="source">Endorsement</xsl:with-param>
</xsl:apply-templates>
</xsl:if>
<xsl:if test="//engrossed-amendment-form/congress">
<xsl:apply-templates select="//engrossed-amendment-form/congress"/>
</xsl:if>
<br/>
<xsl:text disable-output-escaping="yes"> </xsl:text>
<xsl:text disable-output-escaping="yes"> </xsl:text>
<xsl:text disable-output-escaping="yes"> </xsl:text>
<xsl:text disable-output-escaping="yes"> </xsl:text>
<xsl:text disable-output-escaping="yes"> </xsl:text>
<xsl:if test="//form/session and (not (//form/session/@display='no') and not (//form/@display='no'))">
<xsl:apply-templates select="form/session"/>
</xsl:if>
<!--xsl:if test="not (//amendment-formsession/@display='no')"-->
<xsl:if test=" (//amendment-form/session)">
<xsl:apply-templates select="//amendment-form/session">
<xsl:with-param name="source">Endorsement</xsl:with-param>
</xsl:apply-templates>
</xsl:if>
<!--xsl:if test="not (//engrossed-amendment-form/session/@display='no')"-->
<xsl:if test="//engrossed-amendment-form/session">
<xsl:apply-templates select="//engrossed-amendment-form/session"/>
</xsl:if>
</div>
</td>
<xsl:variable name="theNumberToPrint">
<xsl:call-template name="GetNumberToPrint"/>
</xsl:variable>
<xsl:if test="(not (//legis-num/@display='no') and not (//form/@display='no')) or $amendType='engrossed-amendment'">
<td align="left">
<xsl:variable name="tempNumberToPrint" select="$theNumberToPrint"/>
<xsl:choose>
<xsl:when test="string-length($theNumberToPrint) = 16">
<span class="smtlegisnumlrg" style="text-transform:uppercase;">
<xsl:value-of select="$theNumberToPrint"/>
</span>
</xsl:when>
<xsl:when test="string-length($theNumberToPrint) &lt; 16 and string-length($theNumberToPrint) &gt; 13">
<table width="12%" height="50" border="0" align="right">
<tr>
<td/>
</tr>
<tr>
<td/>
</tr>
</table>
<center>
<span class="smtlegisnumlrg" style="text-transform:uppercase;">
<xsl:value-of select="$theNumberToPrint"/>
</span>
</center>
</xsl:when>
<xsl:when test="string-length($theNumberToPrint) &lt; 14 and string-length($theNumberToPrint) &gt; 10">
<table width="25%" height="50" border="0" align="right">
<tr>
<td/>
</tr>
<tr>
<td/>
</tr>
</table>
<center>
<span class="smtlegisnumAvg" style="text-transform:uppercase;">
<xsl:value-of select="$theNumberToPrint"/>
</span>
</center>
</xsl:when>
<xsl:when test="number(string-length($theNumberToPrint)) &lt; 11">
<table width="25%" height="50" border="0" align="right">
<tr>
<td/>
</tr>
<tr>
<td/>
</tr>
</table>
<center>
<span class="smtlegisnum">
<xsl:value-of select="$theNumberToPrint"/>
</span>
</center>
</xsl:when>
</xsl:choose>
</td>
</xsl:if>
</tr>
</table>
</td>
</tr>
<tr>
<xsl:if test="not (form/associated-doc/@display='no') and not (//form/@display='no')">
<td>
<!--div align="center" class="EndsmtHead"-->
<!-- TB 12-Dec-2008 fixing of printing several accoc. docs in different lines. -->
<!--xsl:value-of select="form/associated-doc"/-->
<xsl:apply-templates select="form/associated-doc" mode="Endorsement"/>
<!--/div-->
<hr/>
</td>
</xsl:if>
</tr>
<tr>
<td>
<xsl:if test="form/associated-doc/@display='no' or //form/@display='no' and (not(//legis-type/@display='no') and not (//form/@display='no'))">
<hr/>
</xsl:if>
<xsl:if test="not(//legis-type/@display='no') and not (//form/@display='no')">
<div align="center" class="EndsmtMediumCap">
<xsl:apply-templates select="form/legis-type"/>
<xsl:apply-templates select="//amendment-form/legis-type"/>
<xsl:if test="//engrossed-amendment-form/legis-type">
<xsl:call-template name="printEngrossedAmendLegisType"/>
</xsl:if>
</div>
</xsl:if>
</td>
</tr>
<tr>
<td>
<ul>
<xsl:variable name="oficialTitleToValidateLength">
<xsl:call-template name="getOficialTitleToValidateLength"/>
</xsl:variable>
<xsl:if test="((not(//official-title/@display='no') and not (//form/@display='no')) or (contains(translate($documentStage, $upper, $lower), 'engrossed') and contains(translate($documentType,$upper, $lower), 'concurrent'))) and not (//amendment-doc)">
<xsl:choose>
<xsl:when test="string-length($oficialTitleToValidateLength) &lt; 75">
<div class="hangtable" align="center">
<xsl:apply-templates select="form/official-title"/>
<xsl:apply-templates select="//amendment-form/official-title"/>
<xsl:apply-templates select="//engrossed-amendment-form/form/official-title"/>
</div>
</xsl:when>
<xsl:otherwise>
<div class="hangtable" align="justify">
<xsl:apply-templates select="form/official-title"/>
<xsl:apply-templates select="//amendment-form/official-title"/>
<xsl:apply-templates select="//engrossed-amendment-form/form/official-title"/>
</div>
</xsl:otherwise>
</xsl:choose>
</xsl:if>
</ul>
<xsl:if test="not($resolutionStage='Engrossed-in-Senate' or $billStage='Engrossed-in-Senate' or $amendType='engrossed-amendment' or $billStage='Pre-Introduction') and not (//amendment-doc)">
<hr/>
</xsl:if>
</td>
</tr>
<xsl:for-each select="endorsement/action-date">
<xsl:call-template name="ActualPrintEndorsmentAction"/>
</xsl:for-each>
</table>
</center>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template name="ActualPrintEndorsmentAction">
<tr>
<td>
<xsl:choose>
<xsl:when test="(translate($documentStage,$upper,$lower)='engrossed-in-senate' or translate($documentStage,$upper,$lower)='engrossed-amendment-senate') and (//bill/@public-print='yes' or //resolution/@public-print='yes' )">
<xsl:if test="not(@display='no')">
<div align="center" class="bold">
<xsl:value-of select="."/>
</div>
</xsl:if>
</xsl:when>
<xsl:otherwise>
<xsl:if test="not(@display='no')">
<div align="center" class="EndsmtSimpleCap">
<xsl:value-of select="."/>
</div>
</xsl:if>
</xsl:otherwise>
</xsl:choose>
</td>
</tr>
<xsl:if test="local-name(following-sibling::*[1]) = 'action-desc' ">
<tr>
<td>
<ul>
<xsl:choose>
<xsl:when test="(translate($documentStage,$upper,$lower)='engrossed-in-senate' or translate($documentStage,$upper,$lower)='engrossed-amendment-senate') and (//bill/@public-print='yes' or //resolution/@public-print='yes' )">
<xsl:if test="not(following-sibling::action-desc[1]/@display='no')">
<div class="bold" align="center">
<xsl:value-of select="following-sibling::action-desc[1]"/>
</div>
</xsl:if>
</xsl:when>
<xsl:otherwise>
<xsl:if test="not(following-sibling::action-desc[1]/@display='no')">
<div class="hangtable" align="center">
<xsl:value-of select="following-sibling::action-desc[1]"/>
</div>
</xsl:if>
</xsl:otherwise>
</xsl:choose>
</ul>
</td>
</tr>
</xsl:if>
</xsl:template>
<xsl:template name="displayBill">
<xsl:apply-templates select="pre-form"/>
<xsl:apply-templates select="form"/>
<xsl:apply-templates select="legis-body"/>
<xsl:apply-templates select="official-title-amendment"/>
<xsl:apply-templates select="attestation"/>
<xsl:if test="not($billStage='Enrolled-Bill' or $billStage='Re-Enrolled-Bill')">
<hr/>
</xsl:if>
<xsl:call-template name="printFootnotes"/>
<xsl:if test="($billStage='Reported-in-House' or $billStage='Reported-in-Senate' or $billStage='Engrossed-in-Senate' or $billStage='Engrossed-in-House' or $billStage='Received-in-Senate' or $billStage='Received-in-House' or $billStage='Referred-in-Senate' or $billStage='Referred-in-House' or $billStage='Pre-Introduction' or $billStage='Placed-on-Calendar-Senate') and child::endorsement">
<p/>
<!--TB 5Sep2007 #692 added descendant-or-self to find out if the endorsement should be printed or not-->
<xsl:call-template name="DisplayEndorsement">
<xsl:with-param name="displayFlag" select="descendant-or-self:: endorsement/@display"/>
</xsl:call-template>
</xsl:if>
</xsl:template>
<xsl:template match="bill">
<xsl:call-template name="displayBill"/>
</xsl:template>
<!-- TB 4Jan2008 New Part of Amendment support taken from Senate proggramers -->
<xsl:template match="amendment-doc">
<xsl:if test="$isReport='yes' and not($confReportStyle='bill')">
<xsl:call-template name="BuildReportHeader"/>
</xsl:if>
<xsl:apply-templates select="pre-form"/>
<xsl:apply-templates select="amendment-form"/>
<xsl:apply-templates select="engrossed-amendment-form"/>
<xsl:apply-templates select="conference-report-form"/>
<xsl:apply-templates select="amendment-body"/>
<xsl:apply-templates select="engrossed-amendment-body"/>
<xsl:apply-templates select="preamble-amends"/>
<xsl:apply-templates select="title-amends"/>
<xsl:apply-templates select="attestation"/>
<xsl:call-template name="printFootnotes"/>
<xsl:apply-templates select="endorsement"/>
</xsl:template>
<xsl:template match="engrossed-amendment-form">
<xsl:apply-templates select="current-chamber"/>
<xsl:apply-templates select="action/action-date"/>
<xsl:call-template name="displayResolvedSections"/>
<xsl:call-template name="printEngrossedAmendLegisType"/>
</xsl:template>
<xsl:template match="amendment-form">
<xsl:apply-templates/>
<!-- print this one for senate only -->
<xsl:if test="(./congress[not(@display='no')] and ./session[not(@display='no')] ) and $senateAmendment='yes' "> Viz: <br/>
</xsl:if>
</xsl:template>
<xsl:template match="conference-report-form">
<xsl:apply-templates select="legis-num"/>
<xsl:apply-templates select="report-title"/>
<xsl:apply-templates select="current-chamber"/>
<xsl:apply-templates select="action"/>
<xsl:apply-templates select="legis-type"/>
</xsl:template>
<xsl:template match="committee-report">
<xsl:if test="@front-matter-cover='yes'">
<xsl:call-template name="PrintCoverPageTitlePage">
<xsl:with-param name="isCoverTitle">cover</xsl:with-param>
</xsl:call-template>
</xsl:if>
<!--xsl:if test="@front-matter-spine='yes'">
<xsl:call-template name="PrintSpine"/>
</xsl:if-->
<xsl:if test="@front-matter-titlepage='yes'">
<xsl:call-template name="PrintCoverPageTitlePage">
<xsl:with-param name="isCoverTitle">title</xsl:with-param>
</xsl:call-template>
</xsl:if>
<xsl:if test="//committee-report/@front-matter-toc='yes'">
<xsl:call-template name="printTocForCommitteeReportsFrontMatter"/>
</xsl:if>
<xsl:choose>
<xsl:when test="committee-report-form/@display='no'">
<!-- nothing -->
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="BuildReportHeader"/>
</xsl:otherwise>
</xsl:choose>
<xsl:choose>
<xsl:when test="pre-form/@display='no'">
<!-- nothing -->
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="pre-form"/>
</xsl:otherwise>
</xsl:choose>
<xsl:choose>
<xsl:when test="committee-report-form/@display='no'">
<!-- nothing -->
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="committee-report-form"/>
</xsl:otherwise>
</xsl:choose>
<xsl:apply-templates select="committee-report-body"/>
<xsl:call-template name="printFootnotes"/>
</xsl:template>
<xsl:template name="PrintCoverPageTitlePage">
<xsl:param name="isCoverTitle"/>
<table border="1" width="80%" align="center" frame="box">
<tr>
<td width="100%" align="center">
<table border="0" width="100%">
<tr>
<td width="15%" align="center" class="tocsubdivisionOLC">
<xsl:value-of select="//congress"/>
<br/>
<xsl:value-of select="//committee-report-form/session"/>
</td>
<td width="2%" style="font-size: 30pt;">
<xsl:text>}</xsl:text>
</td>
<td align="center" class="smallcapTrad">
<xsl:value-of select="translate(//current-chamber, $lower, $upper)"/>
</td>
<td width="2%" style="font-size: 30pt;">
<xsl:text>{</xsl:text>
</td>
<td width="15%" align="center" class="tocsubdivisionOLC">
<xsl:choose>
<xsl:when test="//report-num/@part != ''">
<xsl:text>Rept.</xsl:text>
<xsl:value-of select="//report-num"/>
<br/>
<xsl:text>Part </xsl:text>
<xsl:value-of select="//report-num/@part"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="//legis-type"/>
<br/>
<xsl:value-of select="//report-num"/>
</xsl:otherwise>
</xsl:choose>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<xsl:variable name="allSpacesForTitlePage">
<xsl:call-template name="GetSpacesForTitlePage"/>
</xsl:variable>
<xsl:variable name="theFirstSecondSpace" select="substring-before($allSpacesForTitlePage, '=')"/>
<xsl:variable name="theThirdSpace" select="substring-before(substring-after($allSpacesForTitlePage, '='), '=')"/>
<xsl:variable name="theFourthSpace" select="substring-after(substring-after($allSpacesForTitlePage, '='), '=')"/>
<table align="center" width="70%" border="0">
<!-- tr for spacing -->
<tr>
<td>
<xsl:attribute name="height">
<xsl:value-of select="$theFirstSecondSpace"/>
</xsl:attribute>
</td>
</tr>
<tr>
<td>
<xsl:if test="//report-title and not(//report-title/@display='no')">
<center>
<span class="initialcapUSC" style="text-transform:uppercase;">
<xsl:value-of select="translate(//report-title,$lower, $upper)"/>
</span>
</center>
</xsl:if>
</td>
</tr>
<!-- tr for spacing -->
<tr>
<td>
<xsl:attribute name="height">
<xsl:value-of select="$theFirstSecondSpace"/>
</xsl:attribute>
</td>
</tr>
<xsl:if test="//report-title and not(//report-title/@display='no')">
<tr>
<td>
<hr width="85px"/>
</td>
</tr>
</xsl:if>
<xsl:if test="not(//report-title) or //report-title/@display='no'">
<tr>
<td height="10"/>
</tr>
</xsl:if>
<tr>
<td height="34"/>
</tr>
<tr>
<td align="center" class="tocsubpartOLC">
<xsl:text>of the</xsl:text>
</td>
</tr>
<tr>
<td height="6"/>
</tr>
<tr>
<td align="center">
<xsl:value-of select="normalize-space(translate(//committee-name, $lower, $upper))"/>
</td>
</tr>
<xsl:if test="//current-chamber and not (//current-chamber/@display='no')">
<tr>
<td align="center">
<xsl:value-of select="normalize-space(translate(//current-chamber, $lower, $upper))"/>
</td>
</tr>
</xsl:if>
<tr>
<td height="12"/>
</tr>
<xsl:if test="//legis-num and not (//legis-num/@display='no')">
<tr>
<td height="12"/>
</tr>
<tr>
<td align="center" class="tocsubpartOLC">
<xsl:text disable-output-escaping="yes">on</xsl:text>
</td>
</tr>
<tr>
<td height="8"/>
</tr>
<tr>
<td align="center">
<xsl:value-of select="//legis-num"/>
</td>
</tr>
</xsl:if>
<xsl:if test="//committee-report-views/@display !='no' and //committee-report-views">
<tr>
<td height="6"/>
</tr>
<tr>
<td align="center" class="tocsubchapterOLC">
<xsl:text disable-output-escaping="yes">together with</xsl:text>
</td>
</tr>
<tr>
<td height="12"/>
</tr>
<tr>
<td align="center">
<xsl:value-of select="translate(//committee-report-views, $lower,$upper)"/>
</td>
</tr>
</xsl:if>
<xsl:if test="//cbo-cost-estimate-line and not (cbo-cost-estimate-line/@display='no')">
<tr>
<td height="6"/>
</tr>
<tr>
<td align="center" class="tocchapterOLC">
<xsl:value-of select="//cbo-cost-estimate-line"/>
</td>
</tr>
</xsl:if>
<tr>
<td>
<xsl:attribute name="height">
<xsl:value-of select="$theThirdSpace"/>
</xsl:attribute>
</td>
</tr>
<tr>
<td align="center">
<img alt="Embedded Image" src="data:image/png;base64,R0lGODlhYgBYAHAAACH5BAEAAAYALAAAAABiAFgAgv///zMzM8zMzAAAAGZmZpmZmQAAAAAAAAP/CLrc/jDKSau9OOvNu/9gKI5kaZ5KgK6UmgkDwc5OMGjEMBR0n98ZQiHH660IhIAsMwQQjSckrIgRuHJLaMg6ECQ5AYFgqBNoP8kkTK2xOgsFHfVcDYS7NvkLLhP+5nQUVgRWdgFwQBg6ekpxMYEVjj87Cl04XWleOjZhH16NIT9JjwpIHKYAXjkqhRxiTmJwSh5YKTw8bq6zZgU2S2wYvXaEhwq9gBZ2ZgBxVgWFQro8v6S9yxZNzEJ2RXGEF0pjPIZiWJQ4Y5bf3sadFkmgVp9kiRNrg05lMCq9G96cpW4NOPSsWIUpehjAuyZhirN8A5PgcrFhVyaJ0A4ZvBCt/8HGhjswDtv37I2HWam8yCJmSGIGiqkAoARpZ0ecIodUwgGhbMiYPIuCnjuIyVivLBBgbNJBqGnET2MYblDjTBOhMZOGTkCyU+awCQRTUXK6Q9NAG8gsfBp4a1REYtu0QmiWJY9Uj1SOhcmjJJwZYBrKYo02ySm1uw3KfuMll4E3M0qfRbyp4K+7ikt2jhqyMscyOxKkhOvHDoKvaZyyHGuiDI2lo7WGcOv6xLTKN3h0RPhTOYxmPfdCPGbmKMaoa5LmZkkzcFFasbq55MyDxJeItUyrP+NzjrptGRqLJ3xAREzNrlPIfHONq7I3zotS5Xk+kFlNofUdRNWdwjhchf+kdFBIW4ZskkZlcrjEAAzMbEJPUA7Ak49kMTzzgyG45IcGWhbaUM5AkOl2yCo+waPHb851yNYN+5TixyLijLIeCMJwhiEiYbQoxHZKnFUSZz6lgsRZUvBwAzvq8QOUhsLlN0RWMDoik0xBLrASHFg2ghwfAHRxExecHfchUuxBJk4MYnQXww1cYYnljm4CGacfXQqzDBGpCfFXY65kdZ42scVHZEuEDlNoX18tokJhToy2FmIeHKUJQZP8pBtXfoSpaaacPqnCJsuUhSUmvfDpiU1kgWjQDzIh4eqrsMYKKzdyHHUWU191SWYoqOakBlPPKOXMm3HyUaycT8bRCbD/XOhJz640FvjhmTmkREyx4sSZrZsxyrZAgWilU9YMG93KRUzGygnnusSm64cKNQmRnQxrzOCNjPuIi2p1scLmr3av3lDrDgQ3M4ZYz43Axyzb3DSMNX7EUpKeTkSDlZB87IOhgVTuyCQLr8UQLl+D6LkjleM0IQug8FWKRxMiSzFDiM01NWJZe1EVpMxcCUnviErtAJQs5kGLQhzaHJNqOjuavFNYSsiwsqfF8bGNUhLSkAZrXaZylLIAFQnHXxNb3IROElXYpRdrcNaDxrKVSsTCZACpE8odE8fPry+aMbLRR4w94gIsAr2XTLF8w7PFpqj0h7JerZkwClyUQUpz/2iGg0k5Tz9tysry0CqbIfZBCnKKXahSsi9SEDL2G3+ZTW/dpTeI1CdQtKyelfXR6njnKUvdDyFBkUnFZlA8xI0NjlkZBng7K864FE7OhApEppsQNFpRk5mLT1B7LjwxaotVioaka3Gzc/wtsE55ipeNy7sKIm6VizFpIc8Ud1zWtSplYE3npCavRbiOSo3qA0zOUBVMUAxBrVJUjN5noco9oiSdKEY/BlGPHvCFL11pUIOC4puwvOpeBgpVmhpEs8lFYUTyul4lLIgz8/DCY5mJj/ms0Yk0+M8IPbuQRwoIIvmk7HlDMUvsGlUhNB0sECSyjkIOoajKSGgcM0mBL/jk0aVN/BCKI7LLK6DjnICkhjpkWpIv2AIJ/UikVIp6EJpSUB1wfcwrNeleG5Mii5AIRUtWjBrBDAipNHhmjxN4CxsdgIghOcI7EWJKgBAJgVVI0Y3GEZhbshALzBWRkhGgYVqYVi1F7UIWe0ELKA/iqV19gop1chCnGgWD7K1yQT1a4CeGJBMvuipGYbwlOJo4B04gjYq1GluyWiPMCmhnDu+5QR5zJDFiNdMTtIpgtbzGGay48Jot4CUyMyMzn9gSnBRoThc/qY3YAQ6d7/DQkIzmNnjSQmhIa4g9PTAID+1zBjL7p0AHStCCGvSgCE2oQhfK0DYmAAA7"/>
</td>
</tr>
<tr>
<td>
<xsl:attribute name="height">
<xsl:value-of select="$theFourthSpace"/>
</xsl:attribute>
</td>
</tr>
<xsl:variable name="lastActionDate">
<xsl:call-template name="getLastActionDate"/>
</xsl:variable>
<tr>
<td align="center" class="tocchapterOLC">
<xsl:call-template name="printActionDateForCommitteeReport">
<xsl:with-param name="aActionDateText">
<xsl:value-of select="substring-before($lastActionDate, '=')"/>
</xsl:with-param>
</xsl:call-template>
<xsl:text>.— </xsl:text>
<xsl:value-of select="substring-after($lastActionDate, '=')"/>
</td>
</tr>
<tr>
<td>
<xsl:attribute name="height">
<xsl:value-of select="24"/>
</xsl:attribute>
<xsl:if test="$isCoverTitle='title'">
<center style="font-variant: small-caps;">
<hr width="20%"/>
<div>
u.s. government printing office
</div>
<div>
washington : 2009
</div>
</center>
</xsl:if>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br/>
<P CLASS="breakhere"/>
</xsl:template>
<!-- *************Print Action Date for Committee Reports******************* -->
<xsl:template name="printActionDateForCommitteeReport">
<xsl:param name="aActionDateText"/>
<xsl:variable name="theActionDateTrim">
<xsl:value-of select="normalize-space($aActionDateText)"/>
</xsl:variable>
<xsl:choose>
<xsl:when test="contains($theActionDateTrim, ' ')">
<!--Take first letter of the string-->
<xsl:variable name="tempFirstPartString">
<xsl:value-of select="translate(substring-before($theActionDateTrim, ' '), $upper, $lower)"/>
</xsl:variable>
<!--xsl:variable name="firstPasrtString"-->
<xsl:choose>
<xsl:when test="$tempFirstPartString = 'january' or $tempFirstPartString = 'february' or $tempFirstPartString='march' or $tempFirstPartString='april' or $tempFirstPartString='may' or $tempFirstPartString='june' or $tempFirstPartString='july' or $tempFirstPartString='august' or $tempFirstPartString='september' or $tempFirstPartString='october' or $tempFirstPartString='november' or $tempFirstPartString='december'">
<xsl:variable name="theMonth">
<xsl:value-of select="concat(substring-before($theActionDateTrim, ' '), ' ')"/>
</xsl:variable>
<span class="sectionlevelOLCnuclear">
<xsl:value-of select="$theMonth"/>
</span>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="concat(substring-before($theActionDateTrim, ' '), ' ')"/>
</xsl:otherwise>
</xsl:choose>
<xsl:call-template name="printActionDateForCommitteeReport">
<xsl:with-param name="aActionDateText" select="substring-after($theActionDateTrim, ' ')"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$theActionDateTrim"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<!-- ***********calculate space for the title / cover page *********************-->
<xsl:template name="GetSpacesForTitlePage">
<xsl:variable name="theTitleLines">
<xsl:choose>
<xsl:when test="not(//report-title) or //report-title/@display='no'">
<xsl:text>0</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="roundToNumberOfLines">
<xsl:with-param name="numberOfLines" select="string-length(normalize-space(//report-title)) div 35 "/>
</xsl:call-template>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="theCommitteeNameLines">
<xsl:choose>
<xsl:when test="not(//committee-name) or //committee-name/@display='no'">
<xsl:text>0</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="roundToNumberOfLines">
<xsl:with-param name="numberOfLines" select="string-length(normalize-space(//committee-name)) div 35 "/>
</xsl:call-template>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="theCommitteeViewsLines">
<xsl:choose>
<xsl:when test="not(//committee-report-views) or //committee-report-views/@display='no'">
<xsl:text>0</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="roundToNumberOfLines">
<xsl:with-param name="numberOfLines" select="string-length(normalize-space(//committee-report-views)) div 39 "/>
</xsl:call-template>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="lastActionDateAndDesc">
<xsl:call-template name="getLastActionDate"/>
</xsl:variable>
<xsl:variable name="theLastActionDateLines">
<xsl:choose>
<xsl:when test="string-length($lastActionDateAndDesc) &lt; 2">
<xsl:text>0</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="roundToNumberOfLines">
<xsl:with-param name="numberOfLines" select="string-length($lastActionDateAndDesc) div 64 "/>
</xsl:call-template>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="theCboCostLines">
<xsl:choose>
<xsl:when test="not(//cbo-cost-estimate-line) or //cbo-cost-estimate-line/@display='no'">
<xsl:text>0</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="roundToNumberOfLines">
<xsl:with-param name="numberOfLines" select="string-length(normalize-space(//cbo-cost-estimate-line)) div 64 "/>
</xsl:call-template>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="totalVariableTextVerticalPoints" select="14 * $theTitleLines + 14* $theCommitteeNameLines + 14 * $theCommitteeViewsLines + 12 * $theLastActionDateLines + 12 * $theCboCostLines"/>
<xsl:variable name="adjustment1">
<xsl:text>0</xsl:text>
</xsl:variable>
<xsl:variable name="adjustment2">
<xsl:choose>
<xsl:when test="not(//legis-num/text()) or //legis-num/@display='no'">
<xsl:text>40</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:text>0</xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="adjustment3">
<xsl:choose>
<xsl:when test="(not(//committee-report-views) or //committee-report-views/@display='no') and (not(//legis-num) or //legis-num/@display='no')">
<xsl:text>26</xsl:text>
</xsl:when>
<xsl:when test="not(//committee-report-views) or //committee-report-views/@display='no'">
<xsl:text>15</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:text>0</xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="adjustment4">
<xsl:choose>
<xsl:when test="not(//current-chamber) or //current-chamber/@display='no'">
<xsl:text>14</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:text>0</xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="totalAdjustment">
<xsl:value-of select="$adjustment1 + $adjustment2 + $adjustment3 + $adjustment4"/>
</xsl:variable>
<xsl:variable name="theTotlaSpaces">
<xsl:value-of select="248 + $totalAdjustment - $totalVariableTextVerticalPoints"/>
</xsl:variable>
<xsl:variable name="firstAndSecondSpace">
<xsl:choose>
<xsl:when test="$theTotlaSpaces &gt; 108">
<xsl:text>36</xsl:text>
</xsl:when>
<xsl:when test="$theTotlaSpaces &gt; 56">
<xsl:value-of select="format-number((($theTotlaSpaces - 36) div 2), '##')"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="format-number(($theTotlaSpaces div 4), '##')"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="thirdSpace">
<xsl:choose>
<xsl:when test="$theTotlaSpaces &gt; 108">
<xsl:value-of select="format-number((($theTotlaSpaces - 72) div 2), '##') - 3"/>
</xsl:when>
<xsl:when test="$theTotlaSpaces &gt; 56">
<xsl:text>15</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="format-number(($theTotlaSpaces div 4), '##') - 3"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="fourthSpace">
<xsl:choose>
<xsl:when test="$theTotlaSpaces &gt; 108">
<xsl:value-of select="format-number((($theTotlaSpaces - 72) div 2), '##') + 3"/>
</xsl:when>
<xsl:when test="$theTotlaSpaces &gt; 56">
<xsl:text>21</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="format-number(($theTotlaSpaces div 4), '##') + 3"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:value-of select="$firstAndSecondSpace"/>
<xsl:text>=</xsl:text>
<xsl:value-of select="$thirdSpace"/>
<xsl:text>=</xsl:text>
<xsl:value-of select="$fourthSpace"/>
</xsl:template>
<xsl:template name="getLastActionDate">
<xsl:for-each select="//action-date">
<xsl:if test="position() = count(//action-date)">
<xsl:value-of select="."/>
<xsl:text>=</xsl:text>
<xsl:value-of select="parent::action/action-desc"/>
</xsl:if>
</xsl:for-each>
</xsl:template>
<xsl:template name="roundToNumberOfLines">
<xsl:param name="numberOfLines"/>
<!--xsl:text>2</xsl:text-->
<xsl:choose>
<xsl:when test="(format-number($numberOfLines, '##') &gt;= $numberOfLines) ">
<xsl:value-of select="number(format-number($numberOfLines, '##'))"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="format-number($numberOfLines + 1, '##') "/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template name="printTocForCommitteeReportsFrontMatter">
<xsl:if test="//toc/header">
<center class="largecapTrad">
<xsl:value-of select="translate(//toc/header, $lower, $upper)"/>
<br/>
<hr width="85px"/>
<br/>
</center>
</xsl:if>
<table border="0" align="center" width="100%">
<xsl:if test="//toc/multi-column-toc-entry">
<!-- build first row -->
<tr>
<xsl:if test="//toc/multi-column-toc-entry/toc-enum">
<td align="right" width="10%">
</td>
<td align="right" width="3%">
</td>
</xsl:if>
<td align="left">
</td>
<td align="right" class="tocsubchapterOLC" width="7%">
Page
</td>
</tr>
</xsl:if>
<xsl:for-each select="//toc/multi-column-toc-entry">
<tr>
<xsl:if test="toc-enum">
<td align="right" class="tocsubchapterOLC">
<xsl:value-of select="toc-enum"/>
</td>
<td align="right" width="3%">
</td>
</xsl:if>
<xsl:variable name="spacesToIndent">
<xsl:choose>
<xsl:when test="not(toc-enum)">
<xsl:call-template name="geToctIndentNumber">
<xsl:with-param name="aLevel" select="level-header/@level"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>0</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<td class="tocsubchapterOLC">
<xsl:variable name="tocLengthForCalc">
<xsl:call-template name="calcLengthForLeader">
<xsl:with-param name="currStringLength" select="number($spacesToIndent) + string-length(normalize-space(level-header)) "/>
<xsl:with-param name="isFirstLine">true</xsl:with-param>
<xsl:with-param name="lenghtToMatch">200</xsl:with-param>
</xsl:call-template>
</xsl:variable>
<table border="0" width="100%">
<tr>
<td>
<xsl:attribute name="width">
<xsl:value-of select="$spacesToIndent"/>
<xsl:text>%</xsl:text>
</xsl:attribute>
</td>
<td class="tocsubchapterOLC">
<xsl:attribute name="width">
<xsl:value-of select="100 - number($spacesToIndent)"/>
<xsl:text>%</xsl:text>
</xsl:attribute>
<xsl:value-of select="level-header"/>
<xsl:call-template name="loop">
<xsl:with-param name="index" select="number($tocLengthForCalc)"/>
</xsl:call-template>
</td>
</tr>
</table>
</td>
<td align="right" class="tocsubchapterOLC">
<xsl:value-of select="page-num"/>
</td>
</tr>
</xsl:for-each>
</table>
<br/>
<P CLASS="breakhere"/>
</xsl:template>
<xsl:template name="printTocForCommitteeReports">
<xsl:if test="header">
<center class="largecapTrad">
<xsl:value-of select="translate(header, $lower, $upper)"/>
<br/>
<hr width="85px"/>
<br/>
</center>
</xsl:if>
<table border="0" align="center" width="100%">
<xsl:if test="multi-column-toc-entry">
<!-- build first row -->
<tr>
<xsl:if test="multi-column-toc-entry/toc-enum">
<td align="right" width="10%">
</td>
<td align="right" width="3%">
</td>
</xsl:if>
<td align="left">
</td>
<td align="right" class="tocsubchapterOLC" width="7%">
Page
</td>
</tr>
</xsl:if>
<xsl:for-each select="multi-column-toc-entry">
<tr>
<xsl:if test="toc-enum">
<td align="right" class="tocsubchapterOLC">
<xsl:value-of select="toc-enum"/>
</td>
<td align="right" width="3%">
</td>
</xsl:if>
<xsl:variable name="spacesToIndent">
<xsl:choose>
<xsl:when test="not(toc-enum)">
<xsl:call-template name="geToctIndentNumber">
<xsl:with-param name="aLevel" select="level-header/@level"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>0</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<td align="left" class="tocsubchapterOLC">
<xsl:variable name="tocLengthForCalc">
<xsl:call-template name="calcLengthForLeader">
<xsl:with-param name="currStringLength" select="number ($spacesToIndent) + string-length(normalize-space(level-header)) "/>
<xsl:with-param name="isFirstLine">true</xsl:with-param>
<xsl:with-param name="lenghtToMatch">200</xsl:with-param>
</xsl:call-template>
</xsl:variable>
<span>
<xsl:attribute name="margin-left">
<xsl:value-of select="$spacesToIndent"/>
<xsl:text>em</xsl:text>
</xsl:attribute>
<xsl:value-of select="level-header"/>
</span>
<xsl:call-template name="loop">
<xsl:with-param name="index" select="number($tocLengthForCalc)"/>
</xsl:call-template>
</td>
<td align="right" class="tocsubchapterOLC">
<xsl:value-of select="page-num"/>
</td>
</tr>
</xsl:for-each>
</table>
<br/>
<P CLASS="breakhere"/>
</xsl:template>
<xsl:template name="geToctIndentNumber">
<xsl:param name="aLevel"/>
<xsl:choose>
<xsl:when test="$aLevel='paragraph'">
<xsl:text>2</xsl:text>
</xsl:when>
<xsl:when test="$aLevel='subparagraph'">
<xsl:text>4</xsl:text>
</xsl:when>
<xsl:when test="$aLevel='clause'">
<xsl:text>6</xsl:text>
</xsl:when>
<xsl:when test="$aLevel='subclause'">
<xsl:text>8</xsl:text>
</xsl:when>
<xsl:when test="$aLevel='item'">
<xsl:text>10</xsl:text>
</xsl:when>
<xsl:when test="$aLevel='subitem'">
<xsl:text>12</xsl:text>
</xsl:when>
<xsl:otherwise>0</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="amendment-body">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="amendment">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="amendment-block">
<!-- TB May2011 bug fixing #1205 -->
<xsl:choose>
<xsl:when test="@margin-indent='yes' and not (ancestor::legis-body)">
<table width="80%" border="0" align="center" style="font-size: 14pt;">
<tr>
<td class="indent">
<xsl:apply-templates/>
</td>
</tr>
</table>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates/>
</xsl:otherwise>
</xsl:choose>
<!--xsl:apply-templates/-->
</xsl:template>
<xsl:template match="amendment-instruction">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="preamble-amends">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="title-amends">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="amendment-form/amend-num">
<xsl:choose>
<xsl:when test="$senateStyle1='yes'">
<xsl:call-template name="PrintAmendNumberForSenate"/>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="amendment-form/calendar">
<!-- TB 7Jan2008 calenndar will be printed with Amend number for Senate Amentment -->
<xsl:if test="not($senateStyle1='yes')">
<xsl:apply-templates/>
</xsl:if>
</xsl:template>
<xsl:template match="amendment-form/purpose ">
<xsl:if test="$senateStyle1='yes' and not(@display='no')">
<p>Purpose: <xsl:apply-templates/>
</p>
</xsl:if>
</xsl:template>
<xsl:template match="conference-report-form/purpose ">
<xsl:if test="@display ='yes' or not(@display)">
<p>Purpose: <xsl:apply-templates/>
</p>
</xsl:if>
</xsl:template>
<xsl:template match="amendment-form/congress">
<xsl:param name="source"/>
<xsl:if test="(not ($senateStyle1='yes') or $source='Endorsement') and not (@display='no')">
<xsl:apply-templates/>
<xsl:text>, </xsl:text>
</xsl:if>
</xsl:template>
<xsl:template match="amendment-form/session">
<xsl:param name="source"/>
<xsl:if test="(not ($senateStyle1='yes') or $source='Endorsement') and not (@display='no') ">
<xsl:apply-templates/>
<br/>
</xsl:if>
</xsl:template>
<xsl:template match="amendment-form/current-chamber">
<!-- TB 8Jan2008 Amendment Support -->
<xsl:choose>
<xsl:when test="$senateStyle1='yes'">
<p align="center" class="mediumcap">
<xsl:if test="not(@display='no')">
<xsl:apply-templates/>
</xsl:if>
<!-- Print Congress and session here inline -->
<xsl:call-template name="printCongressAndSessionForSenateAmend"/>
</p>
</xsl:when>
<xsl:otherwise>
<p align="center">
<xsl:apply-templates/>
</p>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="engrossed-amendment-form/current-chamber">
<p align="center" class="chamberEngrHouse">
<!-- TB Sep2001 MultBrowsers italic tag inserted -->
<i>
<xsl:apply-templates/>
</i>
</p>
</xsl:template>
<xsl:template match="amendment-form/legis-num">
<center>
<xsl:choose>
<xsl:when test="$senateStyle1='yes' and contains(translate(.,$upper,$lower), 'no')">
<p style="FONT-SIZE:14px">
<xsl:apply-templates/>
</p>
</xsl:when>
<xsl:otherwise>
<p class="initialcap">
<xsl:apply-templates/>
</p>
<xsl:if test="$senateStyle1='yes'">
<span style="height:40px"/>
</xsl:if>
</xsl:otherwise>
</xsl:choose>
</center>
</xsl:template>
<xsl:template match="amendment-form/official-title">
<center>
<xsl:choose>
<xsl:when test="@display='no'"/>
<xsl:when test="$senateStyle1='yes' and contains(translate(.,$upper,$lower), 'title')">
<p style="FONT-SIZE:14px">
<xsl:apply-templates/>
</p>
<span style="height:60px"/>
</xsl:when>
<xsl:otherwise>
<p>
<xsl:apply-templates/>
</p>
<xsl:if test="$senateStyle1='yes'">
<span style="height:40px"/>
</xsl:if>
</xsl:otherwise>
</xsl:choose>
</center>
</xsl:template>
<xsl:template match="amendment-form/action">
<center>
<xsl:apply-templates/>
</center>
</xsl:template>
<xsl:template match="conference-report-form/amend-num">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="conference-report-form/calendar">
<p align="right">
<xsl:apply-templates/>
</p>
</xsl:template>
<xsl:template match="conference-report-form/congress"/>
<xsl:template match="conference-report-form/session"/>
<xsl:template match="conference-report-form/report-num"/>
<xsl:template match="conference-report-form/current-chamber"/>
<xsl:template match="committee-report-form/congress"/>
<xsl:template match="committee-report-form/session"/>
<xsl:template match="committee-report-form/report-num"/>
<xsl:template match="committee-report-form/current-chamber"/>
<xsl:template match="conference-report-form/legis-num">
<xsl:if test="$confReportStyle='bill'">
<xsl:call-template name="printLegisNumForBillReports"/>
</xsl:if>
</xsl:template>
<xsl:template match="committee-report-form/legis-num">
<xsl:if test="not (//committee-report-views) or (//committee-report-views/@display='no')">
<xsl:call-template name="printToAccompanyText"/>
</xsl:if>
</xsl:template>
<xsl:template match="conference-report-form/official-title">
<p>
<xsl:apply-templates/>
</p>
</xsl:template>
<xsl:template match="conference-report-form/report-title">
<center class="initialcapUSC" style="text-transform:uppercase;">
<xsl:apply-templates/>
</center>
</xsl:template>
<xsl:template match="committee-report-form/report-title">
<xsl:choose>
<xsl:when test="@display='no'"/>
<xsl:when test="text() != ''">
<center class="initialcapUSC" style="text-transform:uppercase;">
<xsl:apply-templates/>
</center>
</xsl:when>
<xsl:otherwise>
<center style="font-size:15px;">
<xsl:text>(title)_________________________________________</xsl:text>
<br/>
<xsl:text>_______________________________________________</xsl:text>
</center>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="conference-report-form/action">
<center>
<xsl:if test="action-instruction/text() !=''">
<br/>
<hr width="100px"/>
<br/>
</xsl:if>
<xsl:apply-templates select="action-instruction"/>
<xsl:if test="action-desc/text() !='' and not (contains(translate(action-desc, $upper, $lower),'[to accompany'))">
<br/>
<hr width="100px"/>
<br/>
<xsl:apply-templates select="action-desc"/>
</xsl:if>
</center>
</xsl:template>
<xsl:template match="committee-report-form/action">
<center>
<xsl:if test="(action-desc/@display != 'no' or not (action-desc/@display)) and not (contains(translate(action-desc, $upper, $lower),'[to accompany'))">
<br/>
<hr width="100px"/>
<br/>
</xsl:if>
<xsl:apply-templates select="action-desc"/>
<xsl:if test="action-instruction/text() !='' ">
<xsl:if test="preceding-sibling::action[1]/action-date/text()or preceding-sibling::action[1]/action-desc/text() ">
<br/>
<hr width="100px"/>
<br/>
</xsl:if>
</xsl:if>
<xsl:apply-templates select="action-instruction"/>
</center>
</xsl:template>
<!-- **************************Committee report views **************************-->
<xsl:template match="committee-report-form/committee-report-views">
<xsl:choose>
<xsl:when test="@display='no'">
<!-- nothing -->
</xsl:when>
<xsl:otherwise>
<center>
<xsl:attribute name="style">
<xsl:text>font-size: 75%</xsl:text>
</xsl:attribute>
<xsl:text disable-output-escaping="yes">together with</xsl:text>
<br/>
<p/>
<xsl:value-of select="translate(., $lower,$upper)"/>
<p/>
</center>
<xsl:call-template name="printToAccompanyText"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<!-- **************************cbo cost estimate line **************************-->
<xsl:template match="committee-report-form/cbo-cost-estimate-line">
<xsl:choose>
<xsl:when test="@display ='no' ">
<!-- nothing -->
</xsl:when>
<xsl:otherwise>
<p/>
<center>
<xsl:attribute name="style">
<xsl:text>font-size: 75%</xsl:text>
</xsl:attribute>
<xsl:value-of select="."/>
</center>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="meta-senate">
<xsl:if test="//pre-form//slc-for">
<xsl:text disable-output-escaping="yes">
FOR: </xsl:text>
<xsl:if test="//pre-form//slc-for-office">
<xsl:value-of select="//pre-form//slc-for-office"/>
</xsl:if>
<xsl:if test="//pre-form//slc-for-sponsor">
<xsl:text disable-output-escaping="yes">/</xsl:text>
<xsl:value-of select="//pre-form//slc-for-sponsor"/>
</xsl:if>
<xsl:if test="//pre-form//slc-for-staffer">
<xsl:text disable-output-escaping="yes">/</xsl:text>
<xsl:value-of select="//pre-form//slc-for-staffer"/>
</xsl:if>
</xsl:if>
<xsl:if test="not(//pre-form//slc-for)">
<xsl:text disable-output-escaping="yes">
FOR: </xsl:text>
</xsl:if>
<xsl:if test="//pre-form//slc-subject">
<xsl:if test="//pre-form//slc-subject-field1">
<br/>
<br/>
<xsl:text disable-output-escaping="yes">
SUB: </xsl:text>
<xsl:value-of select="//pre-form//slc-subject-field1"/>
</xsl:if>
<xsl:if test="//pre-form//slc-subject-field2">
<xsl:text disable-output-escaping="yes">/</xsl:text>
<xsl:value-of select="//pre-form//slc-subject-field2"/>
</xsl:if>
<xsl:if test=".//slc-subject-field3">
<xsl:text disable-output-escaping="yes">/</xsl:text>
<xsl:value-of select="//pre-form//slc-subject-field3"/>
</xsl:if>
<xsl:if test="//pre-form//slc-subject-field4">
<xsl:text disable-output-escaping="yes">/</xsl:text>
<xsl:value-of select="//pre-form//slc-subject-field4"/>
</xsl:if>
</xsl:if>
<xsl:if test="not(//pre-form//slc-subject)">
<br/>
<br/>
<xsl:text disable-output-escaping="yes">
SUB: </xsl:text>
</xsl:if>
<xsl:if test="//pre-form//slc-type">
<br/>
<br/>
<xsl:text disable-output-escaping="yes">
TYP: </xsl:text>
<xsl:value-of select="//pre-form//slc-type"/>
</xsl:if>
<xsl:if test="not(//pre-form//slc-type)">
<br/>
<br/>
<xsl:text disable-output-escaping="yes">
TYP:
</xsl:text>
</xsl:if>
<xsl:if test="//pre-form//slc-description">
<br/>
<br/>
<xsl:text disable-output-escaping="yes">
DES: </xsl:text>
<xsl:apply-templates select="//slc-description"/>
</xsl:if>
<xsl:if test="not(//pre-form//slc-description)">
<br/>
<br/>
<xsl:text disable-output-escaping="yes">
DES: </xsl:text>
</xsl:if>
<xsl:if test="//pre-form//slc-received">
<br/>
<br/>
<xsl:text disable-output-escaping="yes">
REC: </xsl:text>
<xsl:value-of select="//pre-form//slc-received"/>
</xsl:if>
<xsl:if test="not(//pre-form//slc-received)">
<br/>
<br/>
<xsl:text disable-output-escaping="yes">
REC: </xsl:text>
</xsl:if>
<xsl:if test="//pre-form//slc-delivered">
<br/>
<br/>
<xsl:text disable-output-escaping="yes">
DLV: </xsl:text>
<xsl:value-of select="//pre-form//slc-delivered"/>
</xsl:if>
<xsl:if test="not(//pre-form//slc-delivered)">
<br/>
<br/>
<xsl:text disable-output-escaping="yes">
DLV: </xsl:text>
</xsl:if>
<xsl:if test="//pre-form//slc-staff">
<br/>
<br/>
<xsl:text disable-output-escaping="yes">
STF: </xsl:text>
<xsl:value-of select="//pre-form//slc-staff"/>
</xsl:if>
<xsl:if test="not(.//slc-staff)">
<br/>
<br/>
<xsl:text disable-output-escaping="yes">
STF: </xsl:text>
</xsl:if>
<xsl:if test="//pre-form//slc-peer-reviewed-by">
<br/>
<br/>
<xsl:text disable-output-escaping="yes">
PRBY: </xsl:text>
<xsl:value-of select="//pre-form//slc-peer-reviewed-by"/>
<br/>
<br/>
</xsl:if>
<xsl:if test="not(//pre-form//slc-peer-reviewed-by)">
<br/>
<br/>
<xsl:text disable-output-escaping="yes">
PRBY: </xsl:text>
<br/>
<br/>
</xsl:if>
<!-- TB 7Jan2008 pagebreak after pre-form/meta-senate -->
<P CLASS="breakhere"/>
</xsl:template>
<!-- End of TB 4Jan2008 -->
<xsl:template match="resolution">
<xsl:apply-templates select="form"/>
<xsl:apply-templates select="preamble"/>
<xsl:apply-templates select="resolution-body"/>
<xsl:apply-templates select="official-title-amendment"/>
<xsl:apply-templates select="attestation"/>
<!-- TB 29-Aug-2007 Bug#664 remove the end of file mark line in case of Enrolled-Bill resolution -->
<xsl:if test="not($resolutionStage='Enrolled-in-Senate' or $resolutionStage='EnrolledHouse' or $resolutionStage='Re-enrolled-in-Senate' or $resolutionStage='Enrolled-Bill' )">
<hr/>
</xsl:if>
<xsl:call-template name="printFootnotes"/>
<xsl:if test="($resolutionStage='Reported-in-Senate' or $resolutionStage='Engrossed-in-Senate' or $resolutionStage='Engrossed-in-Senate'or $resolutionStage='Pre-Introduction' or $resolutionStage='Reported-House' or $resolutionStage='Reported-in-House' or ($resolutionStage='Engrossed-House' and $resolutionType='house-joint') or ($resolutionStage='Engrossed-House' and $resolutionType='senate-concurrent') or ($resolutionStage='Engrossed-House' and $resolutionType='house-concurrent') or ($resolutionStage='Engrossed-in-House' and $resolutionType='house-joint') or ($resolutionStage='Engrossed-in-House' and $resolutionType='senate-concurrent') or ($resolutionStage='Placed-on-Calendar-Senate' and $resolutionType='house-concurrent') or ($resolutionStage='Engrossed-in-House' and $resolutionType='house-concurrent'))and child::endorsement">
<p/>
<xsl:call-template name="DisplayEndorsement">
<xsl:with-param name="displayFlag" select="endorsement/@display"/>
</xsl:call-template>
</xsl:if>
</xsl:template>
<xsl:template match="form">
<xsl:variable name="toDisplayOpeningRuller">
<xsl:call-template name="toPrintAnOpeningRuler"/>
</xsl:variable>
<xsl:if test="not(@display='no')">
<xsl:choose>
<!--TB 30Aug2007 #673 to print calendar for Reported-In-House and Placed-on-Calendar-Senate resolutions -->
<xsl:when test="(translate($documentStage,$upper,$lower)='engrossed-in-senate' or translate($documentStage,$upper,$lower)='engrossed-amendment-senate') and (//bill/@public-print='yes' or //resolution/@public-print='yes' )">
<center class="bold">
<xsl:if test="//form/action[position()=last()]/action-date and not (//form/action[position()=last()]/action-date/@display='no') and not (//form/action[position()=last()]/@display='no')">
<xsl:value-of select="//form/action[position()=last()]/action-date"/>
</xsl:if>
<xsl:if test="//form/action[position()=last()]/action-desc and not (//form/action[position()=last()]/action-desc/@display='no') and not (//form/action[position()=last()]/@display='no')">
<br/>
<br/>
<xsl:value-of select="//form/action[position()=last()]/action-desc"/>
</xsl:if>
</center>
<br/>
<br/>
<br/>
<br/>
</xsl:when>
<!--xsl:when
test="($documentStage='Reported-in-House' or $documentStage='Reported-in-Senate' or
$documentStage='Reported-House' or $documentStage ='Placed-on-Calendar-Senate' ) and not (calendar/@display='no')"-->
<xsl:when test="calendar and not (calendar/@display='no')">
<p align="right" class="calendarOLC">
<xsl:apply-templates select="calendar"/>
</p>
</xsl:when>
<xsl:otherwise>
<p>
<br/>
</p>
</xsl:otherwise>
</xsl:choose>
<xsl:choose>
<xsl:when test="$billStage='Enrolled-Bill' or $resolutionStage='Enrolled-in-Senate' or $resolutionStage='Enrolled-House' or $resolutionStage='Enrolled-Bill'">
<table border="0" cols="2" width="100%">
<tr>
<td>
<!-- commented by TB June 2012 Bug ref. #1257-->
<!--xsl:if test="not(legis-num/@display='no')">
<span class="sectionlevelTradBold">
<xsl:apply-templates select="legis-num"/>
</span>
</xsl:if-->
</td>
<td align="right">
<!-- TB 29-Aug-2007 #674 for Enrollment Bills resolution the action date and description should be printed on top of the page -->
<xsl:if test="$resolutionStage='Enrolled-in-Senate'">
<span class="legisnumSml">
<xsl:apply-templates select="/resolution/attestation/attestation-group/attestation-date"/>
</span>
</xsl:if>
<xsl:if test="$resolutionStage='Enrolled-Bill' or $billStage='Enrolled-Bill'">
<!-- TB 29-Aug-2007 #668 -->
<span class="sectionlevelTradBold">
<xsl:call-template name="actionDateText"/>
</span>
</xsl:if>
</td>
</tr>
</table>
<center>
<span class="congressEnrolled">
<!--TB 28Aug 2007 bug# 667+ not printed session number in the enrollment bill . the long choose statement was moved to the template. Templated values added and added general representation -->
<xsl:call-template name="CongressText">
<xsl:with-param name="CNum" select="congress"/>
</xsl:call-template>
</span>
</center>
<center>
<p/>
<span class="sessionEnrolled">
<!--TB 28Aug 2007 bug# 667 Choose statement was moved to the template. -->
<xsl:call-template name="SessionTextAll">
<xsl:with-param name="SText" select="session"/>
</xsl:call-template>
</span>
</center>
<span class="dateEnrolled">
<!-- TB Sep2001 MultBrowsers italic tag inserted -->
<center>
<i>
<p/>
<xsl:if test="enrolled-dateline">
<xsl:value-of select="substring-before(enrolled-dateline, ',')"/>
<xsl:text>, </xsl:text>
<br/>
<xsl:value-of select="substring-after(enrolled-dateline, ',')"/>
</xsl:if>
</i>
</center>
</span>
<center>
<p/>
<xsl:choose>
<xsl:when test="$billStage='Enrolled-Bill'">
<xsl:choose>
<xsl:when test="contains(normalize-space(translate(legis-type,$upper,$lower)), 'an act')">
<img src="Enrolled_An_Act.JPG" alt=""/>
</xsl:when>
<xsl:otherwise>
<span class="legisEnrolled">
<xsl:value-of select="translate(legis-type,$upper,$lower)"/>
</span>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<xsl:choose>
<xsl:when test="contains(normalize-space(translate(legis-type,$upper,$lower)), 'joint resolution')">
<img src="Enrolled_Joint_Resolution.JPG" alt=""/>
</xsl:when>
<xsl:when test="contains(normalize-space(translate(legis-type,$upper,$lower)), 'concurrent resolution')">
<img src="Enrolled_Concurrent_Resolution.JPG" alt=""/>
</xsl:when>
<xsl:otherwise>
<span class="legisEngrossed">
<xsl:value-of select="translate(legis-type,$upper,$lower)"/>
</span>
</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
</center>
<xsl:choose>
<xsl:when test="$resolutionStage='Engrossed-in-Senate'">
<center>
<xsl:if test="not(official-title/@display='no')">
<div class="tocdivisionOLC">
<xsl:apply-templates select="official-title"/>
</div>
</xsl:if>
</center>
</xsl:when>
<xsl:when test="not($resolutionStage='Enrolled-in-Senate')">
<ul>
<xsl:if test="not(official-title/@display='no')">
<p align="justify" class="hang">
<xsl:apply-templates select="official-title"/>
</p>
</xsl:if>
</ul>
</xsl:when>
</xsl:choose>
<p/>
</xsl:when>
<xsl:when test="($resolutionStage='Engrossed-House' and $resolutionType='house-resolution') or ($resolutionStage='Engrossed-in-House' and $resolutionType='house-resolution')">
<span class="legisnumSml">
<xsl:text>H. Res. </xsl:text>
<xsl:value-of select="substring-after(substring-after(legis-num, '.'),'.')"/>
</span>
<br/>
<br/>
<br/>
<br/>
<xsl:if test="not(current-chamber/@display='no') and (not (parent::form/@display='no') or not (action/action-date/@display='no')) and not (translate($documentStage, $upper, $lower ) = 'engrossed-in-house')">
<hr width="40%"/>
</xsl:if>
<xsl:if test="not(current-chamber/@display='no') and not (parent::form/@display='no')">
<center>
<span class="chamberEngrHouse">
<!-- TB Sep2001 MultBrowsers italic tag inserted -->
<i>
<xsl:apply-templates select="current-chamber"/>
</i>
</span>
</center>
<p/>
</xsl:if>
<xsl:if test="not (action/action-date/@display='no')">
<xsl:apply-templates select="action/action-date"/>
</xsl:if>
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="printLegisNumForBills"/>
<p/>
<!-- TB 30Aug2007 #673 print assosiated doc resolution stage Reported-in-house was added. previously was only Reported-House -spelling mistake or old version of the resolution stage value enum -->
<!--xsl:if
test="($billStage='Reported-in-House' or $billStage='Reported-in-Senate'
or $resolutionStage='Reported-House' or $resolutionStage='Reported-in-House') and not (associated-doc/@display='no') "-->
<!--xsl:if
test="$documentStage != 'Pre-Introduction' and not (associated-doc/@display='no') and associated-doc/text() != '' "-->
<!-- print associated doc for pre-introduction stage too TB 4May2009 -->
<xsl:if test="contains($documentStage,'Engrossed') and contains($documentType,'order')">
<span class="chamberEngrHouse">
<!-- TB Sep2001 MultBrowsers italic tag inserted -->
<i>
<xsl:value-of select="//current-chamber"/>
</i>
</span>
</xsl:if>
<xsl:if test="not (associated-doc/@display='no') and associated-doc/text() != '' ">
<p align="center" class="associatedDocOLC">
<xsl:apply-templates select="associated-doc"/>
</p>
</xsl:if>
<!-- made a change here 4/6-->
<xsl:choose>
<!-- TB 15-Oct-2008 -->
<xsl:when test="(translate($documentStage,$upper, $lower)='engrossed-in-senate' or translate($documentStage,$upper, $lower)='engrossed-amendment-senate' ) and (//bill/@public-print='yes' or //resolution/@public-print='yes')">
<xsl:call-template name="printActionDateForBills"/>
</xsl:when>
<xsl:when test="translate($documentStage,$upper, $lower)='engrossed-in-senate' or translate($documentStage,$upper, $lower)='engrossed-amendment-senate'">
<center>
<xsl:if test="$toDisplayOpeningRuller='yes'">
<hr width="40%"/>
</xsl:if>
<xsl:apply-templates select="action"/>
</center>
</xsl:when>
<!--xsl:when
test="$resolutionStage='Pre-Introduction' or $resolutionStage='Engrossed-in-Senate' or
($resolutionStage='Engrossed-House' and $resolutionType='house-joint') or
($resolutionStage='Engrossed-in-House' and $resolutionType='house-joint') or
($resolutionStage='Engrossed-House' and $resolutionType='senate-concurrent') or
($resolutionStage='Engrossed-in-House' and $resolutionType='senate-concurrent') or
($resolutionStage='Engrossed-House' and $resolutionType='house-concurrent') or
($resolutionStage='Engrossed-in-House' and $resolutionType='house-concurrent') "> </xsl:when-->
<xsl:when test="$resolutionStage='Engrossed-in-Senate' or ($resolutionStage='Engrossed-House' and $resolutionType='house-joint') or ($resolutionStage='Engrossed-in-House' and $resolutionType='house-joint') or ($resolutionStage='Engrossed-House' and $resolutionType='senate-concurrent') or ($resolutionStage='Engrossed-in-House' and $resolutionType='senate-concurrent') or ($resolutionStage='Engrossed-House' and $resolutionType='house-concurrent') or ($resolutionStage='Engrossed-in-House' and $resolutionType='house-concurrent') "> </xsl:when>
<xsl:when test="$billStage='Received-in-Senate' or $billStage='Received-in-House' or $billStage='Referred-in-Senate' or $billStage='Referred-in-House'">
<hr width="40%"/>
<p/>
<center>
<span class="chamber">
<xsl:apply-templates select="current-chamber"/>
<xsl:apply-templates select="action"/>
</span>
</center>
</xsl:when>
<!-- TB 4Sep2007 #679 Do not display title for the PCS and RS concurrent resolutions. Added resolution stages in the appropriate -current- case -->
<xsl:when test="$resolutionStage='Referred-in-Senate' or $resolutionStage='Received-in-Senate' or $resolutionStage='Reported-in-Senate' or $resolutionStage='Placed-on-Calendar-Senate'">
<hr width="40%"/>
<p/>
<center>
<span class="chamber">
<xsl:apply-templates select="current-chamber"/>
</span>
</center>
<xsl:apply-templates select="action"/>
</xsl:when>
<xsl:otherwise>
<!--xsl:if
test="not ($billStage='Engrossed-in-House' or $billStage='Engrossed-in-Senate' )"-->
<xsl:if test="not ($documentStage='Engrossed-in-House' or $documentStage='Engrossed-in-Senate' )">
<br/>
<xsl:if test="not(official-title/@display='no') and not(parent::form/@display='no')">
<ul>
<p align="justify" class="hang">
<xsl:apply-templates select="official-title"/>
</p>
</ul>
<hr width="40%"/>
</xsl:if>
<p/>
<xsl:if test="not(current-chamber/@display='no') and not (parent::form/@display='no')">
<center>
<span class="chamber">
<xsl:apply-templates select="current-chamber"/>
</span>
</center>
</xsl:if>
</xsl:if>
<xsl:if test="($billStage='Engrossed-in-House' or $billStage='Engrossed-in-Senate' ) and $toDisplayOpeningRuller='yes'">
<hr width="40%"/>
</xsl:if>
<xsl:apply-templates select="action"/>
</xsl:otherwise>
</xsl:choose>
<xsl:if test="not (contains($documentType, 'order') or ($documentStage ='Engrossed-in-House' and $documentStage='Engrossed-in-Senate')) ">
<hr width="40%"/>
</xsl:if>
<p/>
<xsl:if test="not(legis-type/@display='no')">
<center>
<b>
<span class="legistype">
<xsl:apply-templates select="legis-type"/>
</span>
</b>
</center>
</xsl:if>
<p/>
<xsl:choose>
<xsl:when test="($resolutionStage='Engrossed-in-Senate'and $resolutionType='senate-concurrent') or ($resolutionStage='Engrossed-House' and $resolutionType='senate-concurrent') or ($resolutionStage='Engrossed-in-House' and $resolutionType='senate-concurrent') or ($resolutionStage='Engrossed-House' and $resolutionType='house-concurrent') or ($resolutionStage='Engrossed-in-House' and $resolutionType='house-concurrent') "/>
<xsl:otherwise>
<ul>
<p align="justify" class="hang">
<xsl:if test="not(official-title/@display='no') ">
<!-- TB 4Sep2007 #679 fix for display=no attribute -->
<xsl:apply-templates select="official-title"/>
</xsl:if>
</p>
</ul>
<p/>
</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
</xsl:if>
</xsl:template>
<xsl:template name="toPrintAnOpeningRuler">
<xsl:choose>
<xsl:when test="contains($documentStage, 'Enrolled')">
<xsl:text>no</xsl:text>
</xsl:when>
<xsl:when test="(translate($documentType,$upper,$lower)='house-resolution' or translate($documentType,$upper,$lower)='senate-order' or translate($documentType,$upper,$lower)='senate-resolution') and (contains(translate($documentStage,$upper,$lower),'engrossed'))">
<xsl:text>no</xsl:text>
</xsl:when>
<xsl:when test="//current-chamber and not (//current-chamber/@display='no') and not (//current-chamber/text='') and (not((contains(translate($documentStage,$upper, $lower),'engrossed'))) and contains(translate($documentType,$upper,$lower),'concurrent')) ">
<xsl:text>yes</xsl:text>
</xsl:when>
<xsl:when test="not(//form/action) and not (//form/action/@display = 'yes' or not(//form/action/@display)) ">
<xsl:text>no</xsl:text>
</xsl:when>
<xsl:when test="//form/action[@display = 'yes' or not(@display)]/child::*[@display='yes' or not(@display)] ">
<xsl:text>yes</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:text>no</xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="action">
<xsl:apply-templates select="action-date"/>
<p align="justify" class="hang">
<xsl:apply-templates select="action-desc"/>
</p>
<center>
<xsl:apply-templates select="action-instruction"/>
</center>
<p/>
</xsl:template>
<xsl:template match="action-date">
<xsl:if test="not(@display='no') and not (parent::action/@display='no')">
<xsl:choose>
<xsl:when test="$isReport='yes'"/>
<xsl:when test="contains(.,'legislative day') and not (contains($documentType, 'order') or ($documentStage ='Engrossed-in-House' and $documentStage='Engrossed-in-Senate')) ">
<center>
<p/>
<span class="simplecap">
<xsl:value-of select="substring-before(.,substring-before(substring-after(.,'(') ,')')) "/>
</span>
<xsl:value-of select="substring-before(substring-after(.,'(') ,',') "/>
<span class="simplecap">
<xsl:text>, </xsl:text>
<xsl:value-of select="substring-before(substring-after(.,',') ,')') "/>
<xsl:value-of select="substring-after(.,substring-before(substring-after(.,'(') ,')')) "/>
</span>
<p/>
</center>
</xsl:when>
<xsl:when test="$resolutionStage='Engrossed-House' or $resolutionStage='Engrossed-in-House' or $amendType='engrossed-amendment'">
<p align="right">
<i>
<xsl:apply-templates/>
<xsl:if test="substring(.,string-length(.)) != '.'">
<xsl:text>.</xsl:text>
</xsl:if>
<xsl:text disable-output-escaping="yes"> </xsl:text>
<xsl:text disable-output-escaping="yes"> </xsl:text>
</i>
</p>
</xsl:when>
<xsl:otherwise>
<center>
<p/>
<xsl:choose>
<xsl:when test="contains(normalize-space(.),'legislative day')">
<span class="simplecap">
<xsl:value-of select="substring-before(.,'legislative')"/>
</span>
<span class="allnormal">
<xsl:text>legistlative day</xsl:text>
</span>
<span class="simplecap">
<xsl:value-of select="substring-after(.,'day')"/>
</span>
</xsl:when>
<xsl:otherwise>
<span class="simplecap">
<xsl:apply-templates/>
</span>
</xsl:otherwise>
</xsl:choose>
<p/>
</center>
</xsl:otherwise>
</xsl:choose>
</xsl:if>
</xsl:template>
<xsl:template match="legis-body">
<xsl:choose>
<xsl:when test="local-name(child::*[1]) ='section' and child::section[1]/@section-type='undesignated-section' and child::section[1]/@display-inline ='yes-display-inline' and @display-enacting-clause='no-display-enacting-clause' ">
<p align="justify">
<xsl:call-template name="print-legis-body"/>
</p>
</xsl:when>
<xsl:otherwise>
<p align="justify" class="indent">
<xsl:call-template name="print-legis-body"/>
</p>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template name="print-legis-body">
<xsl:choose>
<xsl:when test="./@display-enacting-clause='no-display-enacting-clause' or (//amendment-doc/@amend-type='conference-report')"/>
<xsl:otherwise>
<em>
<xsl:value-of select="$enact"/>
</em>
</xsl:otherwise>
</xsl:choose>
<xsl:choose>
<xsl:when test="./@added-display-style='boldface-roman' or ./@reported-display-style='boldface-roman'">
<b style="font-size=16pt;">
<xsl:call-template name="displayLegisBody"/>
</b>
</xsl:when>
<xsl:when test="./@added-display-style='italic' or ./@reported-display-style='italic'">
<i>
<xsl:call-template name="displayLegisBody"/>
</i>
</xsl:when>
<xsl:when test="./@deleted-display-style='strikethrough' or ./@reported-display-style='strikethrough'">
<strike>
<xsl:call-template name="displayLegisBody"/>
</strike>
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="displayLegisBody"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template name="displayLegisBody">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="preamble">
<xsl:choose>
<!-- TB 30Aug2007 #678 changed was added to the whhen condition-->
<xsl:when test="@added-display-style='italic' or whereas/@changed='added'">
<i>
<xsl:call-template name="displayPreamble"/>
</i>
</xsl:when>
<xsl:when test="@deleted-display-style='strikethrough' or whereas/@changed='deleted'">
<!-- TB 30Aug2007 #678 changed was added to the when condition-->
<strike>
<xsl:call-template name="displayPreamble"/>
</strike>
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="displayPreamble"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template name="displayPreamble">
<p align="justify">
<xsl:apply-templates/>
</p>
</