-
-
Save simonw/64c9f172533203c09acbcf13a0bb67c4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- =========================================================== --> | |
| <!-- MODULE: Legislative Branch Bills XSLT --> | |
| <!-- VERSION: 4.6 --> | |
| <!-- DATE: April 30, 2025 --> | |
| <!-- Previous version and date: 4.5 July 28, 2023 --> | |
| <!-- ============================================================= --> | |
| <!-- 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) | |
| .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/Rost Schensnovich/Aikya Mareddy --> | |
| <!-- SEND COMMENTS/QUERIES TO: Elena Tchumanov(etchumanov@gpo.gov) --> | |
| <!-- ============================================================= --> | |
| <!-- CHANGE HISTORY | |
| Changes incorporated in version 4.6 (04/30/2025): | |
| 1. Edited the background of the enrolled bill for the Congress number printed on the parchment paper. | |
| 2. Fixed <quote> tag's display having inside the <header-in-text level="section" style="OLC">. | |
| Double, single quotes rules. | |
| 3. Fixed the country name in the paragraph's header for all capped. | |
| 4. Fixed the paragraph's level header's style for Initial cap + small cap | |
| under the specific scenario, having the empty <\italic> tag before the header. | |
| 5. Implemented the "chairwoman" and "chairperson" for the <role> attribute in the committee-report | |
| under the <legislator> element. | |
| 6. Added <slc_previous> and <slc_next> to the web presentation for <meta-senate> tag for the inner purposes. | |
| Changes incorporated in version 4.5 (07/28/23): | |
| 1.Fixed the inline attribute for the text in the resolution. | |
| 2.Fixed the <legis-num> defined as "no-display" in the amendments. | |
| 3. Fixed the <report-num part="II"> to the numerical numbers. | |
| 4. Fixed the <legis-counsel display="yes"> ont he web. | |
| 5. Fixed the missed single quote at the and of the toc in the nested QB. | |
| Changes incorporated in version 4.4 (11/15/22): | |
| 1.Fixed the legislators names style (all caps) in the Committee report. | |
| 2.Fixed inline attribute in amendment block and quotes in the quoted-block. | |
| Changes incorporated in version 4.3 (12/07/20): | |
| 1. Fixed the nested quoted-block style for double and single quotes in the bill. | |
| 2. Added space between double and sigle quote in the nested quoted-blocks. | |
| 3. Fixed table of contents big headers (Division and Subchapter) left alignment | |
| for codification-quoted and -not-quoted styles. | |
| Changes incorporated in version 4.2 (09/11/20): | |
| 1. Implementation and fix of strikethrough, italic and roman display styles in bill. | |
| 2. Implementation of appropriations, archaic, archaic-paragraph styles for section level in quoted-block. | |
| 3. Fixed a missing closing quote in the big heads and toc in quoted-block in codification-quoted style. | |
| 4. Implemented alignment for the big headers in TOC in codification-style. | |
| 5. Fixed table captions to bold style in the tables in quoted-block. | |
| 6. Implementation italic style for <action-date> display on the web. | |
| 7. Implementation of the rule for quotes for the nested quoted-block in all styles including | |
| codification-quoted and -not-quoted styles: double and single quotes rule. | |
| 8. Implemented Codification-quoted and codification-not-quoted styles for section level and below. | |
| 9. Implementation of quotation marks in the tables in quoted-block for codification-quoted and -not-quoted styles. | |
| 10. Fixed missing after-quoted-block in codification-quoted and -not-quoted styles. | |
| Changes incorporated in version 4.1 (07/23/19): | |
| 1. Fixed title's ability to inherit of division style in | |
| appropriations. | |
| Changes incorporated in version 4.0 (05/01/19): | |
| 1. Added missing piece of code for strikethru definition | |
| in subclause and under (item and subitem). | |
| Changes incorporated in version 3.9 (09/05/18): | |
| 1. Fixed following reported-display-styles in the bill: | |
| reported-display-style=”brackets-boldface-roman”, | |
| “brackets-boldface-italic”, “parentheses-boldface-roman”, | |
| “parentheses-boldface-italic” {in all browsers}. | |
| 2. Reported-display-style values (italic, strikethrough, | |
| boldface-roman, boldface-italic, no change) display is fixed | |
| according the rule, that if the child element is not defined with | |
| reported-display-style value, it should pick up from parent or it | |
| should get default value. And, if the child is defined with any | |
| above reported-display-style value, than it should remain defined | |
| value and not to pick up from parent. In general, verified and | |
| adjusted coding for the attributes value of the attribute change | |
| (added, deleted, no change). {In all browsers}. | |
| 3. Fixed error where generated word “Sec." was not displaying in | |
| archaic style in quoted-block. | |
| 4. Fixed coding for “hidden” and “yes” values for commented attribute. | |
| Everything defined with commented=”hidden” attribute should not appear | |
| and with commented=”yes” should have bold brackets. | |
| 5. Opening and closing brackets were missing or doubled in certain | |
| scenarios now appear. | |
| Changes incorporated in version 3.8 (12/22/17): | |
| 1. Added missing strikes in quoted block at deleted <toc> in bill. | |
| 2. Fixed missing strikeout type on the clause level when the clause | |
| is a section wich has been marked as "deleted" {in all browsers}. | |
| 3. The word "DIVISION" now shows italic in Appropriations style in | |
| reported bills where reported-display-style="italic". | |
| 4. Stopped displaying "EM dash" in the big levels (division through | |
| subchapter) in amendments when these level-type'="undesignated". | |
| 5. Created Star Print indicator (“Star Print” word together with | |
| star sign) at the top left corner for Senate bills, resolutions, | |
| requested as Senate-ordered Star Print ONLY at all stages. | |
| Changes incorporated in version 3.7.1 (10/18/17): | |
| 1. Added Star Print indicator at the top for Senate order. | |
| Changes incorporated in version 3.7 (05/26/17): | |
| 1. Extended leaders closer to page numbers in right column of | |
| multi-column toc to eliminate white space. | |
| 2. Added meta tag <meta http-equiv="X-UA-Compatible" content="IE=8" /> | |
| to allow for legacy versions of IE. | |
| Changes incorporated in version 3.6 (09/09/16): | |
| 1. Stopped the strikethrough normally associated with deleted text | |
| continuing into the italic associated with added text found in the | |
| reported bills. In general, verified and adjusted coding for the | |
| attributes value of the attribute change=. | |
| 2. Fixed error where generated word section or sec. was not showing | |
| bold while the header in the same line was bold. | |
| 3. Added coding to allow for creation of links from House resolutions | |
| proposing to amend House rules to the House Rules contained in the | |
| House Manual. | |
| Changes incorporated in version 3.5.1 (12/23/15): | |
| 1. Fixed coding for links to USC when chapter was called with no | |
| corresponding section in the code; updated some public law link | |
| coding as was looking for old GPO access website. | |
| Changes incorporated in version 3.5 (12/15/15): | |
| 1. Fixed type running together in multi-column toc elements found | |
| in some of the newer versions of browsers | |
| 2. Adjusted code to cover for usc style multi-column toc, error had | |
| caused Chapter element found after the toc to go to the top of an | |
| enrolled bill | |
| 3. Table not displaying when quoted-block was in traditional style | |
| now displays | |
| 4. Alignment for headers in traditional style without enums now center | |
| on page | |
| 5. Action-date and Action-desc for concurrent resolutions now have proper | |
| capitalization and alignment | |
| 6. Fixed alignment of headers in appropriations styles for reported bills | |
| 7. List now displays when found within a section | |
| 8. Within committee reports: | |
| a. Stopped displaying "Part" in commitee-report-form if no form | |
| number was defined in the data | |
| b. Fixed indent when a header and the text following it both had | |
| the attribute "yes-display-inline" | |
| c. Made display of report-title all caps no matter how data was | |
| typed within a file | |
| d. Added rule at end of committee report | |
| e. Removed original coding for committee votes for House Committee | |
| on Rules as the committee has adopted the style created by | |
| the committee vote utility | |
| f. Changed size of pl-cite and centered it | |
| Changes incorporated in version 3.4 (05/26/15): | |
| 1. Updated all text in bills, resolutions, and committee reports | |
| to be flush left instead of justified per request of Library of | |
| Congress. | |
| 2. Separated billres.xsl into billres.xsl and billres-details.xsl | |
| so stylesheet could be incorporated into LOC stylesheet while still | |
| being used by other users | |
| 3. Standardization of cascading stylesheet classes names, adding the | |
| prefix LBEX, again to allow multiple useage of the stylesheet. | |
| 4. No diplay of Quoted-toc-entry when found in elements subsection or | |
| below fixed so now display | |
| 5. Added coding to allow display of Continuation-text in quoted-block | |
| for traditional, traditional-inline, archaic, and appropriations style | |
| 6. Added coding for display of the section-style attribute found on the | |
| big heads in appropriations | |
| 7. Fixed stylesheet to allow the display of quoted-blocks in archaic | |
| style | |
| 8. Improved stylesheet to keep in synchronization with xml to locator | |
| translation. For more details see the Release Notes on the change | |
| management website: http://changemanagement.gpo.gov/ under the heading | |
| Congressional Bills | |
| Changes incorporated in version 3.3 (03/18/14): | |
| 1. Updated all text in bills, resolutions, and committee reports | |
| to be flush left instead of justified per request of Library of | |
| Congress. | |
| 2. Separated billres.xsl into billres.xsl and billres-details.xsl | |
| so stylesheet could be incorporated into LOC stylesheet while still | |
| being used by other users | |
| 3. Standardization of cascading stylesheet classes names, adding the | |
| prefix LBEX, again to allow multiple useage of the stylesheet. | |
| 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.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: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> | |
| <!--*****************is Stand alone vote**************--> | |
| <xsl:variable name="isStandAloneVote"> | |
| <xsl:choose> | |
| <xsl:when | |
| test="//committee-report-form/@display = 'no' and contains(translate(//current-chamber, $upper, $lower), 'house')"> | |
| <xsl:text>yes</xsl:text> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:text>no</xsl:text> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:variable> | |
| <xsl:strip-space elements="*"/> | |
| <xsl:template name="defineDocumentStyle"> | |
| <style type="text/css"> | |
| body.lbexBody { | |
| 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> | |
| </xsl:template> | |
| <xsl:template name="printDocumentTitle"> | |
| <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> | |
| </xsl:template> | |
| <xsl:template name="prePrintWebDocument"> | |
| <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 class="lbexGeneralStyle100"> | |
| <tr> | |
| <td style="width:5%"/> | |
| <td style="width:40%"> | |
| <xsl:if test="not(//form/legis-num/@display = 'no')"> | |
| <span class="lbexSectionLevelTradBold"> | |
| <xsl:text> </xsl:text> | |
| <xsl:apply-templates select="//form/legis-num"/> | |
| </span> | |
| </xsl:if> | |
| </td> | |
| <td style="width:10%"/> | |
| <xsl:choose> | |
| <xsl:when test="//form/action/action-date != ''"> | |
| <td class="lbexSectionLevelTradBold" style="width:40%;text-align:right"> | |
| <xsl:value-of select="//form/action/action-desc"/> | |
| <xsl:text> </xsl:text> | |
| <xsl:value-of select="//form/action/action-date"/> | |
| </td> | |
| <td style="width:5%"/> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <td style="width:50%"/> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </tr> | |
| </table> | |
| </xsl:if> | |
| <xsl:choose> | |
| <xsl:when test="$drawRedBoarder = 'yes'"> | |
| <table class="lbexTableStyleEnr"> | |
| <tr style="height:30px"> | |
| <td style="width:5%"/> | |
| <td/> | |
| <td style="width:5%"/> | |
| </tr> | |
| <tr> | |
| <td style="width:5%"/> | |
| <td> | |
| <xsl:call-template name="printWebDocument"/> | |
| </td> | |
| <td style="width:5%"/> | |
| </tr> | |
| </table> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:call-template name="printWebDocument"/> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </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:call-template name="PrintStarInLeftCornerForSenate"/> | |
| <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="lbexBreakHere"/> | |
| <div style="text-align:center"> | |
| <xsl:value-of select="//amendment-form/amend-num"/> | |
| <br/> | |
| <p/> | |
| <xsl:value-of select="//amendment-form/legis-num"/> | |
| </div> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <p class="lbexBreakHere"/> | |
| <div style="text-align:center"> | |
| <table class="lbexTableStyleTwo" align="center"> | |
| <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> | |
| <div style="text-align:center"> | |
| <xsl:if test="not(//first-page-header/@display = 'no')"> | |
| <p class="lbexSectionlevelOLCBold"> | |
| <xsl:value-of select="//first-page-header"/> | |
| </p> | |
| </xsl:if> | |
| </div> | |
| </td> | |
| </tr> | |
| </xsl:if> | |
| <tr> | |
| <td> | |
| <p style="text-align:right;" class="lbexEndsmtHead"> | |
| <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 class="lbexTableStyleOne" style="width:100%"> | |
| <tr> | |
| <td style="width:20%;text-align:left"> | |
| <div class="lbexEndsmtSimpleCap" style="text-align:left"> | |
| <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 style="text-align:center"> | |
| <xsl:variable name="tempNumberToPrint" | |
| select="$theNumberToPrint"/> | |
| <xsl:choose> | |
| <xsl:when | |
| test="string-length($theNumberToPrint) = 16"> | |
| <span class="lbexSmtlegisNumlrg"> | |
| <xsl:value-of select="$theNumberToPrint"/> | |
| </span> | |
| </xsl:when> | |
| <xsl:when | |
| test="string-length($theNumberToPrint) < 16 and string-length($theNumberToPrint) > 13"> | |
| <table class="lbexTableStyleThree"> | |
| <tr> | |
| <td/> | |
| </tr> | |
| <tr> | |
| <td/> | |
| </tr> | |
| </table> | |
| <div style="text-align:center"> | |
| <span class="lbexSmtlegisNumlrg"> | |
| <xsl:value-of select="$theNumberToPrint"/> | |
| </span> | |
| </div> | |
| </xsl:when> | |
| <xsl:when | |
| test="string-length($theNumberToPrint) < 14 and string-length($theNumberToPrint) > 10"> | |
| <table class="lbexTableStyleFour"> | |
| <tr> | |
| <td/> | |
| </tr> | |
| <tr> | |
| <td/> | |
| </tr> | |
| </table> | |
| <div style="text-align:center"> | |
| <span class="lbexSmtlegisNumAvg"> | |
| <xsl:value-of select="$theNumberToPrint"/> | |
| </span> | |
| </div> | |
| </xsl:when> | |
| <xsl:when | |
| test="number(string-length($theNumberToPrint)) < 11"> | |
| <table class="lbexTableStyleFour"> | |
| <tr> | |
| <td/> | |
| </tr> | |
| <tr> | |
| <td/> | |
| </tr> | |
| </table> | |
| <div style="text-align:center"> | |
| <span class="lbexSmtlegisNum"> | |
| <xsl:value-of select="$theNumberToPrint"/> | |
| </span> | |
| </div> | |
| </xsl:when> | |
| </xsl:choose> | |
| </td> | |
| <td style="width:20%"/> | |
| </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 style="text-align:center" class="lbexChapterLevelOLCBold"> | |
| <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) < 75"> | |
| <div class="lbexHangTable" | |
| style="align:center;margin-left: 2em"> | |
| <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="lbexHangTable" | |
| style="text-align:left;margin-left: 4em"> | |
| <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> | |
| </div> | |
| </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 style="text-align:center" class="lbexBold"> | |
| <xsl:value-of select="."/> | |
| </div> | |
| </xsl:if> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:if test="not(@display = 'no')"> | |
| <div style="text-align:center" class="lbexEndsmtSimpleCap"> | |
| <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="lbexBold" style="text-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="lbexHangTable" | |
| style="text-align:center;margin-left: 2em"> | |
| <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> | |
| <!-- print front-matter-back-titlepage --> | |
| <xsl:call-template name="printFrontMatterBackTitlepage"/> | |
| <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"/> | |
| <!--TB Nov-2015 bug fixing #1408 --> | |
| <xsl:if test="not(//pre-form) and $isStandAloneVote = 'no'"> | |
| <hr/> | |
| </xsl:if> | |
| <xsl:call-template name="printFootnotes"/> | |
| </xsl:template> | |
| <xsl:template name="PrintCoverPageTitlePage"> | |
| <xsl:param name="isCoverTitle"/> | |
| <!-- TB January 2014 cleanup for the result html validation --> | |
| <xsl:if | |
| test="//committee-report-form/calendar and not(//committee-report-form/calendar/@display = 'no') and //committee-report-form/calendar != ''"> | |
| <table style="width:80%;" align="center"> | |
| <tr> | |
| <td style="text-align:right" class="lbexLegisNumSml"> | |
| <xsl:value-of select="//committee-report-form/calendar"/> | |
| </td> | |
| </tr> | |
| </table> | |
| </xsl:if> | |
| <table class="lbexTableStyleFive" align="center"> | |
| <tr> | |
| <td style="width:100%;text-align:center"> | |
| <table class="lbexReportCoverTableTop"> | |
| <tr> | |
| <td style="width:15%;text-align:center" class="lbexTocSubDivisionOLC"> | |
| <xsl:value-of select="//congress"/> | |
| <br/> | |
| <xsl:value-of select="//committee-report-form/session"/> | |
| </td> | |
| <td style="width:2%" class="lbexLegisType"> | |
| <xsl:text>}</xsl:text> | |
| </td> | |
| <td style="text-align:center" class="lbexSmallCapTrad"> | |
| <xsl:value-of select="translate(//current-chamber, $lower, $upper)" | |
| /> | |
| </td> | |
| <td style="width:2%" class="lbexLegisType"> | |
| <xsl:text>{</xsl:text> | |
| </td> | |
| <td style="width:15%;text-align:center" class="lbexTocSubDivisionOLC"> | |
| <xsl:choose> | |
| <xsl:when | |
| test="//report-num/@part != '' and //report-num/@part != '0'"> | |
| <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" class="lbexTableStyleTwo"> | |
| <!-- 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')"> | |
| <div style="text-align:center"> | |
| <span class="lbexInitialCapUSC"> | |
| <xsl:value-of | |
| select="translate(//report-title, $lower, $upper)"/> | |
| </span> | |
| </div> | |
| </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 style="width:85px"/> | |
| </td> | |
| </tr> | |
| </xsl:if> | |
| <xsl:if test="not(//report-title) or //report-title/@display = 'no'"> | |
| <tr> | |
| <td style="height:10"/> | |
| </tr> | |
| </xsl:if> | |
| <tr> | |
| <td style="height:34;text-align:center;" class="lbexLargeCapTrad"> | |
| <xsl:call-template name="insertSpaces"> | |
| <xsl:with-param name="origString" | |
| select="translate(//legis-type, $lower, $upper)"/> | |
| </xsl:call-template> | |
| </td> | |
| </tr> | |
| <tr> | |
| <td style="text-align:center" class="lbexTocSubPartOLC"> | |
| <xsl:text>of the</xsl:text> | |
| </td> | |
| </tr> | |
| <tr> | |
| <td style="height:6"/> | |
| </tr> | |
| <tr> | |
| <td style="text-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 style="text-align:center"> | |
| <xsl:value-of | |
| select="normalize-space(translate(//current-chamber, $lower, $upper))" | |
| /> | |
| </td> | |
| </tr> | |
| </xsl:if> | |
| <tr> | |
| <td style="height:12"/> | |
| </tr> | |
| <xsl:if test="//legis-num and not(//legis-num/@display = 'no')"> | |
| <tr> | |
| <td style="height:12"/> | |
| </tr> | |
| <tr> | |
| <td style="text-align:center" class="lbexTocSubPartOLC"> | |
| <xsl:text disable-output-escaping="yes">on</xsl:text> | |
| </td> | |
| </tr> | |
| <tr> | |
| <td style="height:8"/> | |
| </tr> | |
| <tr> | |
| <td style="text-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 style="height:6"/> | |
| </tr> | |
| <tr> | |
| <td style="text-align:center" class="lbexTocSubChapterOLC"> | |
| <xsl:text disable-output-escaping="yes">together with</xsl:text> | |
| </td> | |
| </tr> | |
| <tr> | |
| <td style="height:12"/> | |
| </tr> | |
| <tr> | |
| <td style="text-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 style="height:6"/> | |
| </tr> | |
| <xsl:if test="not(//cbo-cost-estimate-line/@display = 'no')"> | |
| <tr> | |
| <td style="text-align:center" class="lbexTocDivisionOLC"> | |
| <xsl:value-of select="//cbo-cost-estimate-line"/> | |
| </td> | |
| </tr> | |
| </xsl:if> | |
| </xsl:if> | |
| <tr> | |
| <td> | |
| <xsl:attribute name="height"> | |
| <xsl:value-of select="$theThirdSpace"/> | |
| </xsl:attribute> | |
| </td> | |
| </tr> | |
| <tr> | |
| <td style="text-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 style="text-align:center" class="lbexTocDivisionOLC"> | |
| <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'"> | |
| <div style="text-align:center" class="lbexSimplecap"> | |
| <hr style="width:20%"/> | |
| <div> u.s. government publishing office </div> | |
| <div> washington : 2009 </div> | |
| </div> | |
| </xsl:if> | |
| </td> | |
| </tr> | |
| </table> | |
| </td> | |
| </tr> | |
| </table> | |
| <br/> | |
| <p class="lbexBreakHere"/> | |
| </xsl:template> | |
| <xsl:template match="front-matter-back-titlepage"> | |
| <!-- skip --> | |
| </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="lbexSectionLevelOLCnuclear"> | |
| <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) < 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 > 108"> | |
| <xsl:text>36</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="$theTotlaSpaces > 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 > 108"> | |
| <xsl:value-of select="format-number(((($theTotlaSpaces - 72) div 2) - 3), '##')" | |
| /> | |
| </xsl:when> | |
| <xsl:when test="$theTotlaSpaces > 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 > 108"> | |
| <xsl:value-of select="format-number((($theTotlaSpaces - 72) div 2) + 3, '##')"/> | |
| </xsl:when> | |
| <xsl:when test="$theTotlaSpaces > 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, '##') >= $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"> | |
| <div style="text-align:center" class="lbexLargeCapTrad"> | |
| <xsl:value-of select="translate(//toc/header, $lower, $upper)"/> | |
| <br/> | |
| <hr style="width:85px"/> | |
| <br/> | |
| </div> | |
| </xsl:if> | |
| <table align="center"> | |
| <xsl:if test="//toc/multi-column-toc-entry"> | |
| <!-- build first row --> | |
| <tr> | |
| <xsl:if test="//toc/multi-column-toc-entry/toc-enum"> | |
| <td class="lbexTdStyleTwo"> </td> | |
| <td class="lbexTdStyleOne"> </td> | |
| </xsl:if> | |
| <td style="text-align:left"> </td> | |
| <td style="text-align:right;width:7%" class="lbexTocSubChapterOLC"> Page </td> | |
| </tr> | |
| </xsl:if> | |
| <xsl:for-each select="//toc/multi-column-toc-entry"> | |
| <tr> | |
| <xsl:if test="toc-enum"> | |
| <td style="text-align:right;" class="lbexTocSubChapterOLC"> | |
| <xsl:value-of select="toc-enum"/> | |
| </td> | |
| <td class="lbexTdStyleOne"> </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="lbexTocSubChapterOLC"> | |
| <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> | |
| <tr> | |
| <td> | |
| <xsl:attribute name="width"> | |
| <xsl:value-of select="$spacesToIndent"/> | |
| <xsl:text>%</xsl:text> | |
| </xsl:attribute> | |
| </td> | |
| <td class="lbexTocSubChapterOLC"> | |
| <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 style="text-align:right" class="lbexTocSubChapterOLC"> | |
| <xsl:value-of select="page-num"/> | |
| </td> | |
| </tr> | |
| </xsl:for-each> | |
| </table> | |
| <br/> | |
| <p class="lbexBreakHere"/> | |
| </xsl:template> | |
| <xsl:template name="printTocForCommitteeReports"> | |
| <xsl:if test="header"> | |
| <div style="text-align:center" class="lbexLargeCapTrad"> | |
| <xsl:value-of select="translate(header, $lower, $upper)"/> | |
| <br/> | |
| <hr style="width:85px"/> | |
| <br/> | |
| </div> | |
| </xsl:if> | |
| <table align="center"> | |
| <xsl:if test="multi-column-toc-entry"> | |
| <!-- build first row --> | |
| <tr> | |
| <xsl:if test="multi-column-toc-entry/toc-enum"> | |
| <td class="lbexTdStyleTwo"> </td> | |
| <td class="lbexTdStyleOne"> </td> | |
| </xsl:if> | |
| <td style="text-align:left"> </td> | |
| <td style="text-align:right;width:7%;" class="lbexTocSubChapterOLC"> Page </td> | |
| </tr> | |
| </xsl:if> | |
| <xsl:for-each select="multi-column-toc-entry"> | |
| <tr> | |
| <xsl:if test="toc-enum"> | |
| <td style="text-align:right;" class="lbexTocSubChapterOLC"> | |
| <xsl:value-of select="toc-enum"/> | |
| </td> | |
| <td class="lbexTdStyleOne"> </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 style="text-align:left;" class="lbexTocSubChapterOLC"> | |
| <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 style="text-align:right;" class="lbexTocSubChapterOLC"> | |
| <xsl:value-of select="page-num"/> | |
| </td> | |
| </tr> | |
| </xsl:for-each> | |
| </table> | |
| <br/> | |
| <p class="lbexBreakHere"/> | |
| </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 style="width:80%;" align="center" class="lbexSectionLevelTradBold"> | |
| <tr> | |
| <td class="lbexIndent"> | |
| <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 style="text-align:center" class="lbexMediumcap"> | |
| <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 style="text-align:center;"> | |
| <xsl:apply-templates/> | |
| </p> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:template> | |
| <xsl:template match="engrossed-amendment-form/current-chamber"> | |
| <p style="text-align:center;" class="lbexChamberEngrHouse"> | |
| <!-- TB Sep2001 MultBrowsers italic tag inserted --> | |
| <i> | |
| <xsl:apply-templates/> | |
| </i> | |
| </p> | |
| </xsl:template> | |
| <xsl:template match="amendment-form/legis-num"> | |
| <div style="text-align:center"> | |
| <xsl:choose> | |
| <xsl:when | |
| test="$senateStyle1 = 'yes' and contains(translate(., $upper, $lower), 'no')"> | |
| <xsl:if test="not(@display='no')"> | |
| <p class="lbexSectionLevelTradBold"> | |
| <xsl:apply-templates/> | |
| </p> | |
| </xsl:if> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <p class="lbexInitialcap"> | |
| <xsl:apply-templates/> | |
| </p> | |
| <xsl:if test="$senateStyle1 = 'yes'"> | |
| <span style="height:40px"/> | |
| </xsl:if> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </div> | |
| </xsl:template> | |
| <xsl:template match="amendment-form/official-title"> | |
| <div style="text-align:center"> | |
| <xsl:choose> | |
| <xsl:when test="@display = 'no'"/> | |
| <xsl:when | |
| test="$senateStyle1 = 'yes' and contains(translate(., $upper, $lower), 'title')"> | |
| <p class="lbexSectionLevelTradBold"> | |
| <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> | |
| </div> | |
| </xsl:template> | |
| <xsl:template match="amendment-form/action"> | |
| <div style="text-align:center"> | |
| <xsl:apply-templates/> | |
| </div> | |
| </xsl:template> | |
| <xsl:template match="conference-report-form/amend-num"> | |
| <xsl:apply-templates/> | |
| </xsl:template> | |
| <xsl:template match="conference-report-form/calendar"> | |
| <p style="text-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"> | |
| <div style="text-align:center" class="lbexInitialCapUSC"> | |
| <xsl:apply-templates/> | |
| </div> | |
| </xsl:template> | |
| <xsl:template match="committee-report-form/report-title"> | |
| <xsl:variable name="theRepTitleText"> | |
| <xsl:apply-templates/> | |
| </xsl:variable> | |
| <xsl:choose> | |
| <xsl:when test="@display = 'no'"/> | |
| <xsl:when test="text() != ''"> | |
| <div style="text-align:center" class="lbexInitialCapUSC"> | |
| <!--xsl:apply-templates/--> | |
| <xsl:value-of select="translate($theRepTitleText, $lower, $upper)"/> | |
| </div> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <div style="text-align:center" class="lbexRepTitle"> | |
| <xsl:text>(title)_________________________________________</xsl:text> | |
| <br/> | |
| <xsl:text>_______________________________________________</xsl:text> | |
| </div> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:template> | |
| <xsl:template match="conference-report-form/action"> | |
| <div style="text-align:center"> | |
| <xsl:if test="action-instruction/text() != ''"> | |
| <br/> | |
| <hr style="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 style="width:100px"/> | |
| <br/> | |
| <xsl:apply-templates select="action-desc"/> | |
| </xsl:if> | |
| </div> | |
| </xsl:template> | |
| <xsl:template match="committee-report-form/action"> | |
| <div style="text-align: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 style="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 style="width:100px"/> | |
| <br/> | |
| </xsl:if> | |
| </xsl:if> | |
| <xsl:apply-templates select="action-instruction"/> | |
| </div> | |
| </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> | |
| <div> | |
| <xsl:attribute name="style"> | |
| <xsl:text>font-size: 75%;text-align:center</xsl:text> | |
| </xsl:attribute> | |
| <xsl:text disable-output-escaping="yes">together with</xsl:text> | |
| <br/> | |
| <p/> | |
| <xsl:value-of select="translate(., $lower, $upper)"/> | |
| <p/> | |
| </div> | |
| <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/> | |
| <div> | |
| <xsl:attribute name="style"> | |
| <xsl:text>font-size: 75%;text-align:center</xsl:text> | |
| </xsl:attribute> | |
| <xsl:value-of select="."/> | |
| </div> | |
| </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> | |
| <!-- Request from Senate --> | |
| <!--TASK 31459 WEB: Add <slc_previous> and <slc_next> to the web presentation for <meta-senate> tag --> | |
| <xsl:if test="//pre-form//slc-previous"> | |
| <br/> | |
| <br/> | |
| <xsl:text disable-output-escaping="yes"> | |
| PRV: </xsl:text> | |
| <xsl:value-of select="//pre-form//slc-previous"/> | |
| </xsl:if> | |
| <xsl:if test="//pre-form//slc-next"> | |
| <br/> | |
| <br/> | |
| <xsl:text disable-output-escaping="yes"> | |
| NXT: </xsl:text> | |
| <xsl:value-of select="//pre-form//slc-next"/> | |
| </xsl:if> | |
| <br/> | |
| <br/> | |
| <!-- TB 7Jan2008 pagebreak after pre-form/meta-senate --> | |
| <p class="lbexBreakHere"/> | |
| <xsl:if test="not(//pre-form//legis-counsel/@display='no')"> | |
| <p style="text-align:right" class="lbexTocSectionIRCBold"> | |
| <xsl:value-of select="//pre-form//legis-counsel"/> | |
| </p> | |
| </xsl:if> | |
| </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')"> | |
| <div style="text-align:center" class="lbexBold"> | |
| <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> | |
| </div> | |
| <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 style="text-align:right" class="lbexCalendarOLC"> | |
| <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'"> | |
| <!-- TB July-6-2015 Bug fixing #1395 --> | |
| <!--table> | |
| <tr> | |
| <td> | |
| </td> | |
| <td style="text-align:right"> | |
| <xsl:if test="$resolutionStage='Enrolled-in-Senate'"> | |
| <span class="lbexLegisNumSml"> | |
| <xsl:apply-templates | |
| select="/resolution/attestation/attestation-group/attestation-date" | |
| /> | |
| </span> | |
| </xsl:if> | |
| <xsl:if | |
| test="$resolutionStage='Enrolled-Bill' or $billStage='Enrolled-Bill'"> | |
| <span class="lbexSectionLevelTradBold"> | |
| <xsl:call-template name="actionDateText"/> | |
| </span> | |
| </xsl:if> | |
| </td> | |
| </tr> | |
| </table--> | |
| <div style="text-align:center"> | |
| <span class="lbexCongressEnrolled"> | |
| <!--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> | |
| </div> | |
| <div style="text-align:center"> | |
| <p/> | |
| <span class="lbexSessionEnrolled"> | |
| <!--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> | |
| </div> | |
| <span class="lbexDateEnrolled"> | |
| <!-- TB Sep2001 MultBrowsers italic tag inserted --> | |
| <div style="text-align: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> | |
| </div> | |
| </span> | |
| <div style="text-align: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="lbexlegisEnrolled"> | |
| <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="lbexLegisEngrossed"> | |
| <xsl:value-of | |
| select="translate(legis-type, $upper, $lower)"/> | |
| </span> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </div> | |
| <xsl:choose> | |
| <xsl:when test="$resolutionStage = 'Engrossed-in-Senate'"> | |
| <div style="text-align:center"> | |
| <xsl:if test="not(official-title/@display = 'no')"> | |
| <div class="lbexTocDivisionOLC"> | |
| <xsl:apply-templates select="official-title"/> | |
| </div> | |
| </xsl:if> | |
| </div> | |
| </xsl:when> | |
| <xsl:when test="not($resolutionStage = 'Enrolled-in-Senate')"> | |
| <ul> | |
| <xsl:if test="not(official-title/@display = 'no')"> | |
| <p style="text-align:left" class="lbexHang"> | |
| <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') or | |
| ($resolutionStage = 'Engrossed-Senate' and $resolutionType = 'senate-resolution') or | |
| ($resolutionStage = 'Engrossed-in-Senate' and $resolutionType = 'senate-resolution')"> | |
| <span class="lbexLegisNumSml"> | |
| <!-- commented by TB Jan-15-2014 printing legis-num instead --> | |
| <!-- uncommented and inserted choose case by TB Mar-3-2014 H.Res. must be not all cap --> | |
| <xsl:choose> | |
| <xsl:when | |
| test="contains(translate(legis-num, $lower, $upper), 'H. RES.')"> | |
| <xsl:text>H. Res. </xsl:text> | |
| <xsl:value-of | |
| select="substring-after(substring-after(legis-num, '.'), '.')"/> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:value-of select="legis-num"/> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </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') and not(translate($documentStage, $upper, $lower) = 'engrossed-in-senate')"> | |
| <hr style="width:40%"/> | |
| </xsl:if> | |
| <xsl:if | |
| test="not(current-chamber/@display = 'no') and not(parent::form/@display = 'no')"> | |
| <div style="text-align:center"> | |
| <span class="lbexChamberEngrHouse"> | |
| <!-- TB Sep2001 MultBrowsers italic tag inserted --> | |
| <i> | |
| <xsl:apply-templates select="current-chamber"/> | |
| </i> | |
| </span> | |
| </div> | |
| <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') and not(//current-chamber/@display = 'no')"> | |
| <div style="text-align:center" class="lbexChamberEngrHouse"> | |
| <!-- TB Sep2001 MultBrowsers italic tag inserted --> | |
| <i> | |
| <xsl:value-of select="//current-chamber"/> | |
| </i> | |
| </div> | |
| </xsl:if> | |
| <xsl:if | |
| test="not(associated-doc/@display = 'no') and associated-doc/text() != ''"> | |
| <p style="text-align:center" class="lbexSectionlevelOLCBold"> | |
| <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'"> | |
| <div style="text-align:center"> | |
| <xsl:if test="$toDisplayOpeningRuller = 'yes'"> | |
| <hr style="width:40%"/> | |
| </xsl:if> | |
| <xsl:apply-templates select="action"/> | |
| </div> | |
| </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 style="width:40%"/> | |
| <p/> | |
| <div style="text-align:center"> | |
| <span class="lbexChamber"> | |
| <xsl:apply-templates select="current-chamber"/> | |
| <xsl:apply-templates select="action"/> | |
| </span> | |
| </div> | |
| </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 style="width:40%"/> | |
| <p/> | |
| <div style="text-align:center"> | |
| <span class="lbexChamber"> | |
| <xsl:apply-templates select="current-chamber"/> | |
| </span> | |
| </div> | |
| <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 style="text-align:left;margin-left: 2em;" class="lbexHang"> | |
| <xsl:apply-templates select="official-title"/> | |
| </p> | |
| <!--/ul--> | |
| <hr style="width:40%"/> | |
| </xsl:if> | |
| <p/> | |
| <xsl:if | |
| test="not(current-chamber/@display = 'no') and not(parent::form/@display = 'no')"> | |
| <div style="text-align:center"> | |
| <span class="lbexChamber"> | |
| <xsl:apply-templates select="current-chamber"/> | |
| </span> | |
| </div> | |
| </xsl:if> | |
| </xsl:if> | |
| <xsl:if | |
| test="($billStage = 'Engrossed-in-House' or $billStage = 'Engrossed-in-Senate') and $toDisplayOpeningRuller = 'yes'"> | |
| <hr style="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 style="width:40%"/> | |
| </xsl:if> | |
| <p/> | |
| <xsl:if test="not(legis-type/@display = 'no')"> | |
| <div style="text-align:center"> | |
| <b> | |
| <span class="lbexLegisType"> | |
| <xsl:apply-templates select="legis-type"/> | |
| </span> | |
| </b> | |
| </div> | |
| </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> | |
| <p style="text-align:left" class="lbexHangWithMargin"> | |
| <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> | |
| <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"/> | |
| <div style="text-align:left;" class="lbexHang"> | |
| <xsl:apply-templates select="action-desc"/> | |
| </div> | |
| <xsl:if test="action-instruction and action-instruction != ''"> | |
| <div style="text-align:center"> | |
| <xsl:apply-templates select="action-instruction"/> | |
| </div> | |
| </xsl:if> | |
| <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')) and $documentStage !=''"> | |
| <div style="text-align:center"> | |
| <p/> | |
| <span class="lbexSimplecap"> | |
| <xsl:value-of | |
| select="substring-before(., substring-before(substring-after(., '('), ')'))" | |
| /> | |
| </span> | |
| <xsl:value-of select="substring-before(substring-after(., '('), ',')"/> | |
| <span class="lbexSimplecap"> | |
| <xsl:text>, </xsl:text> | |
| <xsl:value-of select="substring-before(substring-after(., ','), ')')"/> | |
| <xsl:value-of | |
| select="substring-after(., substring-before(substring-after(., '('), ')'))" | |
| /> | |
| </span> | |
| <p/> | |
| </div> | |
| </xsl:when> | |
| <xsl:when | |
| test="$resolutionStage = 'Engrossed-House' or $resolutionStage = 'Engrossed-in-House' or $amendType = 'engrossed-amendment'"> | |
| <p style="text-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> | |
| <div style="text-align:center"> | |
| <p/> | |
| <xsl:choose> | |
| <xsl:when test="contains(normalize-space(.), 'legislative day')"> | |
| <span class="lbexSimplecap"> | |
| <xsl:value-of select="substring-before(., 'legislative')"/> | |
| </span> | |
| <span class="lbexAllNormal"> | |
| <xsl:text>legistlative day</xsl:text> | |
| </span> | |
| <span class="lbexSimplecap"> | |
| <xsl:value-of select="substring-after(., 'day')"/> | |
| </span> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <span class="lbexSimplecap"> | |
| <xsl:apply-templates/> | |
| </span> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| <p/> | |
| </div> | |
| </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 style="text-align:left"> | |
| <xsl:call-template name="print-legis-body"/> | |
| </p> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <p style="text-align:left" class="lbexIndent"> | |
| <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')or ancestor::amendment-block"/> | |
| <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 class="lbexChapterLevelOLCNuclear"> | |
| <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="./@added-display-style = 'boldface-italic' or ./@reported-display-style = 'boldface-italic'"> | |
| <i class="lbexChapterLevelOLCNuclear"> | |
| <xsl:call-template name="displayLegisBody"/> | |
| </i> | |
| </xsl:when> | |
| <xsl:when | |
| test="./@deleted-display-style = 'strikethrough' or ./@reported-display-style = 'strikethrough'"> | |
| <div class="lbexTextStrikethrough"> | |
| <xsl:call-template name="displayLegisBody"/> | |
| </div> | |
| </xsl:when> | |
| <xsl:when test="preceding-sibling::legis-body"> | |
| <div class="normalFontStyleBlock"> | |
| <xsl:call-template name="displayLegisBody"/> | |
| </div> | |
| </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:call-template name="displayPreamble"/> | |
| <!--<xsl:choose> | |
| <!-\- TB 30Aug2007 #678 changed was added to the whhen condition-\-> | |
| <xsl:when test="(whereas/@added-display-style = 'italic' or whereas/@reported-display-style = 'italic') and whereas/@changed = 'added'"> | |
| <i class="lbexTextNeutral"> | |
| <xsl:call-template name="displayPreamble"/> | |
| </i> | |
| </xsl:when> | |
| <xsl:when | |
| test="(whereas/@deleted-display-style = 'strikethrough' or whereas/@reported-display-style='strikethrough') and whereas/@changed = 'deleted'"> | |
| <!-\\- TB 30Aug2007 #678 changed was added to the when condition-\\-> | |
| <span class="lbexTextStrikethrough"> | |
| <xsl:call-template name="displayPreamble"/> | |
| </span> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:call-template name="displayPreamble"/> | |
| </xsl:otherwise> | |
| </xsl:choose>--> | |
| </xsl:template> | |
| <xsl:template name="displayPreamble"> | |
| <p style="text-align:left"> | |
| <xsl:choose> | |
| <xsl:when | |
| test="(@added-display-style = 'italic' or @reported-display-style = 'italic')"> | |
| <i class="lbexTextNeutral"> | |
| <xsl:apply-templates/> | |
| </i> | |
| </xsl:when> | |
| <xsl:when | |
| test="(@added-display-style = 'boldface-italic' or @reported-display-style = 'boldface-italic')"> | |
| <i class="lbexTextNeutral"> | |
| <b> | |
| <xsl:apply-templates/> | |
| </b> | |
| </i> | |
| </xsl:when> | |
| <xsl:when | |
| test="(@added-display-style = 'boldface-roman' or @reported-display-style = 'boldface-roman')"> | |
| <b class="lbexTextNeutral"> | |
| <xsl:apply-templates/> | |
| </b> | |
| </xsl:when> | |
| <xsl:when | |
| test="(@deleted-display-style = 'strikethrough' or @reported-display-style = 'strikethrough') and @changed = 'deleted'"> | |
| <div class="lbexTextStrikethrough"> | |
| <xsl:apply-templates/> | |
| </div> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:apply-templates/> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </p> | |
| </xsl:template> | |
| <xsl:template match="whereas"> | |
| <ul> | |
| <p class="lbexHang" style="text-align:left"> | |
| <xsl:if test="@commented = 'yes'"> | |
| <xsl:call-template name="openBracketStyles"/> | |
| </xsl:if> | |
| <xsl:choose> | |
| <xsl:when test="@reported-display-style = 'boldface-roman'"> | |
| <div class="lbexChapterLevelOLCBoldNuclear"> | |
| <xsl:apply-templates/> | |
| </div> | |
| </xsl:when> | |
| <xsl:when test="@reported-display-style = 'boldface-italic'"> | |
| <div> | |
| <i class="lbexChapterLevelOLCBoldNuclear"> | |
| <xsl:apply-templates/> | |
| </i> | |
| </div> | |
| </xsl:when> | |
| <xsl:when test="@reported-display-style = 'italic'"> | |
| <div class="lbexSimpleItalic"> | |
| <xsl:apply-templates/> | |
| </div> | |
| </xsl:when> | |
| <xsl:when test="@reported-display-style = 'strikethrough'"> | |
| <div class="lbexTextStrikethrough"> | |
| <xsl:apply-templates/> | |
| </div> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:apply-templates/> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| <xsl:variable name="isToCloseTheBrackets"> | |
| <xsl:call-template name="toCloseTheBrakets"/> | |
| </xsl:variable> | |
| <xsl:if test="@commented = 'yes'"> | |
| <xsl:choose> | |
| <xsl:when test="child::text"> </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:call-template name="closedBracketStyles"/> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:if> | |
| </p> | |
| </ul> | |
| </xsl:template> | |
| <xsl:template match="resolution-body"> | |
| <xsl:choose> | |
| <xsl:when test="$resolutionType = 'house-concurrent'"> | |
| <p style="text-align:left" class="lbexIndent"> | |
| <em> | |
| <xsl:value-of select="$HouseConcurrent"/> | |
| </em> | |
| <xsl:apply-templates/> | |
| </p> | |
| </xsl:when> | |
| <xsl:when test="./@style = 'constitutional-amendment'"> | |
| <p style="text-align:left" class="lbexIndent"> | |
| <em> | |
| <xsl:value-of select="$ConstitutionalAmendment"/> | |
| </em> | |
| <xsl:apply-templates/> | |
| </p> | |
| </xsl:when> | |
| <xsl:when test="$resolutionType = 'house-joint'"> | |
| <p style="text-align:left" class="lbexIndent"> | |
| <em> | |
| <xsl:value-of select="$HouseJoint"/> | |
| </em> | |
| <xsl:apply-templates/> | |
| </p> | |
| </xsl:when> | |
| <!--xsl:when | |
| test="$resolutionType='house-resolution' and //resolution-body[position() =1] = self::*"--> | |
| <xsl:when | |
| test="$resolutionType = 'house-resolution' and not(ancestor-or-self::resolution-body/@display-resolving-clause = 'no-display-resolving-clause')"> | |
| <p style="text-align:left" class="lbexIndent"> | |
| <em> | |
| <xsl:value-of select="$HouseResolution"/> | |
| </em> | |
| <xsl:apply-templates/> | |
| </p> | |
| </xsl:when> | |
| <xsl:when | |
| test="($resolutionType = 'house-order' or $resolutionType = 'senate-order') and not(ancestor-or-self::resolution-body/@display-resolving-clause = 'no-display-resolving-clause')"> | |
| <p style="text-align:left" class="lbexIndent"> | |
| <em> | |
| <xsl:value-of select="$OrderedSection"/> | |
| </em> | |
| <xsl:apply-templates/> | |
| </p> | |
| </xsl:when> | |
| <xsl:when test="$resolutionType = 'senate-concurrent'"> | |
| <p style="text-align:left" class="lbexIndent"> | |
| <em> | |
| <xsl:value-of select="$SenateConcurrent"/> | |
| </em> | |
| <xsl:apply-templates/> | |
| </p> | |
| </xsl:when> | |
| <xsl:when test="$resolutionType = 'senate-joint'"> | |
| <p style="text-align:left" class="lbexIndent"> | |
| <em> | |
| <xsl:value-of select="$SenateJoint"/> | |
| </em> | |
| <xsl:apply-templates/> | |
| </p> | |
| </xsl:when> | |
| <!-- Bug 30848 WEB: The <resolution-body> of the <section> in the section-type="resolved" contains the word "Resolved" twice. --> | |
| <xsl:when | |
| test="$resolutionType = 'senate-resolution' and not(@display-resolving-clause = 'no-display-resolving-clause')"> | |
| <xsl:choose> | |
| <xsl:when test= "child::section/@section-type='resolved'"> | |
| <p style="text-align:left" class="lbexIndent"> | |
| <xsl:apply-templates/> | |
| </p> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <p style="text-align:left" class="lbexIndent"> | |
| <em> | |
| <xsl:value-of select="$SenateResolution"/> | |
| </em> | |
| <xsl:apply-templates/> | |
| </p> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:when> | |
| <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-resolving-clause = 'no-display-resolving-clause'"> | |
| <!-- bug fixing #1093 TB 15Dec2009 --> | |
| <xsl:choose> | |
| <xsl:when | |
| test="./@added-display-style = 'boldface-roman' or ./@reported-display-style = 'boldface-roman'"> | |
| <b> | |
| <p style="text-align:left"> | |
| <xsl:apply-templates/> | |
| </p> | |
| </b> | |
| </xsl:when> | |
| <xsl:when | |
| test="./@added-display-style = 'italic' or ./@reported-display-style = 'italic'"> | |
| <p style="text-align:left" class="lbexIndent"> | |
| <i> | |
| <p style="text-align:left"> | |
| <xsl:apply-templates/> | |
| </p> | |
| </i> | |
| </p> | |
| </xsl:when> | |
| <xsl:when | |
| test="./@deleted-display-style = 'strikethrough' or ./@reported-display-style = 'strikethrough'"> | |
| <span class="lbexTextStrikethrough"> | |
| <p style="text-align:left"> | |
| <xsl:apply-templates/> | |
| </p> | |
| </span> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <div style="text-align:left"> | |
| <xsl:apply-templates/> | |
| </div> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:when> | |
| <!--otherwise test added by SLC on 12/13/2007 to deal with resolutions of type="standard"--> | |
| <xsl:otherwise> | |
| <!-- bug fixing #1093 TB 15Dec2009 --> | |
| <xsl:choose> | |
| <xsl:when | |
| test="./@added-display-style = 'boldface-roman' or ./@reported-display-style = 'boldface-roman'"> | |
| <b class="lbexChapterLevelOLCNuclear"> | |
| <xsl:call-template name="ApplyTemplWithSimpleIndentP"/> | |
| </b> | |
| </xsl:when> | |
| <xsl:when | |
| test="./@added-display-style = 'italic' or ./@reported-display-style = 'italic'"> | |
| <i class="lbexTextNeutral"> | |
| <xsl:call-template name="ApplyTemplWithSimpleIndentP"/> | |
| </i> | |
| </xsl:when> | |
| <xsl:when | |
| test="./@deleted-display-style = 'strikethrough' or ./@reported-display-style = 'strikethrough'"> | |
| <span class="lbexTextStrikethrough"> | |
| <xsl:call-template name="ApplyTemplWithSimpleIndentP"/> | |
| </span> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:call-template name="ApplyTemplWithSimpleIndentP"/> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:template> | |
| <!--changes made 12/28--> | |
| <xsl:template match="action-desc"> | |
| <xsl:choose> | |
| <xsl:when test="@display = 'no' or parent::action/@display = 'no'"/> | |
| <xsl:when test="ancestor::committee-report-form"> | |
| <div> | |
| <xsl:if test="preceding-sibling::action-date"> | |
| <xsl:attribute name="style"> | |
| <xsl:text>font-size: 75%;text-align:center</xsl:text> | |
| </xsl:attribute> | |
| </xsl:if> | |
| <xsl:if | |
| test="(@display-inline = 'yes-display-inline' or not(@display-inline)) and preceding-sibling::action-date[@display = 'yes']"> | |
| <xsl:choose> | |
| <xsl:when test="preceding-sibling::action-date/@display = 'no'"/> | |
| <xsl:when test="preceding-sibling::action-date/text() != ''"> | |
| <xsl:choose> | |
| <xsl:when test="//committee-report"> | |
| <xsl:call-template name="printActionDateForCommitteeReport"> | |
| <xsl:with-param name="aActionDateText"> | |
| <xsl:value-of | |
| select="preceding-sibling::action-date"/> | |
| </xsl:with-param> | |
| </xsl:call-template> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:value-of select="preceding-sibling::action-date"/> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:text>________</xsl:text> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| <xsl:text>.— </xsl:text> | |
| </xsl:if> | |
| <xsl:choose> | |
| <xsl:when test="@display = 'no'"/> | |
| <xsl:when test="text() != ''"> | |
| <xsl:apply-templates/> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:text>_____________________________________________</xsl:text> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </div> | |
| </xsl:when> | |
| <xsl:when test="ancestor::*/amendment-form"> | |
| <xsl:call-template name="printActionDescForAmendment"/> | |
| </xsl:when> | |
| <xsl:when | |
| test="$isReport = 'yes' or contains(translate($documentStage, $upper, $lower), 'engrossed') | |
| or $documentStage ='Reported-in-Senate'or $documentStage ='Introduced-in-Senate' or $documentStage ='Reported-in-House' | |
| or $documentStage ='Introduced-in-House'or $documentStage ='Referred-in-House' or $documentStage ='Referred-in-Senate' | |
| or $documentStage ='Placed-on-Calendar-Senate' or $documentStage ='Placed-on-Calendar-House' or $documentStage ='Received-in-Senate' | |
| or $documentStage ='Received-in-House' or $documentStage ='Pre-Introduction'or $documentStage ='Considered-and-Passed-Senate' | |
| or $documentStage ='Considered-and-Passed-House' or $documentStage ='Placed-on-Calendar-Senate' or $documentStage ='Placed-on-Calendar-House'"> | |
| <p style="text-align:center" class="lbexHangSmall"> | |
| <xsl:apply-templates/> | |
| </p> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <!--ul--> | |
| <p style="text-align:left" class="lbexHangSmalllWithMargin"> | |
| <xsl:apply-templates/> | |
| </p> | |
| <!--/ul--> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:template> | |
| <xsl:template match="action-instruction"> | |
| <xsl:choose> | |
| <xsl:when test="ancestor::*/amendment-form"> | |
| <xsl:call-template name="printActionInstructionForAmendmennt"/> | |
| </xsl:when> | |
| <xsl:when test="$isReport = 'yes'"> | |
| <div style="text-align:center; font-size: 65%"> | |
| <xsl:if | |
| test="(@display-inline = 'yes-display-inline' or not(@display-inline)) and preceding-sibling::action-date[@display = 'yes']"> | |
| <xsl:value-of select="preceding-sibling::action-date"/> | |
| <xsl:text>.— </xsl:text> | |
| </xsl:if> | |
| <xsl:choose> | |
| <xsl:when test="@display = 'no'"/> | |
| <xsl:when test="text() != ''"> | |
| <xsl:text>[ </xsl:text> | |
| <xsl:apply-templates/> | |
| <xsl:text> ]</xsl:text> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:text>[ </xsl:text> | |
| <xsl:text>__________________________________</xsl:text> | |
| <xsl:text> ]</xsl:text> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </div> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:if test="text() != ''"> | |
| <div style="text-align:center"> | |
| <p style="font-size: 65%"> | |
| <xsl:text>[</xsl:text> | |
| <xsl:apply-templates/> | |
| <xsl:text>]</xsl:text> | |
| </p> | |
| </div> | |
| </xsl:if> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:template> | |
| <!-- TB 5Feb2008 Committee Reports support --> | |
| <xsl:template match="sponsor | cosponsor"> | |
| <xsl:choose> | |
| <xsl:when test="contains(., '.')"> | |
| <xsl:call-template name="ActualPrintSponsor"/> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:value-of select="."/> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:template> | |
| <xsl:template name="ActualPrintSponsor"> | |
| <xsl:variable name="flag"> | |
| <xsl:value-of select="contains(., ' of ')"/> | |
| </xsl:variable> | |
| <xsl:if test="$flag = 'false'"> | |
| <xsl:value-of select="substring-before(., '.')"/> | |
| <xsl:text>. </xsl:text> | |
| <span class="lbexSimplecap"> | |
| <xsl:value-of select="substring-after(., '.')"/> | |
| </span> | |
| </xsl:if> | |
| <xsl:if test="$flag = 'true'"> | |
| <xsl:value-of select="substring-before(., '.')"/> | |
| <xsl:text>. </xsl:text> | |
| <xsl:variable name="State"> | |
| <xsl:value-of select="substring-before(substring-after(., '.'), 'of')"/> | |
| </xsl:variable> | |
| <span class="lbexSimplecap"> | |
| <xsl:value-of select="substring-before(substring-after(., '.'), 'of')"/> | |
| </span> | |
| <xsl:value-of select="substring-after(., $State)"/> | |
| </xsl:if> | |
| </xsl:template> | |
| <!--end of form--> | |
| <xsl:template name="getOutputStyle"> | |
| <xsl:choose> | |
| <xsl:when | |
| test=" | |
| (@reported-display-style = 'boldface-roman' and not(ancestor::*[@reported-display-style = 'boldface-roman'])) or | |
| (not(@reported-display-style) and parent::*/@reported-display-style = 'boldface-roman' and not(parent::*/ancestor::*[@reported-display-style = 'boldface-roman']) and not(@changed = 'not-changed')) or | |
| (contains(ancestor::legis-body/@reported-display-style, 'boldface-roman') and not(@reported-display-style)) or (not(@reported-display-style) and ancestor::*[@reported-display-style = 'boldface-roman'] and (@changed != 'not-changed' or not(@changed)))"> | |
| <xsl:text>lbexSectionlevelOLCBold</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="@reported-display-style = 'boldface-roman' and parent::*[@reported-display-style = 'boldface-roman'] and (@changed != 'not-changed' or not(@changed))"> | |
| <xsl:text>lbexSectionlevelOLCBold</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test=" | |
| (not(@reported-display-style) and (ancestor::legis-body/@reported-display-style = 'brackets-boldface-italic' or contains(ancestor::legis-body/@reported-display-style, 'boldface-italic'))) or | |
| (@reported-display-style = 'boldface-italic' and (ancestor::*[@reported-display-style != 'boldface-italic'] or not(ancestor::*/@reported-display-style)))"> | |
| <xsl:text>lbexSectionlevelItalicOLCBold</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="@reported-display-style = '' and parent::*/@reported-display-style = 'boldface-italic' and not(parent::*/ancestor::*[@reported-display-style = 'boldface-italic']) and not(@changed = 'not-changed')"> | |
| <xsl:text>lbexSectionlevelOLCBold</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="ancestor::resolution-body/@reported-display-style = 'strikethrough'"> | |
| <xsl:if test="not(child::section/@reported-display-style)"> | |
| <xsl:text>lbexTextStrikethrough</xsl:text> | |
| </xsl:if> | |
| </xsl:when> | |
| <xsl:when | |
| test=" | |
| (@changed='deleted' and (@deleted-display-style = 'strikethrough' or | |
| @reported-display-style = 'strikethrough')) and not(ancestor::*[@reported-display-style = 'strikethrough']) and not(contains(child::*/@changed, 'not-changed')) and not(contains(child::*/child::*/@changed, 'not-changed'))"> | |
| <xsl:text>lbexTextStrikethrough</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="not(@reported-display-style) and ((child::*[@changed != 'not-changed']) or not(child::*/@changed)) and (@changed != 'not-changed' or not(@changed)) and (parent::*/@reported-display-style = 'strikethrough' or parent::*/@deleted-display-style = 'strikethrough') and not(parent::*/ancestor::*[@reported-display-style = 'strikethrough'])"> | |
| <xsl:text>lbexTextStrikethrough</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test=" | |
| @reported-display-style = 'italic' and (parent::*/@deleted-display-style != 'italic' or | |
| (parent::*/@reported-display-style != 'italic') and not(parent::*/ancestor::*[@reported-display-style = 'italic'])) and @changed != 'not-changed'"> | |
| <xsl:text>lbexSimpleItalic</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test=" | |
| (@reported-display-style = 'italic' and parent::*/ancestor::*[@reported-display-style != 'italic']) or (not(@reported-display-style) and not(parent::*/@reported-display-style) and parent::*/parent::*[@reported-display-style = 'italic']) | |
| or (not(@reported-display-style) and not(parent::*/@reported-display-style)and not(parent::*/parent::*/@reported-display-style) and parent::*/parent::*/parent::*[@reported-display-style = 'italic']) or | |
| (not(@reported-display-style) and not(parent::*/@reported-display-style)and not(parent::*/parent::*/@reported-display-style)and not(parent::*/parent::*/parent::*/@reported-display-style) and ancestor::*[@reported-display-style = 'italic'])or | |
| (not(@reported-display-style) and parent::*/@reported-display-style = 'italic')"> | |
| <xsl:choose> | |
| <xsl:when test="(not(@changed) and not(@reported-display-style) and (parent::*/@changed='not-changed' or (not(parent::*/@changed) and parent::*/parent::*/@changed='not-changed'))) | |
| or (@changed='not-changed' and parent::*/@changed='not-changed') | |
| or @changed='not-changed'"> | |
| <xsl:text>normalFontStyleBlock</xsl:text> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:text>lbexSimpleItalic</xsl:text> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:when> | |
| <xsl:when | |
| test="(@reported-display-style = 'italic' and ancestor::*/@reported-display-style = 'italic')"> | |
| <xsl:text>lbexSimpleItalic</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="@commented = 'hidden'"> | |
| <xsl:text>hidden</xsl:text> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:text/> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:template> | |
| <xsl:template name="isNeutralizeSegment"> | |
| <!-- should we make italic to be neutral --> | |
| <xsl:choose> | |
| <xsl:when | |
| test="contains(@reported-display-style, 'italic') and (parent::*/@reported-display-style != 'italic' or parent::quoted-block//@reported-display-style != 'italic') and ancestor::*[@reported-display-style = 'strikethrough']"> | |
| <xsl:text>yes</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="(contains(@reported-display-style, 'strikethrough') and ancestor::*[@reported-display-style != 'strikethrough']) or (parent::quoted-block//@reported-display-style != 'strikethrough' and contains(@reported-display-style, 'strikethrough'))"> | |
| <xsl:text>yes</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="contains(@reported-display-style, 'boldface-roman') and (not(contains(parent::*/@reported-display-style, 'boldface-roman')) or contains(parent::quoted-block//@reported-display-style, 'boldface-roman'))"> | |
| <xsl:text>yes</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="contains(@reported-display-style, 'brackets')"> | |
| <xsl:choose> | |
| <xsl:when | |
| test="(not(parent::*/@reported-display-style) or contains(parent::*/@reported-display-style, 'brackets')) or (contains(parent::quoted-block//@reported-display-style, 'brackets'))"> | |
| <xsl:text>no</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="not(contains(parent::*/@reported-display-style, 'brackets')) or not(contains(parent::quoted-block//@reported-display-style, 'brackets'))"> | |
| <xsl:text>yes</xsl:text> | |
| </xsl:when> | |
| </xsl:choose> | |
| </xsl:when> | |
| <xsl:when | |
| test="(@changed = 'not-changed') and ancestor::*[@reported-display-style != ''] and not(parent::*/@reported-display-style)"> | |
| <xsl:text>yes</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="(@changed = 'not-changed') and parent::*[@reported-display-style != '']"> | |
| <xsl:text>yes</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="not(@changed) and parent::*/@changed = 'not-changed' and parent::*/ancestor::*[@reported-display-style != ''] and @display-inline = 'yes-display-inline'"> | |
| <xsl:text>yes</xsl:text> | |
| </xsl:when> | |
| <xsl:otherwise>no</xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:template> | |
| <xsl:template name="getNeutralBlockClassName"> | |
| <!-- should we make styles to be neutral --> | |
| <xsl:choose> | |
| <xsl:when | |
| test="(contains(@reported-display-style, 'italic') or contains(@reported-display-style, 'boldface-roman')) and (not(contains(parent::*/@reported-display-style, 'italic')) or contains(parent::quoted-block//@reported-display-style, 'italic')) and ancestor::*[@reported-display-style = 'strikethrough']"> | |
| <xsl:text>noneTextDecorationBlock</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="(contains(@changed, 'not-changed')) and ancestor::*[@reported-display-style = 'strikethrough'] and not(parent::*/@reported-display-style)"> | |
| <xsl:text>noneTextDecorationBlock</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="(contains(@changed, 'not-changed')) and parent::*[@reported-display-style = 'strikethrough']"> | |
| <xsl:text>noneTextDecorationBlock</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="contains(@reported-display-style, 'italic') and (not(contains(parent::*/@reported-display-style, 'italic')) or not(contains(parent::quoted-block//@reported-display-style, 'italic')))"> | |
| <xsl:text>normalFontStyleBlock</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="contains(@reported-display-style, 'brackets') and (not(contains(parent::*/@reported-display-style, 'brackets')) or not(contains(parent::quoted-block//@reported-display-style, 'brackets')))"> | |
| <xsl:text>normalFontStyleBlock</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="contains(@reported-display-style, 'boldface-roman') and (not(contains(parent::*/@reported-display-style, 'boldface-roman')) or contains(parent::quoted-block//@reported-display-style, 'boldface-roman'))"> | |
| <xsl:text>normalFontStyleBlock</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="contains(@reported-display-style, 'strikethrough') and (not(contains(parent::*/@reported-display-style, 'strikethrough')) or contains(parent::quoted-block//@reported-display-style, 'strikethrough'))"> | |
| <xsl:text>normalFontStyleBlock</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="contains(@reported-display-style, 'brackets') and (contains(parent::*/@reported-display-style, 'strikethrough') or contains(parent::quoted-block//@reported-display-style, 'strikethrough'))"> | |
| <xsl:text>noneTextDecorationBlock</xsl:text> | |
| </xsl:when> | |
| </xsl:choose> | |
| </xsl:template> | |
| <xsl:template name="getNeutralInlineClassName"> | |
| <!-- should we make inlinestyles to be neutral --> | |
| <xsl:choose> | |
| <xsl:when | |
| test="(contains(@reported-display-style, 'italic') or contains(@reported-display-style, 'boldface-roman')) and (not(contains(parent::*/@reported-display-style, 'italic')) or contains(parent::quoted-block//@reported-display-style, 'italic')) and ancestor::*[@reported-display-style = 'strikethrough']"> | |
| <xsl:text>noneTextDecorationInline</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="(contains(@changed, 'not-changed')) and ancestor::*[@reported-display-style = 'strikethrough'] and not(parent::*/@reported-display-style)"> | |
| <xsl:text>noneTextDecorationInline</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="(contains(@changed, 'not-changed')) and parent::*[@reported-display-style = 'strikethrough']"> | |
| <xsl:text>noneTextDecorationInline</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="contains(@reported-display-style, 'italic') and (not(contains(parent::*/@reported-display-style, 'italic')) or contains(parent::quoted-block//@reported-display-style, 'italic'))"> | |
| <xsl:text>normalFontStyleInline</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="contains(@reported-display-style, 'brackets') and (not(contains(parent::*/@reported-display-style, 'brackets')) or contains(parent::quoted-block//@reported-display-style, 'brackets'))"> | |
| <xsl:text>normalFontStyleInline</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="contains(@reported-display-style, 'boldface-italic') and (not(contains(parent::*/@reported-display-style, 'boldface-italic')) or contains(parent::quoted-block//@reported-display-style, 'boldface-italic'))"> | |
| <xsl:text>normalFontStyleInline</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="contains(@reported-display-style, 'strikethrough') and (not(contains(parent::*/@reported-display-style, 'strikethrough')) or contains(parent::quoted-block//@reported-display-style, 'strikethrough'))"> | |
| <xsl:text>normalFontStyleInline</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="contains(@reported-display-style, 'brackets') and (contains(parent::*/@reported-display-style, 'strikethrough') or contains(parent::quoted-block//@reported-display-style, 'strikethrough'))"> | |
| <xsl:text>noneTextDecorationInline</xsl:text> | |
| </xsl:when> | |
| </xsl:choose> | |
| </xsl:template> | |
| <xsl:template name="actualPrintSectionAndDownStructure"> | |
| <xsl:param name="thePrintingTemplate"/> | |
| <xsl:choose> | |
| <xsl:when test="$thePrintingTemplate = 'displaySection'"> | |
| <xsl:call-template name="displaySection"/> | |
| </xsl:when> | |
| <xsl:when test="$thePrintingTemplate = 'displaySubsection'"> | |
| <xsl:call-template name="displaySubsection"/> | |
| </xsl:when> | |
| <xsl:when test="$thePrintingTemplate = 'displayParagraph'"> | |
| <xsl:call-template name="displayParagraph"/> | |
| </xsl:when> | |
| <xsl:when test="$thePrintingTemplate = 'displaySubparagraph'"> | |
| <xsl:call-template name="displaySubparagraph"/> | |
| </xsl:when> | |
| <xsl:when test="$thePrintingTemplate = 'displayClause'"> | |
| <xsl:call-template name="displayClause"/> | |
| </xsl:when> | |
| <xsl:when test="$thePrintingTemplate = 'displaySubclause'"> | |
| <xsl:call-template name="displaySubclause"/> | |
| </xsl:when> | |
| <xsl:when test="$thePrintingTemplate = 'displayItem'"> | |
| <xsl:call-template name="displayItem"/> | |
| </xsl:when> | |
| <xsl:when test="$thePrintingTemplate = 'displaySubitem'"> | |
| <xsl:call-template name="displaySubitem"/> | |
| </xsl:when> | |
| <xsl:when test="$thePrintingTemplate = 'displaySub'"> | |
| <xsl:call-template name="displaySub"/> | |
| </xsl:when> | |
| <xsl:when test="$thePrintingTemplate = 'DisplayTitle'"> | |
| <xsl:call-template name="DisplayTitle"/> | |
| </xsl:when> | |
| <xsl:when test="$thePrintingTemplate = 'displaySubtitle'"> | |
| <xsl:call-template name="displaySubtitle"/> | |
| </xsl:when> | |
| <xsl:when test="$thePrintingTemplate = 'DisplayChapter'"> | |
| <xsl:call-template name="DisplayChapter"/> | |
| </xsl:when> | |
| <xsl:when test="$thePrintingTemplate = 'DisplaySubchapter'"> | |
| <xsl:call-template name="DisplaySubchapter"/> | |
| </xsl:when> | |
| </xsl:choose> | |
| </xsl:template> | |
| <xsl:template name="isBlockItalic"> | |
| <xsl:choose> | |
| <xsl:when | |
| test="contains(@reported-display-style, 'italic') and not(ancestor::*[@reported-display-style = 'boldface-italic']) and not(ancestor::*[@reported-display-style = 'italic'])"> | |
| <xsl:text>yes</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="contains(@added-display-style, 'italic')"> | |
| <xsl:text>yes</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="contains(parent::quoted-block/@reported-display-style, 'italic') and not(parent::quoted-block/ancestor::*[@reported-display-style = 'boldface-italic']) and not(parent::quoted-block/ancestor::*[@reported-display-style = 'italic'])"> | |
| <xsl:text>yes</xsl:text> | |
| </xsl:when> | |
| <xsl:otherwise>no</xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:template> | |
| <xsl:template name="printSectionAndDownStructure"> | |
| <xsl:param name="thePrintingTemplate"/> | |
| <xsl:variable name="thePrintingClass"> | |
| <xsl:call-template name="getOutputStyle"/> | |
| </xsl:variable> | |
| <xsl:variable name="isItalic"> | |
| <xsl:call-template name="isBlockItalic"/> | |
| </xsl:variable> | |
| <xsl:variable name="makeSegmentNeutral"> | |
| <!-- yes/no --> | |
| <xsl:call-template name="isNeutralizeSegment"/> | |
| </xsl:variable> | |
| <xsl:variable name="neutralBlockClassName"> | |
| <xsl:call-template name="getNeutralBlockClassName"/> | |
| </xsl:variable> | |
| <xsl:variable name="neutralInlineClassName"> | |
| <xsl:call-template name="getNeutralInlineClassName"/> | |
| </xsl:variable> | |
| <xsl:choose> | |
| <xsl:when | |
| test="$isItalic = 'yes' and $makeSegmentNeutral = 'yes' and $thePrintingClass != ''"> | |
| <xsl:element name="div"> | |
| <xsl:attribute name="class"> | |
| <xsl:value-of select="$neutralBlockClassName"/> | |
| </xsl:attribute> | |
| <xsl:element name="div"> | |
| <xsl:attribute name="class"> | |
| <xsl:value-of select="$thePrintingClass"/> | |
| </xsl:attribute> | |
| <xsl:call-template name="actualPrintSectionAndDownStructure"> | |
| <xsl:with-param name="thePrintingTemplate" select="$thePrintingTemplate" | |
| /> | |
| </xsl:call-template> | |
| </xsl:element> | |
| </xsl:element> | |
| </xsl:when> | |
| <xsl:when | |
| test="$isItalic = 'yes' and $makeSegmentNeutral = 'yes' and $thePrintingClass = ''"> | |
| <xsl:element name="i"> | |
| <xsl:attribute name="class"> | |
| <xsl:value-of select="$neutralInlineClassName"/> | |
| </xsl:attribute> | |
| <xsl:call-template name="actualPrintSectionAndDownStructure"> | |
| <xsl:with-param name="thePrintingTemplate" select="$thePrintingTemplate"/> | |
| </xsl:call-template> | |
| </xsl:element> | |
| </xsl:when> | |
| <xsl:when | |
| test="$isItalic = 'yes' and $makeSegmentNeutral = 'no' and $thePrintingClass != ''"> | |
| <xsl:element name="div"> | |
| <xsl:attribute name="class"> | |
| <xsl:value-of select="$thePrintingClass"/> | |
| </xsl:attribute> | |
| <xsl:call-template name="actualPrintSectionAndDownStructure"> | |
| <xsl:with-param name="thePrintingTemplate" select="$thePrintingTemplate"/> | |
| </xsl:call-template> | |
| </xsl:element> | |
| </xsl:when> | |
| <xsl:when test="$isItalic = 'yes' and $makeSegmentNeutral = 'no'"> | |
| <xsl:element name="i"> | |
| <xsl:attribute name="class"> | |
| <xsl:value-of select="$neutralInlineClassName"/> | |
| </xsl:attribute> | |
| <i> | |
| <xsl:call-template name="actualPrintSectionAndDownStructure"> | |
| <xsl:with-param name="thePrintingTemplate" select="$thePrintingTemplate" | |
| /> | |
| </xsl:call-template> | |
| </i> | |
| </xsl:element> | |
| </xsl:when> | |
| <xsl:when | |
| test="$isItalic = 'no' and $makeSegmentNeutral = 'no' and $thePrintingClass != ''"> | |
| <xsl:if test="not(@display-inline) or @display-inline = 'no-display-inline'"> | |
| <xsl:element name="div"> | |
| <xsl:attribute name="class"> | |
| <xsl:value-of select="$thePrintingClass"/> | |
| </xsl:attribute> | |
| <xsl:call-template name="actualPrintSectionAndDownStructure"> | |
| <xsl:with-param name="thePrintingTemplate" select="$thePrintingTemplate" | |
| /> | |
| </xsl:call-template> | |
| </xsl:element> | |
| </xsl:if> | |
| <xsl:if test="@display-inline = 'yes-display-inline'"> | |
| <xsl:element name="span"> | |
| <xsl:attribute name="class"> | |
| <xsl:value-of select="$thePrintingClass"/> | |
| </xsl:attribute> | |
| <xsl:call-template name="actualPrintSectionAndDownStructure"> | |
| <xsl:with-param name="thePrintingTemplate" select="$thePrintingTemplate" | |
| /> | |
| </xsl:call-template> | |
| </xsl:element> | |
| </xsl:if> | |
| </xsl:when> | |
| <xsl:when | |
| test="$isItalic = 'no' and $makeSegmentNeutral = 'yes' and $thePrintingClass != ''"> | |
| <xsl:choose> | |
| <xsl:when test="contains(@display-inline, 'yes')"> | |
| <xsl:element name="span"> | |
| <xsl:attribute name="class"> | |
| <xsl:value-of select="$neutralBlockClassName"/> | |
| </xsl:attribute> | |
| <xsl:element name="span"> | |
| <xsl:attribute name="class"> | |
| <xsl:value-of select="$thePrintingClass"/> | |
| </xsl:attribute> | |
| <xsl:call-template name="actualPrintSectionAndDownStructure"> | |
| <xsl:with-param name="thePrintingTemplate" | |
| select="$thePrintingTemplate"/> | |
| </xsl:call-template> | |
| </xsl:element> | |
| </xsl:element> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:element name="div"> | |
| <xsl:attribute name="class"> | |
| <xsl:value-of select="$neutralBlockClassName"/> | |
| </xsl:attribute> | |
| <xsl:element name="div"> | |
| <xsl:attribute name="class"> | |
| <xsl:value-of select="$thePrintingClass"/> | |
| </xsl:attribute> | |
| <xsl:call-template name="actualPrintSectionAndDownStructure"> | |
| <xsl:with-param name="thePrintingTemplate" | |
| select="$thePrintingTemplate"/> | |
| </xsl:call-template> | |
| </xsl:element> | |
| </xsl:element> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:when> | |
| <xsl:when | |
| test="$isItalic = 'no' and $makeSegmentNeutral = 'yes' and $thePrintingClass != '' and contains(@display-inline, 'yes')"> | |
| <xsl:choose> | |
| <xsl:when | |
| test="contains(parent::resolution-body/section[1]/@display-inline, 'yes')"> | |
| <xsl:element name="div"> | |
| <xsl:attribute name="class"> | |
| <xsl:value-of select="$neutralBlockClassName"/> | |
| </xsl:attribute> | |
| <xsl:element name="div"> | |
| <xsl:attribute name="class"> | |
| <xsl:value-of select="$thePrintingClass"/> | |
| </xsl:attribute> | |
| <xsl:call-template name="actualPrintSectionAndDownStructure"> | |
| <xsl:with-param name="thePrintingTemplate" | |
| select="$thePrintingTemplate"/> | |
| </xsl:call-template> | |
| </xsl:element> | |
| </xsl:element> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:element name="span"> | |
| <xsl:attribute name="class"> | |
| <xsl:value-of select="$neutralInlineClassName"/> | |
| </xsl:attribute> | |
| <xsl:element name="span"> | |
| <xsl:attribute name="class"> | |
| <xsl:value-of select="$thePrintingClass"/> | |
| </xsl:attribute> | |
| <xsl:call-template name="actualPrintSectionAndDownStructure"> | |
| <xsl:with-param name="thePrintingTemplate" | |
| select="$thePrintingTemplate"/> | |
| </xsl:call-template> | |
| </xsl:element> | |
| </xsl:element> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:when> | |
| <xsl:when | |
| test="$isItalic = 'no' and $makeSegmentNeutral = 'yes' and $thePrintingClass = ''"> | |
| <xsl:choose> | |
| <xsl:when test="contains(@display-inline, 'yes')"> | |
| <xsl:attribute name="class"> | |
| <xsl:value-of select="$neutralBlockClassName"/> | |
| </xsl:attribute> | |
| <xsl:call-template name="actualPrintSectionAndDownStructure"> | |
| <xsl:with-param name="thePrintingTemplate" select="$thePrintingTemplate" | |
| /> | |
| </xsl:call-template> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:element name="div"> | |
| <xsl:attribute name="class"> | |
| <xsl:value-of select="$neutralInlineClassName"/> | |
| </xsl:attribute> | |
| <!--<xsl:attribute name="class">noneTextDecorationInline</xsl:attribute>--> | |
| <xsl:call-template name="actualPrintSectionAndDownStructure"> | |
| <xsl:with-param name="thePrintingTemplate" | |
| select="$thePrintingTemplate"/> | |
| </xsl:call-template> | |
| </xsl:element> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:call-template name="actualPrintSectionAndDownStructure"> | |
| <xsl:with-param name="thePrintingTemplate" select="$thePrintingTemplate"/> | |
| </xsl:call-template> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:template> | |
| <xsl:template match="section"> | |
| <!-- TB Aug-2016 changed bug fixing #1434 --> | |
| <xsl:choose> | |
| <xsl:when test="$amendType = 'engrossed-amendment' and @section-type = 'resolved'"> | |
| <!-- Nothing - already printed --> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:call-template name="printSectionAndDownStructure"> | |
| <xsl:with-param name="thePrintingTemplate">displaySection</xsl:with-param> | |
| </xsl:call-template> | |
| </xsl:otherwise> | |
| <!--xsl:when test="@reported-display-style='boldface-roman'"> | |
| <span class="lbexSectionlevelOLCBold"> | |
| <xsl:call-template name="displaySection"/> | |
| </span> | |
| </xsl:when> | |
| <xsl:when | |
| test="@reported-display-style='boldface-italic' or | |
| ancestor::*[@reported-display-style='boldface-italic']"> | |
| <i class="lbexTextNeutral"> | |
| <span class="lbexSectionlevelOLCBold"> | |
| <xsl:call-template name="displaySection"/> | |
| </span> | |
| </i> | |
| </xsl:when> | |
| <xsl:when | |
| test="@deleted-display-style='strikethrough' or | |
| @reported-display-style='strikethrough'"> | |
| <span class="lbexTextStrikethrough"> | |
| <xsl:call-template name="displaySection"/> | |
| </span> | |
| </xsl:when> | |
| <xsl:when test="@added-display-style='italic' or @reported-display-style='italic'"> | |
| <i class="lbexTextNeutral"> | |
| <xsl:call-template name="displaySection"/> | |
| </i> | |
| </xsl:when> | |
| <xsl:when test="(@changed='not-changed' or (ancestor::*/@changed='not-changed' and not (@changed)) ) and @display-inline='yes-display-inline'"> | |
| <xsl:choose> | |
| <xsl:when test="ancestor-or-self::*[@changed='not-changed']/ancestor::*[@reported-display-style='stikethrough' or @reported-display-style='italic']"> | |
| <span class="lbexTextNeutral"> | |
| <xsl:call-template name="displaySection"/> | |
| </span> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:call-template name="displaySection"/> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:when> | |
| <xsl:when test="@changed='not-changed' or (ancestor::*/@changed='not-changed' and not (@changed)) "> | |
| <xsl:choose> | |
| <xsl:when test="ancestor-or-self::*[@changed='not-changed']/ancestor::*[@reported-display-style='stikethrough' or @reported-display-style='italic']"> | |
| <div class="lbexTextNeutral"> | |
| <xsl:call-template name="displaySection"/> | |
| </div> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:call-template name="displaySection"/> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:variable name="ancDisplayStyle"> | |
| <xsl:call-template name="getAncDisplayStyle"/> | |
| </xsl:variable> | |
| <xsl:choose> | |
| <xsl:when test="$ancDisplayStyle='italic'"> | |
| <i class="lbexTextNeutral"> | |
| <xsl:call-template name="displaySection"/> | |
| </i> | |
| </xsl:when> | |
| <xsl:when test="$ancDisplayStyle='strikethrough'"> | |
| <span class="lbexTextStrikethrough"> | |
| <xsl:call-template name="displaySection"/> | |
| </span> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:call-template name="displaySection"/> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:otherwise--> | |
| </xsl:choose> | |
| </xsl:template> | |
| <!--**************** Match Enum************************** --> | |
| <xsl:template match="enum"> | |
| <xsl:choose> | |
| <xsl:when | |
| test="child::deleted-phrase and (parent::subsection or parent::paragraph or parent::subparagraph or parent::item or parent::subitem or parent::clause or parent::subclause)"> | |
| <xsl:apply-templates/> | |
| </xsl:when> | |
| <xsl:when | |
| test="child::added-phrase and (parent::subsection or parent::paragraph or parent::subparagraph or parent::item or parent::subitem or parent::clause or parent::subclause)"> | |
| <xsl:apply-templates/> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:choose> | |
| <xsl:when test="parent::*/@changed='deleted' and parent::*/@reported-display-style='strikethrough' | |
| and following-sibling::*/@changed='not-changed'"> | |
| <span class="lbexTextStrikethrough"> | |
| <xsl:call-template name="displayEnum"/> | |
| </span> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:call-template name="displayEnum"/> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:template> | |
| <!-- **************** Display Enum************************** --> | |
| <xsl:template name="displayEnum"> | |
| <xsl:variable name="currElementStyle"> | |
| <xsl:call-template name="getCurrentElementStyle"/> | |
| </xsl:variable> | |
| <xsl:variable name="isCodificationStyle"> | |
| <xsl:call-template name="codification"/> | |
| </xsl:variable> | |
| <xsl:choose> | |
| <xsl:when | |
| test="local-name(parent::*) = 'committee-report-part' or local-name(parent::*) = 'committee-report-title'"> | |
| <!-- will be applied only in case if not header following. If yes it will be printed in the header template --> | |
| <xsl:if test="not(following-sibling::header)"> | |
| <xsl:value-of select="translate(., $lower, $upper)"/> | |
| </xsl:if> | |
| </xsl:when> | |
| <!--***********************Display Enum Section****************************--> | |
| <xsl:when test="parent::section"> | |
| <xsl:call-template name="displayEnumSection"> | |
| <xsl:with-param name="aCurrElementStyle" select="$currElementStyle"/> | |
| </xsl:call-template> | |
| </xsl:when> | |
| <!--************* Display Enum Title **********************************--> | |
| <xsl:when test="parent::title"> | |
| <xsl:call-template name="displayEnumTitle"> | |
| <xsl:with-param name="aCurrElementStyle" select="$currElementStyle"/> | |
| </xsl:call-template> | |
| </xsl:when> | |
| <!-- ******************** Display Subtitle Enum ******************************** --> | |
| <xsl:when test="parent::subtitle"> | |
| <xsl:call-template name="displayEnumSubtitle"> | |
| <xsl:with-param name="aCurrElementStyle" select="$currElementStyle"/> | |
| </xsl:call-template> | |
| </xsl:when> | |
| <!-- ********* Display Chapter Enum ************************ --> | |
| <xsl:when test="parent::chapter"> | |
| <xsl:call-template name="displayEnumChapter"> | |
| <xsl:with-param name="aCurrElementStyle" select="$currElementStyle"/> | |
| </xsl:call-template> | |
| </xsl:when> | |
| <!--**************************** Display Subchapter Enum******************* --> | |
| <xsl:when test="parent::subchapter"> | |
| <xsl:call-template name="displayEnumSubchapter"> | |
| <xsl:with-param name="aCurrElementStyle" select="$currElementStyle"/> | |
| </xsl:call-template> | |
| </xsl:when> | |
| <!-- ************************* Display Enum Part**************************** --> | |
| <xsl:when test="parent::part"> | |
| <xsl:call-template name="displayEnumPart"> | |
| <xsl:with-param name="aCurrElementStyle" select="$currElementStyle"/> | |
| </xsl:call-template> | |
| </xsl:when> | |
| <!-- *********** Display Enum Subpart ******************************** --> | |
| <xsl:when test="parent::subpart"> | |
| <xsl:call-template name="displayEnumSubpart"> | |
| <xsl:with-param name="aCurrElementStyle" select="$currElementStyle"/> | |
| </xsl:call-template> | |
| </xsl:when> | |
| <!-- *********** Display Enum Division*********************************** --> | |
| <xsl:when test="parent::division"> | |
| <!-- TB 31Aug2007 #685--> | |
| <xsl:call-template name="displayEnumDivision"> | |
| <xsl:with-param name="aCurrElementStyle" select="$currElementStyle"/> | |
| </xsl:call-template> | |
| </xsl:when> | |
| <!-- ***********Display Subdivision ********************************* --> | |
| <xsl:when test="parent::subdivision"> | |
| <xsl:call-template name="displayEnumSubdivision"> | |
| <xsl:with-param name="aCurrElementStyle" select="$currElementStyle"/> | |
| </xsl:call-template> | |
| </xsl:when> | |
| <xsl:when | |
| test="ancestor::*[@reported-display-style = 'boldface-roman']/parent::quoted-block[@style = 'tax']"> | |
| <span class="lbexSectionlevelOLCBold"> | |
| <xsl:value-of select="."/> | |
| <xsl:text> </xsl:text> | |
| </span> | |
| </xsl:when> | |
| <xsl:when test="parent::amendment-instruction"> | |
| <p/> | |
| <xsl:value-of select="."/> | |
| <xsl:text> </xsl:text> | |
| </xsl:when> | |
| <xsl:when test="parent::rule"> | |
| <xsl:call-template name="displayEnumRule"> | |
| <xsl:with-param name="aCurrElementStyle" select="$currElementStyle"/> | |
| </xsl:call-template> | |
| </xsl:when> | |
| <xsl:when test="contains(local-name(parent::*), 'rules')"> | |
| <xsl:call-template name="displayEnumRules"> | |
| <xsl:with-param name="aCurrElementStyle" select="$currElementStyle"/> | |
| </xsl:call-template> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:if | |
| test="not(preceding-sibling::*) and (contains(local-name(..), 'committee-report-'))"> | |
| <br/> | |
| </xsl:if> | |
| <xsl:choose> | |
| <xsl:when test="local-name(parent::*[1]/parent::*[1])='quoted-block' and (local-name(following::quoted-block[1]/subsection)='subsection' and local-name(parent::*[1]/child::*[3])='quoted-block') and $isCodificationStyle='no'"> | |
| <xsl:call-template name="openQuotes"/> | |
| <xsl:value-of select="."/> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:value-of select="."/> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| <xsl:choose> | |
| <xsl:when test="local-name(following-sibling::*[1]) = 'text' or local-name(following-sibling::*[1]) = 'header'"> | |
| <xsl:text> </xsl:text> | |
| </xsl:when> | |
| <xsl:when test="local-name(following-sibling::*[1])='' and local-name(following::node()[1])='after-quoted-block' and (following::quoted-block[1]/@other-style = 'codification-not-quoted' or not(following::quoted-block)) and (ancestor::quoted-block[1]/@other-style !='codification-not-quoted'or not(ancestor::quoted-block/@other-style)) "> | |
| <xsl:text>”</xsl:text> | |
| <xsl:value-of select="following::after-quoted-block[1]"/> | |
| </xsl:when> | |
| <xsl:when test="local-name(following-sibling::*[1])='' and local-name(following::node()[1])='after-quoted-block'"> | |
| <xsl:choose> | |
| <!--TASK #11562 FY2020--> | |
| <xsl:when test="local-name(current())='enum' and $isCodificationStyle ='no' and (local-name(parent::*[1])='subclause' or local-name(parent::*[1])='clause' or local-name(parent::*[1])='subparagraph') "> | |
| <xsl:text>”</xsl:text> | |
| <xsl:value-of select="following::after-quoted-block[1]"/> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:value-of select="following::after-quoted-block[1]"/> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:when> | |
| </xsl:choose> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:template> | |
| <xsl:template name="displayEnumRules"> | |
| <xsl:param name="aCurrElementStyle"/> | |
| <xsl:if | |
| test="ancestor::quoted-block and not(parent::*/@display-inline = 'yes-display-inline')"> | |
| <xsl:call-template name="openQuotes"/> | |
| </xsl:if> | |
| <xsl:value-of select="."/> | |
| <xsl:choose> | |
| <xsl:when test="local-name(following-sibling::*[1]) = 'text' or local-name(following-sibling::*[1]) = 'header'"> | |
| <xsl:text> </xsl:text> | |
| </xsl:when> | |
| <xsl:when test="local-name(following-sibling::*[1])='' and local-name(following::node()[1])='after-quoted-block' and (following::quoted-block[1]/@other-style = 'codification-not-quoted' or not(following::quoted-block)) and (ancestor::quoted-block[1]/@other-style !='codification-not-quoted'or not(ancestor::quoted-block/@other-style)) "> | |
| <xsl:text>”</xsl:text> | |
| <xsl:value-of select="following::after-quoted-block[1]"/> | |
| </xsl:when> | |
| </xsl:choose> | |
| <xsl:if test="local-name(following-sibling::*[1])='' and local-name(following::node()[1])='after-quoted-block'"> | |
| <xsl:value-of select="following::after-quoted-block[1]"/> | |
| </xsl:if> | |
| </xsl:template> | |
| <!-- ***********Display Enum For Rule ********************** --> | |
| <xsl:template name="displayEnumRule"> | |
| <xsl:param name="aCurrElementStyle"/> | |
| <div style="text-align:center" class="lbexTitleLevelTradEx"> | |
| <xsl:if test="ancestor::quoted-block"> | |
| <xsl:call-template name="openQuotes"/> | |
| </xsl:if> | |
| <xsl:apply-templates/> | |
| </div> | |
| </xsl:template> | |
| <!-- ***********Display Enum For Section ********************** --> | |
| <xsl:template name="displayEnumSection"> | |
| <xsl:param name="aCurrElementStyle"/> | |
| <xsl:choose> | |
| <xsl:when | |
| test="(contains(ancestor::*/@reported-display-style, 'brackets')) or ancestor::*[@commented = 'yes']"> | |
| <xsl:choose> | |
| <xsl:when test="$billType = 'appropriations'"> | |
| <xsl:choose> | |
| <xsl:when test="$aCurrElementStyle = 'appropriations'"> | |
| <xsl:call-template name="openBracketStyles"/> | |
| </xsl:when> | |
| <xsl:otherwise/> | |
| </xsl:choose> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:call-template name="openBracketStyles"/> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:when> | |
| <xsl:when test="contains(ancestor::*/@reported-display-style, 'parentheses')"> | |
| <xsl:call-template name="openParenStyles"/> | |
| </xsl:when> | |
| </xsl:choose> | |
| <xsl:choose> | |
| <xsl:when | |
| test="parent::section/parent::constitution-article/parent::quoted-block/@style = 'traditional' or parent::section/parent::constitution-article/parent::quoted-block/@style = 'traditional' or parent::section/parent::constitution-article/parent::quoted-block/@style = 'appropriations'"> | |
| <!--xsl:text>“</xsl:text--> | |
| <!-- commented by TB 10Sep2007 #716 --> | |
| <!-- reopened by TB 9Jun2008 --> | |
| <xsl:call-template name="openQuotes"/> | |
| <span class="lbexInitialCapTrad"> | |
| <!-- TB Aug-2016 Bug Fixing #1436 --> | |
| <xsl:call-template name="createAnchorParent"/> | |
| <!--span class="initialcap"--> | |
| <!--xsl:text>section </xsl:text--> | |
| <xsl:call-template name="ActualPrintIChangedTextWithParam"> | |
| <xsl:with-param name="aTheTextToPrint"> | |
| <xsl:text>section </xsl:text> | |
| </xsl:with-param> | |
| </xsl:call-template> | |
| <!--/span--> | |
| <!-- <xsl:value-of select="."/> --> | |
| <xsl:apply-templates/> | |
| <xsl:text> </xsl:text> | |
| </span> | |
| </xsl:when> | |
| <xsl:when | |
| test=" | |
| parent::section[@section-type = 'section-one']/parent::legis-body[@added-display-style = 'boldface-roman'] or | |
| parent::section[@section-type = 'section-one']/parent::legis-body[@reported-display-style = 'boldface-roman']"> | |
| <!-- TB Aug-2016 Bug Fixing #1436 --> | |
| <xsl:call-template name="createAnchorParent"/> | |
| <span class="lbexSectionlevelOLCBold"> | |
| <xsl:text>SECTION </xsl:text> | |
| <!-- TB 19May2008 --> | |
| <!--xsl:value-of select="."/--> | |
| <xsl:apply-templates/> | |
| </span> | |
| </xsl:when> | |
| <xsl:when test="(string(parent::section/@section-type) = 'section-one')"> | |
| <xsl:choose> | |
| <xsl:when | |
| test=" | |
| ancestor::*[@reported-display-style = 'boldface-roman'] | |
| or ancestor::*[@reported-display-style = 'boldface-italic']"> | |
| <!-- TB Aug-2016 Bug Fixing #1436 --> | |
| <xsl:call-template name="createAnchorParent"/> | |
| <span class="lbexSectionlevelOLCBold"> | |
| <xsl:text>SECTION </xsl:text> | |
| <!-- TB 19May2008 --> | |
| <!--xsl:value-of select="."/--> | |
| <xsl:apply-templates/> | |
| </span> | |
| <xsl:text> </xsl:text> | |
| </xsl:when> | |
| <!--xsl:when | |
| test="(not(ancestor::quoted-block) and $billType='traditional') or | |
| (parent::section and ancestor::resolution-body[@style='traditional'])"--> | |
| <xsl:when | |
| test="not(ancestor::quoted-block) and (contains($aCurrElementStyle, 'traditional') or $aCurrElementStyle = 'appropriations')"> | |
| <span class="lbexInitialCapTrad"> | |
| <xsl:call-template name="createAnchorParent"/> | |
| <xsl:text>section </xsl:text> | |
| <!-- TB 19May2008 --> | |
| <!--xsl:value-of select="."/--> | |
| <xsl:apply-templates/> | |
| </span> | |
| </xsl:when> | |
| <!--change 12/28/05--> | |
| <!-- TB 30Aug2007 #671 added stages Received-in-Senate and Reported-in-House for resolutions to show SECTION 1 in case of relevant element and attr section - section-one is there --> | |
| <!-- TB added removing tax style --> | |
| <xsl:when | |
| test=" | |
| ($billStage = 'Introduced-in-House' 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 = 'Engrossed-in-Senate' or $billStage = 'Reported-in-House' or $billStage = 'Pre-Introduction' | |
| or $resolutionStage = 'Introduced-in-House' or $resolutionStage = 'Introduced-in-Senate' | |
| or $billStage = 'Reported-in-Senate' or $billStage = 'Enrolled-Bill' or $billStage = 'Introduced-in-Senate' or | |
| $resolutionStage = 'Received-in-Senate' or $resolutionStage = 'Reported-in-House' | |
| or $resolutionStage = 'Enrolled-Bill' or $resolutionStage = 'Engrossed-in-House') and | |
| not(parent::*[@reported-display-style = 'boldface-italic'])"> | |
| <xsl:if | |
| test="not(contains($aCurrElementStyle, 'traditional') or $aCurrElementStyle = 'constitutional-amendment') "> | |
| <!-- TB Aug-2016 Bug Fixing #1436 --> | |
| <xsl:choose> | |
| <xsl:when test="$aCurrElementStyle ='appropriations'"></xsl:when> | |
| <xsl:when test="contains($aCurrElementStyle,'archaic')"> | |
| <span class="lbexInitialCapTrad"> | |
| <xsl:if test="ancestor::quoted-block and not(header)"> | |
| <xsl:call-template name="openQuotes"/> | |
| </xsl:if> | |
| <xsl:text>section </xsl:text> | |
| <xsl:apply-templates/> | |
| </span> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:call-template name="createAnchorParent"/> | |
| <span class="lbexSectionlevelOLC"> | |
| <!-- NB 2/27/2007 - Added for when the quoted block does not include a header --> | |
| <xsl:if test="ancestor::quoted-block and not(header)"> | |
| <xsl:call-template name="openQuotes"/> | |
| </xsl:if> | |
| <xsl:choose> | |
| <xsl:when test ="(contains($aCurrElementStyle,'USC'))"> | |
| <xsl:text>§ </xsl:text> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:text>SECTION </xsl:text> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| <xsl:apply-templates/> | |
| </span> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:if> | |
| <xsl:if | |
| test="(contains($aCurrElementStyle, 'traditional') or $aCurrElementStyle = 'appropriations') or $aCurrElementStyle = 'constitutional-amendment'"> | |
| <xsl:call-template name="createAnchorParent"/> | |
| <span class="lbexInitialCapTrad"> | |
| <!-- NB 2/27/2007 - Added for when the quoted block does not include a header --> | |
| <xsl:if test="ancestor::quoted-block and not(header)"> | |
| <xsl:call-template name="openQuotes"/> | |
| </xsl:if> | |
| <xsl:text>section </xsl:text> | |
| <!-- TB 19May2008 --> | |
| <!--xsl:value-of select="."/--> | |
| <xsl:apply-templates/> | |
| </span> | |
| </xsl:if> | |
| <xsl:text> </xsl:text> | |
| </xsl:when> | |
| <xsl:when test="$billStage = 'Introduced-in-Senate'"> | |
| <span class="lbexInitialCapTrad"> | |
| <xsl:call-template name="createAnchorParent"/> | |
| <xsl:text>section </xsl:text> | |
| <!-- TB 19May2008 --> | |
| <!--xsl:value-of select="."/--> | |
| <xsl:apply-templates/> | |
| </span> | |
| <xsl:text> </xsl:text> | |
| </xsl:when> | |
| <!-- TB 8Jan2008 Amendments support --> | |
| <xsl:when test="$aCurrElementStyle = 'traditional-inline'"> | |
| <span class="lbexInitialCapTradInd"> | |
| <xsl:call-template name="createAnchorParent"/> | |
| <xsl:text>section </xsl:text> | |
| <!-- TB 19May2008 --> | |
| <!--xsl:value-of select="."/--> | |
| <xsl:apply-templates/> | |
| </span> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <!-- TB Aug-2016 Bug Fixing #1436 --> | |
| <xsl:call-template name="createAnchorParent"/> | |
| <span class="lbexSectionlevelOLC"> | |
| <!--xsl:text>SECTION </xsl:text--> | |
| <xsl:call-template name="ActualPrintIChangedTextWithParam"> | |
| <xsl:with-param name="aTheTextToPrint"> | |
| <xsl:text>SECTION </xsl:text> | |
| </xsl:with-param> | |
| </xsl:call-template> | |
| <xsl:call-template name="ActualPrintIChangedText"/> | |
| </span> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:when> | |
| <xsl:when | |
| test="(contains($aCurrElementStyle, 'traditional') or $aCurrElementStyle = 'appropriations') and text() != ''"> | |
| <span class="lbexInitialCapTrad"> | |
| <xsl:call-template name="createAnchorParent"/> | |
| <xsl:if test="ancestor::quoted-block"> | |
| <xsl:call-template name="openQuotes"/> | |
| </xsl:if> | |
| <xsl:call-template name="ActualPrintIChangedTextWithParam"> | |
| <xsl:with-param name="aTheTextToPrint"> | |
| <xsl:text>Sec. </xsl:text> | |
| </xsl:with-param> | |
| </xsl:call-template> | |
| <xsl:apply-templates/> | |
| <xsl:text> </xsl:text> | |
| </span> | |
| </xsl:when> | |
| <xsl:when test="($aCurrElementStyle = 'USC' or contains($aCurrElementStyle , 'codification')) and (text() != '' or child::*)"> | |
| <!-- TB Aug-2016 Bug Fixing #1436 --> | |
| <xsl:call-template name="createAnchorParent"/> | |
| <span class="lbexSectionlevelOLCBold"> | |
| <!--Implementation of codification style quotes and non quoted FY2020 Parent Task 10500--> | |
| <xsl:choose> | |
| <xsl:when test="ancestor::quoted-block[1] and ancestor::quoted-block[2]"> | |
| <xsl:call-template name="NestedOpenQB"></xsl:call-template> | |
| </xsl:when> | |
| <xsl:when test="ancestor::quoted-block and ($aCurrElementStyle !='codification-not-quoted' or not($aCurrElementStyle))"> | |
| <xsl:call-template name="openQuotes"/> | |
| </xsl:when> | |
| </xsl:choose> | |
| <span class="lbexEnumUcs"> | |
| <xsl:text>§ </xsl:text> | |
| </span> | |
| <!-- TB 3Jan2008 Bug #767 --> | |
| <!--xsl:value-of select="."/--> | |
| <xsl:apply-templates/> | |
| </span> | |
| </xsl:when> | |
| <xsl:when test="string(parent::section/@section-type) = 'subsequent-section'"> | |
| <xsl:choose> | |
| <!--xsl:when | |
| test="((not(ancestor::quoted-block) and $billType='traditional') or | |
| (parent::section and ancestor::resolution-body[@style='traditional']) and not (ancestor::quoted-block/descendant::quoted-block = ancestor::quoted-block and ancestor::quoted-block/descendant::quoted-block/@style!= 'traditional'))"--> | |
| <xsl:when | |
| test=" | |
| ancestor::*[@reported-display-style = 'boldface-roman'] or | |
| ancestor::*[@reported-display-style = 'boldface-italic'] or | |
| not(ancestor::quoted-block) and not($billType = 'traditional') and | |
| (parent::section[@section-type = 'subsequent-section']/parent::legis-body[@added-display-style = 'boldface-roman'] or | |
| parent::section[@section-type = 'subsequent-section']/parent::legis-body[@reported-display-style = 'boldface-roman'] or | |
| parent::*[@reported-display-style = 'boldface-roman'] or | |
| parent::*[@added-display-style = 'boldface-roman'] | |
| ) | |
| "> | |
| <!-- TB Aug-2016 Bug Fixing #1436 --> | |
| <xsl:call-template name="createAnchorParent"/> | |
| <span class="lbexSectionlevelOLCBold"> | |
| <xsl:if test="ancestor::quoted-block"> | |
| <xsl:call-template name="openQuotes"/> | |
| </xsl:if> | |
| <!--xsl:text>SEC. </xsl:text--> | |
| <xsl:call-template name="ActualPrintIChangedTextWithParam"> | |
| <xsl:with-param name="aTheTextToPrint"> | |
| <xsl:text>SEC. </xsl:text> | |
| </xsl:with-param> | |
| </xsl:call-template> | |
| <!-- TB 19May2008 --> | |
| <!--xsl:value-of select="."/--> | |
| <xsl:apply-templates/> | |
| </span> | |
| </xsl:when> | |
| <!--xsl:when | |
| test="(parent::section/ancestor::quoted-block[@other-style='nuclear']) or | |
| (parent::section and ancestor::quoted-block[@other-style='traditional-inline'])"--> | |
| <xsl:when | |
| test="$aCurrElementStyle = 'nuclear' or $aCurrElementStyle = 'traditional-inline'"> | |
| <!-- TB Aug-2016 Bug Fixing #1436 --> | |
| <xsl:call-template name="createAnchorParent"/> | |
| <span class="lbexSectionLevelOLCnuclear"> | |
| <!--xsl:if test="not(($billType='olc' and not(/bill/descendant::*/@idref=./@id)) or ($resolutionType='olc' and not(/resolution/descendant::*/@idref=./@id)) or (ancestor::quoted-block[1]/@style='OLC' )) "--> | |
| <xsl:if test="ancestor::quoted-block"> | |
| <xsl:call-template name="openQuotes"/> | |
| </xsl:if> | |
| <!--/xsl:if--> | |
| <!--xsl:text>Sec. </xsl:text--> | |
| <xsl:call-template name="ActualPrintIChangedTextWithParam"> | |
| <xsl:with-param name="aTheTextToPrint"> | |
| <xsl:text>Sec. </xsl:text> | |
| </xsl:with-param> | |
| </xsl:call-template> | |
| <!-- TB 28Dec2007 Bug #767 --> | |
| <!--xsl:value-of select="."/--> | |
| <xsl:apply-templates/> | |
| </span> | |
| </xsl:when> | |
| <xsl:when | |
| test="(not(ancestor::quoted-block) and not($billType = 'traditional') and not($billType = 'appropriations') and not($aCurrElementStyle = 'traditional') and not(contains($aCurrElementStyle, 'archaic'))) or (ancestor::quoted-block and $aCurrElementStyle = 'defense')"> | |
| <!-- TB Aug-2016 Bug Fixing #1436 --> | |
| <xsl:call-template name="createAnchorParent"/> | |
| <span class="lbexSectionlevelOLC"> | |
| <!-- TB TODO put anhcors above the span to keep bold on enums --> | |
| <xsl:if test="ancestor::quoted-block"> | |
| <xsl:call-template name="openQuotes"/> | |
| </xsl:if> | |
| <xsl:call-template name="ActualPrintIChangedTextWithParam"> | |
| <xsl:with-param name="aTheTextToPrint"> | |
| <xsl:text>SEC. </xsl:text> | |
| </xsl:with-param> | |
| </xsl:call-template> | |
| <!-- <xsl:value-of select="."/> --> | |
| <!-- Attempting to correct Bug #766 --> | |
| <xsl:apply-templates/> | |
| </span> | |
| </xsl:when> | |
| <!--xsl:when test="ancestor::quoted-block/@style='USC'"--> | |
| <xsl:when | |
| test=" | |
| ancestor::legis-body/@added-display-style = 'boldface-roman' and | |
| (ancestor::quoted-block/@style = 'OLC' or ancestor::quoted-block/@style = 'tax')"> | |
| <!-- TB Aug-2016 Bug Fixing #1436 --> | |
| <xsl:call-template name="createAnchorParent"/> | |
| <span class="lbexSectionlevelOLCBold"> | |
| <!--xsl:call-template name="openQuotes"/--> | |
| <xsl:text>SEC. </xsl:text> | |
| <!-- TB 19May2008 --> | |
| <!--xsl:value-of select="."/--> | |
| <xsl:apply-templates/> | |
| </span> | |
| </xsl:when> | |
| <!--xsl:when test="ancestor::quoted-block[1]/@style='tax'"--> | |
| <xsl:when test="$aCurrElementStyle = 'tax'"> | |
| <!--xsl:if test="not(($billType='olc' and not(/bill/descendant::*/@idref=./@id)) or ($resolutionType='olc' and not(/resolution/descendant::*/@idref=./@id)) or (ancestor::quoted-block[1]/@style='OLC' ))"--> | |
| <!-- TB Aug-2016 Bug Fixing #1436 --> | |
| <xsl:call-template name="createAnchorParent"/> | |
| <span class="lbexSectionlevelOLC"> | |
| <xsl:if test="ancestor::quoted-block"> | |
| <xsl:call-template name="openQuotes"/> | |
| </xsl:if> | |
| <!--/xsl:if--> | |
| <!--xsl:text>SEC. </xsl:text--> | |
| <xsl:call-template name="ActualPrintIChangedTextWithParam"> | |
| <xsl:with-param name="aTheTextToPrint"> | |
| <xsl:text>SEC. </xsl:text> | |
| </xsl:with-param> | |
| </xsl:call-template> | |
| <!-- TB 28Dec2007 bug #767 --> | |
| <!--xsl:value-of select="."/--> | |
| <xsl:apply-templates/> | |
| </span> | |
| </xsl:when> | |
| <!-- TB 2Jan2008 bug #767 --> | |
| <xsl:when | |
| test="$aCurrElementStyle = 'traditional' or contains($aCurrElementStyle, 'archaic')"> | |
| <!-- TB Aug-2016 Bug Fixing #1436 --> | |
| <xsl:call-template name="createAnchorParent"/> | |
| <span class="lbexSectionLevelOLCnuclear"> | |
| <xsl:if test="ancestor::quoted-block"> | |
| <xsl:call-template name="openQuotes"/> | |
| </xsl:if> | |
| <xsl:call-template name="ActualPrintIChangedTextWithParam"> | |
| <xsl:with-param name="aTheTextToPrint"> | |
| <xsl:text>Sec. </xsl:text> | |
| </xsl:with-param> | |
| </xsl:call-template> | |
| </span> | |
| <xsl:apply-templates/> | |
| </xsl:when> | |
| <!--xsl:when test="ancestor::quoted-block/@style='OLC'"--> | |
| <xsl:when test="$aCurrElementStyle = 'OLC'"> | |
| <!--xsl:call-template name="openQuotes"/--> | |
| <!-- TB 18-Sep-2008 Fix no quoted block near section enum --> | |
| <!-- TB Aug-2016 Bug Fixing #1436 --> | |
| <xsl:call-template name="createAnchorParent"/> | |
| <span class="lbexSectionlevelOLC"> | |
| <xsl:if test="ancestor::quoted-block"> | |
| <xsl:call-template name="openQuotes"/> | |
| </xsl:if> | |
| <!--xsl:text>SEC. </xsl:text--> | |
| <xsl:call-template name="ActualPrintIChangedTextWithParam"> | |
| <xsl:with-param name="aTheTextToPrint"> | |
| <xsl:text>SEC. </xsl:text> | |
| </xsl:with-param> | |
| </xsl:call-template> | |
| <!-- <xsl:value-of select="."/> --> | |
| <!-- Attempting to correct Bug #766. nvargish 2007-11-07 --> | |
| <xsl:apply-templates/> | |
| <!-- TB Dec 2010 added space --> | |
| <xsl:if | |
| test="local-name(following-sibling::*[1]) = 'text' or local-name(following-sibling::*[1]) = 'header'"> | |
| <xsl:text> </xsl:text> | |
| </xsl:if> | |
| </span> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:apply-templates/> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:when> | |
| <!-- TB 28Feb2008 Bug #864 covers all other cases of section in enum --> | |
| <xsl:when test="text() != ''"> | |
| <!-- TB Aug-2016 Bug Fixing #1436 --> | |
| <xsl:call-template name="createAnchorParent"/> | |
| <span class="lbexSectionlevelOLC"> | |
| <!-- TB 27-Jan-2012 Create Anchor in this case also - to cover all cases of section display--> | |
| <xsl:if test="ancestor::quoted-block"> | |
| <xsl:call-template name="openQuotes"/> | |
| </xsl:if> | |
| <xsl:call-template name="ActualPrintIChangedTextWithParam"> | |
| <xsl:with-param name="aTheTextToPrint"> | |
| <xsl:text>SEC. </xsl:text> | |
| </xsl:with-param> | |
| </xsl:call-template> | |
| <xsl:apply-templates/> | |
| <xsl:text> </xsl:text> | |
| </span> | |
| </xsl:when> | |
| </xsl:choose> | |
| </xsl:template> | |
| <!-- ****************** Display Enum Title ********************* --> | |
| <xsl:template name="displayEnumTitle"> | |
| <xsl:param name="aCurrElementStyle"/> | |
| <xsl:choose> | |
| <xsl:when | |
| test="$billType = 'traditional' and parent::title[@reported-display-style = 'boldface-roman']"> | |
| <span class="lbexTitleLevelTradBold"> | |
| <xsl:call-template name="ActualPrintHeadingOf"> | |
| <xsl:with-param name="aTextToAdd"> | |
| <xsl:text>TITLE </xsl:text> | |
| </xsl:with-param> | |
| </xsl:call-template> | |
| </span> | |
| </xsl:when> | |
| <!--xsl:when | |
| test="(($billType='traditional' or ancestor::quoted-block/@style='traditional') and parent::title) or | |
| (ancestor::quoted-block[@style='other' and @other-style='archaic'] and parent::title) or | |
| (ancestor::quoted-block[@style='other' and @other-style='traditional-inline'] and parent::title) or | |
| (ancestor::quoted-block[@style='other' and @other-style='archaic-paragraph'] and parent::title) | |
| "--> | |
| <xsl:when | |
| test="contains($aCurrElementStyle, 'traditional') or contains($aCurrElementStyle, 'archaic') or $aCurrElementStyle = 'appropriations'"> | |
| <xsl:choose> | |
| <xsl:when test="contains(parent::title/@reported-display-style, 'brackets')"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>[</xsl:text> | |
| </span> | |
| <span class="lbexTitleLevelTrad"> | |
| <xsl:call-template name="ActualPrintHeadingOf"> | |
| <xsl:with-param name="aTextToAdd"> | |
| <xsl:text>TITLE </xsl:text> | |
| </xsl:with-param> | |
| </xsl:call-template> | |
| <xsl:if test="child::deleted-phrase or child::added-phrase"> | |
| <xsl:apply-templates/> | |
| </xsl:if> | |
| </span> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <span class="lbexTitleLevelTrad"> | |
| <xsl:call-template name="ActualPrintHeadingOf"> | |
| <xsl:with-param name="aTextToAdd"> | |
| <xsl:text>TITLE </xsl:text> | |
| </xsl:with-param> | |
| </xsl:call-template> | |
| <xsl:if test="child::deleted-phrase or child::added-phrase"> | |
| <xsl:apply-templates/> | |
| </xsl:if> | |
| </span> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:when> | |
| <xsl:when | |
| test="not(current()/@style) and (ancestor::division/@style ='appropriations' or ancestor::division/@style ='traditional' or ancestor::division/@style ='archaic')"> | |
| <xsl:choose> | |
| <xsl:when test="contains(ancestor::division/@reported-display-style, 'brackets')"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>[</xsl:text> | |
| </span> | |
| <span class="lbexTitleLevelTrad"> | |
| <xsl:call-template name="ActualPrintHeadingOf"> | |
| <xsl:with-param name="aTextToAdd"> | |
| <xsl:text>TITLE </xsl:text> | |
| </xsl:with-param> | |
| </xsl:call-template> | |
| <xsl:if test="child::deleted-phrase or child::added-phrase"> | |
| <xsl:apply-templates/> | |
| </xsl:if> | |
| </span> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <span class="lbexTitleLevelTrad"> | |
| <xsl:call-template name="ActualPrintHeadingOf"> | |
| <xsl:with-param name="aTextToAdd"> | |
| <xsl:text>TITLE </xsl:text> | |
| </xsl:with-param> | |
| </xsl:call-template> | |
| <xsl:if test="child::deleted-phrase or child::added-phrase"> | |
| <xsl:apply-templates/> | |
| </xsl:if> | |
| </span> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:when> | |
| <xsl:when | |
| test=" | |
| ancestor::legis-body/@style = 'USC' or | |
| ancestor::quoted-block[@style = 'USC']"> | |
| <span class="lbexTitleLevelOLC"> | |
| <xsl:call-template name="ActualPrintHeadingOf"> | |
| <xsl:with-param name="aTextToAdd"> | |
| <xsl:text>TITLE </xsl:text> | |
| </xsl:with-param> | |
| </xsl:call-template> | |
| </span> | |
| </xsl:when> | |
| <xsl:when test="(parent::title/ancestor::quoted-block[@style = 'USC'])"> | |
| <span class="lbexTitleLevelOLC"> | |
| <xsl:call-template name="ActualPrintHeadingOf"> | |
| <xsl:with-param name="aTextToAdd"> | |
| <xsl:text>TITLE </xsl:text> | |
| </xsl:with-param> | |
| </xsl:call-template> | |
| <xsl:if test="child::deleted-phrase or child::added-phrase"> | |
| <xsl:apply-templates/> | |
| </xsl:if> | |
| </span> | |
| </xsl:when> | |
| <xsl:when test="(parent::title/ancestor::quoted-block[@style = 'tax'])"> | |
| <span class="lbexTitleLevelIRCEx"> | |
| <xsl:call-template name="ActualPrintHeadingOf"> | |
| <xsl:with-param name="aTextToAdd"> | |
| <xsl:text>TITLE </xsl:text> | |
| </xsl:with-param> | |
| </xsl:call-template> | |
| <xsl:if test="child::deleted-phrase or child::added-phrase"> | |
| <xsl:apply-templates/> | |
| </xsl:if> | |
| </span> | |
| </xsl:when> | |
| <xsl:when | |
| test="(parent::title/ancestor::quoted-block[@style = 'OLC']) and //committee-report"> | |
| <xsl:if test="text() != ''"> | |
| <span class="lbexTitleLevelOLC"> | |
| <xsl:call-template name="ActualPrintHeadingOf"> | |
| <xsl:with-param name="aTextToAdd"> | |
| <xsl:text>TITLE </xsl:text> | |
| </xsl:with-param> | |
| </xsl:call-template> | |
| <xsl:if test="child::deleted-phrase or child::added-phrase"> | |
| <xsl:apply-templates/> | |
| </xsl:if> | |
| </span> | |
| </xsl:if> | |
| </xsl:when> | |
| <xsl:when test="//committee-report"> | |
| <xsl:if test="text() != ''"> | |
| <span class="lbexPartlevelTrad"> | |
| <xsl:call-template name="ActualPrintHeadingOf"> | |
| <xsl:with-param name="aTextToAdd"> | |
| <xsl:text>TITLE </xsl:text> | |
| </xsl:with-param> | |
| </xsl:call-template> | |
| <xsl:if test="child::deleted-phrase or child::added-phrase"> | |
| <xsl:apply-templates/> | |
| </xsl:if> | |
| </span> | |
| </xsl:if> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:if test="text() != '' or child::*"> | |
| <span class="lbexTitleLevelOLC"> | |
| <xsl:call-template name="ActualPrintHeadingOf"> | |
| <xsl:with-param name="aTextToAdd"> | |
| <xsl:text>TITLE </xsl:text> | |
| </xsl:with-param> | |
| </xsl:call-template> | |
| <xsl:if test="child::deleted-phrase or child::added-phrase"> | |
| <xsl:apply-templates/> | |
| </xsl:if> | |
| </span> | |
| </xsl:if> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:template> | |
| <!-- ********************Display Subtitle Enum*************** --> | |
| <xsl:template name="displayEnumSubtitle"> | |
| <xsl:param name="aCurrElementStyle"/> | |
| <xsl:choose> | |
| <xsl:when | |
| test="contains($aCurrElementStyle, 'traditional') or contains($aCurrElementStyle, 'archaic') or $aCurrElementStyle = 'appropriations'"> | |
| <span class="lbexSubTitleLevelTrad"> | |
| <xsl:call-template name="ActualPrintHeadingOf"> | |
| <xsl:with-param name="aTextToAdd"> | |
| <xsl:text>subtitle </xsl:text> | |
| </xsl:with-param> | |
| </xsl:call-template> | |
| <xsl:if test="child::deleted-phrase or child::added-phrase"> | |
| <xsl:apply-templates/> | |
| </xsl:if> | |
| </span> | |
| </xsl:when> | |
| <xsl:when | |
| test="$billType = 'traditional' and parent::subtitle[@reported-display-style = 'boldface-roman']"> | |
| <span class="lbexSubTitleLevelTrad"> | |
| <xsl:call-template name="ActualPrintHeadingOf"> | |
| <xsl:with-param name="aTextToAdd"> | |
| <xsl:text>subtitle </xsl:text> | |
| </xsl:with-param> | |
| </xsl:call-template> | |
| <xsl:if test="child::deleted-phrase or child::added-phrase"> | |
| <xsl:apply-templates/> | |
| </xsl:if> | |
| </span> | |
| </xsl:when> | |
| <xsl:when test="parent::subtitle[@reported-display-style = 'boldface-roman']"> | |
| <span class="lbexSubTitleLevelOLCBold"> | |
| <xsl:call-template name="ActualPrintHeadingOf"> | |
| <xsl:with-param name="aTextToAdd"> | |
| <xsl:text>subtitle </xsl:text> | |
| </xsl:with-param> | |
| </xsl:call-template> | |
| <xsl:if test="child::deleted-phrase or child::added-phrase"> | |
| <xsl:apply-templates/> | |
| </xsl:if> | |
| </span> | |
| </xsl:when> | |
| <xsl:when | |
| test=" | |
| (parent::subtitle[@reported-display-style = 'boldface-italic']/ancestor::quoted-block[@style = 'tax']) or | |
| ancestor::*[@reported-display-style = 'boldface-italic'] and ancestor::quoted-block[@style = 'tax']"> | |
| <span class="lbexSubTitleLevelIRCBold"> | |
| <xsl:call-template name="ActualPrintHeadingOf"> | |
| <xsl:with-param name="aTextToAdd"> | |
| <xsl:text>subtitle </xsl:text> | |
| </xsl:with-param> | |
| </xsl:call-template> | |
| <xsl:if test="child::deleted-phrase or child::added-phrase"> | |
| <xsl:apply-templates/> | |
| </xsl:if> | |
| </span> | |
| </xsl:when> | |
| <xsl:when test="ancestor::quoted-block/@style = 'tax'"> | |
| <span class="lbexSubTitleLevelOLC"> | |
| <xsl:call-template name="ActualPrintHeadingOf"> | |
| <xsl:with-param name="aTextToAdd"> | |
| <xsl:text>subtitle </xsl:text> | |
| </xsl:with-param> | |
| </xsl:call-template> | |
| <xsl:if test="child::deleted-phrase or child::added-phrase"> | |
| <xsl:apply-templates/> | |
| </xsl:if> | |
| </span> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <span class="lbexSubTitleLevelOLC"> | |
| <xsl:call-template name="ActualPrintHeadingOf"> | |
| <xsl:with-param name="aTextToAdd"> | |
| <xsl:text>subtitle </xsl:text> | |
| </xsl:with-param> | |
| </xsl:call-template> | |
| <xsl:if test="child::deleted-phrase or child::added-phrase"> | |
| <xsl:apply-templates/> | |
| </xsl:if> | |
| </span> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:template> | |
| <!-- ********************Display Part Enum*************** --> | |
| <xsl:template name="displayEnumPart"> | |
| <xsl:param name="aCurrElementStyle"/> | |
| <xsl:choose> | |
| <xsl:when | |
| test="$billType = 'traditional' and parent::part[@reported-display-style = 'boldface-roman']"> | |
| <span class="lbexTitleLevelTradBold"> | |
| <xsl:if test="ancestor::quoted-block"> | |
| <xsl:call-template name="openQuotes"/> | |
| </xsl:if> | |
| <xsl:value-of select="translate('part ', $lower, $upper)"/> | |
| <xsl:value-of select="translate(., $lower, $upper)"/> | |
| </span> | |
| </xsl:when> | |
| <xsl:when test="contains($aCurrElementStyle,'codification')"> | |
| <span class="lbexSectionlevelOLCBold"> | |
| <xsl:call-template name="ActualPrintHeadingOf"> | |
| <xsl:with-param name="aTextToAdd"> | |
| <xsl:text>Part </xsl:text> | |
| </xsl:with-param> | |
| </xsl:call-template> | |
| <xsl:if test="child::deleted-phrase or child::added-phrase"> | |
| <xsl:apply-templates/> | |
| </xsl:if> | |
| </span> | |
| </xsl:when> | |
| <!--xsl:when | |
| test="($billType='traditional' or ancestor::quoted-block/@style='traditional') or | |
| ancestor::quoted-block[@style='other' and @other-style='archaic'] or | |
| ancestor::quoted-block[@style='other' and @other-style='traditional-inline'] or | |
| ancestor::quoted-block[@style='other' and @other-style='archaic-paragraph'] "--> | |
| <xsl:when | |
| test="contains($aCurrElementStyle, 'traditional') or contains($aCurrElementStyle, 'archaic') or $aCurrElementStyle = 'appropriations'"> | |
| <span class="lbexPartlevelTrad"> | |
| <xsl:call-template name="ActualPrintHeadingOf"> | |
| <xsl:with-param name="aTextToAdd"> | |
| <xsl:text>Part </xsl:text> | |
| </xsl:with-param> | |
| </xsl:call-template> | |
| <xsl:if test="child::deleted-phrase or child::added-phrase"> | |
| <xsl:apply-templates/> | |
| </xsl:if> | |
| </span> | |
| </xsl:when> | |
| <xsl:when test="ancestor::legis-body/@style = 'USC'"> | |
| <span class="lbexSectionlevelOLCBold"> | |
| <xsl:call-template name="ActualPrintHeadingOf"> | |
| <xsl:with-param name="aTextToAdd"> | |
| <xsl:text>PART </xsl:text> | |
| </xsl:with-param> | |
| </xsl:call-template> | |
| <xsl:if test="child::deleted-phrase or child::added-phrase"> | |
| <xsl:apply-templates/> | |
| </xsl:if> | |
| </span> | |
| </xsl:when> | |
| <xsl:when | |
| test=" | |
| (parent::part[@reported-display-style = 'boldface-roman'] and ancestor::quoted-block[@style = 'tax']) or | |
| parent::part/parent::quoted-block[@style = 'tax']/ancestor::*[@reported-display-style = 'boldface-roman']"> | |
| <span class="lbexChapterLevelOLCBold"> | |
| <xsl:call-template name="ActualPrintHeadingOf"> | |
| <xsl:with-param name="aTextToAdd"> | |
| <xsl:text>PART </xsl:text> | |
| </xsl:with-param> | |
| </xsl:call-template> | |
| <xsl:if test="child::deleted-phrase or child::added-phrase"> | |
| <xsl:apply-templates/> | |
| </xsl:if> | |
| </span> | |
| </xsl:when> | |
| <xsl:when test="parent::part[@reported-display-style = 'boldface-roman']"> | |
| <span class="lbexChapterLevelOLCBold"> | |
| <xsl:call-template name="ActualPrintHeadingOf"> | |
| <xsl:with-param name="aTextToAdd"> | |
| <xsl:text>PART </xsl:text> | |
| </xsl:with-param> | |
| </xsl:call-template> | |
| <xsl:if test="child::deleted-phrase or child::added-phrase"> | |
| <xsl:apply-templates/> | |
| </xsl:if> | |
| </span> | |
| </xsl:when> | |
| <xsl:when test="(parent::part/ancestor::quoted-block[@style = 'USC'])"> | |
| <span class="lbexSectionlevelOLCBold"> | |
| <xsl:call-template name="ActualPrintHeadingOf"> | |
| <xsl:with-param name="aTextToAdd"> | |
| <xsl:text>PART </xsl:text> | |
| </xsl:with-param> | |
| </xsl:call-template> | |
| <xsl:if test="child::deleted-phrase or child::added-phrase"> | |
| <xsl:apply-templates/> | |
| </xsl:if> | |
| </span> | |
| </xsl:when> | |
| <xsl:when | |
| test=" | |
| (parent::part[@reported-display-style = 'boldface-italic']/ancestor::quoted-block[@style = 'tax']) or | |
| (parent::part and ancestor::*[@reported-display-style = 'boldface-italic'] and ancestor::quoted-block[@style = 'tax'])"> | |
| <span class="lbexChapterLevelOLCBold"> | |
| <xsl:call-template name="ActualPrintHeadingOf"> | |
| <xsl:with-param name="aTextToAdd"> | |
| <xsl:text>PART </xsl:text> | |
| </xsl:with-param> | |
| </xsl:call-template> | |
| <xsl:if test="child::deleted-phrase or child::added-phrase"> | |
| <xsl:apply-templates/> | |
| </xsl:if> | |
| </span> | |
| </xsl:when> | |
| <xsl:when test="(parent::part/ancestor::quoted-block[@style = 'tax'])"> | |
| <span class="lbexSectionlevelOLCBold"> | |
| <xsl:call-template name="ActualPrintHeadingOf"> | |
| <xsl:with-param name="aTextToAdd"> | |
| <xsl:text>PART </xsl:text> | |
| </xsl:with-param> | |
| </xsl:call-template> | |
| <xsl:if test="child::deleted-phrase or child::added-phrase"> | |
| <xsl:apply-templates/> | |
| </xsl:if> | |
| </span> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <span class="lbexSectionlevelOLCBold"> | |
| <xsl:call-template name="ActualPrintHeadingOf"> | |
| <xsl:with-param name="aTextToAdd"> | |
| <xsl:text>PART </xsl:text> | |
| </xsl:with-param> | |
| </xsl:call-template> | |
| <xsl:if test="child::deleted-phrase or child::added-phrase"> | |
| <xsl:apply-templates/> | |
| </xsl:if> | |
| </span> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:template> | |
| <!-- ********************Display SubPart Enum*************** --> | |
| <xsl:template name="displayEnumSubpart"> | |
| <xsl:param name="aCurrElementStyle"/> | |
| <xsl:choose> | |
| <xsl:when | |
| test="$billType = 'traditional' and parent::subpart[@reported-display-style = 'boldface-roman']"> | |
| <span class="lbexSubPartLevelTradBold"> | |
| <xsl:call-template name="ActualPrintHeadingOf"> | |
| <xsl:with-param name="aTextToAdd"> | |
| <xsl:text>subpart </xsl:text> | |
| </xsl:with-param> | |
| </xsl:call-template> | |
| <xsl:if test="child::deleted-phrase or child::added-phrase"> | |
| <xsl:apply-templates/> | |
| </xsl:if> | |
| </span> | |
| </xsl:when> | |
| <!--xsl:when | |
| test="($billType='traditional' or ancestor::quoted-block/@style='traditional') or | |
| ancestor::quoted-block[@style='other' and @other-style='archaic'] or | |
| ancestor::quoted-block[@style='other' and @other-style='traditional-inline'] or | |
| ancestor::quoted-block[@style='other' and @other-style='archaic-paragraph'] "--> | |
| <xsl:when | |
| test="contains($aCurrElementStyle, 'traditional') or contains($aCurrElementStyle, 'archaic') or $aCurrElementStyle = 'appropriations'"> | |
| <span class="lbexSubTitleLevelTrad"> | |
| <xsl:call-template name="ActualPrintHeadingOf"> | |
| <xsl:with-param name="aTextToAdd"> | |
| <xsl:text>subpart </xsl:text> | |
| </xsl:with-param> | |
| </xsl:call-template> | |
| <xsl:if test="child::deleted-phrase or child::added-phrase"> | |
| <xsl:apply-templates/> | |
| </xsl:if> | |
| </span> | |
| </xsl:when> | |
| <xsl:when test="parent::subpart[@reported-display-style = 'boldface-roman']"> | |
| <span class="lbexSubTitleLevelOLCBold"> | |
| <xsl:call-template name="ActualPrintHeadingOf"> | |
| <xsl:with-param name="aTextToAdd"> | |
| <xsl:text>subpart </xsl:text> | |
| </xsl:with-param> | |
| </xsl:call-template> | |
| <xsl:if test="child::deleted-phrase or child::added-phrase"> | |
| <xsl:apply-templates/> | |
| </xsl:if> | |
| </span> | |
| </xsl:when> | |
| <xsl:when | |
| test=" | |
| ancestor::quoted-block[@style = 'tax']/ancestor::*[@reported-display-style = 'boldface-roman'] | |
| or ancestor::*[@reported-display-style = 'boldface-italic'] and ancestor::quoted-block[@style = 'tax']"> | |
| <span class="lbexSubTitleLevelOLCBold"> | |
| <xsl:call-template name="ActualPrintHeadingOf"> | |
| <xsl:with-param name="aTextToAdd"> | |
| <xsl:text>subpart </xsl:text> | |
| </xsl:with-param> | |
| </xsl:call-template> | |
| <xsl:if test="child::deleted-phrase or child::added-phrase"> | |
| <xsl:apply-templates/> | |
| </xsl:if> | |
| </span> | |
| </xsl:when> | |
| <xsl:when test="ancestor::quoted-block/@style = 'tax'"> | |
| <span class="lbexSubpartLevelOLC"> | |
| <xsl:call-template name="ActualPrintHeadingOf"> | |
| <xsl:with-param name="aTextToAdd"> | |
| <xsl:text>subpart </xsl:text> | |
| </xsl:with-param> | |
| </xsl:call-template> | |
| <xsl:if test="child::deleted-phrase or child::added-phrase"> | |
| <xsl:apply-templates/> | |
| </xsl:if> | |
| </span> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <span class="lbexSubpartLevelOLC"> | |
| <xsl:call-template name="ActualPrintHeadingOf"> | |
| <xsl:with-param name="aTextToAdd"> | |
| <xsl:text>subpart </xsl:text> | |
| </xsl:with-param> | |
| </xsl:call-template> | |
| <xsl:if test="child::deleted-phrase or child::added-phrase"> | |
| <xsl:apply-templates/> | |
| </xsl:if> | |
| </span> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:template> | |
| <!-- ********************Display Chapter Enum*************** --> | |
| <xsl:template name="displayEnumChapter"> | |
| <xsl:param name="aCurrElementStyle"/> | |
| <xsl:choose> | |
| <xsl:when test="ancestor::*[@reported-display-style = 'boldface-italic']"> | |
| <span class="lbexChapterLevelOLCBold"> | |
| <xsl:call-template name="openQuotes"/> | |
| <xsl:value-of select="translate('chapter ', $lower, $upper)"/> | |
| <xsl:value-of select="translate(., $lower, $upper)"/> | |
| </span> | |
| </xsl:when> | |
| <xsl:when test="ancestor::quoted-block/@style = 'tax'"> | |
| <span class="lbexChapterLevelOLC"> | |
| <xsl:call-template name="openQuotes"/> | |
| <xsl:value-of select="translate('chapter ', $lower, $upper)"/> | |
| <xsl:value-of select="translate(., $lower, $upper)"/> | |
| </span> | |
| </xsl:when> | |
| <xsl:when | |
| test="($billType = 'traditional' and parent::chapter[@reported-display-style = 'boldface-roman'])"> | |
| <span class="lbexSubChapterLevelOLC"> | |
| <xsl:call-template name="ActualPrintHeadingOf"> | |
| <xsl:with-param name="aTextToAdd"> | |
| <xsl:text>chapter </xsl:text> | |
| </xsl:with-param> | |
| </xsl:call-template> | |
| <xsl:if test="child::deleted-phrase or child::added-phrase"> | |
| <xsl:apply-templates/> | |
| </xsl:if> | |
| </span> | |
| </xsl:when> | |
| <xsl:when test="$aCurrElementStyle = 'traditional'"> | |
| <span class="lbexChapterLevelTrad"> | |
| <xsl:call-template name="ActualPrintHeadingOf"> | |
| <xsl:with-param name="aTextToAdd"> | |
| <xsl:text>chapter </xsl:text> | |
| </xsl:with-param> | |
| </xsl:call-template> | |
| <xsl:if test="child::deleted-phrase or child::added-phrase"> | |
| <xsl:apply-templates/> | |
| </xsl:if> | |
| </span> | |
| </xsl:when> | |
| <xsl:when | |
| test="$aCurrElementStyle = 'traditional-inline' or $aCurrElementStyle = 'appropriations'"> | |
| <span class="lbexTitleLevelTradEx"> | |
| <xsl:call-template name="ActualPrintHeadingOf"> | |
| <xsl:with-param name="aTextToAdd"> | |
| <xsl:text>chapter </xsl:text> | |
| </xsl:with-param> | |
| </xsl:call-template> | |
| <xsl:if test="child::deleted-phrase or child::added-phrase"> | |
| <xsl:apply-templates/> | |
| </xsl:if> | |
| </span> | |
| </xsl:when> | |
| <xsl:when test="(parent::chapter/ancestor::quoted-block[@other-style = 'nuclear'])"> | |
| <span class="lbexChapterLevelOLCNuclear"> | |
| <xsl:call-template name="openQuotes"/> | |
| <xsl:text>CHAPTER </xsl:text> | |
| <xsl:value-of select="."/> | |
| <xsl:if test="child::deleted-phrase or child::added-phrase"> | |
| <xsl:apply-templates/> | |
| </xsl:if> | |
| </span> | |
| </xsl:when> | |
| <xsl:when test="ancestor::legis-body/@style = 'USC'"> | |
| <span class="lbexSectionlevelOLCBold"> | |
| <xsl:call-template name="ActualPrintHeadingOf"> | |
| <xsl:with-param name="aTextToAdd"> | |
| <xsl:choose> | |
| <xsl:when test="contains($aCurrElementStyle,'codification')"> | |
| <xsl:text>Chapter </xsl:text> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:text>CHAPTER </xsl:text> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:with-param> | |
| </xsl:call-template> | |
| <xsl:if test="child::deleted-phrase or child::added-phrase"> | |
| <xsl:apply-templates/> | |
| </xsl:if> | |
| </span> | |
| </xsl:when> | |
| <xsl:when test="parent::chapter[@reported-display-style = 'boldface-roman']"> | |
| <span class="lbexChapterLevelOLCBold"> | |
| <xsl:call-template name="ActualPrintHeadingOf"> | |
| <xsl:with-param name="aTextToAdd"> | |
| <xsl:text>CHAPTER </xsl:text> | |
| </xsl:with-param> | |
| </xsl:call-template> | |
| <xsl:if test="child::deleted-phrase or child::added-phrase"> | |
| <xsl:apply-templates/> | |
| </xsl:if> | |
| </span> | |
| </xsl:when> | |
| <xsl:when test="(parent::chapter/ancestor::quoted-block[@style = 'USC'])"> | |
| <span class="lbexSectionlevelOLCBold"> | |
| <xsl:call-template name="ActualPrintHeadingOf"> | |
| <xsl:with-param name="aTextToAdd"> | |
| <xsl:text>CHAPTER </xsl:text> | |
| </xsl:with-param> | |
| </xsl:call-template> | |
| <xsl:if test="child::deleted-phrase or child::added-phrase"> | |
| <xsl:apply-templates/> | |
| </xsl:if> | |
| </span> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <span class="lbexChapterLevelOLC"> | |
| <xsl:call-template name="ActualPrintHeadingOf"> | |
| <!-- Implemetation of codification style for All big Heads #10580 FY2020 --> | |
| <xsl:with-param name="aTextToAdd"> | |
| <xsl:choose> | |
| <xsl:when test= "contains($aCurrElementStyle,'codification')"> | |
| <xsl:text>Chapter </xsl:text> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:text>CHAPTER </xsl:text> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:with-param> | |
| </xsl:call-template> | |
| <xsl:if test="child::deleted-phrase or child::added-phrase"> | |
| <xsl:apply-templates/> | |
| </xsl:if> | |
| </span> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:template> | |
| <!-- ********************Display Subchapter Enum*************** --> | |
| <xsl:template name="displayEnumSubchapter"> | |
| <xsl:param name="aCurrElementStyle"/> | |
| <xsl:choose> | |
| <xsl:when | |
| test="($billType = 'traditional' and parent::subchapter[@reported-display-style = 'boldface-roman'])"> | |
| <span class="lbexSubChapterLevelTradBold"> | |
| <xsl:call-template name="ActualPrintHeadingOf"> | |
| <xsl:with-param name="aTextToAdd"> | |
| <xsl:text>subchapter </xsl:text> | |
| </xsl:with-param> | |
| </xsl:call-template> | |
| <xsl:if test="child::deleted-phrase or child::added-phrase"> | |
| <xsl:apply-templates/> | |
| </xsl:if> | |
| </span> | |
| </xsl:when> | |
| <!--xsl:when | |
| test="ancestor::quoted-block[@style='other' and @other-style='traditional-inline'] or | |
| ancestor::quoted-block[@style='other' and @other-style='archaic-paragraph'] "--> | |
| <xsl:when test="$aCurrElementStyle = 'archaic-paragraph'"> | |
| <span class="lbexSubChapterLevelTradInline"> | |
| <xsl:if test="ancestor::quoted-block"> | |
| <xsl:call-template name="openQuotes"/> | |
| </xsl:if> | |
| <xsl:choose> | |
| <xsl:when test="$aCurrElementStyle = 'archaic-paragraph'"> | |
| <xsl:text>SUBCHAPTER </xsl:text> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:text>subchapter </xsl:text> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| <!-- TB 19May2008 --> | |
| <!--xsl:value-of select="."/--> | |
| <xsl:apply-templates/> | |
| </span> | |
| </xsl:when> | |
| <!--xsl:when | |
| test="$billType='olc' and ancestor::quoted-block/@style='traditional' or | |
| $billType='traditional' or | |
| ($billType='olc' and ancestor::quoted-block/@other-style='archaic') "--> | |
| <xsl:when | |
| test=" | |
| ancestor::quoted-block/@style = 'traditional' or | |
| $documentType = 'traditional' or | |
| (ancestor::quoted-block/@other-style = 'archaic')"> | |
| <span class="lbexSubChapterLevelTrad"> | |
| <xsl:call-template name="ActualPrintHeadingOf"> | |
| <xsl:with-param name="aTextToAdd"> | |
| <xsl:text>SUBCHAPTER </xsl:text> | |
| </xsl:with-param> | |
| </xsl:call-template> | |
| <xsl:if test="child::deleted-phrase or child::added-phrase"> | |
| <xsl:apply-templates/> | |
| </xsl:if> | |
| </span> | |
| </xsl:when> | |
| <xsl:when test="($billType = 'traditional' and ancestor::quoted-block/@style = 'OLC')"> | |
| <span class="lbexSubChapterLevelOLC"> | |
| <xsl:call-template name="ActualPrintHeadingOf"> | |
| <xsl:with-param name="aTextToAdd"> | |
| <xsl:text>subchapter </xsl:text> | |
| </xsl:with-param> | |
| </xsl:call-template> | |
| <xsl:if test="child::deleted-phrase or child::added-phrase"> | |
| <xsl:apply-templates/> | |
| </xsl:if> | |
| </span> | |
| </xsl:when> | |
| <xsl:when | |
| test=" | |
| (parent::subchapter[@reported-display-style = 'boldface-roman'] and ancestor::quoted-block[@style = 'tax']) or | |
| parent::subchapter/parent::quoted-block[@style = 'tax']/ancestor::*[@reported-display-style = 'boldface-roman'] | |
| or (parent::subchapter and ancestor::*[@reported-display-style = 'boldface-italic'])"> | |
| <span class="lbexSubTitleLevelOLCBold"> | |
| <xsl:call-template name="ActualPrintHeadingOf"> | |
| <xsl:with-param name="aTextToAdd"> | |
| <xsl:text>subchapter </xsl:text> | |
| </xsl:with-param> | |
| </xsl:call-template> | |
| <xsl:if test="child::deleted-phrase or child::added-phrase"> | |
| <xsl:apply-templates/> | |
| </xsl:if> | |
| </span> | |
| </xsl:when> | |
| <xsl:when test="ancestor::quoted-block/@style = 'tax'"> | |
| <span class="lbexSubChapterLevelOLC"> | |
| <xsl:call-template name="ActualPrintHeadingOf"> | |
| <xsl:with-param name="aTextToAdd"> | |
| <xsl:text>subchapter </xsl:text> | |
| </xsl:with-param> | |
| </xsl:call-template> | |
| <xsl:if test="child::deleted-phrase or child::added-phrase"> | |
| <xsl:apply-templates/> | |
| </xsl:if> | |
| </span> | |
| </xsl:when> | |
| <xsl:when test="parent::subchapter and ancestor::quoted-block/@other-style = 'nuclear'"> | |
| <span class="lbexSubChapterLevelOLC"> | |
| <xsl:call-template name="ActualPrintHeadingOf"> | |
| <xsl:with-param name="aTextToAdd"> | |
| <xsl:text>subchapter </xsl:text> | |
| </xsl:with-param> | |
| </xsl:call-template> | |
| <xsl:if test="child::deleted-phrase or child::added-phrase"> | |
| <xsl:apply-templates/> | |
| </xsl:if> | |
| </span> | |
| </xsl:when> | |
| <xsl:when test="ancestor::legis-body/@style = 'USC'"> | |
| <span class="lbexSectionLevelTradBold"> | |
| <xsl:if test="(ancestor::quoted-block and not($aCurrElementStyle)) or | |
| (ancestor::quoted-block and $aCurrElementStyle !='codification-not-quoted')"> | |
| <xsl:call-template name="openQuotes"/> | |
| </xsl:if> | |
| <xsl:choose> | |
| <xsl:when test="contains($aCurrElementStyle,'codification') "> | |
| <b> | |
| <xsl:text>Subchapter </xsl:text> | |
| <xsl:apply-templates/> | |
| </b> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:text>SUBCHAPTER </xsl:text> | |
| <!--xsl:value-of select="translate(.,$lower,$upper)"/--> | |
| <style type="text-transform:uppercase;"> | |
| <xsl:apply-templates/> | |
| </style> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </span> | |
| </xsl:when> | |
| <xsl:when test="parent::subchapter[@reported-display-style = 'boldface-roman']"> | |
| <span class="lbexSubTitleLevelOLCBold"> | |
| <xsl:call-template name="ActualPrintHeadingOf"> | |
| <xsl:with-param name="aTextToAdd"> | |
| <xsl:text>subchapter </xsl:text> | |
| </xsl:with-param> | |
| </xsl:call-template> | |
| <xsl:if test="child::deleted-phrase or child::added-phrase"> | |
| <xsl:apply-templates/> | |
| </xsl:if> | |
| </span> | |
| </xsl:when> | |
| <xsl:when test="parent::subchapter/ancestor::quoted-block[@style = 'USC']"> | |
| <span class="lbexSectionLevelTradBold"> | |
| <xsl:if test="ancestor::quoted-block"> | |
| <xsl:call-template name="openQuotes"/> | |
| </xsl:if> | |
| <xsl:text>SUBCHAPTER </xsl:text> | |
| <!--xsl:value-of select="translate(.,$lower,$upper)"/--> | |
| <xsl:apply-templates/> | |
| </span> | |
| </xsl:when> | |
| <xsl:when test="$aCurrElementStyle = 'traditional'"> | |
| <span class="lbexSubChapterLevelTradEx"> | |
| <xsl:call-template name="ActualPrintHeadingOf"> | |
| <xsl:with-param name="aTextToAdd"> | |
| <xsl:text>subchapter </xsl:text> | |
| </xsl:with-param> | |
| </xsl:call-template> | |
| <xsl:if test="child::deleted-phrase or child::added-phrase"> | |
| <xsl:apply-templates/> | |
| </xsl:if> | |
| </span> | |
| </xsl:when> | |
| <xsl:when | |
| test="$aCurrElementStyle = 'traditional-inline' or $aCurrElementStyle = 'appropriations'"> | |
| <span class="lbexSubTitleLevelTrad"> | |
| <xsl:call-template name="ActualPrintHeadingOf"> | |
| <xsl:with-param name="aTextToAdd"> | |
| <xsl:text>subchapter </xsl:text> | |
| </xsl:with-param> | |
| </xsl:call-template> | |
| <xsl:if test="child::deleted-phrase or child::added-phrase"> | |
| <xsl:apply-templates/> | |
| </xsl:if> | |
| </span> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <span class="lbexSubChapterLevelOLC"> | |
| <xsl:call-template name="ActualPrintHeadingOf"> | |
| <xsl:with-param name="aTextToAdd"> | |
| <xsl:text>subchapter </xsl:text> | |
| </xsl:with-param> | |
| </xsl:call-template> | |
| <xsl:if test="child::deleted-phrase or child::added-phrase"> | |
| <xsl:apply-templates/> | |
| </xsl:if> | |
| </span> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:template> | |
| <!--******************* Display Enum Subdivision********************************** --> | |
| <xsl:template name="displayEnumSubdivision"> | |
| <xsl:param name="aCurrElementStyle"/> | |
| <xsl:choose> | |
| <xsl:when | |
| test="$aCurrElementStyle = 'OLC' or $aCurrElementStyle = 'USC' or $aCurrElementStyle = 'tax'"> | |
| <span class="lbexTitleLevelOLC"> | |
| <xsl:call-template name="ActualPrintHeadingOf"> | |
| <xsl:with-param name="aTextToAdd"> | |
| <xsl:text>SUBDIVISION </xsl:text> | |
| </xsl:with-param> | |
| </xsl:call-template> | |
| <xsl:if test="child::deleted-phrase or child::added-phrase"> | |
| <xsl:apply-templates/> | |
| </xsl:if> | |
| </span> | |
| </xsl:when> | |
| <xsl:when | |
| test="$aCurrElementStyle = 'traditional-inline' or $aCurrElementStyle = 'appropriations'"> | |
| <span class="lbexSubChapterLevelOLC"> | |
| <xsl:call-template name="ActualPrintHeadingOf"> | |
| <xsl:with-param name="aTextToAdd"> | |
| <xsl:text>Subdivision </xsl:text> | |
| </xsl:with-param> | |
| </xsl:call-template> | |
| <xsl:if test="child::deleted-phrase or child::added-phrase"> | |
| <xsl:apply-templates/> | |
| </xsl:if> | |
| </span> | |
| </xsl:when> | |
| <xsl:when | |
| test="contains($aCurrElementStyle, 'codification')"> | |
| <span class="lbexSubChapterLevelOLC"> | |
| <xsl:call-template name="ActualPrintHeadingOf"> | |
| <xsl:with-param name="aTextToAdd"> | |
| <xsl:text>Subdivision </xsl:text> | |
| </xsl:with-param> | |
| </xsl:call-template> | |
| <xsl:if test="child::deleted-phrase or child::added-phrase"> | |
| <xsl:apply-templates/> | |
| </xsl:if> | |
| </span> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <span class="lbexInitialCapArchaic"> | |
| <xsl:call-template name="ActualPrintHeadingOf"> | |
| <xsl:with-param name="aTextToAdd"> | |
| <xsl:text>Subdivision </xsl:text> | |
| </xsl:with-param> | |
| </xsl:call-template> | |
| </span> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:template> | |
| <!-- ************* Actual Print Heading with opening quotes if needed ********************--> | |
| <xsl:template name="ActualPrintHeadingOf"> | |
| <xsl:param name="aTextToAdd"/> | |
| <xsl:variable name="theTextToPrint"> | |
| <xsl:if test="ancestor::quoted-block "> | |
| <xsl:choose> | |
| <!--Implementation of codification style quotes and non quoted FY2020 Parent Task 10500--> | |
| <xsl:when test="ancestor::quoted-block/@other-style = 'codification-not-quoted'"></xsl:when> | |
| <xsl:otherwise> | |
| <xsl:call-template name="openQuotes"/> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:if> | |
| <xsl:if test="contains(ancestor::quoted-block/@reported-display-style, 'brackets')"> | |
| <xsl:call-template name="openBracketStyles"/> | |
| </xsl:if> | |
| <xsl:value-of select="$aTextToAdd"/> | |
| <xsl:if test="not(child::deleted-phrase or child::added-phrase)"> | |
| <xsl:value-of select="."/> | |
| </xsl:if> | |
| </xsl:variable> | |
| <xsl:call-template name="ActualPrintIChangedTextWithParam"> | |
| <xsl:with-param name="aTheTextToPrint" select="$theTextToPrint"/> | |
| </xsl:call-template> | |
| </xsl:template> | |
| <!-- *************** Match Header ****************************** --> | |
| <xsl:template match="header"> | |
| <xsl:param name="isSpecialPrinting"/> | |
| <xsl:choose> | |
| <xsl:when | |
| test="parent::toc and not(//committee-report) and following-sibling::multi-column-toc-entry"> | |
| <!-- nothing --> | |
| </xsl:when> | |
| <xsl:when | |
| test="parent::appropriations-major or parent::appropriations-intermediate or parent::appropriations-small"> | |
| <xsl:call-template name="displayHeader"/> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:choose> | |
| <xsl:when test="parent::*/@changed='deleted' and parent::*/@reported-display-style='strikethrough' | |
| and following-sibling::*/@changed='not-changed'"> | |
| <span class="lbexTextStrikethrough"> | |
| <xsl:call-template name="displayHeader"> | |
| <xsl:with-param name="isSpecialPrinting" select="$isSpecialPrinting"/> | |
| </xsl:call-template> | |
| </span> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:call-template name="displayHeader"> | |
| <xsl:with-param name="isSpecialPrinting" select="$isSpecialPrinting"/> | |
| </xsl:call-template> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:template> | |
| <!-- ***********************Display Committee Report Header***************************** --> | |
| <xsl:template match="committee-report-header"> | |
| <xsl:call-template name="displayCommitteeReportHeader"/> | |
| </xsl:template> | |
| <!-- *********************** Actual Display Committee Report Header*********************** --> | |
| <xsl:template name="displayCommitteeReportHeader"> | |
| <xsl:variable name="currElementStyle"> | |
| <xsl:call-template name="getCurrentElementStyle"/> | |
| </xsl:variable> | |
| <xsl:variable name="isMarginIndent"> | |
| <xsl:value-of select="@margin-indent"/> | |
| </xsl:variable> | |
| <xsl:variable name="isDisplayInline"> | |
| <xsl:choose> | |
| <xsl:when test="@display-inline"> | |
| <xsl:value-of select="@display-inline"/> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:text>no-display-inline</xsl:text> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:variable> | |
| <xsl:variable name="isFollowingDisplayinline"> | |
| <xsl:choose> | |
| <xsl:when test="following-sibling::text and following-sibling::text/@display-inline"> | |
| <xsl:value-of select="following-sibling::text/@display-inline"/> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:text>no-display-inline</xsl:text> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:variable> | |
| <xsl:choose> | |
| <xsl:when | |
| test="$isDisplayInline = 'yes-display-inline' and $isMarginIndent != 'yes' and $isFollowingDisplayinline = 'yes-display-inline'"> | |
| <span style="text-align:left; text-indent: 1em;display:inline-block;"> | |
| <xsl:call-template name="actualPrintCommitteeReportHeader"/> | |
| </span> | |
| <xsl:text> </xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="$isDisplayInline = 'yes-display-inline' and $isMarginIndent != 'yes' and $isFollowingDisplayinline = 'no-display-inline'"> | |
| <span style="text-align:left;"> | |
| <xsl:call-template name="actualPrintCommitteeReportHeader"/> | |
| </span> | |
| </xsl:when> | |
| <xsl:when | |
| test="$isDisplayInline = 'yes-display-inline' and $isMarginIndent = 'yes' and $isFollowingDisplayinline = 'no-display-inline'"> | |
| <p class="lbexIndent" style="text-align:left"> | |
| <xsl:call-template name="actualPrintCommitteeReportHeader"/> | |
| </p> | |
| </xsl:when> | |
| <xsl:when | |
| test="$isDisplayInline = 'yes-display-inline' and $isMarginIndent = 'yes' and $isFollowingDisplayinline = 'yes-display-inline'"> | |
| <!-- add indent class to the parent paragraph --> | |
| <xsl:attribute name="class"> | |
| <xsl:text>lbexIndent</xsl:text> | |
| </xsl:attribute> | |
| <xsl:call-template name="actualPrintCommitteeReportHeader"/> | |
| </xsl:when> | |
| <xsl:when test="$isDisplayInline != 'yes-display-inline' and $isMarginIndent = 'yes'"> | |
| <span class="lbexIndent" style="text-align:left"> | |
| <xsl:choose> | |
| <xsl:when test="$isFollowingDisplayinline = 'no-display-inline'"> | |
| <div style="text-align:center"> | |
| <xsl:call-template name="actualPrintCommitteeReportHeader"/> | |
| </div> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <span style="text-align:left" class="lbexIndent"> | |
| <xsl:call-template name="actualPrintCommitteeReportHeader"/> | |
| </span> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </span> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <!-- TB Nov-2105 changing the rules - if com-rep-header is no-display-inline - must be centered --> | |
| <!-- does not matter if the following text is yes-display-inline --> | |
| <xsl:choose> | |
| <xsl:when test="$isDisplayInline = 'no-display-inline'"> | |
| <div style="text-align:center"> | |
| <xsl:call-template name="actualPrintCommitteeReportHeader"/> | |
| </div> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <span style="text-align:left" class="lbexIndent"> | |
| <xsl:call-template name="actualPrintCommitteeReportHeader"/> | |
| </span> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| <xsl:if test="$isFollowingDisplayinline != 'yes-display-inline'"> | |
| <p/> | |
| </xsl:if> | |
| </xsl:template> | |
| <xsl:template name="actualPrintCommitteeReportHeader"> | |
| <xsl:variable name="isItalic"> | |
| <xsl:choose> | |
| <xsl:when test="child::italic"> | |
| <xsl:text>on</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="@italic"> | |
| <xsl:value-of select="@italic"/> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:text>off</xsl:text> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:variable> | |
| <xsl:variable name="isBold"> | |
| <xsl:choose> | |
| <xsl:when test="child::bold"> | |
| <xsl:text>on</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="@bold"> | |
| <xsl:value-of select="@bold"/> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:text>off</xsl:text> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:variable> | |
| <xsl:choose> | |
| <xsl:when test="$isItalic = 'on' and $isBold != 'on'"> | |
| <i class="lbexTextNeutral"> | |
| <xsl:call-template name="actualPrintCommitteeReportHeaderTextByStyle"/> | |
| </i> | |
| </xsl:when> | |
| <xsl:when test="$isItalic != 'on' and $isBold = 'on'"> | |
| <b> | |
| <xsl:call-template name="actualPrintCommitteeReportHeaderTextByStyle"/> | |
| </b> | |
| </xsl:when> | |
| <xsl:when test="$isItalic = 'on' and $isBold = 'on'"> | |
| <b> | |
| <i class="lbexTextNeutral"> | |
| <xsl:call-template name="actualPrintCommitteeReportHeaderTextByStyle"/> | |
| </i> | |
| </b> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:call-template name="actualPrintCommitteeReportHeaderTextByStyle"/> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:template> | |
| <xsl:template name="actualPrintCommitteeReportHeaderTextByStyle"> | |
| <xsl:variable name="reportHeaderStyle"> | |
| <xsl:choose> | |
| <xsl:when test="@header-style"> | |
| <xsl:value-of select="translate(@header-style, $upper, $lower)"/> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:text>all-small-caps</xsl:text> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:variable> | |
| <!-- All-Caps | Caps-Small-Caps | All-Small-Caps | Caps-Lowercase --> | |
| <xsl:choose> | |
| <xsl:when test="$reportHeaderStyle = 'all-caps'"> | |
| <span class="lbexSimplecapEx"> | |
| <xsl:value-of select="translate(., $lower, $upper)"/> | |
| </span> | |
| </xsl:when> | |
| <xsl:when test="$reportHeaderStyle = 'caps-small-caps'"> | |
| <span class="lbexSectionTitleTrad"> | |
| <xsl:value-of select="."/> | |
| </span> | |
| </xsl:when> | |
| <xsl:when test="$reportHeaderStyle = 'all-small-caps'"> | |
| <!--span style="font-variant: small-caps;" --> | |
| <span class="lbexSimplecap"> | |
| <xsl:value-of select="translate(., $upper, $lower)"/> | |
| </span> | |
| </xsl:when> | |
| <xsl:when test="$reportHeaderStyle = 'caps-lowercase'"> | |
| <span class="lbexInitialCapArchaic"> | |
| <xsl:value-of select="."/> | |
| </span> | |
| </xsl:when> | |
| </xsl:choose> | |
| </xsl:template> | |
| <!-- ***************************Display Header******************************* --> | |
| <xsl:template name="displayHeader"> | |
| <xsl:param name="isSpecialPrinting"/> | |
| <xsl:variable name="currElementStyle"> | |
| <xsl:call-template name="getCurrentElementStyle"/> | |
| </xsl:variable> | |
| <xsl:variable name="IsGenerateEmDash"> | |
| <xsl:call-template name="GenerateEmDash"> | |
| <xsl:with-param name="IsForFollowingSibling"> | |
| <xsl:text>false</xsl:text> | |
| </xsl:with-param> | |
| <xsl:with-param name="currentStyle" select="$currElementStyle"/> | |
| </xsl:call-template> | |
| </xsl:variable> | |
| <xsl:choose> | |
| <!-- ***********Section******************************************* --> | |
| <xsl:when test="parent::section"> | |
| <xsl:call-template name="displayHeaderSection"> | |
| <xsl:with-param name="aCurrElementStyle" select="$currElementStyle"/> | |
| <xsl:with-param name="isSpecialPrinting" select="$isSpecialPrinting"/> | |
| </xsl:call-template> | |
| </xsl:when> | |
| <!-- ****************Title****************************************** --> | |
| <xsl:when test="parent::title"> | |
| <xsl:call-template name="displayHeaderTitle"> | |
| <xsl:with-param name="aCurrElementStyle" select="$currElementStyle"/> | |
| </xsl:call-template> | |
| </xsl:when> | |
| <!-- *************** Subtitle***************************** --> | |
| <xsl:when test="parent::subtitle"> | |
| <xsl:call-template name="displayHeaderSubtitle"> | |
| <xsl:with-param name="aCurrElementStyle" select="$currElementStyle"/> | |
| </xsl:call-template> | |
| </xsl:when> | |
| <!-- ***************Part************************************* --> | |
| <xsl:when test="parent::part"> | |
| <xsl:call-template name="displayHeaderPart"> | |
| <xsl:with-param name="aCurrElementStyle" select="$currElementStyle"/> | |
| </xsl:call-template> | |
| </xsl:when> | |
| <!-- ************ Subpart ********************************* --> | |
| <xsl:when test="parent::subpart"> | |
| <xsl:call-template name="displayHeaderSubpart"> | |
| <xsl:with-param name="aCurrElementStyle" select="$currElementStyle"/> | |
| </xsl:call-template> | |
| </xsl:when> | |
| <!-- ***************** Chapter****************************** --> | |
| <xsl:when test="parent::chapter"> | |
| <xsl:call-template name="displayHeaderChapter"> | |
| <xsl:with-param name="aCurrElementStyle" select="$currElementStyle"/> | |
| </xsl:call-template> | |
| </xsl:when> | |
| <!-- *********************Subchapter**************************** --> | |
| <xsl:when test="parent::subchapter"> | |
| <xsl:call-template name="displayHeaderSubchapter"> | |
| <xsl:with-param name="aCurrElementStyle" select="$currElementStyle"/> | |
| </xsl:call-template> | |
| </xsl:when> | |
| <!-- ****************************************************************** --> | |
| <xsl:when | |
| test="parent::paragraph and ancestor::*[@reported-display-style = 'boldface-roman']"> | |
| <span class="lbexSmallcap"> | |
| <xsl:value-of select="."/> | |
| </span> | |
| <xsl:if test="name(.) = 'header'"> | |
| <xsl:text>.—</xsl:text> | |
| </xsl:if> | |
| <xsl:if | |
| test="not(following-sibling::*) and name(ancestor::quoted-block/child::*[2]) = 'after-quoted-block'"> | |
| <xsl:text>”</xsl:text> | |
| <xsl:value-of select="ancestor::quoted-block/child::after-quoted-block"/> | |
| </xsl:if> | |
| </xsl:when> | |
| <xsl:when | |
| test=" | |
| $billType = 'olc' and ((parent::section and ancestor::legis-body/@added-display-style = 'boldface-roman') or | |
| parent::*[@reported-display-style = 'boldface-roman'] or | |
| parent::*[@added-display-style = 'boldface-roman'])"> | |
| <span class="lbexSectionlevelOLCBold"> | |
| <xsl:text> </xsl:text> | |
| <xsl:value-of select="translate(., $lower, $upper)"/> | |
| <xsl:text>.</xsl:text> | |
| <!-- if there is only an enum and a header within a quoted block display a ". --> | |
| <xsl:if | |
| test="not(following-sibling::*) and name(ancestor::quoted-block/child::*[2]) = 'after-quoted-block'"> | |
| <!--xsl:text>”.</xsl:text--> | |
| <xsl:call-template name="closeQuotesByCondition"/> | |
| </xsl:if> | |
| </span> | |
| </xsl:when> | |
| <xsl:when | |
| test="parent::subsection and ($currElementStyle = 'archaic' or $currElementStyle = 'archaic-paragraph')"> | |
| <!-- Nothing TB 7Apr2008 Bug #898 --> | |
| <xsl:if test="$isSpecialPrinting = 'yes'"> | |
| <!--xsl:apply-templates/--> | |
| <xsl:call-template name="printCompHeaderCapitalize"/> | |
| </xsl:if> | |
| </xsl:when> | |
| <xsl:when test="parent::paragraph and $currElementStyle = 'archaic-paragraph'"> | |
| <!-- Nothing in common case TB 7Apr2008 Bug #898 --> | |
| <xsl:if test="$isSpecialPrinting = 'yes'"> | |
| <xsl:apply-templates/> | |
| </xsl:if> | |
| </xsl:when> | |
| <xsl:when test="parent::paragraph and $currElementStyle = 'archaic'"> | |
| <span class="lbexSimplecap"> | |
| <xsl:apply-templates/> | |
| <xsl:text>.—</xsl:text> | |
| </span> | |
| </xsl:when> | |
| <xsl:when | |
| test="parent::subsection or parent::paragraph or parent::subparagraph or parent::clause or parent::subclause or parent::item or parent::subitem"> | |
| <xsl:call-template name="displayTitleByStyle"> | |
| <xsl:with-param name="currElementStyle" select="$currElementStyle"/> | |
| </xsl:call-template> | |
| <!--xsl:text>.—</xsl:text--> | |
| <!-- TB Dec-15-2015 bug fixing #1413 --> | |
| <xsl:if test="$IsGenerateEmDash = 'true'"> | |
| <xsl:text>.—</xsl:text> | |
| </xsl:if> | |
| <xsl:if test="parent::*/@commented = 'yes' and not(parent::*/text)"> | |
| <xsl:call-template name="closedBracketStyles"/> | |
| </xsl:if> | |
| <xsl:choose> | |
| <xsl:when | |
| test="not(following-sibling::*) and name(ancestor::quoted-block/child::*[2]) = 'after-quoted-block'"> | |
| <xsl:text>”</xsl:text> | |
| <!--xsl:value-of | |
| select="translate(ancestor::quoted-block/child::after-quoted-block,$lower,$upper) "/--> | |
| <!-- change by TB 17Dec2008 bug # 989 --> | |
| <xsl:value-of select="ancestor::quoted-block/child::after-quoted-block"/> | |
| </xsl:when> | |
| <xsl:when | |
| test="parent::subsection/parent::section/ancestor::quoted-block[@other-style = 'archaic']"> | |
| <xsl:text> </xsl:text> | |
| </xsl:when> | |
| </xsl:choose> | |
| <!-- TB 6Sep2007 #689 end of added section--> | |
| </xsl:when> | |
| <!--xsl:when test="(enum-in-header)"--> | |
| <!--TB exclude appropriations from printing em-dash bug fixing #1391--> | |
| <xsl:when | |
| test="(enum-in-header) and not(contains(local-name(parent::*), 'appropriations'))"> | |
| <!--TB 20Sep removed smallCap class--> | |
| <xsl:text>.—</xsl:text> | |
| <xsl:call-template name="displayHeaderInStyle"/> | |
| </xsl:when> | |
| <!-- ************division*********** --> | |
| <xsl:when test="parent::division"> | |
| <!--TB 31Aug2007 # 685--> | |
| <xsl:call-template name="displayDivisionBody"> | |
| <xsl:with-param name="aCurrElementStyle" select="$currElementStyle"/> | |
| </xsl:call-template> | |
| </xsl:when> | |
| <!-- ************subdivision*********** --> | |
| <xsl:when test="parent::subdivision"> | |
| <!--TB 31Aug2007 # 685--> | |
| <xsl:call-template name="displaySubdivisionBody"> | |
| <xsl:with-param name="aCurrElementStyle" select="$currElementStyle"/> | |
| </xsl:call-template> | |
| </xsl:when> | |
| <!-- cases for Appropriations bills --> | |
| <xsl:when test="ancestor::appropriations-major"> | |
| <xsl:call-template name="toPrintApprHeaderNoBreaks"/> | |
| </xsl:when> | |
| <xsl:when test="ancestor::appropriations-intermediate"> | |
| <xsl:call-template name="toPrintApprHeaderNoBreaks"/> | |
| </xsl:when> | |
| <xsl:when test="ancestor::appropriations-small"> | |
| <xsl:call-template name="toPrintApprHeaderNoBreaks"/> | |
| </xsl:when> | |
| <xsl:when test="//committee-report"> | |
| <xsl:choose> | |
| <xsl:when test="$committeeID = 'CommitteeCustomization'"> | |
| <!-- for future development. Possibility to display header according to committee ID if required--> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:variable name="reportHeaderStyle"> | |
| <xsl:choose> | |
| <xsl:when test="@header-style"> | |
| <xsl:value-of select="@header-style"/> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:value-of select="$currElementStyle"/> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:variable> | |
| <!--Default Header Print--> | |
| <xsl:call-template name="printReportHeaderByStyle"> | |
| <xsl:with-param name="aReportHeaderStyle" select="$reportHeaderStyle"/> | |
| </xsl:call-template> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:when> | |
| <!-- end of Appropriations formatting --> | |
| <xsl:when test="ancestor::rule"> | |
| <xsl:call-template name="displayHeaderRule"> | |
| <xsl:with-param name="aCurrElementStyle" select="$currElementStyle"/> | |
| </xsl:call-template> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:call-template name="displayTitleByStyle"> | |
| <xsl:with-param name="currElementStyle" select="$currElementStyle"/> | |
| </xsl:call-template> | |
| <xsl:choose> | |
| <xsl:when test="name(.) = 'header' and parent::committee-appointment-paragraph"> | |
| <xsl:text> </xsl:text> | |
| </xsl:when> | |
| <xsl:when test="name(.) = 'header'"> | |
| <xsl:text>.—</xsl:text> | |
| </xsl:when> | |
| </xsl:choose> | |
| <xsl:if | |
| test="not(following-sibling::*) and name(parent::quoted-block/child::*[2]) = 'after-quoted-block'"> | |
| <xsl:text>”</xsl:text> | |
| <xsl:value-of select="ancestor::quoted-block/child::after-quoted-block"/> | |
| </xsl:if> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:template> | |
| <xsl:template name="toPrintApprHeaderNoBreaks"> | |
| <xsl:if test="local-name() = 'header'"> | |
| <p style="text-align:center" class="lbexIndentZero"> | |
| <xsl:call-template name="PrintHeaderForAppropriations"/> | |
| </p> | |
| </xsl:if> | |
| <xsl:if test="local-name() != 'header'"> | |
| <xsl:call-template name="PrintHeaderForAppropriations"/> | |
| </xsl:if> | |
| </xsl:template> | |
| <xsl:template name="displayHeaderRule"> | |
| <xsl:param name="aCurrElementStyle"/> | |
| <xsl:choose> | |
| <xsl:when test="@display-inline = 'no-display-inline'"> | |
| <p style="text-align:center" class="lbexInitialCapTrad"> | |
| <xsl:if test="ancestor::quoted-block"> | |
| <xsl:call-template name="openQuotes"/> | |
| </xsl:if> | |
| <xsl:apply-templates/> | |
| </p> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <span class="lbexInitialCapTrad"> | |
| <xsl:if test="ancestor::quoted-block"> | |
| <xsl:call-template name="openQuotes"/> | |
| </xsl:if> | |
| <xsl:apply-templates/> | |
| </span> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:template> | |
| <!-- ******** DisplayHeader Section************************************ --> | |
| <xsl:template name="displayHeaderSection"> | |
| <xsl:param name="isSpecialPrinting"/> | |
| <xsl:param name="aCurrElementStyle"/> | |
| <xsl:choose> | |
| <xsl:when test="ancestor::quoted-block/@style = 'USC'"> | |
| <span class="lbexSectionlevelOLCBold"> | |
| <xsl:text> </xsl:text> | |
| <!--xsl:value-of select="."/--> | |
| <xsl:apply-templates/> | |
| <!--xsl:if | |
| test="not(following-sibling::*) and name(ancestor::quoted-block/child::*[2])='after-quoted-block'"> | |
| <xsl:text>”</xsl:text> | |
| <xsl:value-of select="ancestor::quoted-block/child::after-quoted-block"/> | |
| </xsl:if--> | |
| </span> | |
| <!-- TB 23Apr2009 --> | |
| <xsl:if test="not(following-sibling::text/@display-inline = 'yes-display-inline')"> | |
| <p/> | |
| </xsl:if> | |
| </xsl:when> | |
| <xsl:when test="ancestor::quoted-block[1]/@style = 'traditional'"> | |
| <!-- TB 24Sep2007 smallcap replaced by simplecap and b removed --> | |
| <xsl:choose> | |
| <xsl:when test="enum-in-header"> | |
| <!-- TB 3Jan2008 bug#767 stabilization --> | |
| <xsl:call-template name="printQuotedText"/> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <span class="lbexAllcapnormal"> | |
| <xsl:apply-templates/> | |
| </span> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| <p/> | |
| </xsl:when> | |
| <xsl:when | |
| test="($billType = 'traditional' and ancestor::*[@reported-display-style = 'boldface-roman'])"> | |
| <span class="lbexSectionLevelTradBold"> | |
| <xsl:text> </xsl:text> | |
| <xsl:apply-templates/> | |
| </span> | |
| </xsl:when> | |
| <xsl:when | |
| test="$aCurrElementStyle = 'traditional' or $aCurrElementStyle = 'appropriations'"> | |
| <!-- by TB Nov 2015 bug fixing #1406--> | |
| <xsl:choose> | |
| <xsl:when | |
| test="parent::section/@section-type = 'undesignated-section' and not(preceding-sibling::enum)"> | |
| <p class="lbexTocSectionIRCBold" align="center"> | |
| <xsl:text> </xsl:text> | |
| <xsl:call-template name="printCompHeader"/> | |
| </p> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <span class="lbexTocSectionIRCBold"> | |
| <xsl:text> </xsl:text> | |
| <xsl:call-template name="printCompHeader"/> | |
| </span> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| <!-- commented by TB Nov 2015 bug fixing #1406--> | |
| <!--span class="lbexTocSectionIRCBold"> | |
| <xsl:text> </xsl:text> | |
| <xsl:call-template name="printCompHeader"/> | |
| </span--> | |
| </xsl:when> | |
| <xsl:when | |
| test=" | |
| $billType = 'olc' and (parent::section/parent::legis-body[@added-display-style = 'boldface-roman'] or | |
| parent::section/parent::legis-body[@reported-display-style = 'boldface-roman'] or | |
| (parent::section and ancestor::*[@reported-display-style = 'boldface-roman']) or | |
| (parent::section and ancestor::*[@reported-display-style = 'boldface-italic'])) | |
| "> | |
| <span class="lbexSectionlevelOLCBold"> | |
| <xsl:text> </xsl:text> | |
| <xsl:value-of select="translate(., $lower, $upper)"/> | |
| <xsl:text>.</xsl:text> | |
| <xsl:if test="parent::subsection"> | |
| <xsl:text>—</xsl:text> | |
| </xsl:if> | |
| <!-- if there is only an enum and a header within a quoted block display a ". --> | |
| <xsl:if | |
| test="not(following-sibling::*) and name(ancestor::quoted-block/child::*[2]) = 'after-quoted-block'"> | |
| <!--xsl:text>”.</xsl:text--> | |
| <xsl:call-template name="closeQuotesByCondition"/> | |
| </xsl:if> | |
| </span> | |
| </xsl:when> | |
| <xsl:when test="ancestor::quoted-block[@style = 'tax']"> | |
| <span class="lbexSectionLevelIRCEx"> | |
| <xsl:text> </xsl:text> | |
| <!--xsl:value-of select="translate(.,$lower,$upper)"/--> | |
| <xsl:apply-templates/> | |
| <xsl:text>.</xsl:text> | |
| <!-- if there is only an enum and a header within a quoted block display a ". --> | |
| <xsl:if | |
| test="not(following-sibling::*) and name(ancestor::quoted-block/child::*[2]) = 'after-quoted-block'"> | |
| <!--xsl:text>”.</xsl:text--> | |
| <xsl:call-template name="closeQuotesByCondition"/> | |
| </xsl:if> | |
| </span> | |
| </xsl:when> | |
| <!--xsl:when test="(parent::section and ancestor::quoted-block[@other-style='nuclear']) or (parent::section and ancestor::quoted-block[@other-style='traditional-inline']) "--> | |
| <xsl:when | |
| test="$aCurrElementStyle = 'nuclear' or $aCurrElementStyle = 'traditional-inline'"> | |
| <span class="lbexSectionLevelOLCnuclear"> | |
| <xsl:text> </xsl:text> | |
| <!--xsl:value-of select="translate(.,$upper,$lower)"/--> | |
| <xsl:apply-templates/> | |
| <xsl:text>.</xsl:text> | |
| <!--TB 28Dec2007 Bug #767 --> | |
| <xsl:if | |
| test="$aCurrElementStyle = 'traditional-inline' and following-sibling::*/@display-inline = 'yes-display-inline'"> | |
| <span class="lbexSectionLevelOLCnuclear"> | |
| <xsl:text>—</xsl:text> | |
| <xsl:apply-templates select="text"/> | |
| <xsl:if test="quoted-block[@display-inline = 'yes-display-inline']"> | |
| <xsl:apply-templates select="quoted-block"/> | |
| </xsl:if> | |
| </span> | |
| </xsl:if> | |
| <!-- if there is only an enum and a header within a quoted block display a ". --> | |
| <xsl:if | |
| test="not(following-sibling::*) and name(ancestor::quoted-block/child::*[2]) = 'after-quoted-block'"> | |
| <!--xsl:text>”.</xsl:text--> | |
| <xsl:call-template name="closeQuotesByCondition"/> | |
| </xsl:if> | |
| </span> | |
| </xsl:when> | |
| <xsl:when test="contains($aCurrElementStyle, 'archaic') and $isSpecialPrinting = 'yes'"> | |
| <span class="lbexSectionTitleTrad"> | |
| <xsl:apply-templates/> | |
| </span> | |
| </xsl:when> | |
| <!-- TB 20Sep2007 EnumInHeader fixing divided for two peaces with enum in header and without enum in header --> | |
| <xsl:when test="enum-in-header"> | |
| <xsl:text> </xsl:text> | |
| <xsl:apply-templates/> | |
| <!--xsl:value-of select="translate(.,$lower,$upper)"/--> | |
| <xsl:text>.</xsl:text> | |
| <!-- if there is only an enum and a header within a quoted block display a ". --> | |
| <xsl:if | |
| test="not(following-sibling::*) and name(ancestor::quoted-block/child::*[2]) = 'after-quoted-block'"> | |
| <!--xsl:text>”.</xsl:text--> | |
| <xsl:call-template name="closeQuotesByCondition"/> | |
| </xsl:if> | |
| </xsl:when> | |
| <xsl:when test="contains($aCurrElementStyle, 'archaic')"> | |
| <span class="lbexSectionTitleTrad"> | |
| <xsl:text> </xsl:text> | |
| <!-- <xsl:value-of select="translate(.,$lower,$upper)"/> --> | |
| <!-- Attempting to correct Bug #766. nvargish 2007-11-07 --> | |
| <span class="lbexAllcap"> | |
| <xsl:apply-templates/> | |
| </span> | |
| <!-- Oct-28-2008 TB commented dot --> | |
| <xsl:variable name="toCloseQuotes"> | |
| <xsl:call-template name="isQuoteMustClose"/> | |
| </xsl:variable> | |
| <xsl:if | |
| test="(ancestor::quoted-block and $toCloseQuotes = 'false') or following-sibling::* or not(ancestor::quoted-block)"> | |
| <xsl:text>.</xsl:text> | |
| </xsl:if> | |
| <!-- if there is only an enum and a header within a quoted block display a ". --> | |
| <xsl:if | |
| test="(not(following-sibling::*) and name(ancestor::quoted-block/child::*[2]) = 'after-quoted-block') and not($aCurrElementStyle = 'OLC')"> | |
| <!--xsl:text>”.</xsl:text--> | |
| <xsl:call-template name="closeQuotesByCondition"/> | |
| </xsl:if> | |
| </span> | |
| </xsl:when> | |
| <xsl:when test="not(enum-in-header)"> | |
| <span class="lbexSectionlevelOLC"> | |
| <xsl:text> </xsl:text> | |
| <!-- <xsl:value-of select="translate(.,$lower,$upper)"/> --> | |
| <!-- Attempting to correct Bug #766. nvargish 2007-11-07 --> | |
| <!---codification #Bug 10573 Year 2020--> | |
| <xsl:choose> | |
| <xsl:when test="contains($aCurrElementStyle ,'codification')"> | |
| <xsl:apply-templates/> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <span class="lbexAllcap"> | |
| <xsl:apply-templates/> | |
| </span> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| <!-- Oct-28-2008 TB commented dot --> | |
| <xsl:variable name="toCloseQuotes"> | |
| <xsl:call-template name="isQuoteMustClose"/> | |
| </xsl:variable> | |
| <xsl:if | |
| test="(ancestor::quoted-block and $toCloseQuotes = 'false') or following-sibling::* or not(ancestor::quoted-block)"> | |
| <xsl:text>.</xsl:text> | |
| </xsl:if> | |
| <!-- if there is only an enum and a header within a quoted block display a ". --> | |
| <xsl:if | |
| test="(not(following-sibling::*) and name(ancestor::quoted-block/child::*[2]) = 'after-quoted-block') and not($aCurrElementStyle = 'OLC')"> | |
| <!--xsl:text>”.</xsl:text--> | |
| <xsl:call-template name="closeQuotesByCondition"/> | |
| </xsl:if> | |
| </span> | |
| </xsl:when> | |
| </xsl:choose> | |
| </xsl:template> | |
| <xsl:template name="printCompHeader"> | |
| <xsl:for-each select="node()"> | |
| <xsl:choose> | |
| <xsl:when test="local-name() = '' and not(child::*)"> | |
| <xsl:choose> | |
| <xsl:when test="contains(ancestor-or-self::quoted-block[1]/@other-style,'codification')"> | |
| <xsl:value-of select="."/> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:value-of select="translate(., $lower, $upper)"/> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:when> | |
| <xsl:when test="local-name() = ''"> | |
| <xsl:call-template name="printCompHeader"/> | |
| </xsl:when> | |
| <xsl:when test="local-name() = 'added-phrase' and not(child::*)"> | |
| <i class="lbexTextNeutral"> | |
| <xsl:value-of select="translate(., $lower, $upper)"/> | |
| </i> | |
| </xsl:when> | |
| <xsl:when test="local-name() = 'added-phrase'"> | |
| <i class="lbexTextNeutral"> | |
| <xsl:call-template name="printCompHeader"/> | |
| </i> | |
| </xsl:when> | |
| <xsl:when test="local-name() = 'deleted-phrase' and not(child::*)"> | |
| <xsl:choose> | |
| <xsl:when test="contains(@reported-display-style, 'brackets')"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>[</xsl:text> | |
| </span> | |
| <xsl:value-of select="translate(., $lower, $upper)"/> | |
| <span class="lbexBrakets"> | |
| <xsl:text>]</xsl:text> | |
| </span> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <span class="lbexTextStrikethrough"> | |
| <xsl:value-of select="translate(., $lower, $upper)"/> | |
| </span> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:when> | |
| <xsl:when test="local-name() = 'deleted-phrase'"> | |
| <span class="lbexTextStrikethrough"> | |
| <xsl:call-template name="printCompHeader"/> | |
| </span> | |
| </xsl:when> | |
| <xsl:when test="local-name() = 'enum-in-header'"> | |
| <xsl:value-of select="."/> | |
| </xsl:when> | |
| <xsl:when test="local-name() = 'superscript'"> | |
| <sup> | |
| <xsl:value-of select="."/> | |
| </sup> | |
| </xsl:when> | |
| <xsl:when test="local-name() = 'subscript'"> | |
| <sub> | |
| <xsl:value-of select="."/> | |
| </sub> | |
| </xsl:when> | |
| <xsl:when test="local-name() = 'inline-comment' and @display = 'yes'"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>[</xsl:text> | |
| </span> | |
| <xsl:call-template name="printCompHeader"/> | |
| <span class="lbexBrakets"> | |
| <xsl:text>]</xsl:text> | |
| </span> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:apply-templates/> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:for-each> | |
| </xsl:template> | |
| <xsl:template name="printCompHeaderCapitalize"> | |
| <xsl:for-each select="node()"> | |
| <xsl:if test="local-name() = 'inline-comment'"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>[</xsl:text> | |
| </span> | |
| </xsl:if> | |
| <xsl:choose> | |
| <xsl:when test="local-name() = '' and not(child::*)"> | |
| <xsl:call-template name="capitalizeReplacement"> | |
| <xsl:with-param name="aText" select="."/> | |
| </xsl:call-template> | |
| </xsl:when> | |
| <xsl:when test="local-name() = ''"> | |
| <xsl:call-template name="printCompHeaderCapitalize"/> | |
| </xsl:when> | |
| <xsl:when test="local-name() = 'added-phrase' and not(child::*)"> | |
| <i class="lbexTextNeutral"> | |
| <xsl:call-template name="capitalizeReplacement"> | |
| <xsl:with-param name="aText" select="."/> | |
| </xsl:call-template> | |
| </i> | |
| </xsl:when> | |
| <xsl:when test="local-name() = 'added-phrase'"> | |
| <i class="lbexTextNeutral"> | |
| <xsl:call-template name="printCompHeaderCapitalize"/> | |
| </i> | |
| </xsl:when> | |
| <xsl:when test="local-name() = 'deleted-phrase' and not(child::*)"> | |
| <span class="lbexTextStrikethrough"> | |
| <xsl:call-template name="capitalizeReplacement"> | |
| <xsl:with-param name="aText" select="."/> | |
| </xsl:call-template> | |
| </span> | |
| </xsl:when> | |
| <xsl:when test="local-name() = 'deleted-phrase'"> | |
| <span class="lbexTextStrikethrough"> | |
| <xsl:call-template name="printCompHeaderCapitalize"/> | |
| </span> | |
| </xsl:when> | |
| <xsl:when test="local-name() = 'enum-in-header'"> | |
| <xsl:value-of select="."/> | |
| </xsl:when> | |
| <xsl:when test="local-name() = 'superscript'"> | |
| <sup> | |
| <xsl:value-of select="."/> | |
| </sup> | |
| </xsl:when> | |
| <xsl:when test="local-name() = 'subscript'"> | |
| <sub> | |
| <xsl:value-of select="."/> | |
| </sub> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:apply-templates/> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| <xsl:if test="local-name() = 'inline-comment'"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>]</xsl:text> | |
| </span> | |
| </xsl:if> | |
| </xsl:for-each> | |
| </xsl:template> | |
| <!-- ******** DisplayHeader Title************************************ --> | |
| <xsl:template name="displayHeaderTitle"> | |
| <xsl:param name="aCurrElementStyle"/> | |
| <xsl:variable name="isTitleHeaderDisplayInline"> | |
| <xsl:choose> | |
| <xsl:when test="@display-inline = 'no-display-inline'"> | |
| <xsl:text>no</xsl:text> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:text>yes</xsl:text> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:variable> | |
| <xsl:choose> | |
| <xsl:when | |
| test="$billType = 'traditional' and parent::title[@reported-display-style = 'boldface-roman']"> | |
| <span class="lbexTitleLevelTradBold"> | |
| <xsl:if test="$isTitleHeaderDisplayInline = 'yes'"> | |
| <span style="text-align:center"> | |
| <xsl:text>—</xsl:text> | |
| </span> | |
| </xsl:if> | |
| <xsl:if test="$isTitleHeaderDisplayInline = 'no'"> | |
| <br/> | |
| </xsl:if> | |
| <xsl:value-of select="translate(., $lower, $upper)"/> | |
| <xsl:call-template name="closeQuotesByCondition"/> | |
| </span> | |
| </xsl:when> | |
| <xsl:when test="parent::title[@reported-display-style = 'boldface-roman']"> | |
| <span class="lbexTitleLevelOLC"> | |
| <xsl:if test="$isTitleHeaderDisplayInline = 'yes'"> | |
| <span style="text-align:center"> | |
| <xsl:text>—</xsl:text> | |
| </span> | |
| </xsl:if> | |
| <xsl:if test="$isTitleHeaderDisplayInline = 'no'"> | |
| <br/> | |
| </xsl:if> | |
| <xsl:value-of select="translate(., $lower, $upper)"/> | |
| <xsl:if | |
| test="not(following-sibling::*) and name(ancestor::quoted-block/child::*[2]) = 'after-quoted-block'"> | |
| <xsl:text>”</xsl:text> | |
| <xsl:value-of select="ancestor::quoted-block/child::after-quoted-block"/> | |
| </xsl:if> | |
| </span> | |
| </xsl:when> | |
| <xsl:when | |
| test="contains($aCurrElementStyle, 'traditional') or contains($aCurrElementStyle, 'archaic') or $aCurrElementStyle = 'appropriations'"> | |
| <xsl:choose> | |
| <xsl:when test="contains(parent::title/@reported-display-inline, 'brackets')"> | |
| <xsl:if test="$isTitleHeaderDisplayInline = 'yes'"> | |
| <span class="lbexChapterLevelOLCNuclear"> | |
| <span style="text-align:center"> | |
| <xsl:text>—</xsl:text> | |
| </span> | |
| <xsl:call-template name="printCompHeader"/> | |
| </span> | |
| <span class="lbexBrakets"> | |
| <xsl:text>]</xsl:text> | |
| </span> | |
| </xsl:if> | |
| <xsl:if test="$isTitleHeaderDisplayInline = 'no'"> | |
| <!-- TB Aug-13-2015 spacing --> | |
| <div class="lbexChapterLevelOLCNuclearIn"> | |
| <xsl:call-template name="printCompHeader"/> | |
| </div> | |
| <span class="lbexBrakets"> | |
| <xsl:text>]</xsl:text> | |
| </span> | |
| </xsl:if> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:if test="$isTitleHeaderDisplayInline = 'yes'"> | |
| <span class="lbexChapterLevelOLCNuclear"> | |
| <span style="text-align:center"> | |
| <xsl:text>—</xsl:text> | |
| </span> | |
| <xsl:call-template name="printCompHeader"/> | |
| </span> | |
| </xsl:if> | |
| <xsl:if test="$isTitleHeaderDisplayInline = 'no'"> | |
| <!-- TB Aug-13-2015 spacing --> | |
| <div class="lbexChapterLevelOLCNuclearIn"> | |
| <xsl:call-template name="printCompHeader"/> | |
| </div> | |
| </xsl:if> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| <!--<xsl:if test="$isTitleHeaderDisplayInline = 'no' " > | |
| <!-\- $isTitleHeaderDisplayInline = 'no' -\-> | |
| <span class="lbexChapterLevelOLCNuclear"> | |
| <span style="text-align:center"> | |
| <xsl:text>—</xsl:text> | |
| </span> | |
| <xsl:call-template name="printCompHeader"/> | |
| </span> | |
| </xsl:if>--> | |
| <!--<xsl:call-template name="printCompHeader"/>--> | |
| <xsl:if | |
| test="not(following-sibling::*) and name(ancestor::quoted-block/child::*[2]) = 'after-quoted-block'"> | |
| <xsl:text>”</xsl:text> | |
| <xsl:value-of | |
| select="translate(ancestor::quoted-block/child::after-quoted-block, $lower, $upper)" | |
| /> | |
| </xsl:if> | |
| </xsl:when> | |
| <xsl:when test="$aCurrElementStyle = 'USC' or $aCurrElementStyle = 'tax'"> | |
| <span class="lbexTitleLevelOLC"> | |
| <span style="text-align:center"> | |
| <xsl:text>—</xsl:text> | |
| </span> | |
| <!--xsl:value-of select="translate(.,$lower,$upper)"/--> | |
| <!--xsl:apply-templates/--> | |
| <xsl:call-template name="printCompHeader"/> | |
| <xsl:if | |
| test="not(following-sibling::*) and name(ancestor::quoted-block/child::*[2]) = 'after-quoted-block'"> | |
| <xsl:text>”</xsl:text> | |
| <xsl:value-of select="ancestor::quoted-block/child::after-quoted-block"/> | |
| </xsl:if> | |
| </span> | |
| </xsl:when> | |
| <xsl:when | |
| test="(parent::title/ancestor::quoted-block[@style = 'OLC']) and //committee-report"> | |
| <span class="lbexTitleLevelOLC"> | |
| <span style="text-align:center"> | |
| <xsl:text>—</xsl:text> | |
| </span> | |
| <xsl:apply-templates/> | |
| <xsl:if | |
| test="not(following-sibling::*) and name(ancestor::quoted-block/child::*[2]) = 'after-quoted-block'"> | |
| <xsl:text>”</xsl:text> | |
| <xsl:value-of select="ancestor::quoted-block/child::after-quoted-block"/> | |
| </xsl:if> | |
| </span> | |
| </xsl:when> | |
| <xsl:when test="//committee-report"> | |
| <span class="lbexTitleLevelTradEx"> | |
| <span style="text-align:center"> | |
| <xsl:text>—</xsl:text> | |
| </span> | |
| <!-- <xsl:value-of select="translate(.,$lower,$upper)"/> --> | |
| <!-- replaced above line with subsequent line to fix bug #766. nvargish 2007-11-02 --> | |
| <xsl:apply-templates/> | |
| <xsl:if | |
| test="not(following-sibling::*) and name(ancestor::quoted-block/child::*[2]) = 'after-quoted-block'"> | |
| <xsl:text>”</xsl:text> | |
| <xsl:value-of select="ancestor::quoted-block/child::after-quoted-block"/> | |
| </xsl:if> | |
| </span> | |
| </xsl:when> | |
| <xsl:when | |
| test="ancestor::amendment-block and ../@level-type = 'undesignated' and not(following-sibling::enum or preceding-sibling::enum) and ../header"> | |
| <span class="lbexTitleLevelOLC"> | |
| <span class="lbexAllcap"> | |
| <xsl:apply-templates/> | |
| </span> | |
| </span> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:if test="text() != ''"> | |
| <span class="lbexTitleLevelOLC"> | |
| <span style="text-align:center"> | |
| <xsl:text>—</xsl:text> | |
| </span> | |
| <span class="lbexAllcap"> | |
| <xsl:apply-templates/> | |
| </span> | |
| </span> | |
| </xsl:if> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:template> | |
| <!-- ******** DisplayHeader Subtitle************************************ --> | |
| <xsl:template name="displayHeaderSubtitle"> | |
| <xsl:param name="aCurrElementStyle"/> | |
| <xsl:choose> | |
| <xsl:when | |
| test="$billType = 'traditional' and parent::subtitle[@reported-display-style = 'boldface-roman']"> | |
| <span class="lbexSubTitleLevelTrad"> | |
| <span style="text-align:center"> | |
| <xsl:text>—</xsl:text> | |
| </span> | |
| <xsl:text>subtitle </xsl:text> | |
| <xsl:apply-templates/> | |
| </span> | |
| </xsl:when> | |
| <xsl:when | |
| test="contains($aCurrElementStyle, 'traditional') or contains($aCurrElementStyle, 'archaic') or $aCurrElementStyle = 'appropriations'"> | |
| <span class="lbexChapterLevelOLCNuclear"> | |
| <span style="text-align:center"> | |
| <xsl:text>—</xsl:text> | |
| </span> | |
| <xsl:call-template name="printCompHeaderCapitalize"/> | |
| <xsl:if | |
| test="not(following-sibling::*) and name(ancestor::quoted-block/child::*[2]) = 'after-quoted-block'"> | |
| <xsl:text>”</xsl:text> | |
| <xsl:value-of select="ancestor::quoted-block/child::after-quoted-block"/> | |
| </xsl:if> | |
| </span> | |
| </xsl:when> | |
| <xsl:when | |
| test=" | |
| (parent::subtitle[@reported-display-style = 'boldface-italic']/ancestor::quoted-block[@style = 'tax']) or | |
| (ancestor::*[@reported-display-style = 'boldface-italic'] and ancestor::quoted-block[@style = 'tax'])"> | |
| <span class="lbexSubTitleLevelIRCBold"> | |
| <span style="text-align:center"> | |
| <xsl:text>—</xsl:text> | |
| </span> | |
| <xsl:value-of select="."/> | |
| <xsl:if | |
| test="not(following-sibling::*) and name(ancestor::quoted-block/child::*[2]) = 'after-quoted-block'"> | |
| <xsl:text>”</xsl:text> | |
| <xsl:value-of select="ancestor::quoted-block/child::after-quoted-block"/> | |
| </xsl:if> | |
| </span> | |
| </xsl:when> | |
| <xsl:when test="ancestor::quoted-block and $aCurrElementStyle = 'tax'"> | |
| <span class="lbexSubTitleLevelOLC"> | |
| <span style="text-align:center"> | |
| <xsl:text>—</xsl:text> | |
| </span> | |
| <xsl:apply-templates/> | |
| <xsl:if | |
| test="not(following-sibling::*) and name(ancestor::quoted-block/child::*[2]) = 'after-quoted-block'"> | |
| <xsl:text>”</xsl:text> | |
| <xsl:value-of select="ancestor::quoted-block/child::after-quoted-block"/> | |
| </xsl:if> | |
| </span> | |
| </xsl:when> | |
| <xsl:when test="$aCurrElementStyle = 'traditional'"> | |
| <span class="lbexSubTitleLevelTrad"> | |
| <span style="text-align:center"> | |
| <xsl:text>—</xsl:text> | |
| </span> | |
| <xsl:apply-templates/> | |
| <xsl:if | |
| test="not(following-sibling::*) and name(ancestor::quoted-block/child::*[2]) = 'after-quoted-block'"> | |
| <xsl:text>”</xsl:text> | |
| <xsl:value-of select="ancestor::quoted-block/child::after-quoted-block"/> | |
| </xsl:if> | |
| </span> | |
| </xsl:when> | |
| <xsl:when | |
| test="ancestor::amendment-block and ../@level-type = 'undesignated' and not(following-sibling::enum or preceding-sibling::enum) and ../header"> | |
| <span class="lbexSubTitleLevelOLC"> | |
| <xsl:apply-templates/> | |
| </span> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <span class="lbexSubTitleLevelOLC"> | |
| <span style="text-align:center"> | |
| <xsl:text>—</xsl:text> | |
| </span> | |
| <xsl:apply-templates/> | |
| </span> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:template> | |
| <!-- ******** DisplayHeader Part************************************ --> | |
| <xsl:template name="displayHeaderPart"> | |
| <xsl:param name="aCurrElementStyle"/> | |
| <xsl:choose> | |
| <xsl:when | |
| test="$billType = 'traditional' and parent::part[@reported-display-style = 'boldface-roman']"> | |
| <span class="lbexTitleLevelTradBold"> | |
| <span style="text-align:center"> | |
| <xsl:text>—</xsl:text> | |
| </span> | |
| <xsl:value-of select="translate(., $lower, $upper)"/> | |
| <xsl:if | |
| test="not(following-sibling::*) and name(ancestor::quoted-block/child::*[2]) = 'after-quoted-block'"> | |
| <xsl:text>”</xsl:text> | |
| <xsl:value-of | |
| select="translate(ancestor::quoted-block/child::after-quoted-block, $lower, $upper)" | |
| /> | |
| </xsl:if> | |
| </span> | |
| </xsl:when> | |
| <xsl:when | |
| test=" | |
| (parent::part[@reported-display-style = 'boldface-roman'] and ancestor::quoted-block[@style = 'tax']) or | |
| (parent::part/parent::quoted-block[@style = 'tax']/ancestor::*[@reported-display-style = 'boldface-roman'])"> | |
| <span class="lbexChapterLevelOLCBold"> | |
| <span style="text-align:center"> | |
| <xsl:text>—</xsl:text> | |
| </span> | |
| <xsl:value-of select="translate(., $lower, $upper)"/> | |
| <xsl:if | |
| test="not(following-sibling::*) and name(ancestor::quoted-block/child::*[2]) = 'after-quoted-block'"> | |
| <xsl:text>”</xsl:text> | |
| <xsl:value-of | |
| select="translate(ancestor::quoted-block/child::after-quoted-block, $lower, $upper)" | |
| /> | |
| </xsl:if> | |
| </span> | |
| </xsl:when> | |
| <xsl:when test="parent::part[@reported-display-style = 'boldface-roman']"> | |
| <span class="lbexChapterLevelOLCBold"> | |
| <span style="text-align:center"> | |
| <xsl:text>—</xsl:text> | |
| </span> | |
| <xsl:value-of select="translate(., $lower, $upper)"/> | |
| <xsl:if | |
| test="not(following-sibling::*) and name(ancestor::quoted-block/child::*[2]) = 'after-quoted-block'"> | |
| <xsl:text>”</xsl:text> | |
| <xsl:value-of | |
| select="translate(ancestor::quoted-block/child::after-quoted-block, $lower, $upper)" | |
| /> | |
| </xsl:if> | |
| </span> | |
| </xsl:when> | |
| <xsl:when test="$aCurrElementStyle = 'USC'"> | |
| <span class="lbexSectionlevelOLCBold"> | |
| <span style="text-align:center"> | |
| <xsl:text>—</xsl:text> | |
| </span> | |
| <xsl:call-template name="printCompHeader"/> | |
| <xsl:if | |
| test="not(following-sibling::*) and name(ancestor::quoted-block/child::*[2]) = 'after-quoted-block'"> | |
| <xsl:text>”</xsl:text> | |
| <xsl:value-of | |
| select="translate(ancestor::quoted-block/child::after-quoted-block, $lower, $upper)" | |
| /> | |
| </xsl:if> | |
| </span> | |
| </xsl:when> | |
| <xsl:when | |
| test="contains($aCurrElementStyle, 'traditional') or contains($aCurrElementStyle, 'archaic') or $aCurrElementStyle = 'appropriations'"> | |
| <span class="lbexPartlevelTrad"> | |
| <span style="text-align:center"> | |
| <xsl:text>—</xsl:text> | |
| </span> | |
| <xsl:apply-templates/> | |
| </span> | |
| </xsl:when> | |
| <xsl:when | |
| test=" | |
| (parent::part[@reported-display-style = 'boldface-italic']/ancestor::quoted-block[@style = 'tax']) or | |
| (ancestor::*[@reported-display-style = 'boldface-italic'] and ancestor::quoted-block[@style = 'tax'])"> | |
| <span class="lbexChapterLevelOLCBold"> | |
| <span style="text-align:center"> | |
| <xsl:text>—</xsl:text> | |
| </span> | |
| <!--xsl:value-of select="translate(.,$lower,$upper)"/--> | |
| <xsl:call-template name="printCompHeader"/> | |
| <xsl:if | |
| test="not(following-sibling::*) and name(ancestor::quoted-block/child::*[2]) = 'after-quoted-block'"> | |
| <xsl:text>”</xsl:text> | |
| <xsl:value-of select="ancestor::quoted-block/child::after-quoted-block"/> | |
| </xsl:if> | |
| </span> | |
| </xsl:when> | |
| <xsl:when test="ancestor::quoted-block and $aCurrElementStyle = 'tax'"> | |
| <span class="lbexPartLevelIRCEx"> | |
| <span style="text-align:center"> | |
| <xsl:text>—</xsl:text> | |
| </span> | |
| <xsl:apply-templates/> | |
| </span> | |
| </xsl:when> | |
| <xsl:when | |
| test="ancestor::amendment-block and ../@level-type = 'undesignated' and not(following-sibling::enum or preceding-sibling::enum) and ../header"> | |
| <span class="lbexSectionlevelOLCBold"> | |
| <span class="lbexAllcap"> | |
| <xsl:apply-templates/> | |
| </span> | |
| </span> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <span class="lbexSectionlevelOLCBold"> | |
| <span style="text-align:center"> | |
| <xsl:text>—</xsl:text> | |
| </span> | |
| <xsl:choose> | |
| <xsl:when test="contains($aCurrElementStyle ,'codification')"> | |
| <xsl:apply-templates/> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <span class="lbexAllcap"> | |
| <xsl:apply-templates/> | |
| </span> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </span> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:template> | |
| <!-- ******** DisplayHeader Subpart************************************ --> | |
| <xsl:template name="displayHeaderSubpart"> | |
| <xsl:param name="aCurrElementStyle"/> | |
| <xsl:choose> | |
| <xsl:when | |
| test="$billType = 'traditional' and parent::subpart[@reported-display-style = 'boldface-roman']"> | |
| <span class="lbexSubPartLevelTradBold"> | |
| <span style="text-align:center"> | |
| <xsl:text>—</xsl:text> | |
| </span> | |
| <xsl:value-of select="."/> | |
| <xsl:if | |
| test="not(following-sibling::*) and name(ancestor::quoted-block/child::*[2]) = 'after-quoted-block'"> | |
| <xsl:text>”</xsl:text> | |
| <xsl:value-of select="ancestor::quoted-block/child::after-quoted-block"/> | |
| </xsl:if> | |
| </span> | |
| </xsl:when> | |
| <xsl:when test="parent::subpart[@reported-display-style = 'boldface-roman']"> | |
| <span class="lbexSubTitleLevelOLCBold"> | |
| <span style="text-align:center"> | |
| <xsl:text>—</xsl:text> | |
| </span> | |
| <xsl:value-of select="."/> | |
| <xsl:if | |
| test="not(following-sibling::*) and name(ancestor::quoted-block/child::*[2]) = 'after-quoted-block'"> | |
| <xsl:text>”</xsl:text> | |
| <xsl:value-of select="ancestor::quoted-block/child::after-quoted-block"/> | |
| </xsl:if> | |
| </span> | |
| </xsl:when> | |
| <xsl:when | |
| test="ancestor::quoted-block[@style = 'tax']/ancestor::*[@reported-display-style = 'boldface-roman']"> | |
| <span class="lbexSubTitleLevelOLCBold"> | |
| <span style="text-align:center"> | |
| <xsl:text>—</xsl:text> | |
| </span> | |
| <xsl:value-of select="."/> | |
| <xsl:if | |
| test="not(following-sibling::*) and name(ancestor::quoted-block/child::*[2]) = 'after-quoted-block'"> | |
| <xsl:text>”</xsl:text> | |
| <xsl:value-of select="ancestor::quoted-block/child::after-quoted-block"/> | |
| </xsl:if> | |
| </span> | |
| </xsl:when> | |
| <xsl:when | |
| test="contains($aCurrElementStyle, 'traditional') or contains($aCurrElementStyle, 'archaic') or $aCurrElementStyle = 'appropriations'"> | |
| <span class="lbexChapterLevelOLCNuclear"> | |
| <span style="text-align:center"> | |
| <xsl:text>—</xsl:text> | |
| </span> | |
| <xsl:call-template name="printCompHeaderCapitalize"/> | |
| <xsl:if | |
| test="not(following-sibling::*) and name(ancestor::quoted-block/child::*[2]) = 'after-quoted-block'"> | |
| <xsl:text>”</xsl:text> | |
| <xsl:value-of select="ancestor::quoted-block/child::after-quoted-block"/> | |
| </xsl:if> | |
| </span> | |
| </xsl:when> | |
| <xsl:when | |
| test="(ancestor::*[@reported-display-style = 'boldface-italic'] and ancestor::quoted-block[@style = 'tax'])"> | |
| <span class="lbexSubTitleLevelOLCBold"> | |
| <span style="text-align:center"> | |
| <xsl:text>—</xsl:text> | |
| </span> | |
| <xsl:value-of select="."/> | |
| <xsl:if | |
| test="not(following-sibling::*) and name(ancestor::quoted-block/child::*[2]) = 'after-quoted-block'"> | |
| <xsl:text>”</xsl:text> | |
| <xsl:value-of select="ancestor::quoted-block/child::after-quoted-block"/> | |
| </xsl:if> | |
| </span> | |
| </xsl:when> | |
| <xsl:when test="ancestor::quoted-block and $aCurrElementStyle = 'tax'"> | |
| <span class="lbexSubpartLevelOLC"> | |
| <span style="text-align:center"> | |
| <xsl:text>—</xsl:text> | |
| </span> | |
| <xsl:apply-templates/> | |
| <xsl:if | |
| test="not(following-sibling::*) and name(ancestor::quoted-block/child::*[2]) = 'after-quoted-block'"> | |
| <xsl:text>”</xsl:text> | |
| <xsl:value-of select="ancestor::quoted-block/child::after-quoted-block"/> | |
| </xsl:if> | |
| </span> | |
| </xsl:when> | |
| <xsl:when | |
| test="ancestor::amendment-block and ../@level-type = 'undesignated' and not(following-sibling::enum or preceding-sibling::enum) and ../header"> | |
| <span class="lbexSubpartLevelOLC"> | |
| <xsl:apply-templates/> | |
| </span> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <span class="lbexSubpartLevelOLC"> | |
| <span style="text-align:center"> | |
| <xsl:text>—</xsl:text> | |
| </span> | |
| <!-- replaced above line with following line to fix Bug #766. nvargish 2007-11-02 --> | |
| <xsl:apply-templates/> | |
| </span> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:template> | |
| <!-- ***************Display Header Chapter**************************************************** --> | |
| <xsl:template name="displayHeaderChapter"> | |
| <xsl:param name="aCurrElementStyle"/> | |
| <xsl:choose> | |
| <xsl:when | |
| test="($billType = 'traditional' and parent::chapter[@reported-display-style = 'boldface-roman'])"> | |
| <span class="lbexSubChapterLevelOLC"> | |
| <span style="text-align:center"> | |
| <xsl:text>—</xsl:text> | |
| </span> | |
| <xsl:text>chapter </xsl:text> | |
| <!--xsl:value-of select="."/--> | |
| <xsl:apply-templates/> | |
| <xsl:call-template name="closeQuotesByCondition"/> | |
| </span> | |
| </xsl:when> | |
| <xsl:when test="parent::chapter[@reported-display-style = 'boldface-roman']"> | |
| <span class="lbexChapterLevelOLCBold"> | |
| <span style="text-align:center"> | |
| <xsl:text>—</xsl:text> | |
| </span> | |
| <!--xsl:value-of select="translate(.,$lower,$upper)"/--> | |
| <xsl:call-template name="printCompHeader"/> | |
| <xsl:if | |
| test="not(following-sibling::*) and name(ancestor::quoted-block/child::*[2]) = 'after-quoted-block'"> | |
| <xsl:text>”</xsl:text> | |
| <xsl:value-of select="ancestor::quoted-block/child::after-quoted-block"/> | |
| </xsl:if> | |
| </span> | |
| </xsl:when> | |
| <xsl:when test="ancestor::*[@reported-display-style = 'boldface-italic']"> | |
| <span class="lbexChapterLevelOLCBold"> | |
| <xsl:value-of select="translate('—', $lower, $upper)"/> | |
| <xsl:value-of select="translate(., $lower, $upper)"/> | |
| </span> | |
| </xsl:when> | |
| <xsl:when test="ancestor::quoted-block/@style = 'tax'"> | |
| <span class="lbexChapterLevelIRCEx"> | |
| <xsl:value-of select="translate('—', $lower, $upper)"/> | |
| <!--xsl:value-of select="translate(.,$lower,$upper)"/--> | |
| <xsl:apply-templates/> | |
| </span> | |
| </xsl:when> | |
| <xsl:when test="$aCurrElementStyle = 'traditional'"> | |
| <span class="lbexChapterLevelTrad"> | |
| <span style="text-align:center"> | |
| <xsl:text>—</xsl:text> | |
| </span> | |
| <!--xsl:value-of select="."/--> | |
| <xsl:apply-templates/> | |
| <xsl:if | |
| test="not(following-sibling::*) and name(ancestor::quoted-block/child::*[2]) = 'after-quoted-block'"> | |
| <xsl:text>”</xsl:text> | |
| <xsl:value-of select="ancestor::quoted-block/child::after-quoted-block"/> | |
| </xsl:if> | |
| </span> | |
| </xsl:when> | |
| <xsl:when test="$aCurrElementStyle = 'USC'"> | |
| <span class="lbexSectionlevelOLCBold"> | |
| <span style="text-align:center"> | |
| <xsl:text>—</xsl:text> | |
| </span> | |
| <xsl:call-template name="printCompHeader"/> | |
| <xsl:if | |
| test="not(following-sibling::*) and name(ancestor::quoted-block/child::*[2]) = 'after-quoted-block'"> | |
| <xsl:text>”</xsl:text> | |
| <xsl:value-of select="ancestor::quoted-block/child::after-quoted-block"/> | |
| </xsl:if> | |
| </span> | |
| </xsl:when> | |
| <xsl:when test="(parent::chapter/ancestor::quoted-block[@other-style = 'nuclear'])"> | |
| <span class="lbexTitleLevelTradEx"> | |
| <span style="text-align:center"> | |
| <xsl:text>—</xsl:text> | |
| </span> | |
| <!-- TB 23Amy2008 --> | |
| <!--xsl:value-of select="translate(.,$lower,$upper)"/--> | |
| <xsl:apply-templates/> | |
| <xsl:if | |
| test="not(following-sibling::*) and name(ancestor::quoted-block/child::*[2]) = 'after-quoted-block'"> | |
| <xsl:text>”</xsl:text> | |
| <xsl:value-of select="ancestor::quoted-block/child::after-quoted-block"/> | |
| </xsl:if> | |
| </span> | |
| </xsl:when> | |
| <xsl:when | |
| test="$aCurrElementStyle = 'traditional-inline' or $aCurrElementStyle = 'appropriations'"> | |
| <span class="lbexTitleLevelTradEx"> | |
| <span style="text-align:center"> | |
| <xsl:text>—</xsl:text> | |
| </span> | |
| <xsl:apply-templates/> | |
| <xsl:if | |
| test="not(following-sibling::*) and name(ancestor::quoted-block/child::*[2]) = 'after-quoted-block'"> | |
| <xsl:text>”</xsl:text> | |
| <xsl:value-of select="ancestor::quoted-block/child::after-quoted-block"/> | |
| </xsl:if> | |
| </span> | |
| </xsl:when> | |
| <xsl:when | |
| test="ancestor::amendment-block and ../@level-type = 'undesignated' and not(following-sibling::enum or preceding-sibling::enum) and ../header"> | |
| <span class="lbexChapterLevelOLC"> | |
| <xsl:call-template name="printCompHeader"/> | |
| </span> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <span class="lbexChapterLevelOLC"> | |
| <span style="text-align:center"> | |
| <xsl:text>—</xsl:text> | |
| </span> | |
| <!-- <xsl:value-of select="translate(.,$lower,$upper)"/> --> | |
| <xsl:call-template name="printCompHeader"/> | |
| </span> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:template> | |
| <!-- ***************Display Header Subchapter**************************************************** --> | |
| <xsl:template name="displayHeaderSubchapter"> | |
| <xsl:param name="aCurrElementStyle"/> | |
| <xsl:choose> | |
| <xsl:when | |
| test="($billType = 'traditional' and parent::subchapter[@reported-display-style = 'boldface-roman'])"> | |
| <span class="lbexSubChapterLevelTradBold"> | |
| <span style="text-align:center"> | |
| <xsl:text>—</xsl:text> | |
| </span> | |
| <xsl:value-of select="."/> | |
| <xsl:if | |
| test="not(following-sibling::*) and name(ancestor::quoted-block/child::*[2]) = 'after-quoted-block'"> | |
| <xsl:text>”</xsl:text> | |
| <xsl:value-of select="ancestor::quoted-block/child::after-quoted-block"/> | |
| </xsl:if> | |
| </span> | |
| </xsl:when> | |
| <xsl:when | |
| test="$billType = 'olc' and parent::subchapter[@reported-display-style = 'boldface-roman']"> | |
| <span class="lbexSubTitleLevelOLCBold"> | |
| <span style="text-align:center"> | |
| <xsl:text>—</xsl:text> | |
| </span> | |
| <xsl:value-of select="."/> | |
| <xsl:if | |
| test="not(following-sibling::*) and name(ancestor::quoted-block/child::*[2]) = 'after-quoted-block'"> | |
| <xsl:text>”</xsl:text> | |
| <xsl:value-of select="ancestor::quoted-block/child::after-quoted-block"/> | |
| </xsl:if> | |
| </span> | |
| </xsl:when> | |
| <xsl:when test="$aCurrElementStyle = 'archaic-paragraph'"> | |
| <span class="lbexSubChapterLevelTradEx"> | |
| <span style="text-align:center"> | |
| <xsl:text>—</xsl:text> | |
| </span> | |
| <!-- TB subchapter with Enum must apply templates --> | |
| <!--xsl:value-of select="translate(.,$upper,$lower)"/--> | |
| <xsl:apply-templates/> | |
| <xsl:if | |
| test="not(following-sibling::*) and name(ancestor::quoted-block/child::*[2]) = 'after-quoted-block'"> | |
| <xsl:text>”</xsl:text> | |
| <xsl:value-of select="ancestor::quoted-block/child::after-quoted-block"/> | |
| </xsl:if> | |
| </span> | |
| </xsl:when> | |
| <xsl:when | |
| test=" | |
| (parent::subchapter[@reported-display-style = 'boldface-roman'] and ancestor::quoted-block[@style = 'tax']) or | |
| parent::subchapter/parent::quoted-block[@style = 'tax']/ancestor::*[@reported-display-style = 'boldface-roman'] | |
| or (parent::subchapter and ancestor::*[@reported-display-style = 'boldface-italic'])"> | |
| <span class="lbexSubTitleLevelOLCBold"> | |
| <span style="text-align:center"> | |
| <xsl:text>—</xsl:text> | |
| </span> | |
| <xsl:value-of select="."/> | |
| <xsl:if | |
| test="not(following-sibling::*) and name(ancestor::quoted-block/child::*[2]) = 'after-quoted-block'"> | |
| <xsl:text>”</xsl:text> | |
| <xsl:value-of select="ancestor::quoted-block/child::after-quoted-block"/> | |
| </xsl:if> | |
| </span> | |
| </xsl:when> | |
| <xsl:when | |
| test="$aCurrElementStyle = 'traditional' or contains($aCurrElementStyle, 'archaic')"> | |
| <span class="lbexChapterLevelOLCNuclear"> | |
| <span style="text-align:center"> | |
| <xsl:text>—</xsl:text> | |
| </span> | |
| <!--xsl:value-of select="translate(.,$lower,$upper)"/--> | |
| <!--xsl:apply-templates/--> | |
| <xsl:call-template name="printCompHeader"/> | |
| <xsl:if | |
| test="not(following-sibling::*) and name(ancestor::quoted-block/child::*[2]) = 'after-quoted-block'"> | |
| <xsl:text>”</xsl:text> | |
| <xsl:value-of select="ancestor::quoted-block/child::after-quoted-block"/> | |
| </xsl:if> | |
| </span> | |
| </xsl:when> | |
| <xsl:when test="($billType = 'traditional' and ancestor::quoted-block/@style = 'OLC')"> | |
| <span class="lbexSubChapterLevelOLC"> | |
| <span style="text-align:center"> | |
| <xsl:text>—</xsl:text> | |
| </span> | |
| <xsl:value-of select="."/> | |
| <xsl:if | |
| test="not(following-sibling::*) and name(ancestor::quoted-block/child::*[2]) = 'after-quoted-block'"> | |
| <xsl:text>”</xsl:text> | |
| <xsl:value-of select="ancestor::quoted-block/child::after-quoted-block"/> | |
| </xsl:if> | |
| </span> | |
| </xsl:when> | |
| <!--xsl:when test="ancestor::quoted-block/@style='tax'"--> | |
| <xsl:when test="ancestor::quoted-block and $aCurrElementStyle = 'tax'"> | |
| <span class="lbexSubChapterLevelOLC"> | |
| <span style="text-align:center"> | |
| <xsl:text>—</xsl:text> | |
| </span> | |
| <!--xsl:value-of select="."/--> | |
| <xsl:apply-templates/> | |
| </span> | |
| </xsl:when> | |
| <xsl:when test="$aCurrElementStyle = 'USC'"> | |
| <span class="lbexSectionLevelTradBold"> | |
| <span style="text-align:center"> | |
| <xsl:text>—</xsl:text> | |
| </span> | |
| <!--xsl:value-of select="translate(.,$lower,$upper)"/--> | |
| <xsl:call-template name="printCompHeader"/> | |
| </span> | |
| </xsl:when> | |
| <xsl:when | |
| test="$aCurrElementStyle = 'traditional-inline' or $aCurrElementStyle = 'appropriations'"> | |
| <span class="lbexSubTitleLevelTrad"> | |
| <span style="text-align:center"> | |
| <xsl:text>—</xsl:text> | |
| </span> | |
| <!-- <xsl:value-of select="."/> --> | |
| <xsl:apply-templates/> | |
| </span> | |
| </xsl:when> | |
| <xsl:when test="(parent::subchapter/ancestor::quoted-block[@other-style = 'nuclear'])"> | |
| <span class="lbexSubChapterLevelOLC"> | |
| <span style="text-align:center"> | |
| <xsl:text>—</xsl:text> | |
| </span> | |
| <!-- <xsl:value-of select="."/> --> | |
| <xsl:apply-templates/> | |
| </span> | |
| </xsl:when> | |
| <xsl:when | |
| test="ancestor::amendment-block and ../@level-type = 'undesignated' and not(following-sibling::enum or preceding-sibling::enum) and ../header"> | |
| <span class="lbexSubChapterLevelOLC"> | |
| <xsl:apply-templates/> | |
| </span> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <span class="lbexSubChapterLevelOLC"> | |
| <span style="text-align:center"> | |
| <xsl:text>—</xsl:text> | |
| </span> | |
| <!-- <xsl:value-of select="."/> --> | |
| <xsl:apply-templates/> | |
| </span> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:template> | |
| <xsl:template name="isOpenAlreadyExist"> | |
| <xsl:choose> | |
| <xsl:when | |
| test=" | |
| contains(@reported-display-style, 'brackets') or contains(@commented, 'yes') or | |
| contains(parent::appropriations-intermediate/@reported-display-style, 'brackets') or contains(parent::appropriations-small/@reported-display-style, 'brackets') or contains(parent::appropriations-major/@reported-display-style, 'brackets') | |
| or contains(ancestor-or-self::appropriations-intermediate/@commented, 'yes') or contains(ancestor-or-self::appropriations-small/@commented, 'yes') or contains(ancestor-or-self::appropriations-major/@commented, 'yes')"> | |
| <xsl:text>First</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="contains(ancestor::title/@reported-display-style, 'brackets')"> | |
| <xsl:text>Second</xsl:text> | |
| </xsl:when> | |
| </xsl:choose> | |
| </xsl:template> | |
| <!-- ***************Print Header for Appropriations********************** --> | |
| <xsl:template name="PrintHeaderForAppropriations"> | |
| <xsl:variable name="appropReportedStyle"> | |
| <xsl:call-template name="getAppropriationReportingStyle"/> | |
| </xsl:variable> | |
| <xsl:variable name="isToCloseTheBrackets"> | |
| <xsl:call-template name="toCloseTheBrakets"/> | |
| </xsl:variable> | |
| <xsl:choose> | |
| <xsl:when test="$appropReportedStyle = 'italic'"> | |
| <xsl:if test="ancestor::appropriations-major"> | |
| <span class="lbexHeaderAppropMajorItalic"> | |
| <!-- TB Sep2001 MultBrowsers italic tag inserted --> | |
| <i class="lbexTextNeutral"> | |
| <xsl:call-template name="ActualPrintAppropriationHeaderElement"/> | |
| </i> | |
| </span> | |
| </xsl:if> | |
| <xsl:if test="ancestor::appropriations-intermediate"> | |
| <span class="lbexHeaderAppropIntermediateItalic"> | |
| <!-- TB Sep2001 MultBrowsers italic tag inserted --> | |
| <i class="lbexTextNeutral"> | |
| <xsl:call-template name="ActualPrintAppropriationHeaderElement"/> | |
| </i> | |
| </span> | |
| </xsl:if> | |
| <xsl:if test="ancestor::appropriations-small"> | |
| <span class="lbexHeaderAppropSmallItalic"> | |
| <!-- TB Sep2001 MultBrowsers italic tag inserted --> | |
| <i class="lbexTextNeutral"> | |
| <xsl:call-template name="ActualPrintAppropriationHeaderElement"/> | |
| </i> | |
| </span> | |
| </xsl:if> | |
| </xsl:when> | |
| <xsl:when test="$appropReportedStyle = 'strikethrough'"> | |
| <xsl:if test="ancestor::appropriations-major"> | |
| <span class="lbexHeaderAppropMajor"> | |
| <span class="lbexTextStrikethrough"> | |
| <xsl:call-template name="ActualPrintAppropriationHeaderElement"/> | |
| </span> | |
| </span> | |
| </xsl:if> | |
| <xsl:if test="ancestor::appropriations-intermediate"> | |
| <span class="lbexHeaderAppropIntermediate"> | |
| <span class="lbexTextStrikethrough"> | |
| <xsl:call-template name="ActualPrintAppropriationHeaderElement"/> | |
| </span> | |
| </span> | |
| </xsl:if> | |
| <xsl:if test="ancestor::appropriations-small"> | |
| <span class="lbexHeaderAppropSmall"> | |
| <span class="lbexTextStrikethrough"> | |
| <xsl:call-template name="ActualPrintAppropriationHeaderElement"/> | |
| </span> | |
| </span> | |
| </xsl:if> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:if test="ancestor::appropriations-major"> | |
| <span class="lbexHeaderAppropMajor"> | |
| <!--xsl:apply-templates/--> | |
| <xsl:call-template name="ActualPrintAppropriationHeaderElement"/> | |
| </span> | |
| </xsl:if> | |
| <xsl:if test="ancestor::appropriations-intermediate"> | |
| <span class="lbexHeaderAppropIntermediate"> | |
| <!--xsl:apply-templates/--> | |
| <xsl:call-template name="ActualPrintAppropriationHeaderElement"/> | |
| </span> | |
| </xsl:if> | |
| <xsl:if test="ancestor::appropriations-small"> | |
| <span class="lbexHeaderAppropSmall"> | |
| <!--xsl:apply-templates/--> | |
| <xsl:call-template name="ActualPrintAppropriationHeaderElement"/> | |
| </span> | |
| </xsl:if> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:template> | |
| <!-- *********************Appropriation Element************************** --> | |
| <xsl:template name="ActualPrintAppropriationElement"> | |
| <!-- print opening brackets or italic style--> | |
| <xsl:variable name="appropReportedStyle"> | |
| <xsl:call-template name="getAppropriationReportingStyle"/> | |
| </xsl:variable> | |
| <xsl:choose> | |
| <xsl:when test="$appropReportedStyle = 'bold-brackets'"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>[</xsl:text> | |
| </span> | |
| </xsl:when> | |
| </xsl:choose> | |
| <xsl:choose> | |
| <xsl:when test="$appropReportedStyle = 'strikethrough'"> | |
| <span class="lbexTextStrikethrough"> | |
| <xsl:apply-templates/> | |
| </span> | |
| </xsl:when> | |
| <!--xsl:when test="not(child::*)"> | |
| <xsl:value-of select="."/> | |
| </xsl:when--> | |
| <xsl:otherwise> | |
| <xsl:apply-templates/> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| <xsl:variable name="isToCloseTheBrackets"> | |
| <xsl:call-template name="toCloseTheBrakets"/> | |
| </xsl:variable> | |
| <xsl:choose> | |
| <!-- Check in aditional that this is the last element in deleted block --> | |
| <xsl:when | |
| test="$appropReportedStyle = 'bold-brackets' and $isToCloseTheBrackets = 'yes'"> | |
| <xsl:choose> | |
| <xsl:when test="child::list/@changed = 'not-changed' or child::text"> | |
| <span class="lbexBrakets"> | |
| <xsl:text/> | |
| </span> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <span class="lbexBrakets"> | |
| <xsl:text>]</xsl:text> | |
| </span> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:when> | |
| </xsl:choose> | |
| </xsl:template> | |
| <xsl:template name="ActualPrintAppropriationHeaderElement"> | |
| <!-- print opening brackets or italic style--> | |
| <xsl:variable name="appropReportedStyle"> | |
| <xsl:call-template name="getAppropriationReportingStyle"/> | |
| </xsl:variable> | |
| <xsl:variable name="isToCloseTheBrackets"> | |
| <xsl:call-template name="toCloseTheBrakets"/> | |
| </xsl:variable> | |
| <xsl:variable name="isToOpenTheBrackets"> | |
| <xsl:call-template name="isOpenAlreadyExist"/> | |
| </xsl:variable> | |
| <xsl:choose> | |
| <xsl:when | |
| test="((contains($appropReportedStyle, 'brackets')) or (ancestor::appropriations-small/@commented = 'yes' or ancestor::appropriations-intermediate/@commented = 'yes' or ancestor::appropriations-major/@commented = 'yes'))"> | |
| <xsl:choose> | |
| <xsl:when test="(child::added-phrase or child::deleted-phrase)"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>[</xsl:text> | |
| </span> | |
| <xsl:apply-templates/> | |
| <xsl:if test="$isToCloseTheBrackets = 'yes'"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>]</xsl:text> | |
| </span> | |
| </xsl:if> | |
| </xsl:when> | |
| <xsl:when test="$isToOpenTheBrackets = 'First'"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>[</xsl:text> | |
| </span> | |
| <xsl:call-template name="convertToNeededCase"> | |
| <xsl:with-param name="localElementName">header</xsl:with-param> | |
| </xsl:call-template> | |
| <xsl:if test="$isToCloseTheBrackets = 'yes'"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>]</xsl:text> | |
| </span> | |
| </xsl:if> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:call-template name="convertToNeededCase"> | |
| <xsl:with-param name="localElementName">header</xsl:with-param> | |
| </xsl:call-template> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:when> | |
| <xsl:when test="$appropReportedStyle = 'strikethrough'"> | |
| <span class="lbexTextStrikethrough"> | |
| <!-- TB 20Feb2009 --> | |
| <!--xsl:apply-templates/--> | |
| <xsl:call-template name="convertToNeededCase"> | |
| <xsl:with-param name="localElementName">header</xsl:with-param> | |
| </xsl:call-template> | |
| </span> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:choose> | |
| <xsl:when | |
| test="child::added-phrase[@reported-display-style != ''] or child::deleted-phrase[@reported-display-style != '']"> | |
| <xsl:apply-templates/> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <!-- TB 20Feb2009 --> | |
| <!--xsl:apply-templates/--> | |
| <xsl:call-template name="convertToNeededCase"> | |
| <xsl:with-param name="localElementName">header</xsl:with-param> | |
| </xsl:call-template> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:template> | |
| <!-- TB 20Feb2009 Appropriation header printing fixing. In IE the style for lower case are not printed correctly - CSS and IE problem--> | |
| <xsl:template name="convertToNeededCase"> | |
| <xsl:param name="localElementName"/> | |
| <xsl:variable name="theActualTextToPrint"> | |
| <xsl:choose> | |
| <xsl:when test="not(child::*)"> | |
| <xsl:value-of select="."/> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:apply-templates/> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:variable> | |
| <xsl:choose> | |
| <xsl:when test="ancestor::appropriations-major"> | |
| <xsl:choose> | |
| <xsl:when test="$localElementName = 'header'"> | |
| <xsl:value-of select="translate($theActualTextToPrint, $lower, $upper)"/> | |
| </xsl:when> | |
| <xsl:when test="$localElementName = 'subheader'"> | |
| <xsl:value-of select="translate($theActualTextToPrint, $upper, $lower)"/> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:value-of select="$theActualTextToPrint"/> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:when> | |
| <xsl:when test="ancestor::appropriations-intermediate"> | |
| <xsl:choose> | |
| <xsl:when test="$localElementName = 'header'"> | |
| <xsl:call-template name="capitalizeReplacement"> | |
| <xsl:with-param name="aText" select="$theActualTextToPrint"/> | |
| </xsl:call-template> | |
| </xsl:when> | |
| <xsl:when test="$localElementName = 'subheader'"> | |
| <xsl:value-of select="translate($theActualTextToPrint, $upper, $lower)"/> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:value-of select="$theActualTextToPrint"/> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:when> | |
| <xsl:when test="ancestor::appropriations-small"> | |
| <xsl:value-of select="translate($theActualTextToPrint, $upper, $lower)"/> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:value-of select="$theActualTextToPrint"/> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:template> | |
| <!-- ***********Nearest Parent reported style********************** --> | |
| <xsl:template name="getAppropriationReportingStyle"> | |
| <xsl:choose> | |
| <xsl:when test="@changed = 'not-changed'"> | |
| <xsl:text/> | |
| </xsl:when> | |
| <xsl:when | |
| test="@reported-display-style != '' and not(ancestor::*[@reported-display-style])"> | |
| <xsl:value-of select="@reported-display-style"/> | |
| </xsl:when> | |
| <xsl:when | |
| test="not(@reported-display-style) and not(@changed) and parent::*/@changed = 'not-changed'"> | |
| <xsl:text/> | |
| </xsl:when> | |
| <xsl:when | |
| test="not(@changed) and not(parent::*/@changed) and ancestor::*[@changed = 'not-changed']"> | |
| <xsl:choose> | |
| <xsl:when test="contains(ancestor::*/@reported-display-style, 'brackets')"> | |
| <xsl:value-of | |
| select="ancestor::*[@reported-display-style != ''][1]/@reported-display-style" | |
| /> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:text/> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:when> | |
| <xsl:when test="ancestor::appropriations-major/@reported-display-style"> | |
| <xsl:value-of select="ancestor::appropriations-major/@reported-display-style"/> | |
| </xsl:when> | |
| <xsl:when test="ancestor::appropriations-intermediate/@reported-display-style"> | |
| <xsl:value-of select="ancestor::appropriations-intermediate/@reported-display-style" | |
| /> | |
| </xsl:when> | |
| <xsl:when test="ancestor::appropriations-small/@reported-display-style"> | |
| <xsl:value-of select="ancestor::appropriations-small/@reported-display-style"/> | |
| </xsl:when> | |
| <xsl:when test="local-name() = 'deleted-phrase'"> | |
| <!-- default for appropriation deleted phrase reporting syle is bold brackets. works different on the translation - strike --> | |
| <!-- 17-Sep-2008 verified with Kirstein - default will be strikethrough TB --> | |
| <xsl:choose> | |
| <xsl:when test="not(@reported-display-style)"> | |
| <xsl:text>strikethrough</xsl:text> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:value-of select="@reported-display-style"/> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:when> | |
| <xsl:when test="local-name() = 'added-phrase'"> | |
| <xsl:value-of select="@reported-display-style"/> | |
| </xsl:when> | |
| <xsl:when test="ancestor-or-self::*[@reported-display-style != '']"> | |
| <xsl:choose> | |
| <xsl:when | |
| test="not(ancestor-or-self::*[@reported-display-style != '']/descendant::*[@changed = 'not-changed'])"> | |
| <xsl:value-of | |
| select="ancestor-or-self::*[@reported-display-style != ''][1]/@reported-display-style" | |
| /> | |
| </xsl:when> | |
| <xsl:when test="not(@reported-display-style) and (not(@changed))"> | |
| <xsl:value-of | |
| select="ancestor-or-self::*[@reported-display-style != ''][1]/@reported-display-style" | |
| /> | |
| </xsl:when> | |
| </xsl:choose> | |
| </xsl:when> | |
| <xsl:when test="ancestor-or-self::*[@commented = 'yes']"> | |
| <xsl:choose> | |
| <xsl:when | |
| test="not(ancestor-or-self::*[@commented = 'yes']/descendant::*[@changed = 'not-changed'])"> | |
| <xsl:value-of select="ancestor-or-self::*[@commented = 'yes'][1]/@commented" | |
| /> | |
| </xsl:when> | |
| <xsl:when test="not(@commented) and (not(@changed))"> | |
| <xsl:text>bold-brackets</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="not(@commented) and (not(@changed))"> | |
| <xsl:text>bold-brackets</xsl:text> | |
| </xsl:when> | |
| </xsl:choose> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <!-- TB Aug-2016 fixing nesed not changed insode of deleted --> | |
| <!--xsl:value-of select="ancestor-or-self::*[@reported-display-style != ''][1]/@reported-display-style"/--> | |
| <xsl:text/> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:template> | |
| <!--********** reporting style for the following sibling ****************--> | |
| <xsl:template name="getAppropriationReportingStyleFollowingSibling"> | |
| <xsl:choose> | |
| <xsl:when | |
| test="ancestor-or-self::section[1]/following-sibling::section[1]/@reported-display-style"> | |
| <xsl:value-of | |
| select="ancestor-or-self::section[1]/following-sibling::section[1]/@reported-display-style" | |
| /> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:value-of | |
| select="ancestor-or-self::section[1]/following-sibling::section[1]/ancestor-or-self::*/@reported-display-style" | |
| /> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:template> | |
| <!-- ********** I am last sibling************************ --> | |
| <xsl:template name="iAmALastSibling"> | |
| <xsl:param name="source"/> | |
| <xsl:param name="ReportingDisplayStyle"> | |
| <xsl:call-template name="getAppropriationReportingStyle"/> | |
| </xsl:param> | |
| <xsl:choose> | |
| <xsl:when test="ancestor::section[1]/child::*[position() = last()] = self::*"> | |
| <xsl:text>true</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="local-name() = 'section' and contains($ReportingDisplayStyle, 'brackets')"> | |
| <xsl:text>true</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="local-name() = 'text' and local-name(ancestor::*[1]) = 'section' and contains($ReportingDisplayStyle, 'brackets')"> | |
| <xsl:text>true</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="(following-sibling::* and not(local-name(following-sibling::*[1]) = 'after-quoted-block')) or following-sibling::*[2]"> | |
| <xsl:text>false</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="local-name(ancestor::*[1]) = 'quoted-block' and $source != 'toc'"> | |
| <xsl:text>true</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="contains(local-name(ancestor::*[1]), 'appropriations') and $source != 'toc'"> | |
| <xsl:text>true</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="(ancestor::*[1]/following-sibling::* and not(local-name(ancestor::*[1]/following-sibling::*[1]) = 'after-quoted-block') or (ancestor::*[1]/following-sibling::*[2]))"> | |
| <xsl:text>false</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="local-name(ancestor::*[2]) = 'quoted-block' and $source != 'toc'"> | |
| <xsl:text>true</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="(ancestor::*[2]/following-sibling::* and not(local-name(ancestor::*[2]/following-sibling::*[1]) = 'after-quoted-block') and not(local-name(ancestor::*[2]/following-sibling::*[1]) = 'endorsement') or (ancestor::*[2]/following-sibling::*[2]))"> | |
| <xsl:text>false</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="local-name(ancestor::*[3]) = 'quoted-block' and $source != 'toc'"> | |
| <xsl:text>true</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="(ancestor::*[3]/following-sibling::* and not(local-name(ancestor::*[3]/following-sibling::*[1]) = 'after-quoted-block') and not(local-name(ancestor::*[3]/following-sibling::*[1]) = 'endorsement') or (ancestor::*[3]/following-sibling::*[2]))"> | |
| <xsl:text>false</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="local-name(ancestor::*[4]) = 'quoted-block' and $source != 'toc'"> | |
| <xsl:text>true</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="(ancestor::*[4]/following-sibling::* and not(local-name(ancestor::*[4]/following-sibling::*[1]) = 'after-quoted-block') and not(local-name(ancestor::*[4]/following-sibling::*[1]) = 'endorsement') or (ancestor::*[4]/following-sibling::*[2]))"> | |
| <xsl:text>false</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="local-name(ancestor::*[5]) = 'quoted-block' and $source != 'toc'"> | |
| <xsl:text>true</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="(ancestor::*[5]/following-sibling::* and not(local-name(ancestor::*[5]/following-sibling::*[1]) = 'after-quoted-block') or (ancestor::*[5]/following-sibling::*[2]))"> | |
| <xsl:text>false</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="local-name(ancestor::*[6]) = 'quoted-block' and $source != 'toc'"> | |
| <xsl:text>true</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="(ancestor::*[6]/following-sibling::* and not(local-name(ancestor::*[6]/following-sibling::*[1]) = 'after-quoted-block') or (ancestor::*[6]/following-sibling::*[2]))"> | |
| <xsl:text>false</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="local-name(ancestor::*[7]) = 'quoted-block' and $source != 'toc'"> | |
| <xsl:text>true</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="(ancestor::*[7]/following-sibling::* and not(local-name(ancestor::*[7]/following-sibling::*[1]) = 'after-quoted-block') or (ancestor::*[7]/following-sibling::*[2]))"> | |
| <xsl:text>false</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="local-name(ancestor::*[8]) = 'quoted-block' and $source != 'toc'"> | |
| <xsl:text>true</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="(ancestor::*[8]/following-sibling::* and not(local-name(ancestor::*[8]/following-sibling::*[1]) = 'after-quoted-block') or (ancestor::*[8]/following-sibling::*[2]))"> | |
| <xsl:text>false</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="local-name(ancestor::*[9]) = 'quoted-block' and $source != 'toc'"> | |
| <xsl:text>true</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="(ancestor::*[9]/following-sibling::* and not(local-name(ancestor::*[9]/following-sibling::*[1]) = 'after-quoted-block') or (ancestor::*[9]/following-sibling::*[2]))"> | |
| <xsl:text>false</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="local-name(ancestor::*[10]) = 'quoted-block' and $source != 'toc'"> | |
| <xsl:text>true</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="(ancestor::*[10]/following-sibling::* and not(local-name(ancestor::*[10]/following-sibling::*[1]) = 'after-quoted-block') or (ancestor::*[10]/following-sibling::*[2]))"> | |
| <xsl:text>false</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="local-name(ancestor::*[11]) = 'quoted-block' and $source != 'toc'"> | |
| <xsl:text>true</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="(ancestor::*[11]/following-sibling::* and not(local-name(ancestor::*[11]/following-sibling::*[1]) = 'after-quoted-block') or (ancestor::*[11]/following-sibling::*[2]))"> | |
| <xsl:text>false</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="local-name(ancestor::*[12]) = 'quoted-block' and $source != 'toc'"> | |
| <xsl:text>true</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="(ancestor::*[12]/following-sibling::* and not(local-name(ancestor::*[12]/following-sibling::*[1]) = 'after-quoted-block') or (ancestor::*[12]/following-sibling::*[2]))"> | |
| <xsl:text>false</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="local-name(ancestor::*[13]) = 'quoted-block' and $source != 'toc'"> | |
| <xsl:text>true</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="(ancestor::*[13]/following-sibling::* and not(local-name(ancestor::*[13]/following-sibling::*[1]) = 'after-quoted-block') or (ancestor::*[13]/following-sibling::*[2]))"> | |
| <xsl:text>false</xsl:text> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:text>true</xsl:text> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:template> | |
| <!-- ********Close Sibling SectionLevel in Appropriation bills --> | |
| <xsl:template name="CloseSiblingSectionLevel"> | |
| <xsl:variable name="selfOrParentDeleted"> | |
| <xsl:choose> | |
| <xsl:when | |
| test="self::section/@changed = 'deleted' or ancestor::section[1]/@changed = 'deleted' or (ancestor::title/@changed = 'deleted' and not(ancestor::section[1]/@changed))"> | |
| <xsl:text>true</xsl:text> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:text>false</xsl:text> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:variable> | |
| <xsl:variable name="followingOrParentDeleted"> | |
| <xsl:choose> | |
| <xsl:when | |
| test="self::section/following-sibling::section[1]/@changed = 'deleted' or ancestor::section[1]/following-sibling::section[1]/@changed = 'deleted' or (ancestor::title/@changed = 'deleted' and not(ancestor::sectioon[1]/following-sibling::section/@changed))"> | |
| <xsl:text>true</xsl:text> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:text>false</xsl:text> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:variable> | |
| <xsl:variable name="lastInSection"> | |
| <xsl:call-template name="isLastInSection"/> | |
| </xsl:variable> | |
| <xsl:variable name="ReportedDisplayStyle"> | |
| <xsl:call-template name="getAppropriationReportingStyle"/> | |
| </xsl:variable> | |
| <xsl:variable name="ReportedDisplayStyleFollowingSibling"> | |
| <xsl:call-template name="getAppropriationReportingStyleFollowingSibling"/> | |
| </xsl:variable> | |
| <xsl:choose> | |
| <!-- condition has been changed by TB 20-Oct-2009 bug #1018 --> | |
| <xsl:when | |
| test="$selfOrParentDeleted = 'true' and $ReportedDisplayStyle = 'bold-brackets' and $followingOrParentDeleted = 'true' and $ReportedDisplayStyleFollowingSibling = 'bold-brackets' and (not(following-sibling::*) or local-name() = 'section') and ($lastInSection = 'true')"> | |
| <xsl:text>yes</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="$selfOrParentDeleted = 'true' and $ReportedDisplayStyle = 'bold-brackets' and local-name() = 'section' and $lastInSection = 'true'"> | |
| <xsl:text>yes</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="$selfOrParentDeleted = 'true' and $ReportedDisplayStyle = 'bold-brackets' and $lastInSection = 'true'"> | |
| <xsl:text>yes</xsl:text> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:text>no</xsl:text> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:template> | |
| <!--****************Last In Section*************************--> | |
| <!-- TB Apr2010 reported display style project --> | |
| <xsl:template name="isLastInSection"> | |
| <xsl:choose> | |
| <!-- TB 10June2010 brackets fixing--> | |
| <xsl:when test="self::section"> | |
| <xsl:text>true</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="following-sibling::* and not(local-name(following-sibling::*[1]) = 'after-quoted-block' and not(following-sibling::*[2]))"> | |
| <xsl:text>false</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="local-name(parent::*) = 'section' or (contains(local-name(parent::*), 'appropriations') and not(parent::*/following-sibling::continuation-text))"> | |
| <xsl:text>true</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="ancestor::*[1]/following-sibling::* and not(local-name(ancestor::*[1]/following-sibling::*[1]) = 'after-quoted-block' and not(ancestor::*[1]/following-sibling::*[2]))"> | |
| <xsl:text>false</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="local-name(ancestor::*[2]) = 'section' or contains(local-name(ancestor::*[2]), 'appropriations')"> | |
| <xsl:text>true</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="ancestor::*[2]/following-sibling::* and not(local-name(ancestor::*[2]/following-sibling::*[1]) = 'after-quoted-block' and not(ancestor::*[2]/following-sibling::*[2]))"> | |
| <xsl:text>false</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="local-name(ancestor::*[3]) = 'section' or contains(local-name(ancestor::*[3]), 'appropriations')"> | |
| <xsl:text>true</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="ancestor::*[3]/following-sibling::* and not(local-name(ancestor::*[3]/following-sibling::*[1]) = 'after-quoted-block' and not(ancestor::*[3]/following-sibling::*[2]))"> | |
| <xsl:text>false</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="local-name(ancestor::*[4]) = 'section' or contains(local-name(ancestor::*[4]), 'appropriations')"> | |
| <xsl:text>true</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="ancestor::*[4]/following-sibling::* and not(local-name(ancestor::*[4]/following-sibling::*[1]) = 'after-quoted-block' and not(ancestor::*[4]/following-sibling::*[2]))"> | |
| <xsl:text>false</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="local-name(ancestor::*[5]) = 'section' or contains(local-name(ancestor::*[5]), 'appropriations')"> | |
| <xsl:text>true</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="ancestor::*[5]/following-sibling::* and not(local-name(ancestor::*[5]/following-sibling::*[1]) = 'after-quoted-block' and not(ancestor::*[5]/following-sibling::*[2]))"> | |
| <xsl:text>false</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="local-name(ancestor::*[6]) = 'section' or contains(local-name(ancestor::*[6]), 'appropriations')"> | |
| <xsl:text>true</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="ancestor::*[6]/following-sibling::* and not(local-name(ancestor::*[6]/following-sibling::*[1]) = 'after-quoted-block' and not(ancestor::*[6]/following-sibling::*[2]))"> | |
| <xsl:text>false</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="local-name(ancestor::*[7]) = 'section' or contains(local-name(ancestor::*[7]), 'appropriations')"> | |
| <xsl:text>true</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="ancestor::*[7]/following-sibling::* and not(local-name(ancestor::*[7]/following-sibling::*[1]) = 'after-quoted-block' and not(ancestor::*[7]/following-sibling::*[2]))"> | |
| <xsl:text>false</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="local-name(ancestor::*[8]) = 'section' or contains(local-name(ancestor::*[8]), 'appropriations')"> | |
| <xsl:text>true</xsl:text> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:text>false</xsl:text> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:template> | |
| <!--*************checkSiblingsRule*******************************************************************************************************--> | |
| <!--*************Sibling for this case are: title to title, section to section and appropriations to appropriations all types***************--> | |
| <!-- *************If element is deleted and reported as bold brakets and following by sibling that also deleted then the braket must be closed --> | |
| <xsl:template name="checkSiblingsRule"> | |
| <xsl:variable name="toCloseTheSectionLevel"> | |
| <xsl:call-template name="CloseSiblingSectionLevel"/> | |
| </xsl:variable> | |
| <xsl:choose> | |
| <!-- This rukle valid for appropriations bill type ONLY --> | |
| <xsl:when test="$billType != 'appropriations'"> | |
| <xsl:text>no</xsl:text> | |
| </xsl:when> | |
| <!-- Section following by section --> | |
| <!-- if deleted section following by deleted section and I am the last element in this section --> | |
| <xsl:when test="$toCloseTheSectionLevel = 'yes'"> | |
| <xsl:text>yes</xsl:text> | |
| </xsl:when> | |
| <!-- Appropriations Major following by appropriations any type --> | |
| <xsl:when | |
| test=" | |
| ancestor::appropriations-major[1][@changed = 'deleted' and @reported-display-style = 'bold-brackets'] | |
| and (ancestor::appropriations-major[1]/following-sibling::appropriations-major[1][@changed = 'deleted' and @reported-display-style = 'bold-brackets'] | |
| or ancestor::appropriations-major[1]/following-sibling::appropriations-intermediate[1][@changed = 'deleted' and @reported-display-style = 'bold-brackets'] | |
| or ancestor::appropriations-major[1]/following-sibling::appropriations-small[1][@changed = 'deleted' and @reported-display-style = 'bold-brackets']) | |
| and not(following-sibling::*) and ((local-name(parent::*/following-sibling::*) = 'appropriations-major' or local-name(parent::*/following-sibling::*) = 'appropriations-intermediate' or local-name(parent::*/following-sibling::*) = 'appropriations-small') or not(parent::*/following-sibling::*))"> | |
| <xsl:text>yes</xsl:text> | |
| </xsl:when> | |
| <!-- Appropriations intermediate following by appropriations any type --> | |
| <xsl:when | |
| test=" | |
| ancestor::appropriations-intermediate[1][@changed = 'deleted' and @reported-display-style = 'bold-brackets'] | |
| and (ancestor::appropriations-intermediate[1]/following-sibling::appropriations-major[1][@changed = 'deleted' and @reported-display-style = 'bold-brackets'] | |
| or ancestor::appropriations-intermediate[1]/following-sibling::appropriations-intermediate[1][@changed = 'deleted' and @reported-display-style = 'bold-brackets'] | |
| or ancestor::appropriations-intermediate[1]/following-sibling::appropriations-small[1][@changed = 'deleted' and @reported-display-style = 'bold-brackets']) | |
| and not(following-sibling::*) and ((local-name(parent::*/following-sibling::*) = 'appropriations-major' or local-name(parent::*/following-sibling::*) = 'appropriations-intermediate' or local-name(parent::*/following-sibling::*) = 'appropriations-small') or not(parent::*/following-sibling::*))"> | |
| <xsl:text>yes</xsl:text> | |
| </xsl:when> | |
| <!-- Appropriations small following by appropriations any type --> | |
| <xsl:when | |
| test=" | |
| ancestor::appropriations-small[1][@changed = 'deleted' and @reported-display-style = 'bold-brackets'] | |
| and (ancestor::appropriations-small[1]/following-sibling::appropriations-major[1][@changed = 'deleted' and @reported-display-style = 'bold-brackets'] | |
| or ancestor::appropriations-small[1]/following-sibling::appropriations-intermediate[1][@changed = 'deleted' and @reported-display-style = 'bold-brackets'] | |
| or ancestor::appropriations-small[1]/following-sibling::appropriations-small[1][@changed = 'deleted' and @reported-display-style = 'bold-brackets']) | |
| and not(following-sibling::*) and ((local-name(parent::*/following-sibling::*) = 'appropriations-major' or local-name(parent::*/following-sibling::*) = 'appropriations-intermediate' or local-name(parent::*/following-sibling::*) = 'appropriations-small') or not(parent::*/following-sibling::*))"> | |
| <xsl:text>yes</xsl:text> | |
| </xsl:when> | |
| <!-- appropriation small last in title --> | |
| <xsl:when | |
| test=" | |
| ancestor::appropriations-small[1][@changed = 'deleted' and @reported-display-style = 'bold-brackets'] | |
| and ancestor::appropriations-small[1]/parent::title and not(ancestor::appropriations-small[1]/following-sibling::*) and not(following-sibling::*)"> | |
| <xsl:text>yes</xsl:text> | |
| </xsl:when> | |
| <!-- appropriation intermediate last in title --> | |
| <xsl:when | |
| test=" | |
| ancestor::appropriations-intermediate[1][@changed = 'deleted' and @reported-display-style = 'bold-brackets'] | |
| and ancestor::appropriations-intermediate[1]/parent::title and not(ancestor::appropriations-intermediate[1]/following-sibling::*) and not(following-sibling::*)"> | |
| <xsl:text>yes</xsl:text> | |
| </xsl:when> | |
| <!-- appropriation major last in title --> | |
| <xsl:when | |
| test=" | |
| ancestor::appropriations-major[1][@changed = 'deleted' and @reported-display-style = 'bold-brackets'] | |
| and ancestor::appropriations-major[1]/parent::title and not(ancestor::appropriations-major[1]/following-sibling::*) and not(following-sibling::*)"> | |
| <xsl:text>yes</xsl:text> | |
| </xsl:when> | |
| <!-- Title following by title--> | |
| <xsl:when | |
| test="ancestor::title[1][@changed = 'deleted' and @reported-display-style = 'bold-brackets'] and ancestor::title[1]/following-sibling::title[1][@changed = 'deleted' and @reported-display-style = 'bold-brackets'] and not(following-sibling::*) and (local-name(parent::*/following-sibling::*) = 'title' or contains(local-name(parent::*/following-sibling::*), 'appropriations') or not(parent::*/following-sibling::*))"> | |
| <xsl:text>yes</xsl:text> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:text>no</xsl:text> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:template> | |
| <!-- TB 13 Mar 2008 #888 --> | |
| <xsl:template name="toCloseTheBrakets"> | |
| <xsl:variable name="isAncestorDeleted"> | |
| <xsl:choose> | |
| <xsl:when | |
| test="contains(ancestor-or-self::*/@reported-display-style, 'brackets') or contains(ancestor-or-self::*/@reported-display-style, 'parentheses') or ancestor-or-self::*[@commented = 'yes']"> | |
| <xsl:text>true</xsl:text> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:text>false</xsl:text> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:variable> | |
| <xsl:variable name="isAncestorDeleted1"> | |
| <xsl:choose> | |
| <!--xsl:when | |
| test="ancestor::*[1]/ancestor::*[@changed='deleted' and @reported-display-style='bold-brackets']"--> | |
| <xsl:when | |
| test="contains(ancestor::*[1]/ancestor::*/@reported-display-style, 'brackets') or contains(ancestor::*[1]/ancestor::*/@reported-display-style, 'parentheses') or ancestor::*[1]/ancestor::*[@commented = 'yes']"> | |
| <xsl:text>true</xsl:text> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:text>false</xsl:text> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:variable> | |
| <xsl:variable name="isAncestorDeleted2"> | |
| <xsl:choose> | |
| <xsl:when | |
| test="contains(ancestor::*[2]/ancestor::*/@reported-display-style, 'brackets') or contains(ancestor::*[2]/ancestor::*/@reported-display-style, 'parentheses') or ancestor::*[2]/ancestor::*[@commented = 'yes']"> | |
| <xsl:text>true</xsl:text> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:text>false</xsl:text> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:variable> | |
| <xsl:variable name="isAncestorDeleted3"> | |
| <xsl:choose> | |
| <xsl:when | |
| test="contains(ancestor::*[3]/ancestor::*/@reported-display-style, 'brackets') or contains(ancestor::*[3]/ancestor::*/@reported-display-style, 'parentheses') or ancestor::*[3]/ancestor::*[@commented = 'yes']"> | |
| <xsl:text>true</xsl:text> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:text>false</xsl:text> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:variable> | |
| <xsl:variable name="isAncestorDeleted4"> | |
| <xsl:choose> | |
| <xsl:when | |
| test="contains(ancestor::*[4]/ancestor::*/@reported-display-style, 'brackets') or contains(ancestor::*[4]/ancestor::*/@reported-display-style, 'parentheses') or ancestor::*[4]/ancestor::*[@commented = 'yes']"> | |
| <xsl:text>true</xsl:text> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:text>false</xsl:text> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:variable> | |
| <xsl:variable name="isAncestorDeleted5"> | |
| <xsl:choose> | |
| <xsl:when | |
| test="contains(ancestor::*[5]/ancestor::*/@reported-display-style, 'brackets') or contains(ancestor::*[5]/ancestor::*/@reported-display-style, 'parentheses') or ancestor::*[5]/ancestor::*[@commented = 'yes']"> | |
| <xsl:text>true</xsl:text> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:text>false</xsl:text> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:variable> | |
| <xsl:variable name="isAncestorDeleted6"> | |
| <xsl:choose> | |
| <xsl:when | |
| test="contains(ancestor::*[6]/ancestor::*/@reported-display-style, 'brackets') or contains(ancestor::*[6]/ancestor::*/@reported-display-style, 'parentheses') or ancestor::*[6]/ancestor::*[@commented = 'yes']"> | |
| <xsl:text>true</xsl:text> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:text>false</xsl:text> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:variable> | |
| <xsl:variable name="isSiblingsRuleTrue"> | |
| <xsl:call-template name="checkSiblingsRule"/> | |
| </xsl:variable> | |
| <xsl:variable name="isChildLast"> | |
| <xsl:call-template name="iAmALastSibling"/> | |
| </xsl:variable> | |
| <xsl:variable name="isLastElementClosed"> | |
| <xsl:call-template name="LastElementClosed"/> | |
| </xsl:variable> | |
| <xsl:variable name="ReportedDisplayStyle"> | |
| <xsl:call-template name="getAppropriationReportingStyle"/> | |
| </xsl:variable> | |
| <xsl:variable name="lastInSection"> | |
| <xsl:call-template name="isLastInSection"/> | |
| </xsl:variable> | |
| <xsl:choose> | |
| <xsl:when test="$isLastElementClosed = 'yes'"> | |
| <xsl:text>no</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="(local-name() = 'added-phrase' or local-name() = 'deleted-phrase') and (contains(@reported-display-style, 'brackets') or contains(@reported-display-style, 'parentheses'))"> | |
| <xsl:text>yes</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="$isSiblingsRuleTrue = 'yes' and $isChildLast = 'true'"> | |
| <xsl:text>yes</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="not(following::*)"> | |
| <xsl:text>yes</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="(following-sibling::*[1]/text() or following-sibling::*[1]/text or following-sibling::*[1]/child::*/text()) and not(following-sibling::*[1][(@changed = 'deleted' or (not(@changed) and $isAncestorDeleted = 'true')) and (contains($ReportedDisplayStyle, 'brackets') or contains($ReportedDisplayStyle, 'parentheses'))]) and $isChildLast = 'true'"> | |
| <xsl:text>yes</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="not(following-sibling::*) and (ancestor::*[1]/following-sibling::*[1]/text != '' or ancestor::*[1]/following-sibling::*[1]/text() or ancestor::*[1]/following-sibling::*[1]/child::*/text()) and not(ancestor::*[1]/following-sibling::*[1][(@changed = 'deleted' or (not(@changed) and $isAncestorDeleted1 = 'true')) and (contains($ReportedDisplayStyle, 'brackets') or contains($ReportedDisplayStyle, 'parentheses'))]) and $isChildLast = 'true'"> | |
| <xsl:text>yes</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="not(ancestor::*[1]/following-sibling::*) and ancestor::*[2]/following-sibling::*[1]/text != '' and not(ancestor::*[2]/following-sibling::*[1][(@changed = 'deleted' or (not(@changed) and $isAncestorDeleted2 = 'true')) and (contains($ReportedDisplayStyle, 'brackets') or contains($ReportedDisplayStyle, 'parentheses'))]) and $isChildLast = 'true'"> | |
| <xsl:text>yes</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="(not(ancestor::*[2]/following-sibling::*) and not(local-name(ancestor::*[2]) = 'quoted-block')) and ancestor::*[3]/following-sibling::*[1]/text != '' and (ancestor::*[3]/following-sibling::*[1][(@changed = 'deleted' or (not(@changed) and $isAncestorDeleted3 = 'true')) and (contains($ReportedDisplayStyle, 'brackets') or contains($ReportedDisplayStyle, 'parentheses'))]) and $isChildLast = 'true' and $isSiblingsRuleTrue = 'no'"> | |
| <xsl:text>no</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="(not(ancestor::*[2]/following-sibling::*) and not(local-name(ancestor::*[2]) = 'quoted-block')) and ancestor::*[3]/following-sibling::*[1]/text != '' and (ancestor::*[3]/following-sibling::*[1][(@changed = 'deleted' or (not(@changed) and $isAncestorDeleted3 = 'true')) and (contains($ReportedDisplayStyle, 'brackets') or contains($ReportedDisplayStyle, 'parentheses'))]) and $isChildLast = 'true'"> | |
| <xsl:text>yes</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="not(ancestor::*[3]/following-sibling::*) and ancestor::*[4]/following-sibling::*[1]/text != '' and ancestor::*[4]/following-sibling::*[1][(@changed = 'deleted' or (not(@changed) and $isAncestorDeleted4 = 'true')) and ((contains($ReportedDisplayStyle, 'brackets') or (not(@reported-display-style) and $isAncestorDeleted4 = 'true')) or (contains($ReportedDisplayStyle, 'parentheses') or (not(@reported-display-style) and $isAncestorDeleted4 = 'true')))] and $isChildLast = 'true' and $isSiblingsRuleTrue = 'no'"> | |
| <xsl:text>no</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="not(ancestor::*[3]/following-sibling::*) and ancestor::*[4]/following-sibling::*[1]/text != '' and ancestor::*[4]/following-sibling::*[1][(@changed = 'deleted' or (not(@changed) and $isAncestorDeleted4 = 'true')) and ((contains($ReportedDisplayStyle, 'brackets') or (not(@reported-display-style) and $isAncestorDeleted4 = 'true')) or (contains($ReportedDisplayStyle, 'parentheses') or (not(@reported-display-style) and $isAncestorDeleted4 = 'true')))] and $isChildLast = 'true'"> | |
| <xsl:text>yes</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="not(ancestor::*[4]/following-sibling::*) and ancestor::*[5]/following-sibling::*[1]/text != '' and ancestor::*[5]/following-sibling::*[1][(@changed = 'deleted' or (not(@changed) and $isAncestorDeleted5 = 'true')) and ((contains($ReportedDisplayStyle, 'brackets')) or (contains($ReportedDisplayStyle, 'parentheses')))] and $isChildLast = 'true'"> | |
| <xsl:text>yes</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="not(ancestor::*[5]/following-sibling::*) and ancestor::*[6]/following-sibling::*[1]/text != '' and ancestor::*[6]/following-sibling::*[1][(@changed = 'deleted' or (not(@changed) and $isAncestorDeleted6 = 'true')) and ((contains($ReportedDisplayStyle, 'brackets')) or (contains($ReportedDisplayStyle, 'parentheses')))] and $isChildLast = 'true'"> | |
| <xsl:text>yes</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="(not(following::*) or local-name(following::*[1]) = 'endorsement') and $isChildLast = 'true' and not(local-name(child::*[position() = last()]) = 'subsection')"> | |
| <xsl:text>yes</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="local-name(following-sibling::*[1]) = 'after-quoted-block' and not(following-sibling::*[1]/following::*) and $isChildLast = 'true'"> | |
| <xsl:text>yes</xsl:text> | |
| </xsl:when> | |
| <!--xsl:when | |
| test="not (following-sibling::*) and local-name(parent::*/following-sibling::*[1])='after-quoted-block' and not (parent::*/following-sibling::*[2][@changed='deleted' or not(@changed) and ($ReportedDisplayStyle ='bold-brackets' )]) "--> | |
| <xsl:when | |
| test=" | |
| not(following-sibling::*) | |
| and local-name(parent::*/following-sibling::*[1]) = 'after-quoted-block' | |
| and (not(parent::*/following-sibling::*[2][@changed = 'deleted' or not(@changed) and (contains($ReportedDisplayStyle, 'brackets'))]) | |
| and (not(parent::*/following-sibling::*[2]) and not(ancestor::*[2]/following-sibling::*[2][@changed = 'deleted' or not(@changed) and ((contains($ReportedDisplayStyle, 'brackets')) or (contains($ReportedDisplayStyle, 'parentheses')))])))"> | |
| <xsl:variable name="quotedBlockParent"> | |
| <!--xsl:if test="parent::*/following-sibling::*[1]/ancestor::*[2]"--> | |
| <xsl:value-of | |
| select="concat(concat(',', local-name(parent::*/following-sibling::*[1]/ancestor::*[2])), ',')"/> | |
| <!--/xsl:if--> | |
| </xsl:variable> | |
| <xsl:variable name="ToMachForNonClosingBrackets"> | |
| <xsl:text>,subsection,paragraph,subparagraph,clause,subclause,item,subitem,</xsl:text> | |
| </xsl:variable> | |
| <xsl:choose> | |
| <xsl:when | |
| test="contains($ToMachForNonClosingBrackets, $quotedBlockParent) and parent::*/following-sibling::*[1]/ancestor::*[2]/following-sibling::*"> | |
| <xsl:text>no</xsl:text> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:text>yes</xsl:text> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:when> | |
| <xsl:when test="local-name() = 'deleted-phrase'"> | |
| <xsl:text>yes</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="$billType = 'appropriations' and local-name() = 'list-item' and (parent::list[@changed = 'deleted'] and contains($ReportedDisplayStyle, 'brackets')) and not(following-sibling::*) and not(parent::list/following-sibling::*[1][@changed = 'deleted'] and contains($ReportedDisplayStyle, 'brackets'))"> | |
| <xsl:text>yes</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="$lastInSection = 'true' and (contains($ReportedDisplayStyle, 'brackets') or parent::section/@commented = 'yes' or contains($ReportedDisplayStyle, 'parentheses'))"> | |
| <xsl:text>yes</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test=" | |
| (following-sibling::*[1]/@changed and not(following-sibling::*[1]/@changed = 'deleted') | |
| and (not(contains(following-sibling::*[1]/@reported-display-style, 'brackets')) or not(contains(following-sibling::*[1]/@reported-display-style, 'parentheses')))) and (contains($ReportedDisplayStyle, 'brackets'))"> | |
| <xsl:text>yes</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="not(following-sibling::*) and (not(child::*) or child::quote) and (contains(parent::*/@reported-display-style, 'brackets'))"> | |
| <xsl:text>yes</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="not(following-sibling::*) and not(child::*) and (contains(parent::*/@reported-display-style, 'parentheses'))"> | |
| <xsl:text>yes</xsl:text> | |
| </xsl:when> | |
| <!--<xsl:when | |
| test="((not(parent::*/following-sibling::*) and (not(ancestor::*/following-sibling::*) and (contains(ancestor::*[current()]/@reported-display-style ,'brackets')))) or (parent::*/following-sibling::*/@changed = 'not-changed' and parent::*/following-sibling::*[position() = last()] = parent::*[current()])) and (parent::*/@changed !='not-changed' or not(parent::*/@changed)) and not(following-sibling::*) and (not(parent::*/@reported-display-style) and contains(ancestor::*/@reported-display-style, 'brackets')) "> | |
| <xsl:text>yes</xsl:text> | |
| </xsl:when>--> | |
| <xsl:when | |
| test="(not(parent::*/following-sibling::*) or (parent::*/following-sibling::*/@changed = 'not-changed' and parent::*/following-sibling::*[position() = last()] = parent::*[current()])) and (parent::*/@changed != 'not-changed' or not(parent::*/@changed)) and not(following-sibling::*) and (not(parent::*/@reported-display-style) and contains(ancestor::*/@reported-display-style, 'brackets'))"> | |
| <xsl:choose> | |
| <xsl:when | |
| test="contains(ancestor::section/@reported-display-style, 'brackets') and (ancestor::*/following-sibling::*) and $lastInSection = 'false'"> | |
| <xsl:text>no</xsl:text> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:text>yes</xsl:text> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:when> | |
| <!--<xsl:when | |
| test="(not(parent::*/following-sibling::*) or (parent::*/following-sibling::*/@changed = 'not-changed' and parent::*/following-sibling::*[position() = last()] = parent::*[current()])) and (parent::*/@changed !='not-changed' or not(parent::*/@changed)) and not(following-sibling::*) and (not(parent::*/@reported-display-style) and contains(ancestor::*/@reported-display-style, 'brackets')) and not(ancestor::*/following-sibling::*)"> | |
| <xsl:text>yes</xsl:text> | |
| </xsl:when>--> | |
| <!-- TB 24 Dec 2012 bug fixing --> | |
| <!--xsl:when test="contains($ReportedDisplayStyle,'brackets') and ((following-sibling::*[1]/@changed and following-sibling::*[1]/@changed != 'deleted' ) | |
| or (not (following-sibling::*) and ancestor::*[1]/following-sibling::*[1]/@changed and ancestor::*[1]/following-sibling::*[1]/@changed != 'deleted') ) | |
| "--> | |
| <!--xsl:when test="contains($ReportedDisplayStyle,'brackets') and (following-sibling::*[1] and not (contains(following-sibling::*[1]/@reported-display-style, 'brackets' )) | |
| or (not (following-sibling::*) and ancestor::*[1]/following-sibling::*[1] and not(contains(ancestor::*[1]/following-sibling::*[1]/@reported-display-style, 'brackets')) ))"> | |
| <xsl:text>yes</xsl:text> | |
| </xsl:when--> | |
| <!--xsl:when test="contains(@reported-display-style,'brackets') and (following-sibling::*[1] and not (contains(following-sibling::*[1]/@reported-display-style, 'brackets' )) and not (contains(parent::*/@reported-display-style, 'brackets')) and not (following-sibling::*[1]/@changed='not-changed') | |
| or (not (following-sibling::*) and ancestor::*[1]/following-sibling::*[1] and not(contains(ancestor::*[1]/following-sibling::*[1]/@reported-display-style, 'brackets')) ))"--> | |
| <xsl:when | |
| test=" | |
| (contains(@reported-display-style, 'brackets') or contains(@reported-display-style, 'parentheses')) and (following-sibling::*[1] and (not(contains(following-sibling::*[1]/@reported-display-style, 'brackets')) or not(contains(following-sibling::*[1]/@reported-display-style, 'parentheses'))) | |
| and (not(contains(parent::*/@reported-display-style, 'brackets')) or not(contains(parent::*/@reported-display-style, 'parentheses'))) and not(following-sibling::*[1]/@changed = 'not-changed') and | |
| (not(contains(ancestor::*[2]/@reported-display-style, 'brackets')) or not(contains(ancestor::*[2]/@reported-display-style, 'parentheses'))) and (not(contains(ancestor::*[3]/@reported-display-style, 'brackets')) or not(contains(ancestor::*[3]/@reported-display-style, 'parentheses'))) and | |
| (not(contains(ancestor::*[4]/@reported-display-style, 'brackets')) or not(contains(ancestor::*[4]/@reported-display-style, 'parentheses'))) | |
| or (not(following-sibling::*) and ancestor::*[1]/following-sibling::*[1] and | |
| (not(contains(ancestor::*[1]/following-sibling::*[1]/@reported-display-style, 'brackets')) or not(contains(ancestor::*[1]/following-sibling::*[1]/@reported-display-style, 'parentheses')))))"> | |
| <xsl:text>yes</xsl:text> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:text>no</xsl:text> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:template> | |
| <xsl:template name="LastElementClosed"> | |
| <xsl:variable name="possibleElementName"> | |
| <xsl:text>,section,subsection,paragraph,subparagraph,clause,subclause,item,subitem,continuation-text,appropriations-major,appropriations-intermediate,appropriations-small,toc,quoted-block-continuation-text,</xsl:text> | |
| </xsl:variable> | |
| <xsl:variable name="actualLastElementName"> | |
| <xsl:choose> | |
| <xsl:when test="not(child::*)"> | |
| <xsl:text>noChild</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="local-name(child::*[position() = last()]) = 'after-quoted-block'"> | |
| <xsl:value-of | |
| select="concat(concat(',', local-name(child::*[position() = last() - 1])), ',')" | |
| /> | |
| </xsl:when> | |
| <xsl:when test="local-name(child::*[position() = last()]) = 'quoted-block'"> | |
| <xsl:choose> | |
| <xsl:when test="not((child::*[position() = last()]/child::*))"> | |
| <xsl:text>noChild</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="local-name((child::*[position() = last()]/child::*)[position() = last()]) = 'after-quoted-block'"> | |
| <xsl:value-of | |
| select="concat(concat(',', local-name((child::*[position() = last()]/child::*)[position() = last() - 1])), ',')" | |
| /> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:value-of | |
| select="concat(concat(',', local-name((child::*[position() = last()]/child::*)[position() = last()])), ',')" | |
| /> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:value-of | |
| select="concat(concat(',', local-name(child::*[position() = last()])), ',')" | |
| /> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:variable> | |
| <xsl:choose> | |
| <xsl:when test="contains($possibleElementName, $actualLastElementName)"> | |
| <xsl:text>yes</xsl:text> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:text>no</xsl:text> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| <!--xsl:choose> | |
| <xsl:when test="local-name(child::*[position()=last()]) = 'after-quoted-block' "> | |
| <xsl:choose> | |
| <xsl:when test=" local-name(child::*[position() = last() - 1]) = 'text' or not (child::*)"> | |
| <xsl:text>no</xsl:text> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:text>yes</xsl:text> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:choose> | |
| <xsl:when test=" local-name(child::*[position() = last()]) = 'text' or not (child::*)"> | |
| <xsl:text>no</xsl:text> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:text>yes</xsl:text> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:otherwise> | |
| </xsl:choose--> | |
| </xsl:template> | |
| <!-- subheader elements --> | |
| <xsl:template match="subheader" name="DisplaySubheader"> | |
| <p style="text-align:center" class="lbexIndentZero"> | |
| <xsl:call-template name="ActualDisplayApppropriationsSubheader"/> | |
| </p> | |
| </xsl:template> | |
| <xsl:template name="ActualDisplayApppropriationsSubheader"> | |
| <xsl:variable name="appropReportedStyle"> | |
| <xsl:call-template name="getAppropriationReportingStyle"/> | |
| </xsl:variable> | |
| <xsl:variable name="isToCloseTheBrackets"> | |
| <xsl:call-template name="toCloseTheBrakets"/> | |
| </xsl:variable> | |
| <xsl:variable name="isToOpenTheBrackets"> | |
| <xsl:call-template name="isOpenAlreadyExist"/> | |
| </xsl:variable> | |
| <xsl:choose> | |
| <xsl:when | |
| test="((contains($appropReportedStyle, 'brackets')) or (ancestor::appropriations-small/@commented = 'yes' or ancestor::appropriations-intermediate/@commented = 'yes' or ancestor::appropriations-major/@commented = 'yes'))"> | |
| <xsl:choose> | |
| <xsl:when test="(child::added-phrase or child::deleted-phrase)"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>[</xsl:text> | |
| </span> | |
| <xsl:apply-templates/> | |
| <xsl:if test="$isToCloseTheBrackets = 'yes'"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>]</xsl:text> | |
| </span> | |
| </xsl:if> | |
| </xsl:when> | |
| <xsl:when test="$isToOpenTheBrackets = 'First'"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>[</xsl:text> | |
| </span> | |
| <span class="lbexHeaderAppropSmall"> | |
| <xsl:call-template name="convertToNeededCase"> | |
| <xsl:with-param name="localElementName">subheader</xsl:with-param> | |
| </xsl:call-template> | |
| </span> | |
| <xsl:if test="$isToCloseTheBrackets = 'yes'"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>]</xsl:text> | |
| </span> | |
| </xsl:if> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:choose> | |
| <xsl:when | |
| test="child::added-phrase[@reported-display-style != ''] or child::deleted-phrase[@reported-display-style != '']"> | |
| <xsl:apply-templates/> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <span class="lbexHeaderAppropSmall"> | |
| <xsl:call-template name="convertToNeededCase"> | |
| <xsl:with-param name="localElementName" | |
| >subheader</xsl:with-param> | |
| </xsl:call-template> | |
| </span> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| <!-- TB 20Feb2009 --> | |
| <!--xsl:apply-templates/--> | |
| <!--<xsl:call-template name="convertToNeededCase"> | |
| <xsl:with-param name="localElementName">header</xsl:with-param> | |
| </xsl:call-template>--> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:when> | |
| <!--<xsl:choose> | |
| <!-\-<xsl:when | |
| test="(child::added-phrase or child::deleted-phrase) and (contains($appropReportedStyle, 'brackets'))"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>[</xsl:text> | |
| </span> | |
| <xsl:apply-templates/> | |
| <xsl:if test ="$isToCloseTheBrackets = 'yes'"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>]</xsl:text> | |
| </span> | |
| </xsl:if> | |
| </xsl:when>-\-> | |
| <xsl:when | |
| test="(child::added-phrase or child::deleted-phrase)"> | |
| <xsl:apply-templates/> | |
| </xsl:when> | |
| <xsl:when | |
| test="(contains($appropReportedStyle, 'brackets')) or (ancestor::appropriations-small/@commented='yes'or ancestor::appropriations-intermediate/@commented='yes' or ancestor::appropriations-major/@commented='yes')"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>[</xsl:text> | |
| </span> | |
| <span class="lbexHeaderAppropSmall"> | |
| <xsl:call-template name="convertToNeededCase"> | |
| <xsl:with-param name="localElementName">subheader</xsl:with-param> | |
| </xsl:call-template> | |
| </span> | |
| <xsl:if test ="$isToCloseTheBrackets = 'yes'"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>]</xsl:text> | |
| </span> | |
| </xsl:if> | |
| </xsl:when>--> | |
| <xsl:when test="$appropReportedStyle = 'italic'"> | |
| <span class="lbexHeaderAppropSmallItalic"> | |
| <!-- TB Sep2001 MultBrowsers italic tag inserted --> | |
| <i class="lbexTextNeutral"> | |
| <!-- TB 20Feb2009 --> | |
| <!--xsl:apply-templates/--> | |
| <xsl:call-template name="convertToNeededCase"> | |
| <xsl:with-param name="localElementName">subheader</xsl:with-param> | |
| </xsl:call-template> | |
| </i> | |
| </span> | |
| </xsl:when> | |
| <xsl:when test="$appropReportedStyle = 'strikethrough'"> | |
| <span class="lbexTextStrikethrough"> | |
| <span class="lbexHeaderAppropSmall"> | |
| <!-- TB 20Feb2009 --> | |
| <!--xsl:apply-templates/--> | |
| <xsl:call-template name="convertToNeededCase"> | |
| <xsl:with-param name="localElementName">subheader</xsl:with-param> | |
| </xsl:call-template> | |
| </span> | |
| </span> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:choose> | |
| <xsl:when | |
| test="child::added-phrase[@reported-display-style != ''] or child::deleted-phrase[@reported-display-style != '']"> | |
| <xsl:apply-templates/> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <span class="lbexHeaderAppropSmall"> | |
| <xsl:call-template name="convertToNeededCase"> | |
| <xsl:with-param name="localElementName">subheader</xsl:with-param> | |
| </xsl:call-template> | |
| </span> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:template> | |
| <!-- Appropriations sections --> | |
| <xsl:template name="appropriations-section"> | |
| <div style="text-align:left" class="lbexIndent"> | |
| <xsl:apply-templates/> | |
| </div> | |
| </xsl:template> | |
| <xsl:template match="appropriations-major"> | |
| <xsl:call-template name="appropriations-section"/> | |
| </xsl:template> | |
| <xsl:template match="appropriations-intermediate"> | |
| <xsl:call-template name="appropriations-section"/> | |
| </xsl:template> | |
| <xsl:template match="appropriations-small"> | |
| <xsl:call-template name="appropriations-section"/> | |
| </xsl:template> | |
| <xsl:template match="chapter"> | |
| <!-- TB Aug 2016 bug fixing 1434 --> | |
| <xsl:call-template name="printSectionAndDownStructure"> | |
| <xsl:with-param name="thePrintingTemplate">DisplayChapter</xsl:with-param> | |
| </xsl:call-template> | |
| </xsl:template> | |
| <xsl:template name="DisplayChapter"> | |
| <xsl:call-template name="createAnchor"/> | |
| <p/> | |
| <xsl:call-template name="displaySub"/> | |
| </xsl:template> | |
| <xsl:template | |
| match="//quoted-block/chapter/subchapter[last()]/section[last()]/paragraph[last()]"> | |
| <ul> | |
| <xsl:call-template name="printQuotedText"/> | |
| <xsl:if | |
| test="parent::section/parent::subchapter/parent::chapter/parent::quoted-block/child::after-quoted-block = ''"> | |
| <xsl:text>”</xsl:text> | |
| </xsl:if> | |
| </ul> | |
| </xsl:template> | |
| <xsl:template match="subchapter"> | |
| <!-- TB Aug 2016 bug fixing 1434 --> | |
| <xsl:call-template name="printSectionAndDownStructure"> | |
| <xsl:with-param name="thePrintingTemplate">DisplaySubchapter</xsl:with-param> | |
| </xsl:call-template> | |
| </xsl:template> | |
| <xsl:template name="DisplaySubchapter"> | |
| <xsl:call-template name="createAnchor"/> | |
| <xsl:call-template name="displaySub"/> | |
| </xsl:template> | |
| <xsl:template match="part | subpart | division | subdivision"> | |
| <!-- TB Aug 2016 bug fixing 1434 --> | |
| <xsl:call-template name="printSectionAndDownStructure"> | |
| <xsl:with-param name="thePrintingTemplate">displaySub</xsl:with-param> | |
| </xsl:call-template> | |
| </xsl:template> | |
| <xsl:template name="BigHeadsLinked"> | |
| <p> | |
| <div style="text-align:center"> | |
| <a> | |
| <xsl:attribute name="href"> | |
| <xsl:text>#</xsl:text> | |
| <xsl:value-of select="@id"/> | |
| </xsl:attribute> | |
| <!-- TB Jan-2014 billres clean up obsolete attributes --> | |
| <!--xsl:attribute name="NAME"--> | |
| <xsl:attribute name="id"> | |
| <xsl:text>toc-</xsl:text> | |
| <xsl:value-of select="@id"/> | |
| </xsl:attribute> | |
| <xsl:apply-templates select="enum"/> | |
| <xsl:apply-templates select="header"/> | |
| <xsl:if test="not(following-sibling::*)"> | |
| <xsl:value-of select="parent::quoted-block/child::after-quoted-block"/> | |
| </xsl:if> | |
| </a> | |
| </div> | |
| </p> | |
| </xsl:template> | |
| <xsl:template name="BigHeads"> | |
| <p> | |
| <div style="text-align:center;clear:both;"> | |
| <xsl:apply-templates select="enum"/> | |
| <xsl:apply-templates select="header"/> | |
| </div> | |
| <xsl:for-each select="child::*"> | |
| <xsl:choose> | |
| <xsl:when test="local-name() = 'enum' or local-name() = 'header'"> | |
| <!-- Nothing --> | |
| </xsl:when> | |
| <xsl:when test="local-name() = 'subdivision'"> | |
| <!-- Recursive call template --> | |
| <xsl:call-template name="BigHeads"/> | |
| </xsl:when> | |
| <xsl:when test="local-name() = 'title'"> | |
| <!-- Recursive call template --> | |
| <xsl:call-template name="BigHeads"/> | |
| </xsl:when> | |
| <xsl:when test="local-name() = 'subtitle'"> | |
| <!-- Recursive call template --> | |
| <xsl:call-template name="BigHeads"/> | |
| </xsl:when> | |
| <xsl:when test="local-name() = 'part'"> | |
| <!-- Recursive call template --> | |
| <xsl:call-template name="BigHeads"/> | |
| </xsl:when> | |
| <xsl:when test="local-name() = 'subpart'"> | |
| <!-- Recursive call template --> | |
| <xsl:call-template name="BigHeads"/> | |
| </xsl:when> | |
| <xsl:when test="local-name() = 'chapter'"> | |
| <!-- Recursive call template --> | |
| <!--<xsl:call-template name="BigHeads"/>--> | |
| <xsl:variable name="ancDisplayStyle"> | |
| <xsl:call-template name="getAncDisplayStyle"/> | |
| </xsl:variable> | |
| <xsl:choose> | |
| <xsl:when test="$ancDisplayStyle = 'italic'"> | |
| <i class="lbexTextNeutral"> | |
| <xsl:call-template name="DisplayChapter"/> | |
| </i> | |
| </xsl:when> | |
| <xsl:when test="$ancDisplayStyle = 'boldface-roman'"> | |
| <b class="lbexTextNeutral"> | |
| <xsl:call-template name="DisplayChapter"/> | |
| </b> | |
| </xsl:when> | |
| <xsl:when test="$ancDisplayStyle = 'boldface-italic'"> | |
| <b> | |
| <i class="lbexTextNeutral"> | |
| <xsl:call-template name="DisplayChapter"/> | |
| </i> | |
| </b> | |
| </xsl:when> | |
| <xsl:when test="$ancDisplayStyle = 'strikethrough'"> | |
| <span class="lbexTextStrikethrough"> | |
| <xsl:call-template name="DisplayChapter"/> | |
| </span> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:call-template name="DisplayChapter"/> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:when> | |
| <xsl:when test="local-name() = 'subchapter'"> | |
| <!-- Recursive call template --> | |
| <xsl:call-template name="BigHeads"/> | |
| </xsl:when> | |
| <xsl:when test="local-name() = 'section'"> | |
| <!-- TB 30Dec2008 Bug #884 --> | |
| <!--xsl:call-template name="displaySection"/--> | |
| <xsl:variable name="ancDisplayStyle"> | |
| <xsl:call-template name="getAncDisplayStyle"/> | |
| </xsl:variable> | |
| <xsl:choose> | |
| <xsl:when test="$ancDisplayStyle = 'italic'"> | |
| <i class="lbexTextNeutral"> | |
| <xsl:call-template name="displaySection"/> | |
| </i> | |
| </xsl:when> | |
| <xsl:when test="$ancDisplayStyle = 'boldface-roman'"> | |
| <b class="lbexTextNeutral"> | |
| <xsl:call-template name="displaySection"/> | |
| </b> | |
| </xsl:when> | |
| <xsl:when test="$ancDisplayStyle = 'boldface-italic'"> | |
| <b> | |
| <i class="lbexTextNeutral"> | |
| <xsl:call-template name="displaySection"/> | |
| </i> | |
| </b> | |
| </xsl:when> | |
| <xsl:when test="$ancDisplayStyle = 'strikethrough'"> | |
| <span class="lbexTextStrikethrough"> | |
| <xsl:call-template name="displaySection"/> | |
| </span> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:call-template name="displaySection"/> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:when> | |
| <xsl:when test="local-name() = 'toc'"> | |
| <xsl:apply-templates select="self::*"/> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:apply-templates/> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:for-each> | |
| </p> | |
| </xsl:template> | |
| <xsl:template name="displaySub"> | |
| <xsl:variable name="isIDReferenceExists"> | |
| <xsl:call-template name="IdReferenceExists"> | |
| <xsl:with-param name="currentID" select="./@id"/> | |
| </xsl:call-template> | |
| </xsl:variable> | |
| <xsl:call-template name="createAnchor"/> | |
| <xsl:choose> | |
| <!---xsl:when | |
| test="($billType='olc' and /bill/descendant::*/@idref=./@id) or | |
| ($billType='traditional' and /bill/descendant::*/@idref=./@id)"--> | |
| <xsl:when test="$isIDReferenceExists = 'yes'"> | |
| <xsl:call-template name="BigHeadsLinked"/> | |
| <xsl:choose> | |
| <xsl:when test="child::header"> | |
| <xsl:apply-templates select="child::header/following-sibling::*"/> | |
| </xsl:when> | |
| <xsl:when test="child::enum"> | |
| <xsl:apply-templates select="child::enum/following-sibling::*"/> | |
| </xsl:when> | |
| </xsl:choose> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:call-template name="BigHeads"/> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:template> | |
| <xsl:template name="createAnchor"> | |
| <a> | |
| <!-- TB Jan-2014 billres clean up obsolete attributes --> | |
| <!--xsl:attribute name="NAME"--> | |
| <xsl:attribute name="id"> | |
| <xsl:value-of select="@id"/> | |
| </xsl:attribute> | |
| <xsl:text> </xsl:text> | |
| </a> | |
| </xsl:template> | |
| <xsl:template name="createAnchorParent"> | |
| <a> | |
| <!-- TB Jan-2014 billres clean up obsolete attributes --> | |
| <!--xsl:attribute name="NAME"--> | |
| <xsl:attribute name="id"> | |
| <xsl:value-of select="parent::*/@id"/> | |
| </xsl:attribute> | |
| <xsl:text> </xsl:text> | |
| </a> | |
| </xsl:template> | |
| <xsl:template match="title"> | |
| <!-- TB Aug 2016 bug fixing 1434 --> | |
| <xsl:call-template name="printSectionAndDownStructure"> | |
| <xsl:with-param name="thePrintingTemplate">DisplayTitle</xsl:with-param> | |
| </xsl:call-template> | |
| </xsl:template> | |
| <xsl:template name="DisplayTitle"> | |
| <xsl:call-template name="createAnchor"/> | |
| <xsl:variable name="isIDReferenceExists"> | |
| <xsl:call-template name="IdReferenceExists"> | |
| <xsl:with-param name="currentID" select="./@id"/> | |
| </xsl:call-template> | |
| </xsl:variable> | |
| <xsl:choose> | |
| <!--xsl:when | |
| test="($billType='olc' and /bill/descendant::*/@idref=./@id) or | |
| ($billType='traditional' and /bill/descendant::*/@idref=./@id)"--> | |
| <xsl:when test="$isIDReferenceExists = 'yes'"> | |
| <xsl:call-template name="BigHeadsLinked"/> | |
| <xsl:choose> | |
| <xsl:when test="child::header"> | |
| <xsl:apply-templates select="child::header/following-sibling::*"/> | |
| </xsl:when> | |
| <xsl:when test="child::enum"> | |
| <xsl:apply-templates select="child::enum/following-sibling::*"/> | |
| </xsl:when> | |
| </xsl:choose> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:call-template name="BigHeads"/> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:template> | |
| <xsl:template match="subtitle"> | |
| <!-- TB Aug 2016 bug fixing 1434 --> | |
| <xsl:call-template name="printSectionAndDownStructure"> | |
| <xsl:with-param name="thePrintingTemplate">displaySubtitle</xsl:with-param> | |
| </xsl:call-template> | |
| </xsl:template> | |
| <xsl:template name="displaySubtitle"> | |
| <xsl:call-template name="createAnchor"/> | |
| <xsl:variable name="isIDReferenceExists"> | |
| <xsl:call-template name="IdReferenceExists"> | |
| <xsl:with-param name="currentID" select="./@id"/> | |
| </xsl:call-template> | |
| </xsl:variable> | |
| <xsl:choose> | |
| <!--xsl:when | |
| test="($billType='olc' and /bill/descendant::*/@idref=./@id) or | |
| ($billType='traditional' and /bill/descendant::*/@idref=./@id)"--> | |
| <xsl:when test="$isIDReferenceExists = 'yes'"> | |
| <xsl:call-template name="BigHeadsLinked"/> | |
| <xsl:choose> | |
| <xsl:when test="child::header"> | |
| <xsl:apply-templates select="child::header/following-sibling::*"/> | |
| </xsl:when> | |
| <xsl:when test="child::enum"> | |
| <xsl:apply-templates select="child::enum/following-sibling::*"/> | |
| </xsl:when> | |
| </xsl:choose> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:call-template name="BigHeads"/> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:template> | |
| <xsl:template name="nestedQB"> | |
| <xsl:choose> | |
| <xsl:when test="count(ancestor::quoted-block)>=2 "> | |
| <xsl:text>yes</xsl:text> | |
| </xsl:when> | |
| <xsl:otherwise>no</xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:template> | |
| <xsl:template match="toc/child::*//text()"> | |
| <xsl:variable name="currElementStyle"> | |
| <xsl:call-template name="getCurrentElementStyle"/> | |
| </xsl:variable> | |
| <xsl:variable name="isCodificationStyle"> | |
| <xsl:call-template name="codification"/> | |
| </xsl:variable> | |
| <xsl:variable name="isNestedQB"> | |
| <xsl:call-template name="nestedQB"/> | |
| </xsl:variable> | |
| <xsl:variable name="parentOrLevel"> | |
| <xsl:choose> | |
| <xsl:when test="ancestor::toc-entry and ancestor::toc-entry/@level"> | |
| <xsl:value-of select="ancestor::toc-entry/@level"/> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:text>section</xsl:text> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:variable> | |
| <xsl:choose> | |
| <xsl:when | |
| test="($parentOrLevel = 'part' or $parentOrLevel = 'subpart') and $currElementStyle = 'tax'"> | |
| <span class="lbexInitialCapArchaic"> | |
| <xsl:value-of select="."/> | |
| </span> | |
| </xsl:when> | |
| <xsl:when | |
| test="$parentOrLevel = 'division' or $parentOrLevel = 'title' or $parentOrLevel = 'part' or $parentOrLevel = 'subpart' or $parentOrLevel = 'chapter' or $parentOrLevel = 'subchapter'"> | |
| <xsl:choose> | |
| <xsl:when test="contains(ancestor-or-self::quoted-block/@other-style,'codification')"> | |
| <xsl:value-of select="."/> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:value-of select="translate(., $lower, $upper)"/> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:when> | |
| <xsl:when test="$parentOrLevel = 'subtitle'"> | |
| <xsl:value-of select="."/> | |
| </xsl:when> | |
| <xsl:when test="$parentOrLevel = 'subdivision'"> | |
| <span class="lbexSectionTitleTrad"> | |
| <xsl:value-of select="."/> | |
| </span> | |
| </xsl:when> | |
| <!-- TB May-20-2015 fixing tax toc-entry - extra closing quotes printing --> | |
| <!--xsl:when test="following::text()[1]=ancestor::quoted-block/after-quoted-block"--> | |
| <xsl:when | |
| test="following::text()[1] = ancestor::quoted-block/after-quoted-block and (local-name(parent::*) != 'toc-entry' or $currElementStyle != 'tax')"> | |
| <xsl:value-of select="."/> | |
| <xsl:choose> | |
| <xsl:when test="$isCodificationStyle='yes' "> | |
| <xsl:choose> | |
| <xsl:when test="ancestor::quoted-block/@other-style!='codification-quoted'"> | |
| </xsl:when> | |
| <!---TASK #11321 and 11337 FY2020--> | |
| <xsl:when test="local-name(following::*[1])='multi-column-toc-entry' and ancestor::quoted-block/@other-style!='codification-quoted'"> | |
| </xsl:when> | |
| <xsl:when test="local-name(following::*[1])='after-quoted-block' and ancestor::quoted-block/@other-style ='codification-quoted'"> | |
| <xsl:text>”</xsl:text> | |
| <xsl:value-of select="ancestor::quoted-block/after-quoted-block"/> | |
| </xsl:when> | |
| </xsl:choose> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:choose> | |
| <xsl:when test="$isNestedQB='yes' and local-name(parent::*[1])='toc-entry' and not(parent::*[2])"> | |
| <xsl:text>’</xsl:text> | |
| <xsl:value-of select="ancestor::quoted-block/after-quoted-block"/> | |
| <xsl:text>”</xsl:text> | |
| <xsl:value-of select="ancestor::quoted-block/after-quoted-block"/> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:text>”</xsl:text> | |
| <xsl:value-of select="ancestor::quoted-block/after-quoted-block"/> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:when> | |
| <!-- TB 12July2010 fixing error compilation wrong condition --> | |
| <!--xsl:when test="following::text()[1]=ancestor::quoted-block/after-quoted-block =''"> | |
| <xsl:value-of select="."/> | |
| </xsl:when--> | |
| <xsl:when test="following::text()[1] and ancestor::quoted-block/after-quoted-block = ''"> | |
| <xsl:choose> | |
| <xsl:when test =" name(following::node()[1]) = 'after-quoted-block' and following::quoted-block[1]/@other-style='codification-not-quoted' and ancestor::quoted-block/@other-style='codification-quoted'"> | |
| <xsl:value-of select="."/> | |
| <xsl:if | |
| test="substring(normalize-space(.), string-length(normalize-space(.))) != '.'"> | |
| <xsl:text>.”</xsl:text> | |
| </xsl:if> | |
| </xsl:when> | |
| <!-- TFS TASK #11321 FY2020--> | |
| <xsl:when test =" local-name(following::*[1]) = 'after-quoted-block' and ancestor::quoted-block/@other-style='codification-quoted' and $isNestedQB ='no'"> | |
| <xsl:value-of select="."/> | |
| <xsl:text>”</xsl:text> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:value-of select="."/> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:when> | |
| <xsl:when | |
| test="name(following::node()[1]) = 'after-quoted-block' and following::node()[1] = '' "> | |
| <xsl:choose> | |
| <xsl:when test=" ancestor::quoted-block[1]/@other-style !='codification-not-quoted'"> | |
| <xsl:value-of select="."/> | |
| <xsl:if | |
| test="substring(normalize-space(.), string-length(normalize-space(.))) != '.'"> | |
| <xsl:text>.”</xsl:text> | |
| </xsl:if> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:value-of select="."/> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:when> | |
| <xsl:when test=". = 'TABLE OF CONTENTS' and $billType = 'traditional'"> | |
| <xsl:value-of select="."/> | |
| </xsl:when> | |
| <xsl:when test="ancestor::toc-entry/parent::toc/parent::chapter"> | |
| <xsl:choose> | |
| <xsl:when test="parent::toc-entry[@level = 'subchapter']"> | |
| <span class="lbexInitialCapTrad"> | |
| <xsl:text>subchapter </xsl:text> | |
| </span> | |
| <xsl:value-of select="substring-after(., 'Subchapter ')"/> | |
| <xsl:text>.</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="$parentOrLevel = 'section'"> | |
| <xsl:value-of select="."/> | |
| <xsl:if | |
| test="substring(normalize-space(.), string-length(normalize-space(.))) != '.'"> | |
| <xsl:text>.</xsl:text> | |
| </xsl:if> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:value-of select="."/> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:when> | |
| <xsl:when test="$parentOrLevel = 'chapter'"> | |
| <!-- TB this condition is weird - check it later --> | |
| <xsl:choose> | |
| <xsl:when test="$parentOrLevel = 'chapter'"> | |
| <span class="lbexTocChapterTrad"> | |
| <xsl:text>chapter </xsl:text> | |
| </span> | |
| <xsl:value-of select="substring-after(., 'Chapter ')"/> | |
| <xsl:text>.</xsl:text> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:value-of select="."/> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:when> | |
| <xsl:when | |
| test=" | |
| $parentOrLevel = 'subtitle' or $parentOrLevel = 'subchapter' | |
| or $parentOrLevel = 'part' or $parentOrLevel = 'subpart'"> | |
| <xsl:value-of select="."/> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:value-of select="."/> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:template> | |
| <xsl:template match="toc/toc-entry/act-name/text()"> | |
| <xsl:value-of select="."/> | |
| </xsl:template> | |
| <xsl:template match="text()"> | |
| <xsl:variable name="currentElementStyle"> | |
| <xsl:call-template name="getCurrentElementStyle"/> | |
| </xsl:variable> | |
| <xsl:variable name="isToCloseTheBrackets"> | |
| <xsl:call-template name="toCloseTheBrakets"/> | |
| </xsl:variable> | |
| <xsl:variable name="isCodificationStyle"> | |
| <xsl:call-template name="codification"/> | |
| </xsl:variable> | |
| <xsl:variable name="isNestedQB"> | |
| <xsl:call-template name="nestedQB"/> | |
| </xsl:variable> | |
| <xsl:choose> | |
| <!-- TB MAy 2011 bug #1208 --> | |
| <xsl:when test="parent::after-quoted-block"/> | |
| <xsl:when test="following::text()[1] = ancestor::quoted-block/after-quoted-block"> | |
| <xsl:choose> | |
| <xsl:when | |
| test="../parent::section and parent::header and $currentElementStyle = 'traditional'"> | |
| <span class="lbexSimpleCapNormal"> | |
| <xsl:value-of select="."/> | |
| <!-- TB 33Jan2008 Bug #767 --> | |
| <xsl:call-template name="closeQuotesByCondition"/> | |
| </span> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <!--TB Bug #860 --> | |
| <!--xsl:value-of select="."/--> | |
| <xsl:choose> | |
| <xsl:when | |
| test=" | |
| name(..) != 'added-phrase' and name(..) != 'entry' and name(..) != 'act-name' and | |
| following::*[1] = ancestor::quoted-block/after-quoted-block and not(parent::quote)"> | |
| <xsl:variable name="textToPrint"> | |
| <xsl:call-template name="RemoveSpaces"> | |
| <xsl:with-param name="origString"> | |
| <xsl:value-of select="."/> | |
| </xsl:with-param> | |
| </xsl:call-template> | |
| </xsl:variable> | |
| <xsl:call-template name="ActualPrintIChangedTextWithParam"> | |
| <xsl:with-param name="aTheTextToPrint" select="$textToPrint"/> | |
| </xsl:call-template> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:call-template name="ActualPrintIChangedText"/> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| <xsl:if test="position() = last()"> | |
| <xsl:choose> | |
| <xsl:when test="name(..) = 'list-item' and not(position() = last())"> | |
| <xsl:value-of select="following::text()[1]"/> | |
| <xsl:call-template name="closeQuotes"/> | |
| <xsl:value-of select="following::text()[1]"/> | |
| </xsl:when> | |
| <xsl:when | |
| test=" | |
| name(..) != 'added-phrase' and name(..) != 'entry' and name(..) != 'act-name' and | |
| following::*[1] = ancestor::quoted-block/after-quoted-block and not(parent::quote)"> | |
| <xsl:if | |
| test="$isToCloseTheBrackets = 'yes' and contains(ancestor::quoted-block/@reported-display-style, 'brackets') and (ancestor::quoted-block/title or ancestor::quoted-block/subtitle)"> | |
| <xsl:call-template name="closedBracketStyles"/> | |
| </xsl:if> | |
| <xsl:call-template name="closeQuotes"/> | |
| <!--TASK# 11552 FY2020--> | |
| <xsl:if test= "$isNestedQB='no' "> | |
| <xsl:choose> | |
| <xsl:when test="local-name(parent::*[1])='short-title' and following::text()[1]='.'"> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:value-of select="following::text()[1]"/> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:if> | |
| <!-- TB May 2011 bug #1208 --> | |
| <xsl:variable name="isNextNonEmptyAfterQuotedBlock"> | |
| <xsl:call-template name="NextNonEmptyAfterQuotedBlock"> | |
| <xsl:with-param name="currentNode" | |
| select="ancestor::quoted-block[1]"/> | |
| </xsl:call-template> | |
| </xsl:variable> | |
| <xsl:if test="$isNextNonEmptyAfterQuotedBlock = 'true'"> | |
| <xsl:call-template name="closeQuotes"> | |
| <xsl:with-param name="currNode" | |
| select="following::after-quoted-block[2]"/> | |
| </xsl:call-template> | |
| <xsl:if test="following::after-quoted-block[2]/child::*"> | |
| <xsl:for-each | |
| select="following::after-quoted-block[2]/child::*"> | |
| <xsl:choose> | |
| <xsl:when | |
| test="local-name() = 'deleted-phrase' or local-name() = 'added-phrase'"> | |
| <xsl:apply-templates/> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:value-of select="."/> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:for-each> | |
| </xsl:if> | |
| <!-- TB 4Oct2011 double after quoted block printing check --> | |
| <xsl:if | |
| test="not(following::after-quoted-block[2]/child::*)"> | |
| <xsl:call-template name="NestedCloseQB"></xsl:call-template> | |
| </xsl:if> | |
| </xsl:if> | |
| </xsl:when> | |
| </xsl:choose> | |
| </xsl:if> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:when> | |
| <xsl:when | |
| test="name(following::node()[1]) = 'after-quoted-block' and following::node()[1] = ''"> | |
| <xsl:value-of select="."/> | |
| <!--Implementation of codification style quotes and non quoted FY2020 Parent Task 10500--> | |
| <xsl:choose> | |
| <xsl:when test="$isCodificationStyle='yes' and ancestor::quoted-block/@other-style='codification-not-quoted'"></xsl:when> | |
| <xsl:when test="ancestor::quoted-block and ancestor::table and not(ancestor::quoted-block/@other-style)"></xsl:when> | |
| <xsl:otherwise> | |
| <xsl:text>”</xsl:text> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:when> | |
| <xsl:when test="parent::after-quoted-block"/> | |
| <xsl:when | |
| test="parent::header/child::added-phrase or parent::header/child::deleted-phrase"> | |
| <!-- TB 17Mar08 bug #874 first line added, bcause the text before/after deleted or added phrase was not printed. --> | |
| <!--xsl:value-of select="."/--> | |
| <xsl:call-template name="displayHeader"/> | |
| <!-- TB 21Mar2008 the period was removed because it is not related to here. if for some reason it must appear there it must be by additional condition --> | |
| <!--xsl:text>.</xsl:text--> | |
| </xsl:when> | |
| <xsl:when test="parent::header/parent::section and parent::header/child::enum-in-header"> | |
| <xsl:choose> | |
| <xsl:when test="$currentElementStyle = 'OLC'"> | |
| <span class="lbexSectionlevelOLC"> | |
| <xsl:if test="not(parent::enum-in-header)"> | |
| <xsl:value-of select="translate(., $lower, $upper)"/> | |
| </xsl:if> | |
| <xsl:if test="parent::enum-in-header"> | |
| <xsl:value-of select="."/> | |
| </xsl:if> | |
| </span> | |
| </xsl:when> | |
| <xsl:when test="$currentElementStyle = 'traditional'"> | |
| <span class="lbexTocSectionIRCBold"> | |
| <xsl:if test="not(parent::enum-in-header)"> | |
| <xsl:value-of select="translate(., $lower, $upper)"/> | |
| </xsl:if> | |
| <xsl:if test="parent::enum-in-header"> | |
| <xsl:value-of select="."/> | |
| </xsl:if> | |
| </span> | |
| </xsl:when> | |
| <xsl:when test="contains($currentElementStyle, 'archaic')"> | |
| <span class="lbexTocSectionIRCBold"> | |
| <xsl:if test="not(parent::enum-in-header)"> | |
| <xsl:value-of select="translate(., $lower, $upper)"/> | |
| </xsl:if> | |
| <xsl:if test="parent::enum-in-header"> | |
| <xsl:value-of select="."/> | |
| </xsl:if> | |
| </span> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:value-of select="."/> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:when> | |
| <xsl:when | |
| test="../parent::subchapter and parent::header and ($currentElementStyle = 'archaic-paragraph')"> | |
| <xsl:value-of select="translate(., $lower, $upper)"/> | |
| </xsl:when> | |
| <!--xsl:when test="$currentElementStyle='tax'"> | |
| <span class="indentTax"> | |
| <xsl:value-of select="."/> | |
| </span> | |
| </xsl:when--> | |
| <xsl:otherwise> | |
| <xsl:call-template name="ActualPrintIChangedText"/> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:template> | |
| <!-- TB 26Feb2008 Extracted to separate template - to allow call this function from several places --> | |
| <xsl:template name="ActualPrintIChangedText"> | |
| <xsl:call-template name="ActualPrintIChangedTextWithParam"> | |
| <xsl:with-param name="aTheTextToPrint" select="."/> | |
| </xsl:call-template> | |
| </xsl:template> | |
| <xsl:template name="ActualPrintIChangedTextWithParam"> | |
| <xsl:param name="aTheTextToPrint"/> | |
| <xsl:variable name="printItalicTextForReport"> | |
| <xsl:call-template name="IsPrintItalicTextForReport"/> | |
| </xsl:variable> | |
| <xsl:variable name="toBeNeutralized"> | |
| <xsl:call-template name="isNeutralizeSegment"/> | |
| </xsl:variable> | |
| <xsl:variable name="neutralBlockClassName"> | |
| <xsl:call-template name="getNeutralBlockClassName"/> | |
| </xsl:variable> | |
| <xsl:variable name="neutralInlineClassName"> | |
| <xsl:call-template name="getNeutralInlineClassName"/> | |
| </xsl:variable> | |
| <xsl:choose> | |
| <xsl:when test="$printItalicTextForReport = 'yes' and @commented = 'yes'"> | |
| <i> | |
| <xsl:if test="$toBeNeutralized = 'yes'"> | |
| <xsl:attribute name="class"> | |
| <xsl:value-of select="$neutralInlineClassName"/> | |
| </xsl:attribute> | |
| </xsl:if> | |
| <xsl:value-of select="$aTheTextToPrint"/> | |
| </i> | |
| </xsl:when> | |
| <xsl:when | |
| test="ancestor::amendment-block[@changed = 'added' and @reported-display-style = 'italic']"> | |
| <xsl:choose> | |
| <xsl:when test="local-name(parent::*[1])='bold'"> | |
| <b> | |
| <i> | |
| <xsl:if test="$toBeNeutralized = 'yes'"> | |
| <xsl:attribute name="class"> | |
| <xsl:value-of select="$neutralInlineClassName"/> | |
| </xsl:attribute> | |
| </xsl:if> | |
| <xsl:value-of select="$aTheTextToPrint"/> | |
| </i> | |
| </b> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <i> | |
| <xsl:if test="$toBeNeutralized = 'yes'"> | |
| <xsl:attribute name="class"> | |
| <xsl:value-of select="$neutralInlineClassName"/> | |
| </xsl:attribute> | |
| </xsl:if> | |
| <xsl:value-of select="$aTheTextToPrint"/> | |
| </i> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:when> | |
| <xsl:when | |
| test="ancestor::amendment-block[@changed = 'added' and @reported-display-style = 'boldface-italic']"> | |
| <span class="lbexBldItalic"> | |
| <xsl:value-of select="$aTheTextToPrint"/> | |
| </span> | |
| </xsl:when> | |
| <xsl:when | |
| test="ancestor::whereas[@changed = 'deleted' and @reported-display-style = 'strikethrough']"> | |
| <span class="lbexTextStrikethrough"> | |
| <xsl:choose> | |
| <xsl:when test="local-name(parent::*[1])='bold'"> | |
| <b><xsl:value-of select="$aTheTextToPrint"/></b> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:value-of select="$aTheTextToPrint"/> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </span> | |
| </xsl:when> | |
| <xsl:when | |
| test="ancestor::amendment-block[@changed = 'deleted' and @reported-display-style = 'strikethrough']"> | |
| <span class="lbexTextStrikethrough"> | |
| <xsl:choose> | |
| <xsl:when test="local-name(parent::*[1])='bold'"> | |
| <b><xsl:value-of select="$aTheTextToPrint"/></b> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:value-of select="$aTheTextToPrint"/> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </span> | |
| </xsl:when> | |
| <xsl:when | |
| test="ancestor::*[@changed = 'deleted' and @reported-display-style = 'strikethrough'] and ancestor::table"> | |
| <span class="lbexTextStrikethrough"> | |
| <xsl:choose> | |
| <xsl:when test="local-name(parent::*[1])='bold'"> | |
| <b><xsl:value-of select="$aTheTextToPrint"/></b> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:value-of select="$aTheTextToPrint"/> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </span> | |
| </xsl:when> | |
| <xsl:when | |
| test="ancestor::*[@changed = 'added' and @reported-display-style = 'italic'] and ancestor::table"> | |
| <i> | |
| <xsl:if test="$toBeNeutralized = 'yes'"> | |
| <xsl:attribute name="class"> | |
| <xsl:value-of select="$neutralInlineClassName"/> | |
| </xsl:attribute> | |
| </xsl:if> | |
| <xsl:choose> | |
| <xsl:when test="local-name(parent::*[1])='bold'"> | |
| <b><xsl:value-of select="$aTheTextToPrint"/></b> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:value-of select="$aTheTextToPrint"/> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </i> | |
| </xsl:when> | |
| <xsl:when | |
| test="ancestor::whereas[@changed = 'added' and @reported-display-style = 'italic']"> | |
| <i> | |
| <xsl:if test="$toBeNeutralized = 'yes'"> | |
| <xsl:attribute name="class"> | |
| <xsl:value-of select="$neutralInlineClassName"/> | |
| </xsl:attribute> | |
| </xsl:if> | |
| <xsl:choose> | |
| <xsl:when test="local-name(parent::*[1])='bold'"> | |
| <b><xsl:value-of select="$aTheTextToPrint"/></b> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:value-of select="$aTheTextToPrint"/> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </i> | |
| </xsl:when> | |
| <xsl:when | |
| test="ancestor::*[@changed = 'added' and @reported-display-style = 'boldface-italic']"> | |
| <span> | |
| <xsl:if test="$toBeNeutralized = 'yes'"> | |
| <xsl:attribute name="class"> | |
| <xsl:value-of select="$neutralInlineClassName"/> | |
| </xsl:attribute> | |
| </xsl:if> | |
| <xsl:value-of select="$aTheTextToPrint"/> | |
| </span> | |
| </xsl:when> | |
| <xsl:when | |
| test="(ancestor::appropriations-major or ancestor::appropriations-intermediate or ancestor::appropriations-small) and (parent::header) and (preceding-sibling::deleted-phrase or following-sibling::deleted-phrase or preceding-sibling::added-phrase or following-sibling::added-phrase)"> | |
| <xsl:call-template name="PrintHeaderForAppropriations"/> | |
| </xsl:when> | |
| <xsl:when | |
| test="(ancestor::appropriations-major or ancestor::appropriations-intermediate or ancestor::appropriations-small) and (parent::subheader) and (preceding-sibling::deleted-phrase or following-sibling::deleted-phrase or preceding-sibling::added-phrase or following-sibling::added-phrase)"> | |
| <xsl:call-template name="ActualDisplayApppropriationsSubheader"/> | |
| </xsl:when> | |
| <xsl:when test="contains(local-name(..), 'rules-clause')"> | |
| <!-- bug fixing #1202 - like in translation - exception for rules-clause --> | |
| <xsl:value-of select="normalize-space($aTheTextToPrint)"/> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:choose> | |
| <xsl:when test=" local-name(parent::*[1])='bold' or (contains(ancestor::table/@table-type,'bold') and local-name(ancestor-or-self::thead)='thead')"> | |
| <b><xsl:value-of select="$aTheTextToPrint"/></b> | |
| </xsl:when> | |
| <xsl:when test= "contains(ancestor::table/@table-type,'subformat') and local-name(ancestor-or-self::thead)='thead' "> | |
| <b><xsl:value-of select="$aTheTextToPrint"/></b> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:choose> | |
| <xsl:when test="current()='That the Senate—' and parent::node()/@display-inline='no-display-inline' and ancestor::node()/@reported-display-style='strikethrough'"> | |
| <div style="text-indent: 2em" class="lbexTextStrikethrough"> | |
| <xsl:value-of select="$aTheTextToPrint"/> | |
| </div> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:value-of select="$aTheTextToPrint"/> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:template> | |
| <xsl:template match="conference-report-form/legis-type"> | |
| <div style="text-align:center"> | |
| <br/> | |
| <br/> | |
| <span class="lbexLargeCapTrad"> | |
| <xsl:value-of select="."/> | |
| </span> | |
| <br/> | |
| <br/> | |
| <xsl:call-template name="printToAccompanyText"/> | |
| </div> | |
| </xsl:template> | |
| <xsl:template match="committee-report-form/legis-type"> | |
| <div style="text-align:center"> | |
| <br/> | |
| <br/> | |
| <xsl:choose> | |
| <xsl:when test="translate(., $lower, $upper) = 'REPORT'"> | |
| <span class="lbexLargeCapTrad"> | |
| <xsl:call-template name="insertSpaces"> | |
| <xsl:with-param name="origString" select="translate(., $lower, $upper)" | |
| /> | |
| </xsl:call-template> | |
| </span> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <span class="lbexLargeCapTrad"> | |
| <xsl:value-of select="translate(., $lower, $upper)"/> | |
| </span> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| <br/> | |
| <br/> | |
| <!--xsl:call-template name="printToAccompanyText"/--> | |
| </div> | |
| </xsl:template> | |
| <xsl:template match="short-title"> | |
| <!--xsl:value-of select="."/--> | |
| <xsl:apply-templates/> | |
| </xsl:template> | |
| <xsl:template match="text"> | |
| <xsl:if | |
| test="parent::section/@section-type = 'undesignated-section' and (not(parent::section/enum) or normalize-space(parent::section/enum) = '') and (not(parent::section/header) or normalize-space(parent::section/header) = '')"> | |
| <xsl:call-template name="createAnchorParent"/> | |
| </xsl:if> | |
| <xsl:variable name="isLastElement"> | |
| <xsl:call-template name="isLastElementInLoop"/> | |
| </xsl:variable> | |
| <xsl:variable name="currentElementStyle"> | |
| <xsl:call-template name="getCurrentElementStyle"/> | |
| </xsl:variable> | |
| <xsl:variable name="isToCloseTheBrackets"> | |
| <xsl:call-template name="toCloseTheBrakets"/> | |
| </xsl:variable> | |
| <xsl:choose> | |
| <!-- TB 31Aug2007 #685 ext. Not to print inline text when my parent is no-inline and I have no header or enum cild before text --> | |
| <xsl:when | |
| test=" | |
| (@display-inline = 'yes-display-inline' or not(@display-inline)) and | |
| ((parent::section/@display-inline = 'yes-display-inline' or parent::section/enum or parent::section/header) or | |
| (parent::subsection/@display-inline = 'yes-display-inline' or parent::subsection/enum or parent::subsection/header) or | |
| (parent::paragraph/@display-inline = 'yes-display-inline' or parent::paragraph/enum or parent::paragraph/header) or | |
| (parent::subparagraph/@display-inline = 'yes-display-inline' or parent::subparagraph/enum or parent::paragraph/header) or | |
| (parent::item/@display-inline = 'yes-display-inline' or parent::item/enum or parent::item/header) or | |
| (parent::subitem/@display-inline = 'yes-display-inline' or parent::subitem/enum or parent::subitem/header) or | |
| (parent::clause/@display-inline = 'yes-display-inline' or parent::clause/enum or parent::clause/header) or | |
| (parent::subclause/@display-inline = 'yes-display-inline' or parent::subclause/enum or parent::subclause/header)) or | |
| (parent::amendment-block/@display-inline = 'yes-display-inline')"> | |
| <xsl:if test="parent::amendment-block"> | |
| <xsl:text> </xsl:text> | |
| </xsl:if> | |
| <xsl:apply-templates/> | |
| <xsl:choose> | |
| <xsl:when | |
| test="((contains(ancestor-or-self::*/@reported-display-style, 'brackets')) or ancestor-or-self::*/@reported-display-style = 'bold-brackets') and $isLastElement = 'yes' and $isToCloseTheBrackets = 'yes' and (parent::*[1]/@indent != 'up1' or not(parent::*[1]/@indent))"> | |
| <xsl:call-template name="closedBracketStyles"/> | |
| </xsl:when> | |
| <xsl:when | |
| test="(contains(parent::section/@commented, 'yes')) and $isLastElement = 'yes'"> | |
| <xsl:call-template name="closedBracketStyles"/> | |
| </xsl:when> | |
| <xsl:when | |
| test="(contains(parent::paragraph/@commented, 'yes')) and $isLastElement = 'yes' and (parent::*[1]/@indent != 'up1' or not(parent::*[1]/@indent))"> | |
| <xsl:call-template name="closedBracketStyles"/> | |
| </xsl:when> | |
| <xsl:when | |
| test="(contains(parent::subsection/@commented, 'yes')) and $isLastElement = 'yes' and (parent::*[1]/@indent != 'up1' or not(parent::*[1]/@indent))"> | |
| <xsl:call-template name="closedBracketStyles"/> | |
| </xsl:when> | |
| <xsl:when | |
| test="(contains(parent::subparagraph/@commented, 'yes')) and $isLastElement = 'yes' and (parent::*[1]/@indent != 'up1' or not(parent::*[1]/@indent))"> | |
| <xsl:call-template name="closedBracketStyles"/> | |
| </xsl:when> | |
| <xsl:when | |
| test="(contains(parent::clause/@commented, 'yes')) and $isLastElement = 'yes' and (parent::*[1]/@indent != 'up1' or not(parent::*[1]/@indent))"> | |
| <xsl:call-template name="closedBracketStyles"/> | |
| </xsl:when> | |
| <xsl:when | |
| test="(contains(parent::subclause/@commented, 'yes')) and $isLastElement = 'yes' and (parent::*[1]/@indent != 'up1' or not(parent::*[1]/@indent))"> | |
| <xsl:call-template name="closedBracketStyles"/> | |
| </xsl:when> | |
| </xsl:choose> | |
| </xsl:when> | |
| <!-- TB 31Dec2007 optimize the condition --> | |
| <!--xsl:when test="parent::*/@display-inline='yes-display-inline' or parent::*/enum or parent::*/header"> | |
| <xsl:apply-templates/> | |
| </xsl:when--> | |
| <xsl:when | |
| test="parent::section/@display-inline = 'yes-display-inline' or parent::section/@section-type = 'resolved'"> | |
| <xsl:if test="parent::section/ancestor::quoted-block"> | |
| <xsl:call-template name="openQuotes"/> | |
| </xsl:if> | |
| <xsl:apply-templates/> | |
| </xsl:when> | |
| <xsl:when | |
| test="parent::section/@display-inline = 'no-display-inline' and $billType = 'traditional'"> | |
| <span class="lbexIndent"> | |
| <xsl:call-template name="ActualPrintText"/> | |
| </span> | |
| </xsl:when> | |
| <!--<xsl:when | |
| test=" | |
| parent::section/@display-inline = 'no-display-inline' and | |
| not(following-sibling::quoted-block[@display-inline = 'yes-display-inline']) and $billType = 'appropriations'"> | |
| <!-\- TB 28Apr2009 -\-> | |
| <xsl:call-template name="ActualPrintText"/> | |
| </xsl:when>--> | |
| <xsl:when | |
| test=" | |
| parent::section/@display-inline = 'no-display-inline' and | |
| not(following-sibling::quoted-block[@display-inline = 'yes-display-inline'])"> | |
| <!-- TB in Tax style show titles smaller indentTax --> | |
| <p style="text-align:left" class="lbexIndent"> | |
| <xsl:call-template name="ActualPrintText"/> | |
| <xsl:choose> | |
| <xsl:when | |
| test="(contains(ancestor-or-self::*/@reported-display-style, 'brackets')) and $isLastElement = 'yes' and $isToCloseTheBrackets = 'yes' and following-sibling::list/@changed = 'not-changed' and $currentElementStyle = 'OLC'"> | |
| <xsl:call-template name="closedBracketStyles"/> | |
| </xsl:when> | |
| <!--<xsl:when | |
| test="(contains(parent::section/@commented, 'yes')) and $isLastElement = 'yes'"> | |
| <xsl:call-template name="closedBracketStyles"/> | |
| </xsl:when>--> | |
| </xsl:choose> | |
| </p> | |
| </xsl:when> | |
| <xsl:when test="parent::enum-in-header"> | |
| <xsl:value-of select="."/> | |
| </xsl:when> | |
| <xsl:when | |
| test="parent::amendment-instruction or parent::committee-report-para or parent::committee-report-subpara or parent::committee-report-segment or parent::purpose-of-bill or parent::background-needs or parent::committee-recommendation or parent::legislative-history or parent::summary-of-provisions or parent::estimated-costs or parent::regulatory-impact or parent::directed-spending or parent::sec-by-sec-analysis"> | |
| <xsl:choose> | |
| <xsl:when | |
| test="(local-name(preceding-sibling::*[1]) = 'committee-report-header' or local-name(preceding-sibling::*[1]) = 'enum') and @display-inline = 'no-display-inline'"> | |
| <p style="text-align:left" class="lbexIndentInstruction"> | |
| <xsl:call-template name="ActualPrintText"/> | |
| </p> | |
| </xsl:when> | |
| <xsl:when | |
| test="local-name(preceding-sibling::*[1]) = 'committee-report-header' and not(@display-inline = 'yes-display-inline')"> | |
| <p style="text-align:left" class="lbexIndent"> | |
| <xsl:call-template name="ActualPrintText"/> | |
| </p> | |
| <xsl:if test="not(following-sibling::*)"> | |
| <p/> | |
| </xsl:if> | |
| </xsl:when> | |
| <xsl:when | |
| test="local-name(preceding-sibling::*[1]) = 'committee-report-header' or local-name(preceding-sibling::*[1]) = 'enum'"> | |
| <span style="text-align:left" class="lbexIndent"> | |
| <xsl:call-template name="ActualPrintText"/> | |
| </span> | |
| <xsl:if test="not(following-sibling::*)"> | |
| <p/> | |
| </xsl:if> | |
| </xsl:when> | |
| <xsl:when | |
| test="(local-name(preceding-sibling::*[1]) = 'text' or local-name(preceding-sibling::*[1]) = 'committee-report-para')"> | |
| <div style="text-align:left" class="lbexIndent"> | |
| <xsl:call-template name="ActualPrintText"/> | |
| </div> | |
| <xsl:if test="not(following-sibling::*)"> | |
| <p/> | |
| </xsl:if> | |
| </xsl:when> | |
| <xsl:when | |
| test="parent::committee-report-para and ancestor::committee-report-segment"> | |
| <div style="text-align:left" class="lbexIndent"> | |
| <xsl:call-template name="ActualPrintText"/> | |
| </div> | |
| <xsl:if test="not(parent::*/following-sibling::*)"> | |
| <p/> | |
| </xsl:if> | |
| </xsl:when> | |
| <xsl:when test="parent::amendment-instruction"> | |
| <div class="lbexIndentInstruction" style="text-align:left"> | |
| <xsl:call-template name="ActualPrintText"/> | |
| </div> | |
| <xsl:call-template name="InsertBlankLines"> | |
| <xsl:with-param name="aLinesNumber"> | |
| <xsl:choose> | |
| <xsl:when | |
| test="parent::amendment-instruction/@blank-lines-after"> | |
| <xsl:value-of | |
| select="parent::amendment-instruction/@blank-lines-after" | |
| /> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:text>1</xsl:text> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:with-param> | |
| </xsl:call-template> | |
| <xsl:if | |
| test="not(parent::amendment-instruction/following-sibling::*) and not(parent::amendment-instruction/parent::amendment/following-sibling::*)"> | |
| <p/> | |
| </xsl:if> | |
| </xsl:when> | |
| <xsl:when | |
| test="(parent::committee-report-para or parent::committee-report-segment) and //amendment-doc"> | |
| <!-- TB 12Dec12 BugFixing #1287 --> | |
| <table style="width:80%" align="center" class="lbexSmallText"> | |
| <tr> | |
| <td class="lbexIndent"> | |
| <p style="text-align:left" class="lbexIndent"> | |
| <xsl:call-template name="ActualPrintText"/> | |
| </p> | |
| </td> | |
| </tr> | |
| </table> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <p style="text-align:left" class="lbexIndent"> | |
| <xsl:call-template name="ActualPrintText"/> | |
| </p> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:when> | |
| <xsl:when test="parent::whereas"> | |
| <xsl:call-template name="ActualPrintText"/> | |
| </xsl:when> | |
| <xsl:when test="parent::quoted-block/@display-inline "> | |
| <xsl:choose> | |
| <xsl:when test="local-name()='text' and @display-inline='no-display-inline'"> | |
| <p style="text-align:left" class="lbexIndentSectionText"> | |
| <xsl:call-template name="ActualPrintText"/> | |
| </p> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:call-template name="ActualPrintText"/> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:when> | |
| <xsl:when | |
| test="@display-inline = 'yes-display-inline' and contains(local-name(parent::*), 'rules')"> | |
| <xsl:apply-templates/> | |
| </xsl:when> | |
| <xsl:when test="contains(local-name(parent::*), 'appropriations')"> | |
| <p style="text-align:left" class="lbexIndent"> | |
| <xsl:call-template name="ActualPrintText"/> | |
| </p> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:choose> | |
| <xsl:when test ="@display-inline='no-display-inline'"> | |
| <xsl:choose> | |
| <xsl:when test="parent::section and local-name()='text'"> | |
| <p style="text-align:left" class="lbexIndentSectionText"> | |
| <xsl:call-template name="ActualPrintText"/> | |
| </p> | |
| </xsl:when> | |
| <xsl:when test="parent::subsection and local-name()='text'"> | |
| <p style="text-align:left" class="lbexIndentSubsectionText"> | |
| <xsl:call-template name="ActualPrintText"/> | |
| </p> | |
| </xsl:when> | |
| <xsl:when test="parent::paragraph and local-name()='text'"> | |
| <p style="text-align:left" class="lbexIndentParagraphText"> | |
| <xsl:call-template name="ActualPrintText"/> | |
| </p> | |
| </xsl:when> | |
| <xsl:when test="parent::subparagraph and local-name()='text'"> | |
| <p style="text-align:left" class="lbexIndentSubParagraphText"> | |
| <xsl:call-template name="ActualPrintText"/> | |
| </p> | |
| </xsl:when> | |
| <xsl:when test="parent::clause and local-name()='text'"> | |
| <p style="text-align:left" class="lbexIndentClauseText"> | |
| <xsl:call-template name="ActualPrintText"/> | |
| </p> | |
| </xsl:when> | |
| <xsl:when test="parent::subclause and local-name()='text'"> | |
| <p style="text-align:left" class="lbexIndentSubClauseText"> | |
| <xsl:call-template name="ActualPrintText"/> | |
| </p> | |
| </xsl:when> | |
| <xsl:when test="parent::item and local-name()='text'"> | |
| <p style="text-align:left" class="lbexIndentItemText"> | |
| <xsl:call-template name="ActualPrintText"/> | |
| </p> | |
| </xsl:when> | |
| <xsl:when test="parent::subitem and local-name()='text'"> | |
| <p style="text-align:left" class="lbexIndentSubItemText"> | |
| <xsl:call-template name="ActualPrintText"/> | |
| </p> | |
| </xsl:when> | |
| </xsl:choose> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <p style="text-align:left"> | |
| <xsl:call-template name="ActualPrintText"/> | |
| </p> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| <xsl:if test="following-sibling::table"> | |
| <br/> | |
| </xsl:if> | |
| </xsl:template> | |
| <xsl:template name="InsertBlankLines"> | |
| <xsl:param name="aLinesNumber"/> | |
| <xsl:choose> | |
| <xsl:when test="$aLinesNumber = '0'"/> | |
| <xsl:when test="$aLinesNumber = '1'"> | |
| <p/> | |
| </xsl:when> | |
| <xsl:when test="$aLinesNumber = '2'"> | |
| <p/> | |
| <p/> | |
| </xsl:when> | |
| <xsl:when test="$aLinesNumber = '3'"> | |
| <p/> | |
| <p/> | |
| <p/> | |
| </xsl:when> | |
| <xsl:when test="$aLinesNumber = '4'"> | |
| <p/> | |
| <p/> | |
| <p/> | |
| <p/> | |
| </xsl:when> | |
| </xsl:choose> | |
| </xsl:template> | |
| <xsl:template match="subsection"> | |
| <!-- TB Aug 2016 bug fixing 1434 --> | |
| <xsl:call-template name="printSectionAndDownStructure"> | |
| <xsl:with-param name="thePrintingTemplate">displaySubsection</xsl:with-param> | |
| </xsl:call-template> | |
| </xsl:template> | |
| <xsl:template name="displaySubsection"> | |
| <xsl:call-template name="createAnchor"/> | |
| <xsl:choose> | |
| <xsl:when test="./@display-inline = 'yes-display-inline'"> | |
| <!-- TB aug 2012 Bug fixing #1270 --> | |
| <xsl:if test="parent::quoted-block and not(preceding-sibling::*)"> | |
| <xsl:call-template name="openQuotes"/> | |
| </xsl:if> | |
| <xsl:apply-templates/> | |
| </xsl:when> | |
| <xsl:when test="./@indent = 'down1'"> | |
| <p class="lbexIndentSubsection"> | |
| <xsl:call-template name="ActualPrintSubsection"/> | |
| </p> | |
| </xsl:when> | |
| <xsl:when test="(ancestor::quoted-block/@style = 'traditional')"> | |
| <xsl:choose> | |
| <xsl:when test="./@display-inline = 'yes-display-inline'"> | |
| <xsl:apply-templates/> | |
| <p/> | |
| </xsl:when> | |
| <xsl:when | |
| test="./@display-inline = 'no-display-inline' or not(./@display-inline)"> | |
| <p style="text-align:left" class="lbexIndentSubsection"> | |
| <xsl:call-template name="printQuotedText"/> | |
| </p> | |
| </xsl:when> | |
| </xsl:choose> | |
| </xsl:when> | |
| <xsl:when | |
| test="(ancestor::quoted-block/@style = 'other' and ancestor::quoted-block/@other-style = 'archaic')"> | |
| <!-- TB 17Aug2009 Added new condition about preceding-sebling::subsection --> | |
| <xsl:if | |
| test="header and (not(parent::section or parent::quoted-block/parent::section) or (preceding-sibling::subsection))"> | |
| <p> | |
| <div style="text-align:center"> | |
| <span class="lbexInitialCapArchaic"> | |
| <xsl:call-template name="openQuotes"/> | |
| <!--xsl:value-of select="header"/--> | |
| <xsl:apply-templates select="header"> | |
| <xsl:with-param name="isSpecialPrinting"> | |
| <xsl:text>yes</xsl:text> | |
| </xsl:with-param> | |
| </xsl:apply-templates> | |
| </span> | |
| </div> | |
| </p> | |
| </xsl:if> | |
| <p style="text-align:left" class="lbexIndentSubsection"> | |
| <xsl:call-template name="openQuotes"/> | |
| <xsl:apply-templates select="enum"/> | |
| <xsl:apply-templates select="text"/> | |
| <!--xsl:apply-templates select="paragraph"/--> | |
| <!-- TB 15-Dec-2008 continuation text missing in case if after paragraph archaic style --> | |
| <!--xsl:apply-templates select="continuation-text"/--> | |
| <xsl:for-each select="child::*"> | |
| <xsl:choose> | |
| <xsl:when | |
| test="local-name() = 'enum' or local-name() = 'text' or local-name() = 'header'"> | |
| <!-- nothing --> | |
| </xsl:when> | |
| <xsl:when test="local-name() = 'paragraph'"> | |
| <xsl:apply-templates select="."/> | |
| </xsl:when> | |
| <xsl:when test="local-name() = 'continuation-text'"> | |
| <xsl:apply-templates select="."/> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:apply-templates/> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:for-each> | |
| </p> | |
| </xsl:when> | |
| <xsl:when | |
| test="parent::quoted-block[@display-inline = 'yes-display-inline']/parent::subparagraph"> | |
| <p style="text-align:left" class="lbexIndentSubpar"> | |
| <xsl:call-template name="printQuotedText"/> | |
| </p> | |
| </xsl:when> | |
| <xsl:when | |
| test="parent::quoted-block[@display-inline = 'yes-display-inline']/parent::clause"> | |
| <p style="text-align:left" class="lbexIndentClause"> | |
| <xsl:call-template name="printQuotedText"/> | |
| </p> | |
| </xsl:when> | |
| <xsl:when | |
| test="parent::quoted-block[@display-inline = 'yes-display-inline']/parent::subclause"> | |
| <p style="text-align:left" class="lbexIndentSubclause"> | |
| <xsl:call-template name="printQuotedText"/> | |
| </p> | |
| </xsl:when> | |
| <xsl:when | |
| test="parent::quoted-block[@display-inline = 'yes-display-inline']/parent::item"> | |
| <p style="text-align:left" class="lbexIndentItem"> | |
| <xsl:call-template name="printQuotedText"/> | |
| </p> | |
| </xsl:when> | |
| <xsl:when | |
| test="parent::quoted-block[@display-inline = 'yes-display-inline']/parent::subitem"> | |
| <p style="text-align:left" class="lbexIndentSubItem"> | |
| <xsl:call-template name="printQuotedText"/> | |
| </p> | |
| </xsl:when> | |
| <xsl:when | |
| test="ancestor::*[@reported-display-style = 'boldface-roman']/parent::quoted-block[@style = 'tax']"> | |
| <span class="lbexSectionlevelOLCBold"> | |
| <p style="text-align:left" class="lbexIndentSubsection"> | |
| <xsl:call-template name="printQuotedText"/> | |
| </p> | |
| </span> | |
| </xsl:when> | |
| <xsl:when test="(ancestor::quoted-block/after-quoted-block = '.')"> | |
| <p style="text-align:left" class="lbexIndentSubsection"> | |
| <!-- TB 24Jan2011 test the case --> | |
| <!--xsl:call-template name="printQuotedText"/--> | |
| <xsl:call-template name="ActualPrintSubsection"/> | |
| </p> | |
| </xsl:when> | |
| <xsl:when | |
| test="parent::section/@section-type = 'undesignated-section' and $billType = 'traditional'"> | |
| <xsl:apply-templates/> | |
| </xsl:when> | |
| <xsl:when test="./@indent = 'down1'"> | |
| <p style="text-align:left" class="lbexIndentSubsection"> | |
| <xsl:apply-templates/> | |
| </p> | |
| </xsl:when> | |
| <xsl:when | |
| test=" | |
| (parent::section and child::enum = '' and child::text/@display-inline = 'yes-display-inline') | |
| or (parent::section and not(child::enum = '') and child::text/@display-inline = 'yes-display-inline' and | |
| $billType = 'traditional' and position() = 1)"> | |
| <xsl:call-template name="ActualPrintSubsection"/> | |
| </xsl:when> | |
| <xsl:when | |
| test="parent::section and not(child::enum = '') and child::text/@display-inline = 'yes-display-inline'"> | |
| <xsl:call-template name="ActualPrintSubsection"/> | |
| </xsl:when> | |
| <xsl:when test="parent::section and child::text/@display-inline = 'yes-display-inline'"> | |
| <xsl:apply-templates/> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:call-template name="ActualPrintSubsection"/> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:template> | |
| <!-- ********************Actual Print Subsection Text******************* --> | |
| <xsl:template name="ActualPrintSubsection"> | |
| <p style="text-align:left" class="lbexIndent"> | |
| <xsl:variable name="appropReportedStyle"> | |
| <xsl:call-template name="getAppropriationReportingStyle"/> | |
| </xsl:variable> | |
| <!--<xsl:if | |
| test="$appropReportedStyle = 'bold-brackets' and not(ancestor::appropriations-major or ancestor::appropriations-intermediate or ancestor::appropriations-small)"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>[</xsl:text> | |
| </span> | |
| </xsl:if>--> | |
| <xsl:choose> | |
| <xsl:when test="$appropReportedStyle = 'strikethrough'"> | |
| <span class="lbexTextStrikethrough"> | |
| <xsl:call-template name="ActualPrintText"/> | |
| </span> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:call-template name="ActualPrintText"/> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| <xsl:variable name="isToCloseTheBrackets"> | |
| <xsl:call-template name="toCloseTheBrakets"/> | |
| </xsl:variable> | |
| <xsl:choose> | |
| <xsl:when | |
| test="$appropReportedStyle = 'bold-brackets' and $isToCloseTheBrackets = 'yes' and not(ancestor::appropriations-major or ancestor::appropriations-intermediate or ancestor::appropriations-small) and child::text"> | |
| <span class="lbexBrakets"> | |
| <xsl:text/> | |
| </span> | |
| </xsl:when> | |
| <xsl:when | |
| test="$appropReportedStyle = 'bold-brackets' and $isToCloseTheBrackets = 'yes' and not(ancestor::appropriations-major or ancestor::appropriations-intermediate or ancestor::appropriations-small)"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>]</xsl:text> | |
| </span> | |
| </xsl:when> | |
| </xsl:choose> | |
| <xsl:if | |
| test="contains($appropReportedStyle, 'parentheses') and $isToCloseTheBrackets = 'yes' and not(ancestor::appropriations-major or ancestor::appropriations-intermediate or ancestor::appropriations-small)"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>)</xsl:text> | |
| </span> | |
| </xsl:if> | |
| </p> | |
| </xsl:template> | |
| <!-- TB to be reviewed --> | |
| <xsl:template match="subsection/paragraph/subparagraph[@indent = 'up1']/quoted-block/subsection"> | |
| <p style="text-align:left" class="lbexIndentSubsection"> | |
| <xsl:if test="ancestor::quoted-block"> | |
| <xsl:call-template name="openQuotes"/> | |
| </xsl:if> | |
| <xsl:apply-templates/> | |
| </p> | |
| </xsl:template> | |
| <xsl:template match="paragraph"> | |
| <!-- TB Aug 2016 bug fixing 1434 --> | |
| <xsl:call-template name="printSectionAndDownStructure"> | |
| <xsl:with-param name="thePrintingTemplate">displayParagraph</xsl:with-param> | |
| </xsl:call-template> | |
| </xsl:template> | |
| <!-- **********Get Ancestor Dissplay Style Bug #955***************** --> | |
| <xsl:template name="getAncDisplayStyle"> | |
| <!--check several levels up--> | |
| <xsl:choose> | |
| <xsl:when test="@reported-display-style and @reported-display-style != ''"> | |
| <xsl:value-of select="@reported-display-style"/> | |
| </xsl:when> | |
| <xsl:when test="@deleted-display-style and @deleted-display-style != ''"> | |
| <xsl:value-of select="@deleted-display-style"/> | |
| </xsl:when> | |
| <xsl:when test="@added-display-style and @added-display-style != ''"> | |
| <xsl:value-of select="@added-display-style"/> | |
| </xsl:when> | |
| <xsl:when test="@changed = 'not-changed'"> | |
| <!-- nothing --> | |
| </xsl:when> | |
| <!-- ******************************************************************************** --> | |
| <xsl:when | |
| test="parent::*/@reported-display-style and parent::*/@reported-display-style != ''"> | |
| <xsl:value-of select="parent::*/@reported-display-style"/> | |
| </xsl:when> | |
| <xsl:when | |
| test="parent::*/@deleted-display-style and parent::*/@deleted-display-style != ''"> | |
| <xsl:value-of select="parent::*/@deleted-display-style"/> | |
| </xsl:when> | |
| <xsl:when test="parent::*/@added-display-style and parent::*/@added-display-style != ''"> | |
| <xsl:value-of select="parent::*/@added-display-style"/> | |
| </xsl:when> | |
| <xsl:when test="parent::*/@changed = 'not-changed'"> | |
| <!-- nothing --> | |
| </xsl:when> | |
| <!-- ******************************************************************************** --> | |
| <xsl:when | |
| test="ancestor::*[2]/@reported-display-style and ancestor::*[2]/@reported-display-style != ''"> | |
| <xsl:value-of select="ancestor::*[2]/@reported-display-style"/> | |
| </xsl:when> | |
| <xsl:when | |
| test="ancestor::*[2]/@deleted-display-style and ancestor::*[2]/@deleted-display-style != ''"> | |
| <xsl:value-of select="ancestor::*[2]/@deleted-display-style"/> | |
| </xsl:when> | |
| <xsl:when | |
| test="ancestor::*[2]/@added-display-style and ancestor::*[2]/@added-display-style != ''"> | |
| <xsl:value-of select="ancestor::*[2]/@added-display-style"/> | |
| </xsl:when> | |
| <xsl:when test="ancestor::*[2]/@changed = 'not-changed'"> | |
| <!-- nothing --> | |
| </xsl:when> | |
| <!-- ******************************************************************************** --> | |
| <xsl:when | |
| test="ancestor::*[3]/@reported-display-style and ancestor::*[3]/@reported-display-style != ''"> | |
| <xsl:value-of select="ancestor::*[3]/@reported-display-style"/> | |
| </xsl:when> | |
| <xsl:when | |
| test="ancestor::*[3]/@deleted-display-style and ancestor::*[3]/@deleted-display-style != ''"> | |
| <xsl:value-of select="ancestor::*[3]/@deleted-display-style"/> | |
| </xsl:when> | |
| <xsl:when | |
| test="ancestor::*[3]/@added-display-style and ancestor::*[3]/@added-display-style != ''"> | |
| <xsl:value-of select="ancestor::*[3]/@added-display-style"/> | |
| </xsl:when> | |
| <xsl:when test="ancestor::*[3]/@changed = 'not-changed'"> | |
| <!-- nothing --> | |
| </xsl:when> | |
| <!-- ******************************************************************************** --> | |
| <xsl:when | |
| test="ancestor::*[4]/@reported-display-style and ancestor::*[4]/@reported-display-style != ''"> | |
| <xsl:value-of select="ancestor::*[4]/@reported-display-style"/> | |
| </xsl:when> | |
| <xsl:when | |
| test="ancestor::*[4]/@deleted-display-style and ancestor::*[4]/@deleted-display-style != ''"> | |
| <xsl:value-of select="ancestor::*[4]/@deleted-display-style"/> | |
| </xsl:when> | |
| <xsl:when | |
| test="ancestor::*[4]/@added-display-style and ancestor::*[4]/@added-display-style != ''"> | |
| <xsl:value-of select="ancestor::*[4]/@added-display-style"/> | |
| </xsl:when> | |
| </xsl:choose> | |
| </xsl:template> | |
| <!--*************End bug #955******************************************--> | |
| <!--**************TB Feb2012 - to make indentation to work in Firefox - trick with additional zero level bug #1247********************--> | |
| <xsl:template name="zeroindentlevel"> | |
| <xsl:param name="aLevelToIndent"/> | |
| <xsl:choose> | |
| <xsl:when | |
| test=" | |
| $aLevelToIndent = 'lbexIndentParagraph' or $aLevelToIndent = 'lbexIndentSubpar' or | |
| $aLevelToIndent = 'lbexIndentClause' or $aLevelToIndent = 'lbexIndentSubclause' or | |
| $aLevelToIndent = 'lbexIndentItem' or $aLevelToIndent = 'lbexIndentSubItem'"> | |
| <xsl:text>margin-left: -2em;</xsl:text> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:text>margin-left: 0em;</xsl:text> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:template> | |
| <!--*****************************************************************--> | |
| <xsl:template name="displayParagraph"> | |
| <xsl:call-template name="createAnchor"/> | |
| <xsl:variable name="appropReportedStyle"> | |
| <xsl:call-template name="getAppropriationReportingStyle"/> | |
| </xsl:variable> | |
| <xsl:variable name="isLastElement"> | |
| <xsl:call-template name="isLastElementInLoop"/> | |
| </xsl:variable> | |
| <xsl:variable name="isToCloseTheBrackets"> | |
| <xsl:call-template name="toCloseTheBrakets"/> | |
| </xsl:variable> | |
| <xsl:choose> | |
| <xsl:when test="(@display-inline = 'yes-display-inline' and @commented = 'yes')"> | |
| <!-- vonditions with the bold bracket - TB June 2012 Bug #1261 --> | |
| <!--<xsl:if test="@commented='yes'">--> | |
| <xsl:choose> | |
| <xsl:when test="parent::*[current()]/@commented = 'yes'"/> | |
| <xsl:otherwise> | |
| <span class="lbexBrakets"> | |
| <xsl:text>[</xsl:text> | |
| </span> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| <!--</xsl:if>--> | |
| <!-- TB aug 2012 Bug fixing #1270 --> | |
| <xsl:if test="parent::quoted-block and not(preceding-sibling::*)"> | |
| <xsl:call-template name="openQuotes"/> | |
| </xsl:if> | |
| <xsl:apply-templates/> | |
| <xsl:choose> | |
| <xsl:when test="parent::*[current()]/@commented = 'yes'"/> | |
| <xsl:otherwise> | |
| <span class="lbexBrakets"> | |
| <xsl:text>]</xsl:text> | |
| </span> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <!-- TB 1Feb2012 one more paragraph with back to zero indentation applied - to support | |
| indentation in Firefox. transparent for other browsers --> | |
| <xsl:variable name="bringIndentToZeroAttr"> | |
| <xsl:call-template name="zeroindentlevel"> | |
| <xsl:with-param name="aLevelToIndent">lbexIndentSubsection</xsl:with-param> | |
| </xsl:call-template> | |
| </xsl:variable> | |
| <xsl:choose> | |
| <xsl:when test="contains(@display-inline, 'yes-display-inline')"> | |
| <xsl:choose> | |
| <xsl:when | |
| test="./@indent = 'up1' and parent::quoted-block/parent::paragraph"> | |
| <p style="text-align:left" class="lbexIndentSubsection"> | |
| <xsl:if | |
| test="($appropReportedStyle = 'bold-brackets' or $appropReportedStyle = 'brackets-boldface-roman' or $appropReportedStyle = 'brackets-boldface-italic') or @commented = 'yes'"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>[</xsl:text> | |
| </span> | |
| </xsl:if> | |
| <xsl:if test="contains($appropReportedStyle, 'parentheses')"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>(</xsl:text> | |
| </span> | |
| </xsl:if> | |
| <xsl:call-template name="printQuotedText"/> | |
| <xsl:if | |
| test="(($appropReportedStyle = 'bold-brackets' or $appropReportedStyle = 'brackets-boldface-roman' or $appropReportedStyle = 'brackets-boldface-italic') and $isToCloseTheBrackets = 'yes') or @commented = 'yes'"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>]</xsl:text> | |
| </span> | |
| </xsl:if> | |
| </p> | |
| </xsl:when> | |
| <xsl:when test="./@indent = 'up1'"> | |
| <p style="text-align:left" class="lbexIndentSubsection"> | |
| <xsl:if | |
| test="($appropReportedStyle = 'bold-brackets' or $appropReportedStyle = 'brackets-boldface-roman' or $appropReportedStyle = 'brackets-boldface-italic') or @commented = 'yes'"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>[</xsl:text> | |
| </span> | |
| </xsl:if> | |
| <xsl:call-template name="ActualPrintText"/> | |
| <xsl:if | |
| test="(($appropReportedStyle = 'bold-brackets' or $appropReportedStyle = 'brackets-boldface-roman' or $appropReportedStyle = 'brackets-boldface-italic') and $isToCloseTheBrackets = 'yes') or @commented = 'yes'"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>]</xsl:text> | |
| </span> | |
| </xsl:if> | |
| </p> | |
| </xsl:when> | |
| <xsl:when test="quoted-block/toc | quoted-block/subsection"> | |
| <p class="lbexIndentParagraph" style="text-align:left"> | |
| <span class="lbexIndent"> | |
| <xsl:if | |
| test="($appropReportedStyle = 'bold-brackets' or $appropReportedStyle = 'brackets-boldface-roman' or $appropReportedStyle = 'brackets-boldface-italic') or @commented = 'yes'"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>[</xsl:text> | |
| </span> | |
| </xsl:if> | |
| <xsl:apply-templates select="enum"/> | |
| <xsl:apply-templates select="header"/> | |
| <xsl:apply-templates select="text"/> | |
| <xsl:choose> | |
| <xsl:when | |
| test="quoted-block/@display-inline = 'yes-display-inline'"> | |
| <xsl:apply-templates select="quoted-block"/> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:apply-templates select="quoted-block"/> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </span> | |
| <xsl:if | |
| test="(($appropReportedStyle = 'bold-brackets' or $appropReportedStyle = 'brackets-boldface-roman' or $appropReportedStyle = 'brackets-boldface-italic') and $isToCloseTheBrackets = 'yes') or @commented = 'yes'"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>]</xsl:text> | |
| </span> | |
| </xsl:if> | |
| </p> | |
| <p class="lbexIndentParagraph" style="text-align:left"> | |
| <xsl:apply-templates select="subparagraph"/> | |
| </p> | |
| <xsl:apply-templates select="continuation-text"/> | |
| </xsl:when> | |
| <xsl:when | |
| test="parent::quoted-block[@display-inline = 'yes-display-inline']/parent::paragraph"> | |
| <p style="text-align:left" class="lbexIndentSubsection"> | |
| <xsl:if | |
| test="($appropReportedStyle = 'bold-brackets' or $appropReportedStyle = 'brackets-boldface-roman' or $appropReportedStyle = 'brackets-boldface-italic') or @commented = 'yes'"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>[</xsl:text> | |
| </span> | |
| </xsl:if> | |
| <xsl:call-template name="printQuotedText"/> | |
| <xsl:if | |
| test="(($appropReportedStyle = 'bold-brackets' or $appropReportedStyle = 'brackets-boldface-roman' or $appropReportedStyle = 'brackets-boldface-italic') and $isToCloseTheBrackets = 'yes') or @commented = 'yes'"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>]</xsl:text> | |
| </span> | |
| </xsl:if> | |
| </p> | |
| </xsl:when> | |
| <xsl:when | |
| test="parent::quoted-block[@display-inline = 'yes-display-inline']/parent::subparagraph"> | |
| <p class="lbexIndentSubpar" style="text-align:left"> | |
| <xsl:if | |
| test="($appropReportedStyle = 'bold-brackets' or $appropReportedStyle = 'brackets-boldface-roman' or $appropReportedStyle = 'brackets-boldface-italic') or @commented = 'yes'"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>[</xsl:text> | |
| </span> | |
| </xsl:if> | |
| <xsl:call-template name="printQuotedText"/> | |
| <xsl:if | |
| test="(($appropReportedStyle = 'bold-brackets' or $appropReportedStyle = 'brackets-boldface-roman' or $appropReportedStyle = 'brackets-boldface-italic') and $isToCloseTheBrackets = 'yes') or @commented = 'yes'"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>]</xsl:text> | |
| </span> | |
| </xsl:if> | |
| </p> | |
| </xsl:when> | |
| <xsl:when | |
| test="parent::quoted-block[@display-inline = 'yes-display-inline']/parent::clause"> | |
| <p class="lbexIndentClause" style="text-align:left"> | |
| <xsl:if | |
| test="($appropReportedStyle = 'bold-brackets' or $appropReportedStyle = 'brackets-boldface-roman' or $appropReportedStyle = 'brackets-boldface-italic') or @commented = 'yes'"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>[</xsl:text> | |
| </span> | |
| </xsl:if> | |
| <xsl:call-template name="printQuotedText"/> | |
| <xsl:if | |
| test="(($appropReportedStyle = 'bold-brackets' or $appropReportedStyle = 'brackets-boldface-roman' or $appropReportedStyle = 'brackets-boldface-italic') and $isToCloseTheBrackets = 'yes') or @commented = 'yes'"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>]</xsl:text> | |
| </span> | |
| </xsl:if> | |
| </p> | |
| </xsl:when> | |
| <xsl:when | |
| test="parent::quoted-block[@display-inline = 'yes-display-inline']/parent::subclause"> | |
| <p class="lbexIndentSubclause" style="text-align:left"> | |
| <xsl:if | |
| test="($appropReportedStyle = 'bold-brackets' or $appropReportedStyle = 'brackets-boldface-roman' or $appropReportedStyle = 'brackets-boldface-italic') or @commented = 'yes'"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>[</xsl:text> | |
| </span> | |
| </xsl:if> | |
| <xsl:call-template name="printQuotedText"/> | |
| <xsl:if | |
| test="(($appropReportedStyle = 'bold-brackets' or $appropReportedStyle = 'brackets-boldface-roman' or $appropReportedStyle = 'brackets-boldface-italic') and $isToCloseTheBrackets = 'yes') or @commented = 'yes'"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>]</xsl:text> | |
| </span> | |
| </xsl:if> | |
| </p> | |
| </xsl:when> | |
| <xsl:when | |
| test="parent::quoted-block[@display-inline = 'yes-display-inline']/parent::item"> | |
| <p class="lbexIndentItem" style="text-align:left"> | |
| <xsl:if | |
| test="($appropReportedStyle = 'bold-brackets' or $appropReportedStyle = 'brackets-boldface-roman' or $appropReportedStyle = 'brackets-boldface-italic') or @commented = 'yes'"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>[</xsl:text> | |
| </span> | |
| </xsl:if> | |
| <xsl:call-template name="printQuotedText"/> | |
| <xsl:if | |
| test="(($appropReportedStyle = 'bold-brackets' or $appropReportedStyle = 'brackets-boldface-roman' or $appropReportedStyle = 'brackets-boldface-italic') and $isToCloseTheBrackets = 'yes') or @commented = 'yes'"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>]</xsl:text> | |
| </span> | |
| </xsl:if> | |
| </p> | |
| </xsl:when> | |
| <xsl:when | |
| test="parent::quoted-block[@display-inline = 'yes-display-inline']/parent::subitem"> | |
| <p class="lbexIndentSubItem" style="text-align:left"> | |
| <xsl:if | |
| test="($appropReportedStyle = 'bold-brackets' or $appropReportedStyle = 'brackets-boldface-roman' or $appropReportedStyle = 'brackets-boldface-italic') or @commented = 'yes'"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>[</xsl:text> | |
| </span> | |
| </xsl:if> | |
| <xsl:call-template name="printQuotedText"/> | |
| <xsl:if | |
| test="(($appropReportedStyle = 'bold-brackets' or $appropReportedStyle = 'brackets-boldface-roman' or $appropReportedStyle = 'brackets-boldface-italic') and $isToCloseTheBrackets = 'yes') or @commented = 'yes'"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>]</xsl:text> | |
| </span> | |
| </xsl:if> | |
| </p> | |
| </xsl:when> | |
| <xsl:when test="parent::subsection/@indent = 'down1'"> | |
| <p style="text-align:left" class="lbexIndentSubsection"> | |
| <xsl:if | |
| test="($appropReportedStyle = 'bold-brackets' or $appropReportedStyle = 'brackets-boldface-roman' or $appropReportedStyle = 'brackets-boldface-italic') or @commented = 'yes'"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>[</xsl:text> | |
| </span> | |
| </xsl:if> | |
| <xsl:call-template name="ActualPrintText"/> | |
| <xsl:if | |
| test="(($appropReportedStyle = 'bold-brackets' or $appropReportedStyle = 'brackets-boldface-roman' or $appropReportedStyle = 'brackets-boldface-italic') and $isToCloseTheBrackets = 'yes') or @commented = 'yes'"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>]</xsl:text> | |
| </span> | |
| </xsl:if> | |
| </p> | |
| </xsl:when> | |
| <xsl:when | |
| test="(ancestor::quoted-block) and (not(@display-inline) or contains(@display-inline, 'no-display-inline'))"> | |
| <p style="text-align:left" class="lbexIndentParagraph"> | |
| <xsl:if | |
| test="($appropReportedStyle = 'bold-brackets' or $appropReportedStyle = 'brackets-boldface-roman' or $appropReportedStyle = 'brackets-boldface-italic') or @commented = 'yes'"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>[</xsl:text> | |
| </span> | |
| </xsl:if> | |
| <xsl:choose> | |
| <xsl:when test="$appropReportedStyle = 'strikethrough'"> | |
| <span class="lbexTextStrikethrough"> | |
| <xsl:call-template name="printQuotedText"/> | |
| </span> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:call-template name="printQuotedText"/> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| <xsl:if | |
| test="(($appropReportedStyle = 'bold-brackets' or $appropReportedStyle = 'brackets-boldface-roman' or $appropReportedStyle = 'brackets-boldface-italic') and $isToCloseTheBrackets = 'yes') or @commented = 'yes'"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>]</xsl:text> | |
| </span> | |
| </xsl:if> | |
| </p> | |
| </xsl:when> | |
| <xsl:when | |
| test="(ancestor::quoted-block) and contains(@display-inline, 'yes-display-inline')"> | |
| <xsl:if | |
| test="($appropReportedStyle = 'bold-brackets' or $appropReportedStyle = 'brackets-boldface-roman' or $appropReportedStyle = 'brackets-boldface-italic') or @commented = 'yes'"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>[</xsl:text> | |
| </span> | |
| </xsl:if> | |
| <xsl:choose> | |
| <xsl:when test="$appropReportedStyle = 'strikethrough'"> | |
| <span class="lbexTextStrikethrough"> | |
| <xsl:call-template name="printQuotedText"/> | |
| </span> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:call-template name="printQuotedText"/> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| <xsl:if | |
| test="(($appropReportedStyle = 'bold-brackets' or $appropReportedStyle = 'brackets-boldface-roman' or $appropReportedStyle = 'brackets-boldface-italic') and $isToCloseTheBrackets = 'yes') or @commented = 'yes'"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>]</xsl:text> | |
| </span> | |
| </xsl:if> | |
| </xsl:when> | |
| <xsl:when | |
| test="(ancestor::subparagraph/quoted-block or parent::quoted-block[@style = 'OLC']/parent::paragraph)"> | |
| <p style="text-align:left" class="lbexIndentSubsection"> | |
| <xsl:if | |
| test="($appropReportedStyle = 'bold-brackets' or $appropReportedStyle = 'brackets-boldface-roman' or $appropReportedStyle = 'brackets-boldface-italic') or @commented = 'yes'"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>[</xsl:text> | |
| </span> | |
| </xsl:if> | |
| <xsl:call-template name="printQuotedText"/> | |
| <xsl:if | |
| test="(($appropReportedStyle = 'bold-brackets' or $appropReportedStyle = 'brackets-boldface-roman' or $appropReportedStyle = 'brackets-boldface-italic') and $isToCloseTheBrackets = 'yes') or @commented = 'yes'"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>]</xsl:text> | |
| </span> | |
| </xsl:if> | |
| </p> | |
| </xsl:when> | |
| <xsl:when test="parent::whereas"> | |
| <xsl:call-template name="ApplyTemplWithSimpleIndentP"/> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:choose> | |
| <xsl:when | |
| test="contains(@display-inline, 'no-display-inline') or not(@display-inline)"> | |
| <p style="text-align:left" class="lbexIndentParagraph"> | |
| <xsl:if | |
| test="($appropReportedStyle = 'bold-brackets' or $appropReportedStyle = 'brackets-boldface-roman' or $appropReportedStyle = 'brackets-boldface-italic') or @commented = 'yes'"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>[</xsl:text> | |
| </span> | |
| </xsl:if> | |
| <xsl:if | |
| test="($appropReportedStyle = 'parentheses' or $appropReportedStyle = 'parentheses-boldface-roman' or $appropReportedStyle = 'parentheses-boldface-italic')"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>(</xsl:text> | |
| </span> | |
| </xsl:if> | |
| <xsl:choose> | |
| <xsl:when | |
| test="$appropReportedStyle = 'strikethrough'"> | |
| <span class="lbexTextStrikethrough"> | |
| <xsl:apply-templates/> | |
| </span> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:apply-templates/> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| <xsl:if | |
| test="(contains($appropReportedStyle, 'brackets')) and $isToCloseTheBrackets = 'yes'"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>]</xsl:text> | |
| </span> | |
| </xsl:if> | |
| <xsl:if | |
| test="(($appropReportedStyle = 'parentheses-boldface-roman' or $appropReportedStyle = 'parentheses-boldface-italic' or $appropReportedStyle = 'parentheses') and $isToCloseTheBrackets = 'yes')"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>)</xsl:text> | |
| </span> | |
| </xsl:if> | |
| </p> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:if | |
| test="($appropReportedStyle = 'bold-brackets' or $appropReportedStyle = 'brackets-boldface-roman' or $appropReportedStyle = 'brackets-boldface-italic') or @commented = 'yes'"> | |
| <span class="lbexBrakets"> | |
| <xsl:text/> | |
| </span> | |
| </xsl:if> | |
| <xsl:if | |
| test="($appropReportedStyle = 'parentheses' or $appropReportedStyle = 'parentheses-boldface-roman' or $appropReportedStyle = 'parentheses-boldface-italic')"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>(</xsl:text> | |
| </span> | |
| </xsl:if> | |
| <xsl:choose> | |
| <xsl:when | |
| test="$appropReportedStyle = 'strikethrough' and @display-inline = 'yes-dispaly-inline'"> | |
| <span class="lbexTextStrikethrough"> | |
| <xsl:apply-templates/> | |
| </span> | |
| </xsl:when> | |
| <xsl:when | |
| test="$appropReportedStyle = 'strikethrough' and (not(@display-inline) or @display-inline = 'no-display-inline')"> | |
| <div class="lbexIndentParagraph"> | |
| <span class="lbexTextStrikethrough"> | |
| <xsl:apply-templates/> | |
| </span> | |
| </div> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:apply-templates/> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| <xsl:if | |
| test="(contains($appropReportedStyle, 'brackets')) and $isToCloseTheBrackets = 'yes'"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>]</xsl:text> | |
| </span> | |
| </xsl:if> | |
| <xsl:if | |
| test="(($appropReportedStyle = 'parentheses-boldface-roman' or $appropReportedStyle = 'parentheses-boldface-italic' or $appropReportedStyle = 'parentheses') and $isToCloseTheBrackets = 'yes')"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>)</xsl:text> | |
| </span> | |
| </xsl:if> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <p> | |
| <xsl:attribute name="style"> | |
| <xsl:value-of select="$bringIndentToZeroAttr"/> | |
| </xsl:attribute> | |
| <xsl:choose> | |
| <xsl:when | |
| test="./@indent = 'up1' and parent::quoted-block/parent::paragraph"> | |
| <p style="text-align:left" class="lbexIndentSubsection"> | |
| <xsl:if | |
| test="($appropReportedStyle = 'bold-brackets' or $appropReportedStyle = 'brackets-boldface-roman' or $appropReportedStyle = 'brackets-boldface-italic') or @commented = 'yes'"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>[</xsl:text> | |
| </span> | |
| </xsl:if> | |
| <xsl:if test="contains($appropReportedStyle, 'parentheses')"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>(</xsl:text> | |
| </span> | |
| </xsl:if> | |
| <xsl:call-template name="printQuotedText"/> | |
| <xsl:if | |
| test="(($appropReportedStyle = 'bold-brackets' or $appropReportedStyle = 'brackets-boldface-roman' or $appropReportedStyle = 'brackets-boldface-italic') and $isToCloseTheBrackets = 'yes') or @commented = 'yes'"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>]</xsl:text> | |
| </span> | |
| </xsl:if> | |
| </p> | |
| </xsl:when> | |
| <xsl:when test="./@indent = 'up1'"> | |
| <p style="text-align:left" class="lbexIndentSubsection"> | |
| <xsl:if | |
| test="($appropReportedStyle = 'bold-brackets' or $appropReportedStyle = 'brackets-boldface-roman' or $appropReportedStyle = 'brackets-boldface-italic') or @commented = 'yes'"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>[</xsl:text> | |
| </span> | |
| </xsl:if> | |
| <xsl:call-template name="ActualPrintText"/> | |
| <xsl:if | |
| test="(($appropReportedStyle = 'bold-brackets' or $appropReportedStyle = 'brackets-boldface-roman' or $appropReportedStyle = 'brackets-boldface-italic') and $isToCloseTheBrackets = 'yes') or (@commented = 'yes' and not(child::text))"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>]</xsl:text> | |
| </span> | |
| </xsl:if> | |
| </p> | |
| </xsl:when> | |
| <xsl:when test="quoted-block/toc | quoted-block/subsection"> | |
| <p class="lbexIndentParagraph" style="text-align:left"> | |
| <span class="lbexIndent"> | |
| <xsl:if | |
| test="($appropReportedStyle = 'bold-brackets' or $appropReportedStyle = 'brackets-boldface-roman' or $appropReportedStyle = 'brackets-boldface-italic') or @commented = 'yes'"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>[</xsl:text> | |
| </span> | |
| </xsl:if> | |
| <xsl:apply-templates select="enum"/> | |
| <xsl:apply-templates select="header"/> | |
| <xsl:apply-templates select="text"/> | |
| <xsl:choose> | |
| <xsl:when | |
| test="quoted-block/@display-inline = 'yes-display-inline'"> | |
| <xsl:apply-templates select="quoted-block"/> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:apply-templates select="quoted-block"/> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </span> | |
| <xsl:if | |
| test="(($appropReportedStyle = 'bold-brackets' or $appropReportedStyle = 'brackets-boldface-roman' or $appropReportedStyle = 'brackets-boldface-italic') and $isToCloseTheBrackets = 'yes') or @commented = 'yes'"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>]</xsl:text> | |
| </span> | |
| </xsl:if> | |
| </p> | |
| <p class="lbexIndentParagraph" style="text-align:left"> | |
| <xsl:apply-templates select="subparagraph"/> | |
| </p> | |
| <xsl:apply-templates select="continuation-text"/> | |
| </xsl:when> | |
| <xsl:when | |
| test="parent::quoted-block[@display-inline = 'yes-display-inline']/parent::paragraph"> | |
| <p style="text-align:left" class="lbexIndentSubsection"> | |
| <xsl:if | |
| test="($appropReportedStyle = 'bold-brackets' or $appropReportedStyle = 'brackets-boldface-roman' or $appropReportedStyle = 'brackets-boldface-italic') or @commented = 'yes'"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>[</xsl:text> | |
| </span> | |
| </xsl:if> | |
| <xsl:call-template name="printQuotedText"/> | |
| <xsl:if | |
| test="(($appropReportedStyle = 'bold-brackets' or $appropReportedStyle = 'brackets-boldface-roman' or $appropReportedStyle = 'brackets-boldface-italic') and $isToCloseTheBrackets = 'yes') or @commented = 'yes'"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>]</xsl:text> | |
| </span> | |
| </xsl:if> | |
| </p> | |
| </xsl:when> | |
| <xsl:when | |
| test="parent::quoted-block[@display-inline = 'yes-display-inline']/parent::subparagraph"> | |
| <p class="lbexIndentSubpar" style="text-align:left"> | |
| <xsl:if | |
| test="($appropReportedStyle = 'bold-brackets' or $appropReportedStyle = 'brackets-boldface-roman' or $appropReportedStyle = 'brackets-boldface-italic') or @commented = 'yes'"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>[</xsl:text> | |
| </span> | |
| </xsl:if> | |
| <xsl:call-template name="printQuotedText"/> | |
| <xsl:if | |
| test="(($appropReportedStyle = 'bold-brackets' or $appropReportedStyle = 'brackets-boldface-roman' or $appropReportedStyle = 'brackets-boldface-italic') and $isToCloseTheBrackets = 'yes') or @commented = 'yes'"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>]</xsl:text> | |
| </span> | |
| </xsl:if> | |
| </p> | |
| </xsl:when> | |
| <xsl:when | |
| test="parent::quoted-block[@display-inline = 'yes-display-inline']/parent::clause"> | |
| <p class="lbexIndentClause" style="text-align:left"> | |
| <xsl:if | |
| test="($appropReportedStyle = 'bold-brackets' or $appropReportedStyle = 'brackets-boldface-roman' or $appropReportedStyle = 'brackets-boldface-italic') or @commented = 'yes'"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>[</xsl:text> | |
| </span> | |
| </xsl:if> | |
| <xsl:call-template name="printQuotedText"/> | |
| <xsl:if | |
| test="(($appropReportedStyle = 'bold-brackets' or $appropReportedStyle = 'brackets-boldface-roman' or $appropReportedStyle = 'brackets-boldface-italic') and $isToCloseTheBrackets = 'yes') or @commented = 'yes'"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>]</xsl:text> | |
| </span> | |
| </xsl:if> | |
| </p> | |
| </xsl:when> | |
| <xsl:when | |
| test="parent::quoted-block[@display-inline = 'yes-display-inline']/parent::subclause"> | |
| <p class="lbexIndentSubclause" style="text-align:left"> | |
| <xsl:if | |
| test="($appropReportedStyle = 'bold-brackets' or $appropReportedStyle = 'brackets-boldface-roman' or $appropReportedStyle = 'brackets-boldface-italic') or @commented = 'yes'"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>[</xsl:text> | |
| </span> | |
| </xsl:if> | |
| <xsl:call-template name="printQuotedText"/> | |
| <xsl:if | |
| test="(($appropReportedStyle = 'bold-brackets' or $appropReportedStyle = 'brackets-boldface-roman' or $appropReportedStyle = 'brackets-boldface-italic') and $isToCloseTheBrackets = 'yes') or @commented = 'yes'"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>]</xsl:text> | |
| </span> | |
| </xsl:if> | |
| </p> | |
| </xsl:when> | |
| <xsl:when | |
| test="parent::quoted-block[@display-inline = 'yes-display-inline']/parent::item"> | |
| <p class="lbexIndentItem" style="text-align:left"> | |
| <xsl:if | |
| test="($appropReportedStyle = 'bold-brackets' or $appropReportedStyle = 'brackets-boldface-roman' or $appropReportedStyle = 'brackets-boldface-italic') or @commented = 'yes'"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>[</xsl:text> | |
| </span> | |
| </xsl:if> | |
| <xsl:call-template name="printQuotedText"/> | |
| <xsl:if | |
| test="(($appropReportedStyle = 'bold-brackets' or $appropReportedStyle = 'brackets-boldface-roman' or $appropReportedStyle = 'brackets-boldface-italic') and $isToCloseTheBrackets = 'yes') or @commented = 'yes'"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>]</xsl:text> | |
| </span> | |
| </xsl:if> | |
| </p> | |
| </xsl:when> | |
| <xsl:when | |
| test="parent::quoted-block[@display-inline = 'yes-display-inline']/parent::subitem"> | |
| <p class="lbexIndentSubItem" style="text-align:left"> | |
| <xsl:if | |
| test="($appropReportedStyle = 'bold-brackets' or $appropReportedStyle = 'brackets-boldface-roman' or $appropReportedStyle = 'brackets-boldface-italic') or @commented = 'yes'"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>[</xsl:text> | |
| </span> | |
| </xsl:if> | |
| <xsl:call-template name="printQuotedText"/> | |
| <xsl:if | |
| test="(($appropReportedStyle = 'bold-brackets' or $appropReportedStyle = 'brackets-boldface-roman' or $appropReportedStyle = 'brackets-boldface-italic') and $isToCloseTheBrackets = 'yes') or @commented = 'yes'"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>]</xsl:text> | |
| </span> | |
| </xsl:if> | |
| </p> | |
| </xsl:when> | |
| <xsl:when test="parent::subsection/@indent = 'down1'"> | |
| <p style="text-align:left" class="lbexIndentSubsection"> | |
| <xsl:if | |
| test="($appropReportedStyle = 'bold-brackets' or $appropReportedStyle = 'brackets-boldface-roman' or $appropReportedStyle = 'brackets-boldface-italic') or @commented = 'yes'"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>[</xsl:text> | |
| </span> | |
| </xsl:if> | |
| <xsl:call-template name="ActualPrintText"/> | |
| <xsl:if | |
| test="(($appropReportedStyle = 'bold-brackets' or $appropReportedStyle = 'brackets-boldface-roman' or $appropReportedStyle = 'brackets-boldface-italic') and $isToCloseTheBrackets = 'yes') or @commented = 'yes'"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>]</xsl:text> | |
| </span> | |
| </xsl:if> | |
| </p> | |
| </xsl:when> | |
| <xsl:when | |
| test="(ancestor::quoted-block) and (not(@display-inline) or contains(@display-inline, 'no-display-inline'))"> | |
| <p style="text-align:left" class="lbexIndentParagraph"> | |
| <xsl:if | |
| test="($appropReportedStyle = 'bold-brackets' or $appropReportedStyle = 'brackets-boldface-roman' or $appropReportedStyle = 'brackets-boldface-italic') or @commented = 'yes'"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>[</xsl:text> | |
| </span> | |
| </xsl:if> | |
| <xsl:choose> | |
| <xsl:when test="$appropReportedStyle = 'strikethrough'"> | |
| <span class="lbexTextStrikethrough"> | |
| <xsl:call-template name="printQuotedText"/> | |
| </span> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:call-template name="printQuotedText"/> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| <xsl:if | |
| test="(($appropReportedStyle = 'bold-brackets' or $appropReportedStyle = 'brackets-boldface-roman' or $appropReportedStyle = 'brackets-boldface-italic') and $isToCloseTheBrackets = 'yes') or @commented = 'yes'"> | |
| <xsl:choose> | |
| <xsl:when | |
| test="child::text or child::*/@commented = 'yes'"> </xsl:when> | |
| <xsl:otherwise> | |
| <span class="lbexBrakets"> | |
| <xsl:text>]</xsl:text> | |
| </span> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:if> | |
| </p> | |
| </xsl:when> | |
| <xsl:when | |
| test="(ancestor::quoted-block) and contains(@display-inline, 'yes-display-inline')"> | |
| <xsl:if | |
| test="($appropReportedStyle = 'bold-brackets' or $appropReportedStyle = 'brackets-boldface-roman' or $appropReportedStyle = 'brackets-boldface-italic') or @commented = 'yes'"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>[</xsl:text> | |
| </span> | |
| </xsl:if> | |
| <xsl:choose> | |
| <xsl:when test="$appropReportedStyle = 'strikethrough'"> | |
| <span class="lbexTextStrikethrough"> | |
| <xsl:call-template name="printQuotedText"/> | |
| </span> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:call-template name="printQuotedText"/> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| <xsl:if | |
| test="(($appropReportedStyle = 'bold-brackets' or $appropReportedStyle = 'brackets-boldface-roman' or $appropReportedStyle = 'brackets-boldface-italic') and $isToCloseTheBrackets = 'yes') or @commented = 'yes'"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>]</xsl:text> | |
| </span> | |
| </xsl:if> | |
| </xsl:when> | |
| <xsl:when | |
| test="(ancestor::subparagraph/quoted-block or parent::quoted-block[@style = 'OLC']/parent::paragraph)"> | |
| <p style="text-align:left" class="lbexIndentSubsection"> | |
| <xsl:if | |
| test="($appropReportedStyle = 'bold-brackets' or $appropReportedStyle = 'brackets-boldface-roman' or $appropReportedStyle = 'brackets-boldface-italic') or @commented = 'yes'"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>[</xsl:text> | |
| </span> | |
| </xsl:if> | |
| <xsl:call-template name="printQuotedText"/> | |
| <xsl:if | |
| test="(($appropReportedStyle = 'bold-brackets' or $appropReportedStyle = 'brackets-boldface-roman' or $appropReportedStyle = 'brackets-boldface-italic') and $isToCloseTheBrackets = 'yes') or @commented = 'yes'"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>]</xsl:text> | |
| </span> | |
| </xsl:if> | |
| </p> | |
| </xsl:when> | |
| <xsl:when test="parent::whereas"> | |
| <xsl:call-template name="ApplyTemplWithSimpleIndentP"/> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:choose> | |
| <xsl:when | |
| test="contains(@display-inline, 'no-display-inline') or not(@display-inline)"> | |
| <p style="text-align:left" class="lbexIndentParagraph"> | |
| <xsl:if | |
| test="($appropReportedStyle = 'bold-brackets' or $appropReportedStyle = 'brackets-boldface-roman' or $appropReportedStyle = 'brackets-boldface-italic') or @commented = 'yes'"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>[</xsl:text> | |
| </span> | |
| </xsl:if> | |
| <xsl:if | |
| test="($appropReportedStyle = 'parentheses' or $appropReportedStyle = 'parentheses-boldface-roman' or $appropReportedStyle = 'parentheses-boldface-italic')"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>(</xsl:text> | |
| </span> | |
| </xsl:if> | |
| <xsl:choose> | |
| <xsl:when | |
| test="$appropReportedStyle = 'strikethrough'"> | |
| <span class="lbexTextStrikethrough"> | |
| <xsl:apply-templates/> | |
| </span> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:apply-templates/> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| <xsl:if | |
| test="((contains($appropReportedStyle, 'brackets')) and $isToCloseTheBrackets = 'yes') or @commented = 'yes'"> | |
| <xsl:choose> | |
| <xsl:when test="$isLastElement = 'yes'"> | |
| <xsl:text/> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <span class="lbexBrakets"> | |
| <xsl:text>]</xsl:text> | |
| </span> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:if> | |
| <xsl:if | |
| test="(($appropReportedStyle = 'parentheses-boldface-roman' or $appropReportedStyle = 'parentheses-boldface-italic' or $appropReportedStyle = 'parentheses') and $isToCloseTheBrackets = 'yes')"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>)</xsl:text> | |
| </span> | |
| </xsl:if> | |
| </p> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:if | |
| test="($appropReportedStyle = 'bold-brackets' or $appropReportedStyle = 'brackets-boldface-roman' or $appropReportedStyle = 'brackets-boldface-italic') or @commented = 'yes'"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>[</xsl:text> | |
| </span> | |
| </xsl:if> | |
| <xsl:if | |
| test="($appropReportedStyle = 'parentheses' or $appropReportedStyle = 'parentheses-boldface-roman' or $appropReportedStyle = 'parentheses-boldface-italic')"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>(</xsl:text> | |
| </span> | |
| </xsl:if> | |
| <xsl:choose> | |
| <xsl:when | |
| test="$appropReportedStyle = 'strikethrough' and @display-inline = 'yes-dispaly-inline'"> | |
| <span class="lbexTextStrikethrough"> | |
| <xsl:apply-templates/> | |
| </span> | |
| </xsl:when> | |
| <xsl:when | |
| test="$appropReportedStyle = 'strikethrough' and (not(@display-inline) or @display-inline = 'no-display-inline')"> | |
| <div class="lbexIndentParagraph"> | |
| <span class="lbexTextStrikethrough"> | |
| <xsl:apply-templates/> | |
| </span> | |
| </div> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:apply-templates/> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| <xsl:if | |
| test="(contains($appropReportedStyle, 'brackets')) and $isToCloseTheBrackets = 'yes'"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>]</xsl:text> | |
| </span> | |
| </xsl:if> | |
| <xsl:if | |
| test="(($appropReportedStyle = 'parentheses-boldface-roman' or $appropReportedStyle = 'parentheses-boldface-italic' or $appropReportedStyle = 'parentheses') and $isToCloseTheBrackets = 'yes')"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>)</xsl:text> | |
| </span> | |
| </xsl:if> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </p> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:template> | |
| <xsl:template match="subparagraph"> | |
| <!-- TB Aug 2016 bug fixing 1434 --> | |
| <xsl:call-template name="printSectionAndDownStructure"> | |
| <xsl:with-param name="thePrintingTemplate">displaySubparagraph</xsl:with-param> | |
| </xsl:call-template> | |
| </xsl:template> | |
| <!-- ************************* Display Sub Paragraph********************************* --> | |
| <xsl:template name="displaySubparagraph"> | |
| <xsl:call-template name="createAnchor"/> | |
| <xsl:choose> | |
| <xsl:when test="./@display-inline = 'yes-display-inline'"> | |
| <xsl:if test="@commented = 'yes'"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>[</xsl:text> | |
| </span> | |
| </xsl:if> | |
| <!-- TB aug 2012 Bug fixing #1270 --> | |
| <xsl:if test="parent::quoted-block and not(preceding-sibling::*)"> | |
| <xsl:call-template name="openQuotes"/> | |
| </xsl:if> | |
| <xsl:apply-templates/> | |
| <xsl:if test="@commented = 'yes'"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>]</xsl:text> | |
| </span> | |
| </xsl:if> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:variable name="indentLevel"> | |
| <xsl:call-template name="defineIndentation"> | |
| <xsl:with-param name="aLevelElement">subparagraph</xsl:with-param> | |
| </xsl:call-template> | |
| </xsl:variable> | |
| <!-- TB 1Feb2012 one more paragraph with back to zero indentation applied - to support | |
| indentation in Firefox. transparent for other browsers --> | |
| <xsl:variable name="bringIndentToZeroAttr"> | |
| <xsl:call-template name="zeroindentlevel"> | |
| <xsl:with-param name="aLevelToIndent"> | |
| <xsl:value-of select="$indentLevel"/> | |
| </xsl:with-param> | |
| </xsl:call-template> | |
| </xsl:variable> | |
| <p> | |
| <xsl:attribute name="style"> | |
| <xsl:value-of select="$bringIndentToZeroAttr"/> | |
| </xsl:attribute> | |
| <p> | |
| <xsl:attribute name="class"> | |
| <xsl:value-of select="$indentLevel"/> | |
| </xsl:attribute> | |
| <!--xsl:call-template name="ActualPrintSubParagraphWithText"/--> | |
| <xsl:call-template name="ActualPrintSubParagraphWithTextNoClass"/> | |
| </p> | |
| </p> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:template> | |
| <!--***************************Indentation****************************************************************--> | |
| <xsl:template name="defineIndentation"> | |
| <xsl:param name="aLevelElement"/> | |
| <xsl:param name="aUseParent"/> | |
| <xsl:choose> | |
| <!-- *****************************Paragraph********************************* --> | |
| <xsl:when test="$aLevelElement = 'paragraph' and $aUseParent = 'true'"> | |
| <xsl:call-template name="defineIndentationParagraphByParent"/> | |
| </xsl:when> | |
| <xsl:when test="$aLevelElement = 'paragraph'"> | |
| <xsl:call-template name="defineIndentationParagraph"/> | |
| </xsl:when> | |
| <!-- **************************Subparagraph********************************* --> | |
| <xsl:when test="$aLevelElement = 'subparagraph' and $aUseParent = 'true'"> | |
| <xsl:call-template name="defineIndentationSubParagraphByParent"/> | |
| </xsl:when> | |
| <xsl:when test="$aLevelElement = 'subparagraph'"> | |
| <xsl:call-template name="defineIndentationSubParagraph"/> | |
| </xsl:when> | |
| <!-- ****************************Clause************************************ --> | |
| <xsl:when test="$aLevelElement = 'clause' and $aUseParent = 'true'"> | |
| <xsl:call-template name="defineIndentationClauseByParent"/> | |
| </xsl:when> | |
| <xsl:when test="$aLevelElement = 'clause'"> | |
| <xsl:call-template name="defineIndentationClause"/> | |
| </xsl:when> | |
| <!-- **************************Subclause********************************** --> | |
| <xsl:when test="$aLevelElement = 'subclause' and $aUseParent = 'true'"> | |
| <xsl:call-template name="defineIndentationSubclauseByParent"/> | |
| </xsl:when> | |
| <xsl:when test="$aLevelElement = 'subclause'"> | |
| <xsl:call-template name="defineIndentationSubclause"/> | |
| </xsl:when> | |
| <!-- **************************Item********************************** --> | |
| <xsl:when test="$aLevelElement = 'item' and $aUseParent = 'true'"> | |
| <xsl:call-template name="defineIndentationItemByParent"/> | |
| </xsl:when> | |
| <xsl:when test="$aLevelElement = 'item'"> | |
| <xsl:call-template name="defineIndentationItem"/> | |
| </xsl:when> | |
| <!-- **************************Subitem********************************** --> | |
| <xsl:when test="$aLevelElement = 'subitem' and $aUseParent = 'true'"> | |
| <xsl:call-template name="defineIndentationSubitemByParent"/> | |
| </xsl:when> | |
| <xsl:when test="$aLevelElement = 'subitem'"> | |
| <xsl:call-template name="defineIndentationSubitem"/> | |
| </xsl:when> | |
| </xsl:choose> | |
| </xsl:template> | |
| <xsl:template name="defineIndentationParagraph"> | |
| <!--I am a paragraph element--> | |
| <xsl:choose> | |
| <xsl:when | |
| test="preceding-sibling::paragraph/@display-inline = 'yes-display-inline' and parent::subsection"> | |
| <xsl:text>lbexIndentSubsection</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="@indent = 'up1' or ./@indent = 'up1'"> | |
| <xsl:text>lbexIndentSubsection</xsl:text> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:text>lbexIndentParagraph</xsl:text> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:template> | |
| <xsl:template name="defineIndentationParagraphByParent"> | |
| <!--I am a paragraph element--> | |
| <xsl:choose> | |
| <xsl:when | |
| test="parent::*/preceding-sibling::paragraph/@display-inline = 'yes-display-inline' and ancestor::*[2]/subsection"> | |
| <xsl:text>lbexIndentSubsection</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="./@indent = 'up1' or ../@indent = 'up1'"> | |
| <xsl:text>lbexIndentSubsection</xsl:text> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:text>lbexIndentParagraph</xsl:text> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:template> | |
| <xsl:template name="defineIndentationSubParagraph"> | |
| <!--I am a subparagraph element--> | |
| <xsl:choose> | |
| <xsl:when | |
| test="(preceding-sibling::subparagraph[@display-inline = 'yes-display-inline']) and not(parent::paragraph/@display-inline = 'yes-display-inline') and not(parent::paragraph/@indent = 'up1')"> | |
| <xsl:text>lbexIndentParagraph</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="(preceding-sibling::subparagraph[@display-inline = 'yes-display-inline']) and (parent::paragraph/@display-inline = 'yes-display-inline' or parent::paragraph/@indent = 'up1')"> | |
| <xsl:text>lbexIndentSubsection</xsl:text> | |
| </xsl:when> | |
| <!-- TB Mar-31-2015 Bug Fixing #1381 --> | |
| <!--xsl:when | |
| test="preceding-sibling::subparagraph[@indent='up1'] or @indent='up1' or ./@indent='up1'"> | |
| <xsl:text>lbexIndentParagraph</xsl:text> | |
| </xsl:when--> | |
| <xsl:when test="@indent = 'up1' or ./@indent = 'up1'"> | |
| <xsl:text>lbexIndentParagraph</xsl:text> | |
| </xsl:when> | |
| <!--xsl:when | |
| test="preceding-sibling::subparagraph[@indent='up2'] or @indent='up2' or ./@indent='up2'"> | |
| <xsl:text>lbexIndentSubsection</xsl:text> | |
| </xsl:when--> | |
| <xsl:when test="@indent = 'up2' or ./@indent = 'up2'"> | |
| <xsl:text>lbexIndentSubsection</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="parent::paragraph[@display-inline = 'yes-display-inline']"> | |
| <!--case with preceeding sibling = 'yes display-inline was covered in the first two cases ==> here the only case when preceding sibling is no display inline--> | |
| <xsl:text>lbexIndentParagraph</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="parent::paragraph/@indent = 'up1'"> | |
| <xsl:text>lbexIndentParagraph</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="parent::paragraph/@indent = 'up2'"> | |
| <xsl:text>lbexIndentSubsection</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="local-name() = 'continuation-text' and local-name(ancestor::*[2]) = 'paragraph' and ancestor::*[2]/@indent = 'up1' and parent::*/preceding-sibling::subparagraph/@display-inline = 'yes-display-inline'"> | |
| <xsl:text>lbexIndentSubsection</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="local-name() = 'continuation-text' and local-name(ancestor::*[2]) = 'paragraph' and ancestor::*[2]/@indent = 'up1'"> | |
| <xsl:text>lbexIndentParagraph</xsl:text> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:text>lbexIndentSubpar</xsl:text> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:template> | |
| <xsl:template name="defineIndentationSubParagraphByParent"> | |
| <!--I am a subparagraph element--> | |
| <xsl:choose> | |
| <xsl:when | |
| test="(parent::*/preceding-sibling::subparagraph[@display-inline = 'yes-display-inline']) and not(ancestor::*[2]/paragraph/@display-inline = 'yes-display-inline') and not(ancestor::*[2]/paragraph/@indent = 'up1')"> | |
| <xsl:text>lbexIndentParagraph</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="(parent::*/preceding-sibling::subparagraph[@display-inline = 'yes-display-inline']) and (ancestor::*[2]/paragraph/@display-inline = 'yes-display-inline' or ancestor::*[2]/paragraph/@indent = 'up1')"> | |
| <xsl:text>lbexIndentSubsection</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="parent::*/preceding-sibling::subparagraph[@indent = 'up1'] or ./@indent = 'up1' or ../@indent = 'up1'"> | |
| <xsl:text>lbexIndentParagraph</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="parent::*/preceding-sibling::subparagraph[@indent = 'up2'] or ./@indent = 'up2' or ../@indent = 'up2'"> | |
| <xsl:text>lbexIndentSubsection</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="ancestor::*[2]/paragraph[@display-inline = 'yes-display-inline']"> | |
| <!--case with preceeding sibling = 'yes display-inline was covered in the first two cases ==> here the only case when preceding sibling is no display inline--> | |
| <xsl:text>lbexIndentParagraph</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="ancestor::*[2]/paragraph/@indent = 'up1'"> | |
| <xsl:text>lbexIndentParagraph</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="ancestor::*[2]/paragraph/@indent = 'up2'"> | |
| <xsl:text>lbexIndentSubsection</xsl:text> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:text>lbexIndentSubpar</xsl:text> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:template> | |
| <xsl:template name="defineIndentationClause"> | |
| <!--I am a clause element--> | |
| <xsl:variable name="parentDisplayInLineCount"> | |
| <xsl:call-template name="countParentDisplayInlineMax2"/> | |
| </xsl:variable> | |
| <xsl:choose> | |
| <xsl:when | |
| test="(preceding-sibling::clause[@display-inline = 'yes-display-inline']) and $parentDisplayInLineCount = '0'"> | |
| <xsl:text>lbexIndentSubpar</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="(preceding-sibling::clause[@display-inline = 'yes-display-inline']) and $parentDisplayInLineCount = '1'"> | |
| <xsl:text>lbexIndentParagraph</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="(preceding-sibling::clause[@display-inline = 'yes-display-inline']) and $parentDisplayInLineCount = '2'"> | |
| <xsl:text>lbexIndentSubsection</xsl:text> | |
| </xsl:when> | |
| <!-- ************************************************** --> | |
| <xsl:when test="$parentDisplayInLineCount = '1'"> | |
| <!--case with preceeding sibling = 'yes display-inline was covered in the first two cases ==> here the only case when preceding sibling is no display inline--> | |
| <xsl:text>lbexIndentSubpar</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="$parentDisplayInLineCount = '2'"> | |
| <!--case with preceeding sibling = 'yes display-inline was covered in the first two cases ==> here the only case when preceding sibling is no display inline--> | |
| <xsl:text>lbexIndentParagraph</xsl:text> | |
| </xsl:when> | |
| <!--**************************************************--> | |
| <!-- TB Mar-31-2015 bug fixing #1381 --> | |
| <!--xsl:when | |
| test="preceding-sibling::clause[@indent='up1'] or @indent='up1' or ./@indent='up1'"> | |
| <xsl:text>lbexIndentSubpar</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="preceding-sibling::clause[@indent='up2'] or @indent='up2' or ./@indent='up2'"> | |
| <xsl:text>lbexIndentParagraph</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="preceding-sibling::clause[@indent='up3'] or @indent='up3' or ./@indent='up3'"> | |
| <xsl:text>lbexIndentSubsection</xsl:text> | |
| </xsl:when--> | |
| <xsl:when test="@indent = 'up1' or ./@indent = 'up1'"> | |
| <xsl:text>lbexIndentSubpar</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="@indent = 'up2' or ./@indent = 'up2'"> | |
| <xsl:text>lbexIndentParagraph</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="@indent = 'up3' or ./@indent = 'up3'"> | |
| <xsl:text>lbexIndentSubsection</xsl:text> | |
| </xsl:when> | |
| <!--**************************************************--> | |
| <xsl:when test="parent::subparagraph/@indent = 'up1'"> | |
| <xsl:text>lbexIndentSubpar</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="parent::subparagraph/@indent = 'up2'"> | |
| <xsl:text>lbexIndentParagraph</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="parent::subparagraph/@indent = 'up3'"> | |
| <xsl:text>lbexIndentSubsection</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="parent::paragraph/@indent = 'up1'"> | |
| <!-- in this case my parent subparagraph does not have this attribute --> | |
| <xsl:text>lbexIndentSubpar</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="parent::paragraph/@indent = 'up2'"> | |
| <!-- in this case my parent subparagraph does not have this attribute --> | |
| <xsl:text>lbexIndentParagraph</xsl:text> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:text>lbexIndentClause</xsl:text> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:template> | |
| <xsl:template name="defineIndentationClauseByParent"> | |
| <!--I am a clause element--> | |
| <xsl:variable name="parentDisplayInLineCount"> | |
| <xsl:call-template name="countParentDisplayInlineMax2"/> | |
| </xsl:variable> | |
| <xsl:choose> | |
| <xsl:when | |
| test="(parent::*/preceding-sibling::clause[@display-inline = 'yes-display-inline']) and $parentDisplayInLineCount = '0'"> | |
| <xsl:text>lbexIndentSubpar</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="(parent::*/preceding-sibling::clause[@display-inline = 'yes-display-inline']) and $parentDisplayInLineCount = '1'"> | |
| <xsl:text>lbexIndentParagraph</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="(parent::*/preceding-sibling::clause[@display-inline = 'yes-display-inline']) and $parentDisplayInLineCount = '2'"> | |
| <xsl:text>lbexIndentSubsection</xsl:text> | |
| </xsl:when> | |
| <!-- ************************************************** --> | |
| <xsl:when test="$parentDisplayInLineCount = '1'"> | |
| <!--case with preceeding sibling = 'yes display-inline was covered in the first two cases ==> here the only case when preceding sibling is no display inline--> | |
| <xsl:text>lbexIndentSubpar</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="$parentDisplayInLineCount = '2'"> | |
| <!--case with preceeding sibling = 'yes display-inline was covered in the first two cases ==> here the only case when preceding sibling is no display inline--> | |
| <xsl:text>lbexIndentParagraph</xsl:text> | |
| </xsl:when> | |
| <!--**************************************************--> | |
| <xsl:when | |
| test="parent::*/preceding-sibling::clause[@indent = 'up1'] or ./@indent = 'up1' or ../@indent = 'up1'"> | |
| <xsl:text>lbexIndentSubpar</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="parent::*/preceding-sibling::clause[@indent = 'up2'] or ./@indent = 'up2' or ../@indent = 'up2'"> | |
| <xsl:text>lbexIndentParagraph</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="parent::*/preceding-sibling::clause[@indent = 'up3'] or ./@indent = 'up3' or ../@indent = 'up3'"> | |
| <xsl:text>lbexIndentSubsection</xsl:text> | |
| </xsl:when> | |
| <!--**************************************************--> | |
| <xsl:when test="ancestor::*[2]/subparagraph/@indent = 'up1'"> | |
| <xsl:text>lbexIndentSubpar</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="ancestor::*[2]/subparagraph/@indent = 'up2'"> | |
| <xsl:text>lbexIndentParagraph</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="ancestor::*[2]/subparagraph/@indent = 'up3'"> | |
| <xsl:text>lbexIndentSubsection</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="ancestor::*[2]/paragraph/@indent = 'up1'"> | |
| <!-- in this case my parent subparagraph does not have this attribute --> | |
| <xsl:text>lbexIndentSubpar</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="ancestor::*[2]/paragraph/@indent = 'up2'"> | |
| <!-- in this case my parent subparagraph does not have this attribute --> | |
| <xsl:text>lbexIndentParagraph</xsl:text> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:text>lbexIndentClause</xsl:text> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:template> | |
| <xsl:template name="defineIndentationSubclause"> | |
| <!--I am a subclause element--> | |
| <xsl:variable name="parentDisplayInLineCount"> | |
| <xsl:call-template name="countParentDisplayInlineMax3"/> | |
| </xsl:variable> | |
| <xsl:choose> | |
| <xsl:when | |
| test="(preceding-sibling::subclause[@display-inline = 'yes-display-inline']) and $parentDisplayInLineCount = '0'"> | |
| <xsl:text>lbexIndentClause</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="(preceding-sibling::subclause[@display-inline = 'yes-display-inline']) and $parentDisplayInLineCount = '1'"> | |
| <xsl:text>lbexIndentSubpar</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="(preceding-sibling::subclause[@display-inline = 'yes-display-inline']) and $parentDisplayInLineCount = '2'"> | |
| <xsl:text>lbexIndentParagraph</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="(preceding-sibling::subclause[@display-inline = 'yes-display-inline']) and $parentDisplayInLineCount = '3'"> | |
| <xsl:text>lbexIndentSubsection</xsl:text> | |
| </xsl:when> | |
| <!-- ************************************************** --> | |
| <xsl:when test="$parentDisplayInLineCount = '1'"> | |
| <!--case with preceeding sibling = 'yes display-inline was covered in the first two cases ==> here the only case when preceding sibling is no display inline--> | |
| <xsl:text>lbexIndentClause</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="$parentDisplayInLineCount = '2'"> | |
| <!--case with preceeding sibling = 'yes display-inline was covered in the first two cases ==> here the only case when preceding sibling is no display inline--> | |
| <xsl:text>lbexIndentSubpar</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="$parentDisplayInLineCount = '3'"> | |
| <!--case with preceeding sibling = 'yes display-inline was covered in the first two cases ==> here the only case when preceding sibling is no display inline--> | |
| <xsl:text>lbexIndentParagraph</xsl:text> | |
| </xsl:when> | |
| <!--**************************************************--> | |
| <!-- TB Mar-31-2015 Bug Fixing #1381 --> | |
| <!--xsl:when | |
| test="preceding-sibling::subclause[@indent='up1'] or @indent='up1' or ./@indent='up1'"> | |
| <xsl:text>lbexIndentClause</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="preceding-sibling::subclause[@indent='up2'] or @indent='up2' or ./@indent='up2'"> | |
| <xsl:text>lbexIndentSubpar</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="preceding-sibling::subclause[@indent='up3'] or @indent='up3' or ./@indent='up3'"> | |
| <xsl:text>lbexIndentParagraph</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="preceding-sibling::subclause[@indent='up4'] or @indent='up4' or ./@indent='up4'"> | |
| <xsl:text>lbexIndentSubsection</xsl:text> | |
| </xsl:when--> | |
| <xsl:when test="@indent = 'up1' or ./@indent = 'up1'"> | |
| <xsl:text>lbexIndentClause</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="@indent = 'up2' or ./@indent = 'up2'"> | |
| <xsl:text>lbexIndentSubpar</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="@indent = 'up3' or ./@indent = 'up3'"> | |
| <xsl:text>lbexIndentParagraph</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="@indent = 'up4' or ./@indent = 'up4'"> | |
| <xsl:text>lbexIndentSubsection</xsl:text> | |
| </xsl:when> | |
| <!--**************************************************--> | |
| <xsl:when test="parent::clause/@indent = 'up1'"> | |
| <xsl:text>lbexIndentClause</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="parent::clause/@indent = 'up2'"> | |
| <xsl:text>lbexIndentSubpar</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="parent::clause/@indent = 'up3'"> | |
| <xsl:text>lbexIndentParagraph</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="parent::clause/@indent = 'up4'"> | |
| <xsl:text>lbexIndentSubsection</xsl:text> | |
| </xsl:when> | |
| <!--**************************************************--> | |
| <!-- in this case my parent clause does not have this attribute --> | |
| <xsl:when test="parent::subparagraph/@indent = 'up1'"> | |
| <xsl:text>lbexIndentClause</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="parent::subparagraph/@indent = 'up2'"> | |
| <xsl:text>lbexIndentSubpar</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="parent::subparagraph/@indent = 'up3'"> | |
| <xsl:text>lbexIndentParagraph</xsl:text> | |
| </xsl:when> | |
| <!-- ***************************************************** --> | |
| <xsl:when test="parent::paragraph/@indent = 'up1'"> | |
| <!-- in this case my parent subparagraph does not have this attribute --> | |
| <xsl:text>lbexIndentClause</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="parent::paragraph/@indent = 'up2'"> | |
| <!-- in this case my parent subparagraph does not have this attribute --> | |
| <xsl:text>lbexIndentSubpar</xsl:text> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:text>lbexIndentSubclause</xsl:text> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:template> | |
| <xsl:template name="defineIndentationSubclauseByParent"> | |
| <!--I am a subclause element--> | |
| <xsl:variable name="parentDisplayInLineCount"> | |
| <xsl:call-template name="countParentDisplayInlineMax3"/> | |
| </xsl:variable> | |
| <xsl:choose> | |
| <xsl:when | |
| test="(parent::*/preceding-sibling::subclause[@display-inline = 'yes-display-inline']) and $parentDisplayInLineCount = '0'"> | |
| <xsl:text>lbexIndentClause</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="(parent::*/preceding-sibling::subclause[@display-inline = 'yes-display-inline']) and $parentDisplayInLineCount = '1'"> | |
| <xsl:text>lbexIndentSubpar</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="(parent::*/preceding-sibling::subclause[@display-inline = 'yes-display-inline']) and $parentDisplayInLineCount = '2'"> | |
| <xsl:text>lbexIndentParagraph</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="(parent::*/preceding-sibling::subclause[@display-inline = 'yes-display-inline']) and $parentDisplayInLineCount = '3'"> | |
| <xsl:text>lbexIndentSubsection</xsl:text> | |
| </xsl:when> | |
| <!-- ************************************************** --> | |
| <xsl:when test="$parentDisplayInLineCount = '1'"> | |
| <!--case with preceeding sibling = 'yes display-inline was covered in the first two cases ==> here the only case when preceding sibling is no display inline--> | |
| <xsl:text>lbexIndentClause</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="$parentDisplayInLineCount = '2'"> | |
| <!--case with preceeding sibling = 'yes display-inline was covered in the first two cases ==> here the only case when preceding sibling is no display inline--> | |
| <xsl:text>lbexIndentSubpar</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="$parentDisplayInLineCount = '3'"> | |
| <!--case with preceeding sibling = 'yes display-inline was covered in the first two cases ==> here the only case when preceding sibling is no display inline--> | |
| <xsl:text>lbexIndentParagraph</xsl:text> | |
| </xsl:when> | |
| <!--**************************************************--> | |
| <xsl:when | |
| test="parent::*/preceding-sibling::subclause[@indent = 'up1'] or ./@indent = 'up1' or ../@indent = 'up1'"> | |
| <xsl:text>lbexIndentClause</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="parent::*/preceding-sibling::subclause[@indent = 'up2'] or ./@indent = 'up2' or ../@indent = 'up2'"> | |
| <xsl:text>lbexIndentSubpar</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="parent::*/preceding-sibling::subclause[@indent = 'up3'] or ./@indent = 'up3' or ../@indent = 'up3'"> | |
| <xsl:text>lbexIndentParagraph</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="parent::*/preceding-sibling::subclause[@indent = 'up4'] or ./@indent = 'up4' or ../@indent = 'up4'"> | |
| <xsl:text>lbexIndentSubsection</xsl:text> | |
| </xsl:when> | |
| <!--**************************************************--> | |
| <xsl:when test="ancestor::*[2]/clause/@indent = 'up1'"> | |
| <xsl:text>lbexIndentClause</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="ancestor::*[2]/clause/@indent = 'up2'"> | |
| <xsl:text>lbexIndentSubpar</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="ancestor::*[2]/clause/@indent = 'up3'"> | |
| <xsl:text>lbexIndentParagraph</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="ancestor::*[2]/clause/@indent = 'up4'"> | |
| <xsl:text>lbexIndentSubsection</xsl:text> | |
| </xsl:when> | |
| <!--**************************************************--> | |
| <!-- in this case my parent clause does not have this attribute --> | |
| <xsl:when test="ancestor::*[2]/subparagraph/@indent = 'up1'"> | |
| <xsl:text>lbexIndentClause</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="ancestor::*[2]/subparagraph/@indent = 'up2'"> | |
| <xsl:text>lbexIndentSubpar</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="ancestor::*[2]/subparagraph/@indent = 'up3'"> | |
| <xsl:text>lbexIndentParagraph</xsl:text> | |
| </xsl:when> | |
| <!-- ***************************************************** --> | |
| <xsl:when test="ancestor::*[2]/paragraph/@indent = 'up1'"> | |
| <!-- in this case my parent subparagraph does not have this attribute --> | |
| <xsl:text>lbexIndentClause</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="ancestor::*[2]/paragraph/@indent = 'up2'"> | |
| <!-- in this case my parent subparagraph does not have this attribute --> | |
| <xsl:text>lbexIndentSubpar</xsl:text> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:text>lbexIndentSubclause</xsl:text> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:template> | |
| <xsl:template name="defineIndentationItem"> | |
| <!--I am a item element--> | |
| <xsl:variable name="parentDisplayInLineCount"> | |
| <xsl:call-template name="countParentDisplayInlineMax4"/> | |
| </xsl:variable> | |
| <xsl:choose> | |
| <xsl:when | |
| test="(preceding-sibling::item[@display-inline = 'yes-display-inline']) and $parentDisplayInLineCount = '0'"> | |
| <xsl:text>lbexIndentSubclause</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="(preceding-sibling::item[@display-inline = 'yes-display-inline']) and $parentDisplayInLineCount = '1'"> | |
| <xsl:text>lbexIndentClause</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="(preceding-sibling::item[@display-inline = 'yes-display-inline']) and $parentDisplayInLineCount = '2'"> | |
| <xsl:text>lbexIndentSubpar</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="(preceding-sibling::item[@display-inline = 'yes-display-inline']) and $parentDisplayInLineCount = '3'"> | |
| <xsl:text>lbexIndentParagraph</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="(preceding-sibling::item[@display-inline = 'yes-display-inline']) and $parentDisplayInLineCount = '4'"> | |
| <xsl:text>lbexIndentSubsection</xsl:text> | |
| </xsl:when> | |
| <!-- ************************************************** --> | |
| <xsl:when test="$parentDisplayInLineCount = '1'"> | |
| <!--case with preceeding sibling = 'yes display-inline was covered in the first two cases ==> here the only case when preceding sibling is no display inline--> | |
| <xsl:text>lbexIndentSubclause</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="$parentDisplayInLineCount = '2'"> | |
| <!--case with preceeding sibling = 'yes display-inline was covered in the first two cases ==> here the only case when preceding sibling is no display inline--> | |
| <xsl:text>lbexIndentClause</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="$parentDisplayInLineCount = '3'"> | |
| <!--case with preceeding sibling = 'yes display-inline was covered in the first two cases ==> here the only case when preceding sibling is no display inline--> | |
| <xsl:text>lbexIndentSubpar</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="$parentDisplayInLineCount = '4'"> | |
| <!--case with preceeding sibling = 'yes display-inline was covered in the first two cases ==> here the only case when preceding sibling is no display inline--> | |
| <xsl:text>lbexIndentParagraph</xsl:text> | |
| </xsl:when> | |
| <!--**************************************************--> | |
| <!-- TB Mar-31-2015 Bug Fixing #1381 --> | |
| <!--xsl:when | |
| test="preceding-sibling::item[@indent='up1'] or @indent='up1' or ./@indent='up1'"> | |
| <xsl:text>lbexIndentSubclause</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="preceding-sibling::item[@indent='up2'] or @indent='up2' or ./@indent='up2'"> | |
| <xsl:text>lbexIndentClause</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="preceding-sibling::item[@indent='up3'] or @indent='up3' or ./@indent='up3'"> | |
| <xsl:text>lbexIndentSubpar</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="preceding-sibling::item[@indent='up4'] or @indent='up4' or ./@indent='up4'"> | |
| <xsl:text>lbexIndentParagraph</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="preceding-sibling::item[@indent='up5'] or @indent='up5' or ./@indent='up5'"> | |
| <xsl:text>lbexIndentSubsection</xsl:text> | |
| </xsl:when--> | |
| <xsl:when test="@indent = 'up1' or ./@indent = 'up1'"> | |
| <xsl:text>lbexIndentSubclause</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="@indent = 'up2' or ./@indent = 'up2'"> | |
| <xsl:text>lbexIndentClause</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="@indent = 'up3' or ./@indent = 'up3'"> | |
| <xsl:text>lbexIndentSubpar</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="@indent = 'up4' or ./@indent = 'up4'"> | |
| <xsl:text>lbexIndentParagraph</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="@indent = 'up5' or ./@indent = 'up5'"> | |
| <xsl:text>lbexIndentSubsection</xsl:text> | |
| </xsl:when> | |
| <!--**************************************************--> | |
| <xsl:when test="parent::subclause/@indent = 'up1'"> | |
| <xsl:text>lbexIndentSubclause</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="parent::subclause/@indent = 'up2'"> | |
| <xsl:text>lbexIndentClause</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="parent::subclause/@indent = 'up3'"> | |
| <xsl:text>lbexIndentSubpar</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="parent::subclause/@indent = 'up4'"> | |
| <xsl:text>lbexIndentParagraph</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="parent::subclause/@indent = 'up5'"> | |
| <xsl:text>lbexIndentSubsection</xsl:text> | |
| </xsl:when> | |
| <!--**************************************************--> | |
| <xsl:when test="parent::clause/@indent = 'up1'"> | |
| <xsl:text>lbexIndentClause</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="parent::clause/@indent = 'up2'"> | |
| <xsl:text>lbexIndentSubpar</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="parent::clause/@indent = 'up3'"> | |
| <xsl:text>lbexIndentParagraph</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="parent::clause/@indent = 'up4'"> | |
| <xsl:text>lbexIndentSubsection</xsl:text> | |
| </xsl:when> | |
| <!--**************************************************--> | |
| <!-- in this case my parent clause does not have this attribute --> | |
| <xsl:when test="parent::subparagraph/@indent = 'up1'"> | |
| <xsl:text>lbexIndentSubclause</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="parent::subparagraph/@indent = 'up2'"> | |
| <xsl:text>lbexIndentClause</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="parent::subparagraph/@indent = 'up3'"> | |
| <xsl:text>lbexIndentSubpar</xsl:text> | |
| </xsl:when> | |
| <!-- ***************************************************** --> | |
| <xsl:when test="parent::paragraph/@indent = 'up1'"> | |
| <!-- in this case my parent subparagraph does not have this attribute --> | |
| <xsl:text>lbexIndentClause</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="parent::paragraph/@indent = 'up2'"> | |
| <!-- in this case my parent subparagraph does not have this attribute --> | |
| <xsl:text>lbexIndentSubpar</xsl:text> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:text>lbexIndentItem</xsl:text> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:template> | |
| <xsl:template name="defineIndentationItemByParent"> | |
| <!--I am a item element--> | |
| <xsl:variable name="parentDisplayInLineCount"> | |
| <xsl:call-template name="countParentDisplayInlineMax4"/> | |
| </xsl:variable> | |
| <xsl:choose> | |
| <xsl:when | |
| test="(parent::*/preceding-sibling::item[@display-inline = 'yes-display-inline']) and $parentDisplayInLineCount = '0'"> | |
| <xsl:text>lbexIndentSubclause</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="(parent::*/preceding-sibling::item[@display-inline = 'yes-display-inline']) and $parentDisplayInLineCount = '1'"> | |
| <xsl:text>lbexIndentClause</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="(parent::*/preceding-sibling::item[@display-inline = 'yes-display-inline']) and $parentDisplayInLineCount = '2'"> | |
| <xsl:text>lbexIndentSubpar</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="(parent::*/preceding-sibling::item[@display-inline = 'yes-display-inline']) and $parentDisplayInLineCount = '3'"> | |
| <xsl:text>lbexIndentParagraph</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="(parent::*/preceding-sibling::item[@display-inline = 'yes-display-inline']) and $parentDisplayInLineCount = '4'"> | |
| <xsl:text>lbexIndentSubsection</xsl:text> | |
| </xsl:when> | |
| <!-- ************************************************** --> | |
| <xsl:when test="$parentDisplayInLineCount = '1'"> | |
| <!--case with preceeding sibling = 'yes display-inline was covered in the first two cases ==> here the only case when preceding sibling is no display inline--> | |
| <xsl:text>lbexIndentSubclause</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="$parentDisplayInLineCount = '2'"> | |
| <!--case with preceeding sibling = 'yes display-inline was covered in the first two cases ==> here the only case when preceding sibling is no display inline--> | |
| <xsl:text>lbexIndentClause</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="$parentDisplayInLineCount = '3'"> | |
| <!--case with preceeding sibling = 'yes display-inline was covered in the first two cases ==> here the only case when preceding sibling is no display inline--> | |
| <xsl:text>lbexIndentSubpar</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="$parentDisplayInLineCount = '4'"> | |
| <!--case with preceeding sibling = 'yes display-inline was covered in the first two cases ==> here the only case when preceding sibling is no display inline--> | |
| <xsl:text>lbexIndentParagraph</xsl:text> | |
| </xsl:when> | |
| <!--**************************************************--> | |
| <xsl:when | |
| test="parent::*/preceding-sibling::item[@indent = 'up1'] or ./@indent = 'up1' or ../@indent = 'up1'"> | |
| <xsl:text>lbexIndentSubclause</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="parent::*/preceding-sibling::item[@indent = 'up2'] or ./@indent = 'up2' or ../@indent = 'up2'"> | |
| <xsl:text>lbexIndentClause</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="parent::*/preceding-sibling::item[@indent = 'up3'] or ./@indent = 'up3' or ../@indent = 'up3'"> | |
| <xsl:text>lbexIndentSubpar</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="parent::*/preceding-sibling::item[@indent = 'up4'] or ./@indent = 'up4' or ../@indent = 'up4'"> | |
| <xsl:text>lbexIndentParagraph</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="parent::*/preceding-sibling::item[@indent = 'up5'] or ./@indent = 'up5' or ../@indent = 'up5'"> | |
| <xsl:text>lbexIndentSubsection</xsl:text> | |
| </xsl:when> | |
| <!--**************************************************--> | |
| <xsl:when test="ancestor::*[2]/subclause/@indent = 'up1'"> | |
| <xsl:text>lbexIndentSubclause</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="ancestor::*[2]/subclause/@indent = 'up2'"> | |
| <xsl:text>lbexIndentClause</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="ancestor::*[2]/subclause/@indent = 'up3'"> | |
| <xsl:text>lbexIndentSubpar</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="ancestor::*[2]/subclause/@indent = 'up4'"> | |
| <xsl:text>lbexIndentParagraph</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="ancestor::*[2]/subclause/@indent = 'up5'"> | |
| <xsl:text>lbexIndentSubsection</xsl:text> | |
| </xsl:when> | |
| <!--**************************************************--> | |
| <xsl:when test="ancestor::*[2]/clause/@indent = 'up1'"> | |
| <xsl:text>lbexIndentClause</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="ancestor::*[2]/clause/@indent = 'up2'"> | |
| <xsl:text>lbexIndentSubpar</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="ancestor::*[2]/clause/@indent = 'up3'"> | |
| <xsl:text>lbexIndentParagraph</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="ancestor::*[2]/clause/@indent = 'up4'"> | |
| <xsl:text>lbexIndentSubsection</xsl:text> | |
| </xsl:when> | |
| <!--**************************************************--> | |
| <!-- in this case my parent clause does not have this attribute --> | |
| <xsl:when test="ancestor::*[2]/subparagraph/@indent = 'up1'"> | |
| <xsl:text>lbexIndentSubclause</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="ancestor::*[2]/subparagraph/@indent = 'up2'"> | |
| <xsl:text>lbexIndentClause</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="ancestor::*[2]/subparagraph/@indent = 'up3'"> | |
| <xsl:text>lbexIndentSubpar</xsl:text> | |
| </xsl:when> | |
| <!-- ***************************************************** --> | |
| <xsl:when test="ancestor::*[2]/paragraph/@indent = 'up1'"> | |
| <!-- in this case my parent subparagraph does not have this attribute --> | |
| <xsl:text>lbexIndentClause</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="ancestor::*[2]/paragraph/@indent = 'up2'"> | |
| <!-- in this case my parent subparagraph does not have this attribute --> | |
| <xsl:text>lbexIndentSubpar</xsl:text> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:text>lbexIndentItem</xsl:text> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:template> | |
| <xsl:template name="defineIndentationSubitem"> | |
| <xsl:variable name="parentDisplayInLineCount"> | |
| <xsl:call-template name="countParentDisplayInlineMax5"/> | |
| </xsl:variable> | |
| <xsl:choose> | |
| <xsl:when | |
| test="(preceding-sibling::subitem[@display-inline = 'yes-display-inline']) and $parentDisplayInLineCount = '0'"> | |
| <xsl:text>lbexIndentItem</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="(preceding-sibling::subitem[@display-inline = 'yes-display-inline']) and $parentDisplayInLineCount = '1'"> | |
| <xsl:text>lbexIndentSubclause</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="(preceding-sibling::subitem[@display-inline = 'yes-display-inline']) and $parentDisplayInLineCount = '2'"> | |
| <xsl:text>lbexIndentClause</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="(preceding-sibling::subitem[@display-inline = 'yes-display-inline']) and $parentDisplayInLineCount = '3'"> | |
| <xsl:text>lbexIndentSubpar</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="(preceding-sibling::subitem[@display-inline = 'yes-display-inline']) and $parentDisplayInLineCount = '4' and not(parent::item/@display-inline = 'yes-display-inline')"> | |
| <xsl:text>lbexIndentSubpar</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="(preceding-sibling::subitem[@display-inline = 'yes-display-inline']) and $parentDisplayInLineCount = '4'"> | |
| <xsl:text>lbexIndentParagraph</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="(preceding-sibling::subitem[@display-inline = 'yes-display-inline']) and $parentDisplayInLineCount = '5'"> | |
| <xsl:text>lbexIndentSubsection</xsl:text> | |
| </xsl:when> | |
| <!-- ************************************************** --> | |
| <xsl:when test="$parentDisplayInLineCount = '1'"> | |
| <!--case with preceeding sibling = 'yes display-inline was covered in the first two cases ==> here the only case when preceding sibling is no display inline--> | |
| <xsl:text>lbexIndentItem</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="$parentDisplayInLineCount = '2'"> | |
| <!--case with preceeding sibling = 'yes display-inline was covered in the first two cases ==> here the only case when preceding sibling is no display inline--> | |
| <xsl:text>lbexIndentSubclause</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="$parentDisplayInLineCount = '3'"> | |
| <!--case with preceeding sibling = 'yes display-inline was covered in the first two cases ==> here the only case when preceding sibling is no display inline--> | |
| <xsl:text>lbexIndentClause</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="$parentDisplayInLineCount = '4'"> | |
| <!--case with preceeding sibling = 'yes display-inline was covered in the first two cases ==> here the only case when preceding sibling is no display inline--> | |
| <xsl:text>lbexIndentSubpar</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="$parentDisplayInLineCount = '5'"> | |
| <!--case with preceeding sibling = 'yes display-inline was covered in the first two cases ==> here the only case when preceding sibling is no display inline--> | |
| <xsl:text>lbexIndentParagraph</xsl:text> | |
| </xsl:when> | |
| <!--**************************************************--> | |
| <!-- TB Mar-31-2015 Bug Fixing #1381 --> | |
| <!--xsl:when | |
| test="preceding-sibling::subitem[@indent='up1'] or @indent='up1' or ./@indent='up1'"> | |
| <xsl:text>lbexIndentItem</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="preceding-sibling::subitem[@indent='up2'] or @indent='up2' or ./@indent='up2'"> | |
| <xsl:text>lbexIndentSubclause</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="preceding-sibling::subitem[@indent='up3'] or @indent='up3' or ./@indent='up3'"> | |
| <xsl:text>lbexIndentClause</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="preceding-sibling::subitem[@indent='up4'] or @indent='up4' or ./@indent='up4'"> | |
| <xsl:text>lbexIndentSubpar</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="preceding-sibling::subitem[@indent='up5'] or @indent='up5' or ./@indent='up5'"> | |
| <xsl:text>lbexIndentParagraph</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="preceding-sibling::subitem[@indent='up6'] or @indent='up6' or ./@indent='up6'"> | |
| <xsl:text>lbexIndentSubsection</xsl:text> | |
| </xsl:when--> | |
| <xsl:when test="@indent = 'up1' or ./@indent = 'up1'"> | |
| <xsl:text>lbexIndentItem</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="@indent = 'up2' or ./@indent = 'up2'"> | |
| <xsl:text>lbexIndentSubclause</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="@indent = 'up3' or ./@indent = 'up3'"> | |
| <xsl:text>lbexIndentClause</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="@indent = 'up4' or ./@indent = 'up4'"> | |
| <xsl:text>lbexIndentSubpar</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="@indent = 'up5' or ./@indent = 'up5'"> | |
| <xsl:text>lbexIndentParagraph</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="@indent = 'up6' or ./@indent = 'up6'"> | |
| <xsl:text>lbexIndentSubsection</xsl:text> | |
| </xsl:when> | |
| <!--**************************************************--> | |
| <xsl:when test="parent::item/@indent = 'up1'"> | |
| <xsl:text>lbexIndentItem</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="parent::item/@indent = 'up2'"> | |
| <xsl:text>lbexIndentSubclause</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="parent::item/@indent = 'up3'"> | |
| <xsl:text>lbexIndentClause</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="parent::item/@indent = 'up4'"> | |
| <xsl:text>lbexIndentSubpar</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="parent::item/@indent = 'up5'"> | |
| <xsl:text>lbexIndentParagraph</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="parent::item/@indent = 'up6'"> | |
| <xsl:text>lbexIndentSubsection</xsl:text> | |
| </xsl:when> | |
| <!--**************************************************--> | |
| <xsl:when test="parent::subclause/@indent = 'up1'"> | |
| <xsl:text>lbexIndentItem</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="parent::subclause/@indent = 'up2'"> | |
| <xsl:text>lbexIndentSubclause</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="parent::subclause/@indent = 'up3'"> | |
| <xsl:text>lbexIndentClause</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="parent::subclause/@indent = 'up4'"> | |
| <xsl:text>lbexIndentSubpar</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="parent::subclause/@indent = 'up5'"> | |
| <xsl:text>lbexIndentParagraph</xsl:text> | |
| </xsl:when> | |
| <!--**************************************************--> | |
| <xsl:when test="parent::clause/@indent = 'up1'"> | |
| <xsl:text>lbexIndentItem</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="parent::clause/@indent = 'up2'"> | |
| <xsl:text>lbexIndentClause</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="parent::clause/@indent = 'up3'"> | |
| <xsl:text>lbexIndentSubpar</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="parent::clause/@indent = 'up4'"> | |
| <xsl:text>lbexIndentParagraph</xsl:text> | |
| </xsl:when> | |
| <!--**************************************************--> | |
| <!-- in this case my parent clause does not have this attribute --> | |
| <xsl:when test="parent::subparagraph/@indent = 'up1'"> | |
| <xsl:text>lbexIndentItem</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="parent::subparagraph/@indent = 'up2'"> | |
| <xsl:text>lbexIndentSubclause</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="parent::subparagraph/@indent = 'up3'"> | |
| <xsl:text>lbexIndentClause</xsl:text> | |
| </xsl:when> | |
| <!-- ***************************************************** --> | |
| <xsl:when test="parent::paragraph/@indent = 'up1'"> | |
| <!-- in this case my parent subparagraph does not have this attribute --> | |
| <xsl:text>lbexIndentItem</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="parent::paragraph/@indent = 'up2'"> | |
| <!-- in this case my parent subparagraph does not have this attribute --> | |
| <xsl:text>lbexIndentSubclause</xsl:text> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:text>lbexIndentSubItem</xsl:text> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:template> | |
| <xsl:template name="defineIndentationSubitemByParent"> | |
| <xsl:variable name="parentDisplayInLineCount"> | |
| <xsl:call-template name="countParentDisplayInlineMax5"/> | |
| </xsl:variable> | |
| <xsl:choose> | |
| <xsl:when | |
| test="(parent::*/preceding-sibling::subitem[@display-inline = 'yes-display-inline']) and $parentDisplayInLineCount = '0'"> | |
| <xsl:text>lbexIndentItem</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="(parent::*/preceding-sibling::subitem[@display-inline = 'yes-display-inline']) and $parentDisplayInLineCount = '1'"> | |
| <xsl:text>lbexIndentSubclause</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="(parent::*/preceding-sibling::subitem[@display-inline = 'yes-display-inline']) and $parentDisplayInLineCount = '2'"> | |
| <xsl:text>lbexIndentClause</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="(parent::*/preceding-sibling::subitem[@display-inline = 'yes-display-inline']) and $parentDisplayInLineCount = '3'"> | |
| <xsl:text>lbexIndentSubpar</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="(parent::*/preceding-sibling::subitem[@display-inline = 'yes-display-inline']) and $parentDisplayInLineCount = '4' and not(parent::item/@display-inline = 'yes-display-inline')"> | |
| <xsl:text>lbexIndentSubpar</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="(parent::*/preceding-sibling::subitem[@display-inline = 'yes-display-inline']) and $parentDisplayInLineCount = '4'"> | |
| <xsl:text>lbexIndentParagraph</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="(parent::*/preceding-sibling::subitem[@display-inline = 'yes-display-inline']) and $parentDisplayInLineCount = '5'"> | |
| <xsl:text>lbexIndentSubsection</xsl:text> | |
| </xsl:when> | |
| <!-- ************************************************** --> | |
| <xsl:when test="$parentDisplayInLineCount = '1'"> | |
| <!--case with preceeding sibling = 'yes display-inline was covered in the first two cases ==> here the only case when preceding sibling is no display inline--> | |
| <xsl:text>lbexIndentItem</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="$parentDisplayInLineCount = '2'"> | |
| <!--case with preceeding sibling = 'yes display-inline was covered in the first two cases ==> here the only case when preceding sibling is no display inline--> | |
| <xsl:text>lbexIndentSubclause</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="$parentDisplayInLineCount = '3'"> | |
| <!--case with preceeding sibling = 'yes display-inline was covered in the first two cases ==> here the only case when preceding sibling is no display inline--> | |
| <xsl:text>lbexIndentClause</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="$parentDisplayInLineCount = '4'"> | |
| <!--case with preceeding sibling = 'yes display-inline was covered in the first two cases ==> here the only case when preceding sibling is no display inline--> | |
| <xsl:text>lbexIndentSubpar</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="$parentDisplayInLineCount = '5'"> | |
| <!--case with preceeding sibling = 'yes display-inline was covered in the first two cases ==> here the only case when preceding sibling is no display inline--> | |
| <xsl:text>lbexIndentParagraph</xsl:text> | |
| </xsl:when> | |
| <!--**************************************************--> | |
| <xsl:when | |
| test="parent::*/preceding-sibling::subitem[@indent = 'up1'] or @indent = 'up1' or ./@indent = 'up1'"> | |
| <xsl:text>lbexIndentItem</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="parent::*/preceding-sibling::subitem[@indent = 'up2'] or @indent = 'up2' or ./@indent = 'up2'"> | |
| <xsl:text>lbexIndentSubclause</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="parent::*/preceding-sibling::subitem[@indent = 'up3'] or @indent = 'up3' or ./@indent = 'up3'"> | |
| <xsl:text>lbexIndentClause</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="parent::*/preceding-sibling::subitem[@indent = 'up4'] or @indent = 'up4' or ./@indent = 'up4'"> | |
| <xsl:text>lbexIndentSubpar</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="parent::*/preceding-sibling::subitem[@indent = 'up5'] or @indent = 'up5' or ./@indent = 'up5'"> | |
| <xsl:text>lbexIndentParagraph</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="parent::*/preceding-sibling::subitem[@indent = 'up6'] or @indent = 'up6' or ./@indent = 'up6'"> | |
| <xsl:text>lbexIndentSubsection</xsl:text> | |
| </xsl:when> | |
| <!--**************************************************--> | |
| <xsl:when test="ancestor::*[2]/item/@indent = 'up1'"> | |
| <xsl:text>lbexIndentItem</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="ancestor::*[2]/item/@indent = 'up2'"> | |
| <xsl:text>lbexIndentSubclause</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="ancestor::*[2]/item/@indent = 'up3'"> | |
| <xsl:text>lbexIndentClause</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="ancestor::*[2]/item/@indent = 'up4'"> | |
| <xsl:text>lbexIndentSubpar</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="ancestor::*[2]/item/@indent = 'up5'"> | |
| <xsl:text>lbexIndentParagraph</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="ancestor::*[2]/item/@indent = 'up6'"> | |
| <xsl:text>lbexIndentSubsection</xsl:text> | |
| </xsl:when> | |
| <!--**************************************************--> | |
| <xsl:when test="ancestor::*[2]/subclause/@indent = 'up1'"> | |
| <xsl:text>lbexIndentItem</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="ancestor::*[2]/subclause/@indent = 'up2'"> | |
| <xsl:text>lbexIndentSubclause</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="ancestor::*[2]/subclause/@indent = 'up3'"> | |
| <xsl:text>lbexIndentClause</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="ancestor::*[2]/subclause/@indent = 'up4'"> | |
| <xsl:text>lbexIndentSubpar</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="ancestor::*[2]/subclause/@indent = 'up5'"> | |
| <xsl:text>lbexIndentParagraph</xsl:text> | |
| </xsl:when> | |
| <!--**************************************************--> | |
| <xsl:when test="ancestor::*[2]/clause/@indent = 'up1'"> | |
| <xsl:text>lbexIndentItem</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="ancestor::*[2]/clause/@indent = 'up2'"> | |
| <xsl:text>lbexIndentClause</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="ancestor::*[2]/clause/@indent = 'up3'"> | |
| <xsl:text>lbexIndentSubpar</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="ancestor::*[2]/clause/@indent = 'up4'"> | |
| <xsl:text>lbexIndentParagraph</xsl:text> | |
| </xsl:when> | |
| <!--**************************************************--> | |
| <!-- in this case my parent clause does not have this attribute --> | |
| <xsl:when test="ancestor::*[2]/subparagraph/@indent = 'up1'"> | |
| <xsl:text>lbexIndentItem</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="ancestor::*[2]/subparagraph/@indent = 'up2'"> | |
| <xsl:text>lbexIndentSubclause</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="ancestor::*[2]/subparagraph/@indent = 'up3'"> | |
| <xsl:text>lbexIndentClause</xsl:text> | |
| </xsl:when> | |
| <!-- ***************************************************** --> | |
| <xsl:when test="ancestor::*[2]/paragraph/@indent = 'up1'"> | |
| <!-- in this case my parent subparagraph does not have this attribute --> | |
| <xsl:text>lbexIndentItem</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="ancestor::*[2]/paragraph/@indent = 'up2'"> | |
| <!-- in this case my parent subparagraph does not have this attribute --> | |
| <xsl:text>lbexIndentSubclause</xsl:text> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:text>lbexIndentSubItem</xsl:text> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:template> | |
| <xsl:template name="countParentDisplayInlineMax2"> | |
| <xsl:variable name="anc1_up_level"> | |
| <xsl:choose> | |
| <xsl:when | |
| test="ancestor::*[1]/@indent and not(ancestor::*[2]/@display-inline = 'yes-display-inline')"> | |
| <xsl:value-of select="substring-after(ancestor::*[1]/@indent, 'up')"/> | |
| </xsl:when> | |
| <xsl:when | |
| test="ancestor::*[1]/@indent and ancestor::*[2]/@display-inline = 'yes-display-inline'"> | |
| <xsl:value-of select="number(substring-after(ancestor::*[1]/@indent, 'up')) - 1" | |
| /> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:text>0</xsl:text> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:variable> | |
| <xsl:variable name="anc2_up_level"> | |
| <xsl:choose> | |
| <xsl:when | |
| test="ancestor::*[2]/@indent and not(ancestor::*[3]/@display-inline = 'yes-display-inline')"> | |
| <xsl:value-of select="substring-after(ancestor::*[2]/@indent, 'up')"/> | |
| </xsl:when> | |
| <xsl:when | |
| test="ancestor::*[2]/@indent and ancestor::*[3]/@display-inline = 'yes-display-inline'"> | |
| <xsl:value-of select="number(substring-after(ancestor::*[2]/@indent, 'up')) - 1" | |
| /> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:text>0</xsl:text> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:variable> | |
| <xsl:choose> | |
| <xsl:when | |
| test=" | |
| ((ancestor::*[1]/@display-inline = 'yes-display-inline' and not(local-name(ancestor::*[1]) = 'quoted-block')) or | |
| ancestor::*[1]/preceding-sibling::item/@display-inline = 'yes-display-inline' or | |
| ancestor::*[1]/preceding-sibling::subclause/@display-inline = 'yes-display-inline' or | |
| ancestor::*[1]/preceding-sibling::clause/@display-inline = 'yes-display-inline' or | |
| ancestor::*[1]/preceding-sibling::subparagraph/@display-inline = 'yes-display-inline' or | |
| ancestor::*[1]/preceding-sibling::paragraph/@display-inline = 'yes-display-inline') | |
| and (ancestor::*[2]/@display-inline = 'yes-display-inline' or | |
| ancestor::*[2]/preceding-sibling::item/@display-inline = 'yes-display-inline' or | |
| ancestor::*[2]/preceding-sibling::subclause/@display-inline = 'yes-display-inline' or | |
| ancestor::*[2]/preceding-sibling::clause/@display-inline = 'yes-display-inline' or | |
| ancestor::*[2]/preceding-sibling::subparagraph/@display-inline = 'yes-display-inline' or | |
| ancestor::*[2]/preceding-sibling::paragraph/@display-inline = 'yes-display-inline')"> | |
| <!--TB 21Jun2010 - returned back--> | |
| <xsl:text>2</xsl:text> | |
| <!--xsl:text>1</xsl:text--> | |
| </xsl:when> | |
| <xsl:when | |
| test=" | |
| ((ancestor::*[1]/@display-inline = 'yes-display-inline' and not(local-name(ancestor::*[1]) = 'quoted-block')) or | |
| ancestor::*[1]/preceding-sibling::item/@display-inline = 'yes-display-inline' or | |
| ancestor::*[1]/preceding-sibling::subclause/@display-inline = 'yes-display-inline' or | |
| ancestor::*[1]/preceding-sibling::clause/@display-inline = 'yes-display-inline' or | |
| ancestor::*[1]/preceding-sibling::subparagraph/@display-inline = 'yes-display-inline' or | |
| ancestor::*[1]/preceding-sibling::paragraph/@display-inline = 'yes-display-inline')"> | |
| <xsl:value-of select="1 + number($anc2_up_level)"/> | |
| </xsl:when> | |
| <xsl:when | |
| test=" | |
| ((ancestor::*[2]/@display-inline = 'yes-display-inline' and not(local-name(ancestor::*[2]) = 'quoted-block')) or | |
| ancestor::*[2]/preceding-sibling::item/@display-inline = 'yes-display-inline' or | |
| ancestor::*[2]/preceding-sibling::subclause/@display-inline = 'yes-display-inline' or | |
| ancestor::*[2]/preceding-sibling::clause/@display-inline = 'yes-display-inline' or | |
| ancestor::*[2]/preceding-sibling::subparagraph/@display-inline = 'yes-display-inline' or | |
| ancestor::*[2]/preceding-sibling::paragraph/@display-inline = 'yes-display-inline')"> | |
| <xsl:value-of select="1 + number($anc1_up_level)"/> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:value-of select="number($anc1_up_level) + number($anc2_up_level)"/> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:template> | |
| <xsl:template name="countParentDisplayInlineMax3"> | |
| <xsl:variable name="countMax2"> | |
| <xsl:call-template name="countParentDisplayInlineMax2"/> | |
| </xsl:variable> | |
| <xsl:variable name="anc3_up_level"> | |
| <xsl:choose> | |
| <xsl:when | |
| test="ancestor::*[3]/@indent and not(ancestor::*[4]/@display-inline = 'yes-display-inline')"> | |
| <xsl:value-of select="substring-after(ancestor::*[3]/@indent, 'up')"/> | |
| </xsl:when> | |
| <xsl:when | |
| test="ancestor::*[3]/@indent and ancestor::*[4]/@display-inline = 'yes-display-inline'"> | |
| <xsl:value-of select="number(substring-after(ancestor::*[3]/@indent, 'up')) - 1" | |
| /> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:text>0</xsl:text> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:variable> | |
| <xsl:choose> | |
| <xsl:when | |
| test=" | |
| (ancestor::*[3]/@display-inline = 'yes-display-inline' and not(local-name(ancestor::*[3]) = 'quoted-block')) or | |
| ancestor::*[3]/preceding-sibling::item/@display-inline = 'yes-display-inline' or | |
| ancestor::*[3]/preceding-sibling::subclause/@display-inline = 'yes-display-inline' or | |
| ancestor::*[3]/preceding-sibling::clause/@display-inline = 'yes-display-inline' or | |
| ancestor::*[3]/preceding-sibling::subparagraph/@display-inline = 'yes-display-inline' or | |
| ancestor::*[3]/preceding-sibling::paragraph/@display-inline = 'yes-display-inline'"> | |
| <xsl:value-of select="1 + number($countMax2)"/> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:value-of select="number($anc3_up_level) + number($countMax2)"/> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:template> | |
| <xsl:template name="countParentDisplayInlineMax4"> | |
| <xsl:variable name="countMax3"> | |
| <xsl:call-template name="countParentDisplayInlineMax3"/> | |
| </xsl:variable> | |
| <xsl:variable name="anc4_up_level"> | |
| <xsl:choose> | |
| <xsl:when | |
| test="ancestor::*[4]/@indent and not(ancestor::*[5]/@display-inline = 'yes-display-inline')"> | |
| <xsl:value-of select="substring-after(ancestor::*[4]/@indent, 'up')"/> | |
| </xsl:when> | |
| <xsl:when | |
| test="ancestor::*[4]/@indent and ancestor::*[5]/@display-inline = 'yes-display-inline'"> | |
| <xsl:value-of select="number(substring-after(ancestor::*[4]/@indent, 'up')) - 1" | |
| /> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:text>0</xsl:text> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:variable> | |
| <xsl:choose> | |
| <xsl:when | |
| test=" | |
| ancestor::*[4]/@display-inline = 'yes-display-inline' or | |
| ancestor::*[4]/preceding-sibling::item/@display-inline = 'yes-display-inline' or | |
| ancestor::*[4]/preceding-sibling::subclause/@display-inline = 'yes-display-inline' or | |
| ancestor::*[4]/preceding-sibling::clause/@display-inline = 'yes-display-inline' or | |
| ancestor::*[4]/preceding-sibling::subparagraph/@display-inline = 'yes-display-inline' or | |
| ancestor::*[4]/preceding-sibling::paragraph/@display-inline = 'yes-display-inline'"> | |
| <xsl:value-of select="1 + number($countMax3)"/> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:value-of select="number($anc4_up_level) + number($countMax3)"/> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:template> | |
| <xsl:template name="countParentDisplayInlineMax5"> | |
| <xsl:variable name="countMax4"> | |
| <xsl:call-template name="countParentDisplayInlineMax4"/> | |
| </xsl:variable> | |
| <xsl:variable name="anc5_up_level"> | |
| <xsl:choose> | |
| <xsl:when | |
| test="ancestor::*[5]/@indent and not(ancestor::*[6]/@display-inline = 'yes-display-inline')"> | |
| <xsl:value-of select="substring-after(ancestor::*[5]/@indent, 'up')"/> | |
| </xsl:when> | |
| <xsl:when | |
| test="ancestor::*[5]/@indent and ancestor::*[6]/@display-inline = 'yes-display-inline'"> | |
| <xsl:value-of select="number(substring-after(ancestor::*[5]/@indent, 'up')) - 1" | |
| /> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:text>0</xsl:text> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:variable> | |
| <xsl:choose> | |
| <xsl:when | |
| test=" | |
| ancestor::*[5]/@display-inline = 'yes-display-in' or | |
| ancestor::*[5]/preceding-sibling::item/@display-inline = 'yes-display-inline' or | |
| ancestor::*[5]/preceding-sibling::subclause/@display-inline = 'yes-display-inline' or | |
| ancestor::*[5]/preceding-sibling::clause/@display-inline = 'yes-display-inline' or | |
| ancestor::*[5]/preceding-sibling::subparagraph/@display-inline = 'yes-display-inline' or | |
| ancestor::*[5]/preceding-sibling::paragraph/@display-inline = 'yes-display-inline'"> | |
| <xsl:value-of select="1 + number($countMax4)"/> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:value-of select="number($anc5_up_level) + number($countMax4)"/> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:template> | |
| <!--**********************End of Indentation****************************************************************--> | |
| <!-- ActualPrintSub Paragraph --> | |
| <xsl:template name="ActualPrintSubParagraph"> | |
| <xsl:variable name="appropReportedStyle"> | |
| <xsl:call-template name="getAppropriationReportingStyle"/> | |
| </xsl:variable> | |
| <xsl:if test="$appropReportedStyle = 'bold-brackets'"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>[</xsl:text> | |
| </span> | |
| </xsl:if> | |
| <xsl:choose> | |
| <xsl:when test="$appropReportedStyle = 'strikethrough'"> | |
| <span class="lbexTextStrikethrough"> | |
| <xsl:apply-templates/> | |
| </span> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:apply-templates/> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| <xsl:variable name="isToCloseTheBrackets"> | |
| <xsl:call-template name="toCloseTheBrakets"/> | |
| </xsl:variable> | |
| <xsl:if | |
| test="($appropReportedStyle = 'bold-brackets' or $appropReportedStyle = 'brackets-boldface-italic' or $appropReportedStyle = 'brackets-boldface-roman') and $isToCloseTheBrackets = 'yes'"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>]</xsl:text> | |
| </span> | |
| </xsl:if> | |
| <!--/p--> | |
| </xsl:template> | |
| <!-- ActualPrintSub Paragraph with Quoted Text --> | |
| <xsl:template name="ActualPrintSubParagraphQuotedText"> | |
| <xsl:variable name="appropReportedStyle"> | |
| <xsl:call-template name="getAppropriationReportingStyle"/> | |
| </xsl:variable> | |
| <xsl:if test="$appropReportedStyle = 'bold-brackets'"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>[</xsl:text> | |
| </span> | |
| </xsl:if> | |
| <xsl:choose> | |
| <xsl:when test="$appropReportedStyle = 'strikethrough'"> | |
| <span class="lbexTextStrikethrough"> | |
| <xsl:call-template name="printQuotedText"/> | |
| </span> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:call-template name="printQuotedText"/> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| <xsl:variable name="isToCloseTheBrackets"> | |
| <xsl:call-template name="toCloseTheBrakets"/> | |
| </xsl:variable> | |
| <xsl:if | |
| test="($appropReportedStyle = 'bold-brackets' or $appropReportedStyle = 'brackets-boldface-italic' or $appropReportedStyle = 'brackets-boldface-roman') and $isToCloseTheBrackets = 'yes'"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>]</xsl:text> | |
| </span> | |
| </xsl:if> | |
| <!--/p--> | |
| </xsl:template> | |
| <!-- ActualPrintSub Paragraph with Text --> | |
| <xsl:template name="ActualPrintSubParagraphWithText"> | |
| <xsl:choose> | |
| <xsl:when | |
| test="local-name() = 'subparagraph' and @indent = 'up1' or parent::*/@indent = 'up1'"> | |
| <p style="text-align:left" class="lbexIndentParagraph"> | |
| <xsl:call-template name="ActualPrintSubParagraphWithTextNoClass"/> | |
| </p> | |
| </xsl:when> | |
| <xsl:when | |
| test="local-name() = 'subparagraph' and @indent = 'up2' or parent::*/@indent = 'up2'"> | |
| <p style="text-align:left" class="lbexIndentSubsection"> | |
| <xsl:call-template name="ActualPrintSubParagraphWithTextNoClass"/> | |
| </p> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <p style="text-align:left" class="lbexIndent"> | |
| <xsl:call-template name="ActualPrintSubParagraphWithTextNoClass"/> | |
| </p> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:template> | |
| <xsl:template name="ActualPrintSubParagraphWithTextNoClass"> | |
| <xsl:variable name="appropReportedStyle"> | |
| <xsl:call-template name="getAppropriationReportingStyle"/> | |
| </xsl:variable> | |
| <xsl:if test="contains($appropReportedStyle, 'brackets') or @commented = 'yes'"> | |
| <xsl:call-template name="openBracketStyles"/> | |
| </xsl:if> | |
| <xsl:choose> | |
| <xsl:when test="$appropReportedStyle = 'strikethrough'"> | |
| <span class="lbexTextStrikethrough"> | |
| <xsl:if test="ancestor::quoted-block"> | |
| <xsl:call-template name="printQuotedText"/> | |
| </xsl:if> | |
| <xsl:if test="not(ancestor::quoted-block)"> | |
| <!--xsl:call-template name="ActualPrintText"/--> | |
| <xsl:apply-templates/> | |
| </xsl:if> | |
| </span> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:if test="ancestor::quoted-block"> | |
| <xsl:call-template name="printQuotedText"/> | |
| </xsl:if> | |
| <xsl:if test="not(ancestor::quoted-block)"> | |
| <!--xsl:call-template name="ActualPrintText"/--> | |
| <xsl:apply-templates/> | |
| </xsl:if> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| <xsl:variable name="isToCloseTheBrackets"> | |
| <xsl:call-template name="toCloseTheBrakets"/> | |
| </xsl:variable> | |
| <xsl:choose> | |
| <xsl:when | |
| test="(($appropReportedStyle = 'bold-brackets' or $appropReportedStyle = 'brackets-boldface-italic' or $appropReportedStyle = 'brackets-boldface-roman') and $isToCloseTheBrackets = 'yes' and child::text)"> | |
| <xsl:text/> | |
| </xsl:when> | |
| <xsl:when | |
| test="(($appropReportedStyle = 'bold-brackets' or $appropReportedStyle = 'brackets-boldface-italic' or $appropReportedStyle = 'brackets-boldface-roman') and $isToCloseTheBrackets = 'yes')"> | |
| <xsl:call-template name="closedBracketStyles"/> | |
| </xsl:when> | |
| </xsl:choose> | |
| <xsl:choose> | |
| <xsl:when | |
| test="@commented = 'yes' and local-name() = 'subparagraph' and (child::text or child::*/@commented = 'yes')"> </xsl:when> | |
| <xsl:when test="@commented = 'yes' and not(child::text)"> | |
| <xsl:call-template name="closedBracketStyles"/> | |
| </xsl:when> | |
| </xsl:choose> | |
| </xsl:template> | |
| <!-- ActualPrintSub Paragraph Extended --> | |
| <xsl:template name="ActualPrintSubParagraphEx"> | |
| <p style="text-align:left" class="lbexIndentSubpar"> | |
| <xsl:variable name="appropReportedStyle"> | |
| <xsl:call-template name="getAppropriationReportingStyle"/> | |
| </xsl:variable> | |
| <xsl:if test="contains($appropReportedStyle, 'brackets')"> | |
| <xsl:call-template name="openBracketStyles"/> | |
| </xsl:if> | |
| <xsl:choose> | |
| <xsl:when test="$appropReportedStyle = 'strikethrough'"> | |
| <span class="lbexTextStrikethrough"> | |
| <xsl:call-template name="openQuotes"/> | |
| <xsl:apply-templates select="enum"/> | |
| <xsl:apply-templates select="header"/> | |
| <xsl:apply-templates select="text"/> | |
| <xsl:apply-templates select="clause"/> | |
| <xsl:apply-templates select="continuation-text"/> | |
| <xsl:apply-templates select="table"/> | |
| </span> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:call-template name="openQuotes"/> | |
| <xsl:apply-templates select="enum"/> | |
| <xsl:apply-templates select="header"/> | |
| <xsl:apply-templates select="text"/> | |
| <xsl:apply-templates select="clause"/> | |
| <xsl:apply-templates select="continuation-text"/> | |
| <xsl:apply-templates select="table"/> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| <xsl:variable name="isToCloseTheBrackets"> | |
| <xsl:call-template name="toCloseTheBrakets"/> | |
| </xsl:variable> | |
| <xsl:if | |
| test="(($appropReportedStyle = 'bold-brackets' or $appropReportedStyle = 'brackets-boldface-italic' or $appropReportedStyle = 'brackets-boldface-roman') and $isToCloseTheBrackets = 'yes')"> | |
| <xsl:call-template name="closedBracketStyles"/> | |
| </xsl:if> | |
| </p> | |
| </xsl:template> | |
| <xsl:template match="internal-xref"> | |
| <a> | |
| <xsl:attribute name="href"> | |
| <xsl:text>#</xsl:text> | |
| <xsl:value-of select="@idref"/> | |
| </xsl:attribute> | |
| <xsl:value-of select="."/> | |
| </a> | |
| </xsl:template> | |
| <xsl:template match="external-xref"> | |
| <xsl:choose> | |
| <xsl:when test="./@legal-doc = 'usc-appendix'"> | |
| <a> | |
| <xsl:attribute name="href"> | |
| <xsl:text>http://uscode.house.gov/quicksearch/get.plx?app=1&title=</xsl:text> | |
| <xsl:variable name="title" | |
| select="substring-before(substring-after(./@parsable-cite, '/'), '/')"/> | |
| <xsl:value-of select="$title"/> | |
| <!-- TB May-6-2015 adding character a to a title number for appendix --> | |
| <xsl:text>a</xsl:text> | |
| <xsl:text>&section=</xsl:text> | |
| <xsl:variable name="usctitle" select="concat('usc-appendix/', $title, '/')"/> | |
| <xsl:choose> | |
| <xsl:when test="contains(./@parsable-cite, '(')"> | |
| <xsl:value-of | |
| select="substring-before(substring-after(./@parsable-cite, $usctitle), '(')" | |
| /> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:value-of select="substring-after(./@parsable-cite, $usctitle)" | |
| /> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:attribute> | |
| <xsl:apply-templates/> | |
| </a> | |
| </xsl:when> | |
| <!-- TB Dec-2015 bug fixing #1418 --> | |
| <!--xsl:when test="./@legal-doc='usc-chapter'"> | |
| <a> | |
| <xsl:attribute name="href"> | |
| <xsl:text>http://uscode.house.gov/quicksearch/get.plx?title=</xsl:text> | |
| <xsl:variable name="title" | |
| select="substring-before(substring-after(./@parsable-cite,'/'),'/')"/> | |
| <xsl:value-of select="$title"/> | |
| <xsl:text>&chapter=</xsl:text> | |
| <xsl:variable name="usctitle" select="concat('usc-chapter/',$title,'/')"/> | |
| <xsl:choose> | |
| <xsl:when test="contains(./@parsable-cite,'(')"> | |
| <xsl:value-of | |
| select="substring-before(substring-after(./@parsable-cite, $usctitle),'(')" | |
| /> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:value-of select="substring-after(./@parsable-cite, $usctitle)" | |
| /> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:attribute> | |
| <xsl:apply-templates/> | |
| </a> | |
| </xsl:when--> | |
| <xsl:when test="./@legal-doc = 'usc-chapter'"> | |
| <a> | |
| <xsl:attribute name="href"> | |
| <xsl:text>http://uscode.house.gov/view.xhtml?req=granuleid:USC-prelim-title</xsl:text> | |
| <xsl:variable name="title" | |
| select="substring-before(substring-after(./@parsable-cite, '/'), '/')"/> | |
| <xsl:value-of select="$title"/> | |
| <xsl:text>-chapter</xsl:text> | |
| <xsl:variable name="usctitle" select="concat('usc-chapter/', $title, '/')"/> | |
| <xsl:choose> | |
| <xsl:when test="contains(./@parsable-cite, '(')"> | |
| <xsl:value-of | |
| select="substring-before(substring-after(./@parsable-cite, $usctitle), '(')" | |
| /> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:value-of select="substring-after(./@parsable-cite, $usctitle)" | |
| /> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| <xsl:text>-front&num=0&edition=prelim</xsl:text> | |
| </xsl:attribute> | |
| <xsl:apply-templates/> | |
| </a> | |
| </xsl:when> | |
| <xsl:when test="./@legal-doc = 'usc-act'"> | |
| <a> | |
| <xsl:attribute name="href"> | |
| <xsl:text>http://uscode.house.gov/quicksearch/get.plx?actname=</xsl:text> | |
| <xsl:variable name="actname" | |
| select="substring-before(substring-after(./@parsable-cite, '/'), '/')"/> | |
| <xsl:value-of select="$actname"/> | |
| <xsl:text>&section=</xsl:text> | |
| <xsl:value-of | |
| select="substring-after(substring-after(./@parsable-cite, $actname), '/')" | |
| /> | |
| </xsl:attribute> | |
| <xsl:apply-templates/> | |
| </a> | |
| </xsl:when> | |
| <xsl:when test="./@legal-doc = 'usc'"> | |
| <a> | |
| <xsl:attribute name="href"> | |
| <xsl:text>http://uscode.house.gov/quicksearch/get.plx?title=</xsl:text> | |
| <xsl:variable name="title" | |
| select="substring-before(substring-after(./@parsable-cite, '/'), '/')"/> | |
| <xsl:value-of select="$title"/> | |
| <xsl:text>&section=</xsl:text> | |
| <xsl:variable name="usctitle" select="concat('usc/', $title, '/')"/> | |
| <xsl:choose> | |
| <xsl:when test="contains(./@parsable-cite, '(')"> | |
| <xsl:value-of | |
| select="substring-before(substring-after(./@parsable-cite, $usctitle), '(')" | |
| /> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:value-of select="substring-after(./@parsable-cite, $usctitle)" | |
| /> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:attribute> | |
| <xsl:apply-templates/> | |
| </a> | |
| </xsl:when> | |
| <xsl:when test="./@legal-doc = 'public-law'"> | |
| <!--display only the public laws that are greater than 103--> | |
| <!--sl:choose> | |
| <xsl:when | |
| test="number(substring-before(substring-after(./@parsable-cite,'pl/'),'/')) > 103"> | |
| <a> | |
| <xsl:attribute name="href"> | |
| <xsl:text>http://frwebgate.access.gpo.gov/cgi-bin/getdoc.cgi?dbname=</xsl:text> | |
| <xsl:value-of | |
| select="substring-before(substring-after(./@parsable-cite,'pl/'), '/')"/> | |
| <xsl:text>_cong_public_laws&docid=f:publ</xsl:text> | |
| <xsl:if | |
| test="number(substring-after(substring-after(./@parsable-cite,'pl/'),'/')) < 10"> | |
| <xsl:text>00</xsl:text> | |
| </xsl:if> | |
| <xsl:if | |
| test="number(substring-after(substring-after(./@parsable-cite,'pl/'),'/')) >9 and | |
| number(substring-after(substring-after(./@parsable-cite,'pl/'),'/')) < 100"> | |
| <xsl:text>0</xsl:text> | |
| </xsl:if> | |
| <xsl:value-of | |
| select="substring-after(substring-after(./@parsable-cite,'pl/'),'/')"/> | |
| <xsl:text>.</xsl:text> | |
| <xsl:value-of | |
| select="substring-before(substring-after(./@parsable-cite,'pl/'), '/')"/> | |
| <xsl:text>.pdf</xsl:text> | |
| </xsl:attribute> | |
| <xsl:apply-templates/> | |
| </a> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:apply-templates/> | |
| </xsl:otherwise> | |
| </xsl:choose--> | |
| <!-- the logic may be applied to the congresses 104 and newer --> | |
| <xsl:variable name="thePLCongress"> | |
| <xsl:value-of | |
| select="substring-before(substring-after(@parsable-cite, '/'), '/')"/> | |
| </xsl:variable> | |
| <xsl:choose> | |
| <xsl:when test="number($thePLCongress) > 103"> | |
| <a> | |
| <xsl:attribute name="href"> | |
| <xsl:variable name="thePLNumber"> | |
| <xsl:value-of | |
| select="substring-after(substring-after(@parsable-cite, '/'), '/')" | |
| /> | |
| </xsl:variable> | |
| <xsl:text>https://www.gpo.gov/fdsys/pkg/PLAW-</xsl:text> | |
| <xsl:value-of select="$thePLCongress"/> | |
| <xsl:text>publ</xsl:text> | |
| <xsl:value-of select="$thePLNumber"/> | |
| <xsl:text>/pdf/PLAW-</xsl:text> | |
| <xsl:value-of select="$thePLCongress"/> | |
| <xsl:text>publ</xsl:text> | |
| <xsl:value-of select="$thePLNumber"/> | |
| <xsl:text>.pdf</xsl:text> | |
| </xsl:attribute> | |
| <xsl:apply-templates/> | |
| </a> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:apply-templates/> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:when> | |
| <!-- TB Oct-2016 Bug #1440 - house-rule handeling added --> | |
| <xsl:when test="./@legal-doc = 'house-rule'"> | |
| <xsl:variable name="theRefCongressNum"> | |
| <xsl:value-of select="substring-before(@parsable-cite, '/')"/> | |
| </xsl:variable> | |
| <xsl:variable name="ruleNum"> | |
| <xsl:choose> | |
| <xsl:when test="contains(substring-after(@parsable-cite, '/'), '/')"> | |
| <xsl:value-of | |
| select="substring-before(substring-after(@parsable-cite, '/'), '/')" | |
| /> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:value-of select="substring-after(@parsable-cite, '/')"/> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:variable> | |
| <xsl:variable name="theSuffix"> | |
| <xsl:call-template name="getHouseRulesSuffix"> | |
| <xsl:with-param name="theRefCongressNum" select="$theRefCongressNum"/> | |
| <xsl:with-param name="ruleNum" select="$ruleNum"/> | |
| </xsl:call-template> | |
| </xsl:variable> | |
| <xsl:variable name="linkFirstPart"> | |
| <xsl:value-of | |
| select="concat('https://www.govinfo.gov/content/pkg/HMAN-', $theRefCongressNum)" | |
| /> | |
| </xsl:variable> | |
| <xsl:variable name="linkSecondPart"> | |
| <xsl:value-of select="concat('/xml/HMAN-', $theRefCongressNum)"/> | |
| </xsl:variable> | |
| <xsl:variable name="linkThirdPart"> | |
| <xsl:choose> | |
| <xsl:when test="$theSuffix != ''"> | |
| <xsl:value-of select="concat('-pg', $theSuffix, '.xml')"/> | |
| </xsl:when> | |
| <xsl:otherwise>.xml</xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:variable> | |
| <xsl:variable name="residualRuleSpec"> | |
| <xsl:choose> | |
| <xsl:when test="$theSuffix != ''"> | |
| <xsl:value-of | |
| select="translate(substring-after(@parsable-cite, $ruleNum), '/', '-')" | |
| /> | |
| </xsl:when> | |
| <xsl:otherwise/> | |
| </xsl:choose> | |
| </xsl:variable> | |
| <xsl:variable name="theFourthPart"> | |
| <xsl:choose> | |
| <xsl:when test="$theSuffix != ''"> | |
| <xsl:value-of select="concat('#rule-', $ruleNum, $residualRuleSpec)"/> | |
| </xsl:when> | |
| <xsl:otherwise/> | |
| </xsl:choose> | |
| </xsl:variable> | |
| <xsl:variable name="theLinkRef"> | |
| <xsl:value-of | |
| select="concat($linkFirstPart, $linkSecondPart, $linkThirdPart, $theFourthPart)" | |
| /> | |
| </xsl:variable> | |
| <a> | |
| <xsl:attribute name="href"> | |
| <xsl:value-of select="$theLinkRef"/> | |
| </xsl:attribute> | |
| <xsl:apply-templates/> | |
| </a> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:apply-templates/> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:template> | |
| <xsl:template name="getHouseRulesSuffix"> | |
| <xsl:param name="ruleNum"/> | |
| <xsl:param name="theRefCongressNum"/> | |
| <xsl:choose> | |
| <xsl:when test="$ruleNum = 'I'"> | |
| <xsl:choose> | |
| <xsl:when test="$theRefCongressNum = '112'">333</xsl:when> | |
| <xsl:when test="$theRefCongressNum = '113'">335</xsl:when> | |
| <xsl:when test="$theRefCongressNum = '114'">335</xsl:when> | |
| <xsl:otherwise/> | |
| </xsl:choose> | |
| </xsl:when> | |
| <xsl:when test="$ruleNum = 'II'"> | |
| <xsl:choose> | |
| <xsl:when test="$theRefCongressNum = '112'">355</xsl:when> | |
| <xsl:when test="$theRefCongressNum = '113'">358</xsl:when> | |
| <xsl:when test="$theRefCongressNum = '114'">358</xsl:when> | |
| <xsl:otherwise/> | |
| </xsl:choose> | |
| </xsl:when> | |
| <xsl:when test="$ruleNum = 'III'"> | |
| <xsl:choose> | |
| <xsl:when test="$theRefCongressNum = '112'">374</xsl:when> | |
| <xsl:when test="$theRefCongressNum = '113'">377</xsl:when> | |
| <xsl:when test="$theRefCongressNum = '114'">378</xsl:when> | |
| <xsl:otherwise/> | |
| </xsl:choose> | |
| </xsl:when> | |
| <xsl:when test="$ruleNum = 'IV'"> | |
| <xsl:choose> | |
| <xsl:when test="$theRefCongressNum = '112'">379</xsl:when> | |
| <xsl:when test="$theRefCongressNum = '113'">382</xsl:when> | |
| <xsl:when test="$theRefCongressNum = '114'">383</xsl:when> | |
| <xsl:otherwise/> | |
| </xsl:choose> | |
| </xsl:when> | |
| <xsl:when test="$ruleNum = 'V'"> | |
| <xsl:choose> | |
| <xsl:when test="$theRefCongressNum = '112'">387</xsl:when> | |
| <xsl:when test="$theRefCongressNum = '113'">390</xsl:when> | |
| <xsl:when test="$theRefCongressNum = '114'">391</xsl:when> | |
| <xsl:otherwise/> | |
| </xsl:choose> | |
| </xsl:when> | |
| <xsl:when test="$ruleNum = 'VI'"> | |
| <xsl:choose> | |
| <xsl:when test="$theRefCongressNum = '112'">389</xsl:when> | |
| <xsl:when test="$theRefCongressNum = '113'">392</xsl:when> | |
| <xsl:when test="$theRefCongressNum = '114'">393</xsl:when> | |
| <xsl:otherwise/> | |
| </xsl:choose> | |
| </xsl:when> | |
| <xsl:when test="$ruleNum = 'VII'"> | |
| <xsl:choose> | |
| <xsl:when test="$theRefCongressNum = '112'">401</xsl:when> | |
| <xsl:when test="$theRefCongressNum = '113'">404</xsl:when> | |
| <xsl:when test="$theRefCongressNum = '114'">405</xsl:when> | |
| <xsl:otherwise/> | |
| </xsl:choose> | |
| </xsl:when> | |
| <xsl:when test="$ruleNum = 'VIII'"> | |
| <xsl:choose> | |
| <xsl:when test="$theRefCongressNum = '112'">405</xsl:when> | |
| <xsl:when test="$theRefCongressNum = '113'">408</xsl:when> | |
| <xsl:when test="$theRefCongressNum = '114'">409</xsl:when> | |
| <xsl:otherwise/> | |
| </xsl:choose> | |
| </xsl:when> | |
| <xsl:when test="$ruleNum = 'IX'"> | |
| <xsl:choose> | |
| <xsl:when test="$theRefCongressNum = '112'">409</xsl:when> | |
| <xsl:when test="$theRefCongressNum = '113'">412</xsl:when> | |
| <xsl:when test="$theRefCongressNum = '114'">413</xsl:when> | |
| <xsl:otherwise/> | |
| </xsl:choose> | |
| </xsl:when> | |
| <xsl:when test="$ruleNum = 'X'"> | |
| <xsl:choose> | |
| <xsl:when test="$theRefCongressNum = '112'">429</xsl:when> | |
| <xsl:when test="$theRefCongressNum = '113'">432</xsl:when> | |
| <xsl:when test="$theRefCongressNum = '114'">434</xsl:when> | |
| <xsl:otherwise/> | |
| </xsl:choose> | |
| </xsl:when> | |
| <xsl:when test="$ruleNum = 'XI'"> | |
| <xsl:choose> | |
| <xsl:when test="$theRefCongressNum = '112'">541</xsl:when> | |
| <xsl:when test="$theRefCongressNum = '113'">544</xsl:when> | |
| <xsl:when test="$theRefCongressNum = '114'">546</xsl:when> | |
| <xsl:otherwise/> | |
| </xsl:choose> | |
| </xsl:when> | |
| <xsl:when test="$ruleNum = 'XII'"> | |
| <xsl:choose> | |
| <xsl:when test="$theRefCongressNum = '112'">608</xsl:when> | |
| <xsl:when test="$theRefCongressNum = '113'">612</xsl:when> | |
| <xsl:when test="$theRefCongressNum = '114'">615</xsl:when> | |
| <xsl:otherwise/> | |
| </xsl:choose> | |
| </xsl:when> | |
| <xsl:when test="$ruleNum = 'XIII'"> | |
| <xsl:choose> | |
| <xsl:when test="$theRefCongressNum = '112'">623</xsl:when> | |
| <xsl:when test="$theRefCongressNum = '113'">627</xsl:when> | |
| <xsl:when test="$theRefCongressNum = '114'">630</xsl:when> | |
| <xsl:otherwise/> | |
| </xsl:choose> | |
| </xsl:when> | |
| <xsl:when test="$ruleNum = 'XIV'"> | |
| <xsl:choose> | |
| <xsl:when test="$theRefCongressNum = '112'">657</xsl:when> | |
| <xsl:when test="$theRefCongressNum = '113'">662</xsl:when> | |
| <xsl:when test="$theRefCongressNum = '114'">665</xsl:when> | |
| <xsl:otherwise/> | |
| </xsl:choose> | |
| </xsl:when> | |
| <xsl:when test="$ruleNum = 'XV'"> | |
| <xsl:choose> | |
| <xsl:when test="$theRefCongressNum = '112'">668</xsl:when> | |
| <xsl:when test="$theRefCongressNum = '113'">672</xsl:when> | |
| <xsl:when test="$theRefCongressNum = '114'">676</xsl:when> | |
| <xsl:otherwise/> | |
| </xsl:choose> | |
| </xsl:when> | |
| <xsl:when test="$ruleNum = 'XVI'"> | |
| <xsl:choose> | |
| <xsl:when test="$theRefCongressNum = '112'">686</xsl:when> | |
| <xsl:when test="$theRefCongressNum = '113'">691</xsl:when> | |
| <xsl:when test="$theRefCongressNum = '114'">695</xsl:when> | |
| <xsl:otherwise/> | |
| </xsl:choose> | |
| </xsl:when> | |
| <xsl:when test="$ruleNum = 'XVII'"> | |
| <xsl:choose> | |
| <xsl:when test="$theRefCongressNum = '112'">741</xsl:when> | |
| <xsl:when test="$theRefCongressNum = '113'">746</xsl:when> | |
| <xsl:when test="$theRefCongressNum = '114'">750</xsl:when> | |
| <xsl:otherwise/> | |
| </xsl:choose> | |
| </xsl:when> | |
| <xsl:when test="$ruleNum = 'XVIII'"> | |
| <xsl:choose> | |
| <xsl:when test="$theRefCongressNum = '112'">770</xsl:when> | |
| <xsl:when test="$theRefCongressNum = '113'">775</xsl:when> | |
| <xsl:when test="$theRefCongressNum = '114'">780</xsl:when> | |
| <xsl:otherwise/> | |
| </xsl:choose> | |
| </xsl:when> | |
| <xsl:when test="$ruleNum = 'XIX'"> | |
| <xsl:choose> | |
| <xsl:when test="$theRefCongressNum = '112'">799</xsl:when> | |
| <xsl:when test="$theRefCongressNum = '113'">805</xsl:when> | |
| <xsl:when test="$theRefCongressNum = '114'">810</xsl:when> | |
| <xsl:otherwise/> | |
| </xsl:choose> | |
| </xsl:when> | |
| <xsl:when test="$ruleNum = 'XX'"> | |
| <xsl:choose> | |
| <xsl:when test="$theRefCongressNum = '112'">814</xsl:when> | |
| <xsl:when test="$theRefCongressNum = '113'">820</xsl:when> | |
| <xsl:when test="$theRefCongressNum = '114'">825</xsl:when> | |
| <xsl:otherwise/> | |
| </xsl:choose> | |
| </xsl:when> | |
| <xsl:when test="$ruleNum = 'XXI'"> | |
| <xsl:choose> | |
| <xsl:when test="$theRefCongressNum = '112'">844</xsl:when> | |
| <xsl:when test="$theRefCongressNum = '113'">850</xsl:when> | |
| <xsl:when test="$theRefCongressNum = '114'">855</xsl:when> | |
| <xsl:otherwise/> | |
| </xsl:choose> | |
| </xsl:when> | |
| <xsl:when test="$ruleNum = 'XXII'"> | |
| <xsl:choose> | |
| <xsl:when test="$theRefCongressNum = '112'">900</xsl:when> | |
| <xsl:when test="$theRefCongressNum = '113'">907</xsl:when> | |
| <xsl:when test="$theRefCongressNum = '114'">913</xsl:when> | |
| <xsl:otherwise/> | |
| </xsl:choose> | |
| </xsl:when> | |
| <xsl:when test="$ruleNum = 'XXIII'"> | |
| <xsl:choose> | |
| <xsl:when test="$theRefCongressNum = '112'">927</xsl:when> | |
| <xsl:when test="$theRefCongressNum = '113'">934</xsl:when> | |
| <xsl:when test="$theRefCongressNum = '114'">940</xsl:when> | |
| <xsl:otherwise/> | |
| </xsl:choose> | |
| </xsl:when> | |
| <xsl:when test="$ruleNum = 'XXIV'"> | |
| <xsl:choose> | |
| <xsl:when test="$theRefCongressNum = '112'">938</xsl:when> | |
| <xsl:when test="$theRefCongressNum = '113'">946</xsl:when> | |
| <xsl:when test="$theRefCongressNum = '114'">952</xsl:when> | |
| <xsl:otherwise/> | |
| </xsl:choose> | |
| </xsl:when> | |
| <xsl:when test="$ruleNum = 'XXV'"> | |
| <xsl:choose> | |
| <xsl:when test="$theRefCongressNum = '112'">943</xsl:when> | |
| <xsl:when test="$theRefCongressNum = '113'">951</xsl:when> | |
| <xsl:when test="$theRefCongressNum = '114'">957</xsl:when> | |
| <xsl:otherwise/> | |
| </xsl:choose> | |
| </xsl:when> | |
| <xsl:when test="$ruleNum = 'XXVI'"> | |
| <xsl:choose> | |
| <xsl:when test="$theRefCongressNum = '112'">972</xsl:when> | |
| <xsl:when test="$theRefCongressNum = '113'">980</xsl:when> | |
| <xsl:when test="$theRefCongressNum = '114'">986</xsl:when> | |
| <xsl:otherwise/> | |
| </xsl:choose> | |
| </xsl:when> | |
| <xsl:when test="$ruleNum = 'XXVII'"> | |
| <xsl:choose> | |
| <xsl:when test="$theRefCongressNum = '112'">996</xsl:when> | |
| <xsl:when test="$theRefCongressNum = '113'">1006</xsl:when> | |
| <xsl:when test="$theRefCongressNum = '114'">1012</xsl:when> | |
| <xsl:otherwise/> | |
| </xsl:choose> | |
| </xsl:when> | |
| <xsl:when test="$ruleNum = 'XXVIII'"> | |
| <xsl:choose> | |
| <xsl:when test="$theRefCongressNum = '112'">998</xsl:when> | |
| <xsl:when test="$theRefCongressNum = '113'">1008</xsl:when> | |
| <xsl:when test="$theRefCongressNum = '114'">1014</xsl:when> | |
| <xsl:otherwise/> | |
| </xsl:choose> | |
| </xsl:when> | |
| <xsl:when test="$ruleNum = 'XXIX'"> | |
| <xsl:choose> | |
| <xsl:when test="$theRefCongressNum = '112'">998-2</xsl:when> | |
| <xsl:when test="$theRefCongressNum = '113'">1008-2</xsl:when> | |
| <xsl:when test="$theRefCongressNum = '114'">1014-2</xsl:when> | |
| <xsl:otherwise/> | |
| </xsl:choose> | |
| </xsl:when> | |
| <xsl:otherwise/> | |
| </xsl:choose> | |
| </xsl:template> | |
| <!-- ************************************************************************ --> | |
| <xsl:template match="toc"> | |
| <!-- fixing the appearance of multi-toc for committee-report --> | |
| <xsl:choose> | |
| <xsl:when test="//committee-report/@front-matter-toc = 'yes'"> | |
| <!-- nothing --> | |
| </xsl:when> | |
| <!-- TB June 2012 Bug fixing #1262 --> | |
| <xsl:when test="//committee-report and multi-column-toc-entry"> | |
| <p/> | |
| <xsl:call-template name="printTocForCommitteeReports"/> | |
| <p/> | |
| </xsl:when> | |
| <xsl:when test="multi-column-toc-entry"> | |
| <p class="lbexTocSectionOLC"> | |
| <p class="lbexNoMargin"> | |
| <ul class="leaders"> | |
| <xsl:apply-templates/> | |
| </ul> | |
| </p> | |
| </p> | |
| <!-- TB Aug-2016 fixing weirs overlapping of following section --> | |
| <br/> | |
| <br/> | |
| <br/> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <p/> | |
| <xsl:apply-templates/> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:template> | |
| <!-- ************************************************************************ --> | |
| <xsl:template name="createLink"> | |
| <xsl:param name="val"/> | |
| <xsl:param name="aPrintBracket"/> | |
| <xsl:param name="aPrintParenth"/> | |
| <xsl:if test="not(ancestor::quoted-block[@style = 'tax'])"> | |
| <!-- TB 12Sep2007 #717 --> | |
| <xsl:call-template name="displayTocVerticalSpace"/> | |
| </xsl:if> | |
| <xsl:variable name="isIdReferenceExists"> | |
| <xsl:call-template name="IdReferenceExists"> | |
| <xsl:with-param name="currentID" select="./@idref"/> | |
| </xsl:call-template> | |
| </xsl:variable> | |
| <xsl:choose> | |
| <xsl:when test="$isIdReferenceExists = 'yes'"> | |
| <xsl:call-template name="ActualCreateLinkWithRef"> | |
| <xsl:with-param name="aVal" select="$val"/> | |
| <xsl:with-param name="aPrintBracket"> | |
| <xsl:value-of select="$aPrintBracket"/> | |
| </xsl:with-param> | |
| <xsl:with-param name="aPrintParenth"> | |
| <xsl:value-of select="$aPrintParenth"/> | |
| </xsl:with-param> | |
| </xsl:call-template> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <!--xsl:if test=" $isTocCentered='yes'"> | |
| <xsl:attribute name="align"> | |
| <xsl:text>center</xsl:text> | |
| </xsl:attribute> | |
| </xsl:if--> | |
| <xsl:call-template name="ActualCreateLinkNoRef"> | |
| <xsl:with-param name="aVal" select="$val"/> | |
| <xsl:with-param name="aPrintBracket"> | |
| <xsl:value-of select="$aPrintBracket"/> | |
| </xsl:with-param> | |
| <xsl:with-param name="aPrintParenth"> | |
| <xsl:value-of select="$aPrintParenth"/> | |
| </xsl:with-param> | |
| </xsl:call-template> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:template> | |
| <xsl:template name="createLinkNoParam"> | |
| <xsl:param name="aPrintBracket"/> | |
| <xsl:param name="aPrintParenth"/> | |
| <xsl:variable name="currElementStyle"> | |
| <xsl:call-template name="getCurrentElementStyle"/> | |
| </xsl:variable> | |
| <xsl:variable name="isIdReferenceExists"> | |
| <xsl:call-template name="IdReferenceExists"> | |
| <xsl:with-param name="currentID" select="./@idref"/> | |
| </xsl:call-template> | |
| </xsl:variable> | |
| <!-- Will be applied only for Subdivision, subtitle in OLC and Nuclear. Part, subpart for tax , Chapter for traditional inline and Archaic paragraph--> | |
| <!-- TB May-19-2015 Bug fixing #1386 added support for subsection and down levels in tax style--> | |
| <xsl:choose> | |
| <xsl:when | |
| test="not(ancestor::quoted-block[@style = 'tax']) or (ancestor::quoted-block[@style = 'tax'] and (@level = 'part' or @level = 'subpart' or @level = 'subchapter' or @level = 'section'))"> | |
| <!-- TB 12Sep2007 #717 --> | |
| <xsl:call-template name="displayTocVerticalSpace"/> | |
| <xsl:choose> | |
| <xsl:when | |
| test="not(@level = 'section' or @level = 'subsection' or @level = 'paragraph' or @level = 'subparagraph' or @level = 'clause' or @level = 'subclause' or @level = 'item' or @level = 'subitem')"> | |
| <div style="text-align:center"> | |
| <xsl:call-template name="insideCreateLinkNoParam"> | |
| <xsl:with-param name="currElementStyle" select="$currElementStyle"/> | |
| <xsl:with-param name="aPrintBracket" select="$aPrintBracket"/> | |
| <xsl:with-param name="aPrintParenth" select="$aPrintParenth"/> | |
| <xsl:with-param name="isIdReferenceExists" | |
| select="$isIdReferenceExists"/> | |
| </xsl:call-template> | |
| </div> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:call-template name="insideCreateLinkNoParam"> | |
| <xsl:with-param name="currElementStyle" select="$currElementStyle"/> | |
| <xsl:with-param name="aPrintBracket" select="$aPrintBracket"/> | |
| <xsl:with-param name="aPrintParenth" select="$aPrintParenth"/> | |
| <xsl:with-param name="isIdReferenceExists" select="$isIdReferenceExists" | |
| /> | |
| </xsl:call-template> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:choose> | |
| <xsl:when | |
| test="not(@level = 'section' or @level = 'subsection' or @level = 'paragraph' or @level = 'subparagraph' or @level = 'clause' or @level = 'subclause' or @level = 'item' or @level = 'subitem')"> | |
| <div style="text-align:center"> | |
| <xsl:call-template name="insideCreateLinkNoParam"> | |
| <xsl:with-param name="currElementStyle" select="$currElementStyle"/> | |
| <xsl:with-param name="aPrintBracket" select="$aPrintBracket"/> | |
| <xsl:with-param name="aPrintParenth" select="$aPrintParenth"/> | |
| <xsl:with-param name="isIdReferenceExists" | |
| select="$isIdReferenceExists"/> | |
| </xsl:call-template> | |
| </div> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:call-template name="insideCreateLinkNoParam"> | |
| <xsl:with-param name="currElementStyle" select="$currElementStyle"/> | |
| <xsl:with-param name="aPrintBracket" select="$aPrintBracket"/> | |
| <xsl:with-param name="aPrintParenth" select="$aPrintParenth"/> | |
| <xsl:with-param name="isIdReferenceExists" select="$isIdReferenceExists" | |
| /> | |
| </xsl:call-template> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:template> | |
| <xsl:template name="insideCreateLinkNoParam"> | |
| <xsl:param name="currElementStyle"/> | |
| <xsl:param name="aPrintBracket"/> | |
| <xsl:param name="aPrintParenth"/> | |
| <xsl:param name="isIdReferenceExists"/> | |
| <xsl:choose> | |
| <xsl:when test="$isIdReferenceExists = 'yes'"> | |
| <a> | |
| <xsl:attribute name="href"> | |
| <xsl:text>#toc-</xsl:text> | |
| <xsl:value-of select="@href | @idref"/> | |
| </xsl:attribute> | |
| <!-- TB Jan-2014 billres clean up obsolete attributes --> | |
| <!--xsl:attribute name="NAME"--> | |
| <xsl:attribute name="id"> | |
| <xsl:value-of select="@href | @idref"/> | |
| </xsl:attribute> | |
| <xsl:if test="ancestor::quoted-block or ancestor::toc-quoted-entry"> | |
| <xsl:call-template name="openQuotes"/> | |
| </xsl:if> | |
| <!--xsl:value-of select="$val"/--> | |
| <xsl:if test="$aPrintBracket = 'yes'"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>[</xsl:text> | |
| </span> | |
| </xsl:if> | |
| <xsl:if test="$aPrintParenth = 'yes'"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>(</xsl:text> | |
| </span> | |
| </xsl:if> | |
| <xsl:choose> | |
| <xsl:when test="@level = 'subtitle' and $currElementStyle = 'OLC'"> | |
| <span class="lbexTocSubTitleOLC"> | |
| <xsl:apply-templates/> | |
| </span> | |
| </xsl:when> | |
| <xsl:when test="@level = 'subdivision' and $currElementStyle = 'OLC'"> | |
| <span class="lbexTocSubTitleOLC"> | |
| <xsl:apply-templates/> | |
| </span> | |
| </xsl:when> | |
| <xsl:when test="@level = 'subpart' and $currElementStyle = 'OLC'"> | |
| <span class="lbexTocSubPartOLC"> | |
| <xsl:apply-templates/> | |
| </span> | |
| </xsl:when> | |
| <xsl:when test="@level = 'chapter' and $currElementStyle = 'traditional'"> | |
| <span class="lbexTocChapterTrad"> | |
| <xsl:apply-templates/> | |
| </span> | |
| </xsl:when> | |
| <xsl:when test="@level = 'part' and $currElementStyle = 'traditional'"> | |
| <span class="lbexTocPartTrad"> | |
| <xsl:apply-templates/> | |
| </span> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:apply-templates/> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| <xsl:if test="not(ancestor::quoted-block and following-sibling::toc-entry)"> | |
| <xsl:call-template name="closeQuotesByCondition"/> | |
| </xsl:if> | |
| <!-- TB 12Sep2007 #717 --> | |
| <xsl:if | |
| test="not(ancestor::quoted-block[@style = 'tax']) and (ancestor-or-self::toc-entry[1]/following-sibling::*)"> | |
| <xsl:call-template name="displayTocVerticalSpace"/> | |
| </xsl:if> | |
| </a> | |
| </xsl:when> | |
| <xsl:when test="not($isIdReferenceExists = 'yes')"> | |
| <xsl:if test="ancestor::quoted-block or ancestor::toc-quoted-entry"> | |
| <xsl:call-template name="openQuotes"/> | |
| </xsl:if> | |
| <xsl:if test="$aPrintBracket = 'yes'"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>[</xsl:text> | |
| </span> | |
| </xsl:if> | |
| <xsl:if test="$aPrintParenth = 'yes'"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>(</xsl:text> | |
| </span> | |
| </xsl:if> | |
| <xsl:choose> | |
| <xsl:when test="@level = 'section'"> | |
| <xsl:apply-templates/> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <!--xsl:value-of select="$val"/--> | |
| <xsl:apply-templates/> | |
| <xsl:if test="parent::toc/following-sibling::after-quoted-block"> | |
| <!--xsl:text>”.</xsl:text--> | |
| <xsl:call-template name="closeQuotesByCondition"/> | |
| </xsl:if> | |
| <!-- TB checking - removing extra space --> | |
| <!--p/--> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:when> | |
| </xsl:choose> | |
| </xsl:template> | |
| <xsl:template name="ActualCreateLinkWithRef"> | |
| <xsl:param name="aVal"/> | |
| <xsl:param name="aPrintBracket"/> | |
| <xsl:param name="aPrintParenth"/> | |
| <a> | |
| <xsl:attribute name="href"> | |
| <xsl:text>#toc-</xsl:text> | |
| <xsl:value-of select="@href | @idref"/> | |
| </xsl:attribute> | |
| <!-- TB Jan-2014 billres clean up obsolete attributes --> | |
| <!--xsl:attribute name="NAME"--> | |
| <xsl:attribute name="id"> | |
| <xsl:value-of select="@href | @idref"/> | |
| </xsl:attribute> | |
| <xsl:if test="ancestor::quoted-block or ancestor::toc-quoted-entry"> | |
| <xsl:call-template name="openQuotes"/> | |
| </xsl:if> | |
| <xsl:if test="$aPrintBracket = 'yes'"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>[</xsl:text> | |
| </span> | |
| </xsl:if> | |
| <xsl:if test="$aPrintParenth = 'yes'"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>(</xsl:text> | |
| </span> | |
| </xsl:if> | |
| <xsl:choose> | |
| <xsl:when test="ancestor::quoted-block and following-sibling::toc-entry"> | |
| <!-- TB 1Sep2009 --> | |
| <xsl:if test="$aVal = 'toccompoundedWithChild'"> | |
| <xsl:apply-templates/> | |
| </xsl:if> | |
| <xsl:if test="$aVal != 'toccompoundedWithChild'"> | |
| <!-- TB 24Dec2012 bug fixing 1288 subscript and superscript --> | |
| <xsl:apply-templates/> | |
| <!--xsl:value-of select="$aVal"/--> | |
| </xsl:if> | |
| <!-- TB 12Sep2007 #717 --> | |
| <xsl:if | |
| test="not(ancestor::quoted-block[@style = 'tax']) and (ancestor-or-self::toc-entry[1]/following-sibling::*)"> | |
| <xsl:call-template name="displayTocVerticalSpace"/> | |
| </xsl:if> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <!-- TB 1Sep2009 --> | |
| <xsl:if test="$aVal = 'toccompoundedWithChild'"> | |
| <xsl:apply-templates/> | |
| </xsl:if> | |
| <xsl:if test="$aVal != 'toccompoundedWithChild'"> | |
| <!-- TB 24Dec2012 bug fixing 1288 subscript and superscript --> | |
| <xsl:apply-templates/> | |
| <!--xsl:value-of select="$aVal"/--> | |
| </xsl:if> | |
| <!-- TB 25Sep2007 Replaced by general template calling --> | |
| <xsl:if | |
| test="local-name(node()[position() = last()]) != '' or (local-name(node()[position() = last()]) = '' and (node()[position() = last()] = '' or node()[position() = last()] = '.' or node()[position() = last()] = ';'))"> | |
| <xsl:call-template name="closeQuotesByCondition"/> | |
| </xsl:if> | |
| <!-- TB 12Sep2007 #717 --> | |
| <xsl:if | |
| test="not(ancestor::quoted-block[@style = 'tax']) and (ancestor-or-self::toc-entry[1]/following-sibling::*)"> | |
| <xsl:call-template name="displayTocVerticalSpace"/> | |
| </xsl:if> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </a> | |
| <!--xsl:variable name="isToCloseTheBrackets"> | |
| <xsl:call-template name="toCloseTheBrakets"/> | |
| </xsl:variable> | |
| <xsl:variable name="appropReportedStyle"> | |
| <xsl:call-template name="getAppropriationReportingStyle"/> | |
| </xsl:variable> | |
| <xsl:if test="($appropReportedStyle='bold-brackets' and $isToCloseTheBrackets='yes' ) or @commented='yes'"> | |
| <span class="brakets"> | |
| <xsl:text>]</xsl:text> | |
| </span> | |
| </xsl:if--> | |
| </xsl:template> | |
| <xsl:template name="ActualCreateLinkNoRef"> | |
| <xsl:param name="aPrintBracket"/> | |
| <xsl:param name="aPrintParenth"/> | |
| <xsl:param name="aVal"/> | |
| <xsl:if test="ancestor::quoted-block or ancestor::toc-quoted-entry"> | |
| <xsl:call-template name="openQuotes"/> | |
| </xsl:if> | |
| <xsl:if test="$aPrintBracket = 'yes'"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>[</xsl:text> | |
| </span> | |
| </xsl:if> | |
| <xsl:if test="$aPrintParenth = 'yes'"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>(</xsl:text> | |
| </span> | |
| </xsl:if> | |
| <xsl:variable name="isToCloseTheBrackets"> | |
| <xsl:call-template name="toCloseTheBrakets"/> | |
| </xsl:variable> | |
| <xsl:variable name="appropReportedStyle"> | |
| <xsl:call-template name="getAppropriationReportingStyle"/> | |
| </xsl:variable> | |
| <xsl:choose> | |
| <xsl:when test="@level = 'section'"> | |
| <xsl:apply-templates/> | |
| <xsl:if | |
| test="((($appropReportedStyle = 'bold-brackets' or $appropReportedStyle = 'brackets-boldface-italic' or $appropReportedStyle = 'brackets-boldface-roman') and $isToCloseTheBrackets = 'yes') or @commented = 'yes') and not(local-name() = 'toc-entry')"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>]</xsl:text> | |
| </span> | |
| </xsl:if> | |
| </xsl:when> | |
| <xsl:when test="$aVal = 'toccompoundedWithChild'"> | |
| <xsl:apply-templates/> | |
| <xsl:if | |
| test="(($appropReportedStyle = 'bold-brackets' or $appropReportedStyle = 'brackets-boldface-italic' or $appropReportedStyle = 'brackets-boldface-roman') and $isToCloseTheBrackets = 'yes') or @commented = 'yes'"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>]</xsl:text> | |
| </span> | |
| </xsl:if> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:value-of select="$aVal"/> | |
| <xsl:choose> | |
| <xsl:when test="local-name() = 'toc-entry' and following-sibling::toc-entry"> | |
| <!-- nothing --> | |
| </xsl:when> | |
| <xsl:when test="parent::toc/following-sibling::after-quoted-block"> | |
| <xsl:text>”.</xsl:text> | |
| </xsl:when> | |
| </xsl:choose> | |
| <xsl:if | |
| test="(($appropReportedStyle = 'bold-brackets' or $appropReportedStyle = 'brackets-boldface-italic' or $appropReportedStyle = 'brackets-boldface-roman') and $isToCloseTheBrackets = 'yes') or @commented = 'yes'"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>]</xsl:text> | |
| </span> | |
| </xsl:if> | |
| <xsl:if test="following-sibling::toc-entry[1]/@level != 'section'"> | |
| <br/> | |
| </xsl:if> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:template> | |
| <xsl:template match="toc-entry"> | |
| <xsl:variable name="currElementStyle"> | |
| <xsl:call-template name="getCurrentElementStyle"/> | |
| </xsl:variable> | |
| <xsl:variable name="isPrintItalic"> | |
| <xsl:variable name="tempPrint"> | |
| <xsl:call-template name="IsPrintItalicTextForReport"/> | |
| </xsl:variable> | |
| <xsl:choose> | |
| <xsl:when test="$tempPrint = 'yes'"> | |
| <xsl:text>yes</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="contains(@reported-display-style, 'italic')"> | |
| <xsl:text>yes</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="contains(parent::toc/@reported-display-style, 'italic') and not(@changed = 'not-changed')"> | |
| <xsl:text>yes</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="contains(ancestor::amendment-block/@reported-display-style, 'italic') and not(parent::toc/@changed = 'not-changed') and not(@changed = 'not-changed')"> | |
| <xsl:text>yes</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="contains(ancestor::legis-body/@reported-display-style, 'italic') and not(parent::toc/@changed = 'not-changed') and not(@changed = 'not-changed')"> | |
| <xsl:text>yes</xsl:text> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:text>no</xsl:text> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:variable> | |
| <xsl:variable name="isPrintIBold"> | |
| <xsl:choose> | |
| <xsl:when | |
| test="contains(@reported-display-style, 'bold') and not(@reported-display-style = 'bold-brackets')"> | |
| <xsl:text>yes</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="contains(parent::toc/@reported-display-style, 'bold') and not(parent::toc/@reported-display-style = 'bold-brackets') and not(@changed = 'not-changed')"> | |
| <xsl:text>yes</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="contains(ancestor::amendment-block/@reported-display-style, 'bold') and not(ancestor::amendment-block/@reported-display-style = 'bold-brackets') and not(parent::toc/@changed = 'not-changed') and not(@changed = 'not-changed')"> | |
| <xsl:text>yes</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="contains(ancestor-or-self::quoted-block/@other-style,'codification') and local-name()='toc-entry' and (@level='title' or @level='subtitle' or @level='division'or @level='subdivision' | |
| or @level='subchapter' or @level='chapter' or@level='subpart'or @level='part')"> | |
| <xsl:text>yes</xsl:text> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:text>no</xsl:text> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:variable> | |
| <xsl:variable name="isPrintStrikethrough"> | |
| <xsl:variable name="tempPrint"> | |
| <xsl:call-template name="IsPrintItalicTextForReport"/> | |
| </xsl:variable> | |
| <xsl:choose> | |
| <xsl:when test="$tempPrint = 'yes'"> | |
| <xsl:text>yes</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="contains(@reported-display-style, 'strikethrough')"> | |
| <xsl:text>yes</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="contains(parent::toc/@reported-display-style, 'strikethrough') and not(@changed = 'not-changed')"> | |
| <xsl:text>yes</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="contains(ancestor::amendment-block/@reported-display-style, 'strikethrough') and not(parent::toc/@changed = 'not-changed') and not(@changed = 'not-changed')"> | |
| <xsl:text>yes</xsl:text> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:text>no</xsl:text> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:variable> | |
| <xsl:choose> | |
| <xsl:when | |
| test="$isPrintItalic = 'yes' and (parent::toc/parent::subparagraph/parent::paragraph)"> | |
| <i class="lbexBlockNeutral"> | |
| <xsl:if test="$isPrintIBold = 'yes'"> | |
| <xsl:attribute name="style"> | |
| <xsl:text>font-weight: bold;</xsl:text> | |
| </xsl:attribute> | |
| </xsl:if> | |
| <ul> | |
| <ul> | |
| <xsl:call-template name="TocEntryMainChoose"> | |
| <xsl:with-param name="aCurrElementStyle" select="$currElementStyle" | |
| /> | |
| </xsl:call-template> | |
| </ul> | |
| </ul> | |
| </i> | |
| </xsl:when> | |
| <xsl:when test="$isPrintItalic = 'yes'"> | |
| <i class="lbexBlockNeutral"> | |
| <xsl:if test="$isPrintIBold = 'yes'"> | |
| <xsl:attribute name="style"> | |
| <xsl:text>font-weight: bold;</xsl:text> | |
| </xsl:attribute> | |
| </xsl:if> | |
| <xsl:call-template name="TocEntryMainChoose"> | |
| <xsl:with-param name="aCurrElementStyle" select="$currElementStyle"/> | |
| </xsl:call-template> | |
| </i> | |
| </xsl:when> | |
| <xsl:when | |
| test="$isPrintStrikethrough = 'yes' and (parent::toc/parent::subparagraph/parent::paragraph)"> | |
| <span class="lbexTextStrikethrough"> | |
| <xsl:if test="$isPrintIBold = 'yes'"> | |
| <xsl:attribute name="style"> | |
| <xsl:text>font-weight: bold;</xsl:text> | |
| </xsl:attribute> | |
| </xsl:if> | |
| <ul> | |
| <ul> | |
| <xsl:call-template name="TocEntryMainChoose"> | |
| <xsl:with-param name="aCurrElementStyle" select="$currElementStyle" | |
| /> | |
| </xsl:call-template> | |
| </ul> | |
| </ul> | |
| </span> | |
| </xsl:when> | |
| <xsl:when test="$isPrintStrikethrough = 'yes'"> | |
| <span class="lbexTextStrikethrough"> | |
| <xsl:if test="$isPrintIBold = 'yes'"> | |
| <xsl:attribute name="style"> | |
| <xsl:text>font-weight: bold;</xsl:text> | |
| </xsl:attribute> | |
| </xsl:if> | |
| <xsl:call-template name="TocEntryMainChoose"> | |
| <xsl:with-param name="aCurrElementStyle" select="$currElementStyle"/> | |
| </xsl:call-template> | |
| </span> | |
| </xsl:when> | |
| <xsl:when test="(parent::toc/parent::subparagraph/parent::paragraph)"> | |
| <ul> | |
| <xsl:if test="$isPrintIBold = 'yes'"> | |
| <xsl:attribute name="style"> | |
| <xsl:text>font-weight: bold;</xsl:text> | |
| </xsl:attribute> | |
| </xsl:if> | |
| <ul> | |
| <xsl:call-template name="TocEntryMainChoose"> | |
| <xsl:with-param name="aCurrElementStyle" select="$currElementStyle"/> | |
| </xsl:call-template> | |
| </ul> | |
| </ul> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <span> | |
| <xsl:if test="$isPrintIBold = 'yes'"> | |
| <xsl:attribute name="style"> | |
| <xsl:text>font-weight: bold;</xsl:text> | |
| </xsl:attribute> | |
| </xsl:if> | |
| <xsl:call-template name="TocEntryMainChoose"> | |
| <xsl:with-param name="aCurrElementStyle" select="$currElementStyle"/> | |
| </xsl:call-template> | |
| </span> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:template> | |
| <xsl:template name="printLineBreakInToc"> | |
| <xsl:param name="currStyle"/> | |
| <xsl:choose> | |
| <xsl:when test="$currStyle = 'OLC' or $currStyle = '' or contains($currStyle,'codification')"> | |
| <xsl:choose> | |
| <xsl:when test="@level = 'division'"> | |
| <xsl:text>yes</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="@level = 'subdivision' and not(enum-in-header) and not(preceding-sibling::*[1]/@level = 'division')"> | |
| <xsl:text>yes</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="@level = 'subdivision' and enum-in-header and not(preceding-sibling::*[1]/@level = 'division')"> | |
| <xsl:text>yes</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="./@level = 'title' and not(preceding-sibling::*[1]/@level = 'division' or preceding-sibling::*[1]/@level = 'subdivision')"> | |
| <xsl:text>yes</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="./@level = 'subtitle' and not(enum-in-header) and not(preceding-sibling::*[1]/@level = 'title' or preceding-sibling::*[1]/@level = 'division' or preceding-sibling::*[1]/@level = 'subdivision')"> | |
| <xsl:text>yes</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="./@level = 'subtitle' and enum-in-header and (not(preceding-sibling::*[1]/@level = 'title' or preceding-sibling::*[1]/@level = 'division' or preceding-sibling::*[1]/@level = 'subdivision'))"> | |
| <xsl:text>yes</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="@level = 'chapter' and not(preceding-sibling::*[1]/@level = 'title' or preceding-sibling::*[1]/@level = 'subtitle' or preceding-sibling::*[1]/@level = 'part' or preceding-sibling::*[1]/@level = 'subpart' or preceding-sibling::*[1]/@level = 'division' or preceding-sibling::*[1]/@level = 'subdivision')"> | |
| <xsl:text>yes</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="@level = 'subchapter' and not(preceding-sibling::*[1]/@level = 'title' or preceding-sibling::*[1]/@level = 'subtitle' or preceding-sibling::*[1]/@level = 'part' or preceding-sibling::*[1]/@level = 'subpart' or preceding-sibling::*[1]/@level = 'chapter' or preceding-sibling::*[1]/@level = 'division' or preceding-sibling::*[1]/@level = 'subdivision')"> | |
| <xsl:text>yes</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="@level = 'part' and not(preceding-sibling::*[1]/@level = 'title' or preceding-sibling::*[1]/@level = 'subtitle' or preceding-sibling::*[1]/@level = 'chapter' or preceding-sibling::*[1]/@level = 'subchapter' or preceding-sibling::*[1]/@level = 'division' or preceding-sibling::*[1]/@level = 'subdivision')"> | |
| <xsl:text>yes</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="@level = 'subpart' and not(enum-in-header) and not(preceding-sibling::*[1]/@level = 'title' or preceding-sibling::*[1]/@level = 'subtitle' or preceding-sibling::*[1]/@level = 'part' or preceding-sibling::*[1]/@level = 'division' or preceding-sibling::*[1]/@level = 'subdivision')"> | |
| <xsl:text>yes</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="@level = 'subpart' and enum-in-header and not(preceding-sibling::*[1]/@level = 'title' or preceding-sibling::*[1]/@level = 'subtitle' or preceding-sibling::*[1]/@level = 'part' or preceding-sibling::*[1]/@level = 'division' or preceding-sibling::*[1]/@level = 'subdivision')"> | |
| <xsl:text>yes</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="@level = 'section'"> | |
| <xsl:text>yes</xsl:text> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:text>no</xsl:text> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:when> | |
| <xsl:when | |
| test="contains($currStyle, 'traditional') or contains($currStyle, 'archaic') or contains($currStyle, 'appropriations')"> | |
| <xsl:choose> | |
| <xsl:when test="@level = 'section'"> | |
| <xsl:text>yes</xsl:text> | |
| </xsl:when> | |
| <xsl:otherwise>no</xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:when> | |
| <xsl:when test="$currStyle = 'tax'"> | |
| <xsl:text>yes</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="$currStyle = 'USC' and @level = 'section'"> | |
| <xsl:text>yes</xsl:text> | |
| </xsl:when> | |
| </xsl:choose> | |
| </xsl:template> | |
| <xsl:template name="actualCreateLinkWrapper"> | |
| <xsl:param name="toPrintLineBreakInToc"/> | |
| <xsl:param name="applyTemplates"/> | |
| <xsl:param name="styleToPrint"/> | |
| <xsl:param name="additionalParam"/> | |
| <xsl:param name="turnToLowerOrUpper"/> | |
| <xsl:variable name="isPrintBracket"> | |
| <xsl:choose> | |
| <xsl:when test="contains(@reported-display-style, 'bracket')"> | |
| <xsl:text>yes</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="contains(parent::toc/@reported-display-style, 'bracket') and not(@changed = 'not-changed')"> | |
| <xsl:text>yes</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="contains(ancestor::amendment-block/@reported-display-style, 'bracket') and not(parent::toc/@changed = 'not-changed') and not(@changed = 'not-changed')"> | |
| <xsl:text>yes</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="contains(ancestor::*/@reported-display-style, 'bracket')"> | |
| <xsl:text>yes</xsl:text> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:text>no</xsl:text> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:variable> | |
| <xsl:variable name="isPrintParentheses"> | |
| <xsl:choose> | |
| <xsl:when test="contains(@reported-display-style, 'parentheses')"> | |
| <xsl:text>yes</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="contains(parent::toc/@reported-display-style, 'parentheses') and not(@changed = 'not-changed')"> | |
| <xsl:text>yes</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="contains(ancestor::amendment-block/@reported-display-style, 'parentheses') and not(parent::toc/@changed = 'not-changed') and not(@changed = 'not-changed')"> | |
| <xsl:text>yes</xsl:text> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:text>no</xsl:text> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:variable> | |
| <xsl:variable name="isTocCentered"> | |
| <xsl:choose> | |
| <xsl:when | |
| test="not(@level = 'section' or @level = 'subsection' or @level = 'paragraph' or @level = 'subparagraph' or @level = 'clause' or @level = 'subclause' or @level = 'item' or @level = 'subitem')"> | |
| <xsl:choose> | |
| <xsl:when test="contains(ancestor-or-self::quoted-block/@other-style,'codification') and | |
| not(@level='part' or @level='subpart' or @level='division' or @level='subdivision' | |
| or @level='chapter'or @level='subchapter')"> | |
| <xsl:text>no</xsl:text> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:text>yes</xsl:text> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:text>no</xsl:text> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:variable> | |
| <xsl:variable name="toPrintLineBreakInToc1"> | |
| <xsl:choose> | |
| <xsl:when test="$toPrintLineBreakInToc = 'yes' and $isTocCentered = 'no'"> | |
| <xsl:text>yes</xsl:text> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:text>no</xsl:text> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:variable> | |
| <xsl:if test="$isTocCentered = 'yes'"> | |
| <xsl:choose> | |
| <xsl:when test= "contains(ancestor::quoted-block/@other-style,'codification')"> | |
| <div> | |
| <xsl:call-template name="actualCreateLinkWrapperContent"> | |
| <xsl:with-param name="toPrintLineBreakInToc" select="$toPrintLineBreakInToc1"/> | |
| <xsl:with-param name="styleToPrint" select="$styleToPrint"/> | |
| <xsl:with-param name="additionalParam" select="$additionalParam"/> | |
| <xsl:with-param name="isPrintBracket" select="$isPrintBracket"/> | |
| <xsl:with-param name="isPrintParentheses" select="$isPrintParentheses"/> | |
| <xsl:with-param name="applyTemplates" select="$applyTemplates"/> | |
| <xsl:with-param name="turnToLowerOrUpper" select="$turnToLowerOrUpper"/> | |
| </xsl:call-template> | |
| </div> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <div style="text-align:center"> | |
| <xsl:call-template name="actualCreateLinkWrapperContent"> | |
| <xsl:with-param name="toPrintLineBreakInToc" select="$toPrintLineBreakInToc1"/> | |
| <xsl:with-param name="styleToPrint" select="$styleToPrint"/> | |
| <xsl:with-param name="additionalParam" select="$additionalParam"/> | |
| <xsl:with-param name="isPrintBracket" select="$isPrintBracket"/> | |
| <xsl:with-param name="isPrintParentheses" select="$isPrintParentheses"/> | |
| <xsl:with-param name="applyTemplates" select="$applyTemplates"/> | |
| <xsl:with-param name="turnToLowerOrUpper" select="$turnToLowerOrUpper"/> | |
| </xsl:call-template> | |
| </div> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:if> | |
| <xsl:if test="$isTocCentered = 'no'"> | |
| <span> | |
| <xsl:call-template name="actualCreateLinkWrapperContent"> | |
| <xsl:with-param name="toPrintLineBreakInToc" select="$toPrintLineBreakInToc"/> | |
| <xsl:with-param name="styleToPrint" select="$styleToPrint"/> | |
| <xsl:with-param name="additionalParam" select="$additionalParam"/> | |
| <xsl:with-param name="isPrintBracket" select="$isPrintBracket"/> | |
| <xsl:with-param name="isPrintParentheses" select="$isPrintParentheses"/> | |
| <xsl:with-param name="applyTemplates" select="$applyTemplates"/> | |
| <xsl:with-param name="turnToLowerOrUpper" select="$turnToLowerOrUpper"/> | |
| </xsl:call-template> | |
| </span> | |
| </xsl:if> | |
| </xsl:template> | |
| <xsl:template name="actualCreateLinkWrapperContent"> | |
| <xsl:param name="toPrintLineBreakInToc"/> | |
| <xsl:param name="styleToPrint"/> | |
| <xsl:param name="additionalParam"/> | |
| <xsl:param name="isPrintBracket"/> | |
| <xsl:param name="isPrintParentheses"/> | |
| <xsl:param name="applyTemplates"/> | |
| <xsl:param name="turnToLowerOrUpper"/> | |
| <xsl:if test="$styleToPrint != ''"> | |
| <xsl:attribute name="class"> | |
| <xsl:value-of select="$styleToPrint"/> | |
| </xsl:attribute> | |
| </xsl:if> | |
| <xsl:if test="$toPrintLineBreakInToc = 'yes'"> | |
| <br/> | |
| </xsl:if> | |
| <xsl:choose> | |
| <xsl:when test="$additionalParam = 'noParam'"> | |
| <xsl:call-template name="createLinkNoParam"> | |
| <xsl:with-param name="aPrintBracket"> | |
| <xsl:value-of select="$isPrintBracket"/> | |
| </xsl:with-param> | |
| <xsl:with-param name="aPrintParenth"> | |
| <xsl:value-of select="$isPrintParentheses"/> | |
| </xsl:with-param> | |
| </xsl:call-template> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:call-template name="createLink"> | |
| <xsl:with-param name="aPrintBracket"> | |
| <xsl:value-of select="$isPrintBracket"/> | |
| </xsl:with-param> | |
| <xsl:with-param name="aPrintParenth"> | |
| <xsl:value-of select="$isPrintParentheses"/> | |
| </xsl:with-param> | |
| <xsl:with-param name="val"> | |
| <xsl:choose> | |
| <xsl:when test="$additionalParam = 'yes' and child::*"> | |
| <xsl:text>toccompoundedWithChild</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="$applyTemplates = 'yes'"> | |
| <xsl:apply-templates/> | |
| </xsl:when> | |
| <xsl:when test="$turnToLowerOrUpper = 'lower'"> | |
| <xsl:value-of select="translate(., $upper, $lower)"/> | |
| </xsl:when> | |
| <xsl:when test="$turnToLowerOrUpper = 'upper'"> | |
| <xsl:value-of select="translate(., $lower, $upper)"/> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:value-of select="."/> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:with-param> | |
| </xsl:call-template> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| <xsl:variable name="isToCloseTheBrackets"> | |
| <xsl:call-template name="toCloseTheBrakets"/> | |
| </xsl:variable> | |
| <xsl:if | |
| test="$isToCloseTheBrackets = 'yes' and $isPrintBracket = 'yes' and ((following-sibling::toc-entry and not(contains(following-sibling::toc-entry/@reported-display-style, 'bracket')) and not(contains(parent::toc/@reported-display-style, 'bracket'))) or (local-name() = 'toc-entry' and not(following-sibling::*)))"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>]</xsl:text> | |
| </span> | |
| </xsl:if> | |
| <xsl:if | |
| test="$isPrintParentheses = 'yes' and (following-sibling::toc-entry and not(contains(following-sibling::toc-entry/@reported-display-style, 'parentheses')) and not(contains(parent::toc/@reported-display-style, 'parentheses')) or (local-name() = 'toc-entry' and not(following-sibling::*)))"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>)</xsl:text> | |
| </span> | |
| </xsl:if> | |
| </xsl:template> | |
| <xsl:template name="createLinkWrapper"> | |
| <xsl:param name="toPrintLineBreakInToc"/> | |
| <xsl:param name="applyTemplates"/> | |
| <xsl:param name="styleToPrint"/> | |
| <xsl:param name="additionalParam"/> | |
| <xsl:param name="turnToLowerOrUpper"/> | |
| <xsl:if test="parent::toc-quoted-entry"> | |
| <span class="lbexIndent"> | |
| <xsl:call-template name="actualCreateLinkWrapper"> | |
| <xsl:with-param name="toPrintLineBreakInToc" select="$toPrintLineBreakInToc"/> | |
| <xsl:with-param name="applyTemplates" select="$applyTemplates"/> | |
| <xsl:with-param name="styleToPrint" select="$styleToPrint"/> | |
| <xsl:with-param name="additionalParam" select="$additionalParam"/> | |
| <xsl:with-param name="turnToLowerOrUpper" select="$turnToLowerOrUpper"/> | |
| </xsl:call-template> | |
| </span> | |
| </xsl:if> | |
| <xsl:if test="not(parent::toc-quoted-entry)"> | |
| <xsl:call-template name="actualCreateLinkWrapper"> | |
| <xsl:with-param name="toPrintLineBreakInToc" select="$toPrintLineBreakInToc"/> | |
| <xsl:with-param name="applyTemplates" select="$applyTemplates"/> | |
| <xsl:with-param name="styleToPrint" select="$styleToPrint"/> | |
| <xsl:with-param name="additionalParam" select="$additionalParam"/> | |
| <xsl:with-param name="turnToLowerOrUpper" select="$turnToLowerOrUpper"/> | |
| </xsl:call-template> | |
| </xsl:if> | |
| </xsl:template> | |
| <!-- *****To separate it - for resolving bugzilla problem with html tags in text --> | |
| <xsl:template name="TocEntryMainChoose"> | |
| <xsl:param name="aCurrElementStyle"/> | |
| <xsl:variable name="toPrintLineBreakInToc"> | |
| <xsl:call-template name="printLineBreakInToc"> | |
| <xsl:with-param name="currStyle" select="$aCurrElementStyle"/> | |
| </xsl:call-template> | |
| </xsl:variable> | |
| <xsl:choose> | |
| <!-- USC style --> | |
| <xsl:when test="$aCurrElementStyle = 'USC'"> | |
| <xsl:choose> | |
| <xsl:when test="@level = 'section'"> | |
| <span style="text-align:left"> | |
| <xsl:call-template name="createLinkWrapper"> | |
| <xsl:with-param name="styleToPrint" | |
| >lbexTocSectionTrad</xsl:with-param> | |
| <xsl:with-param name="toPrintLineBreakInToc" | |
| select="$toPrintLineBreakInToc"/> | |
| <xsl:with-param name="additionalParam">yes</xsl:with-param> | |
| <xsl:with-param name="applyTemplates">no</xsl:with-param> | |
| </xsl:call-template> | |
| </span> | |
| </xsl:when> | |
| <xsl:when test="@level = 'title' or @level = 'division'"> | |
| <div style="text-align:center"> | |
| <xsl:call-template name="createLinkWrapper"> | |
| <xsl:with-param name="styleToPrint" | |
| >lbexTocTitleTrad</xsl:with-param> | |
| <xsl:with-param name="toPrintLineBreakInToc" | |
| select="$toPrintLineBreakInToc"/> | |
| <xsl:with-param name="additionalParam">no</xsl:with-param> | |
| <xsl:with-param name="applyTemplates">yes</xsl:with-param> | |
| </xsl:call-template> | |
| </div> | |
| </xsl:when> | |
| <xsl:when test="@level = 'subtitle'"> | |
| <xsl:call-template name="createLinkWrapper"> | |
| <xsl:with-param name="styleToPrint">lbexTocDivisionOLC</xsl:with-param> | |
| <xsl:with-param name="toPrintLineBreakInToc" | |
| select="$toPrintLineBreakInToc"/> | |
| <xsl:with-param name="additionalParam">yes</xsl:with-param> | |
| <xsl:with-param name="applyTemplates">no</xsl:with-param> | |
| </xsl:call-template> | |
| </xsl:when> | |
| <xsl:when test="@level = 'chapter' and not(enum-in-header)"> | |
| <xsl:call-template name="createLinkWrapper"> | |
| <xsl:with-param name="styleToPrint">lbexTocChapterTrad</xsl:with-param> | |
| <xsl:with-param name="toPrintLineBreakInToc" | |
| select="$toPrintLineBreakInToc"/> | |
| <xsl:with-param name="additionalParam">yes</xsl:with-param> | |
| <xsl:with-param name="applyTemplates">no</xsl:with-param> | |
| </xsl:call-template> | |
| </xsl:when> | |
| <xsl:when test="@level = 'chapter' and enum-in-header"> | |
| <xsl:call-template name="createLinkWrapper"> | |
| <xsl:with-param name="toPrintLineBreakInToc" | |
| select="$toPrintLineBreakInToc"/> | |
| <xsl:with-param name="additionalParam">noParam</xsl:with-param> | |
| </xsl:call-template> | |
| </xsl:when> | |
| <xsl:when test="./@level = 'subchapter'"> | |
| <div style="text-align:center"> | |
| <xsl:call-template name="createLinkWrapper"> | |
| <xsl:with-param name="styleToPrint" | |
| >lbexTocSubchapterTrad</xsl:with-param> | |
| <xsl:with-param name="toPrintLineBreakInToc" | |
| select="$toPrintLineBreakInToc"/> | |
| <xsl:with-param name="additionalParam">yes</xsl:with-param> | |
| <xsl:with-param name="applyTemplates">no</xsl:with-param> | |
| <xsl:with-param name="turnToLowerOrUpper">upper</xsl:with-param> | |
| </xsl:call-template> | |
| </div> | |
| </xsl:when> | |
| <xsl:when test="level = 'subchapter'"> | |
| <xsl:call-template name="createLinkWrapper"> | |
| <xsl:with-param name="styleToPrint" | |
| >lbexTocSubchapterTrad</xsl:with-param> | |
| <xsl:with-param name="toPrintLineBreakInToc" | |
| select="$toPrintLineBreakInToc"/> | |
| <xsl:with-param name="additionalParam">yes</xsl:with-param> | |
| <xsl:with-param name="applyTemplates">no</xsl:with-param> | |
| </xsl:call-template> | |
| </xsl:when> | |
| <xsl:when test="./@level = 'part' and not(enum-in-header)"> | |
| <div style="text-align:center"> | |
| <xsl:call-template name="createLinkWrapper"> | |
| <xsl:with-param name="styleToPrint">lbexTocPartTrad</xsl:with-param> | |
| <xsl:with-param name="toPrintLineBreakInToc" | |
| select="$toPrintLineBreakInToc"/> | |
| <xsl:with-param name="additionalParam">yes</xsl:with-param> | |
| <xsl:with-param name="applyTemplates">no</xsl:with-param> | |
| </xsl:call-template> | |
| </div> | |
| </xsl:when> | |
| <xsl:when test="./@level = 'part' and enum-in-header"> | |
| <div style="text-align:center"> | |
| <xsl:call-template name="createLinkWrapper"> | |
| <xsl:with-param name="toPrintLineBreakInToc" | |
| select="$toPrintLineBreakInToc"/> | |
| <xsl:with-param name="additionalParam">noParam</xsl:with-param> | |
| </xsl:call-template> | |
| </div> | |
| </xsl:when> | |
| <xsl:when test="@level = 'subpart'"> | |
| <xsl:call-template name="createLinkWrapper"> | |
| <xsl:with-param name="styleToPrint">lbexTocSubPartTrad</xsl:with-param> | |
| <xsl:with-param name="toPrintLineBreakInToc" | |
| select="$toPrintLineBreakInToc"/> | |
| <xsl:with-param name="additionalParam">yes</xsl:with-param> | |
| <xsl:with-param name="applyTemplates">no</xsl:with-param> | |
| </xsl:call-template> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:if test="preceding-sibling::toc-entry[1]/@level = 'section'"> | |
| <br/> | |
| </xsl:if> | |
| <span style="text-align:left"> | |
| <xsl:call-template name="createLinkWrapper"> | |
| <xsl:with-param name="styleToPrint" | |
| >lbexTocSectionTrad</xsl:with-param> | |
| <xsl:with-param name="toPrintLineBreakInToc" | |
| select="$toPrintLineBreakInToc"/> | |
| <xsl:with-param name="additionalParam">yes</xsl:with-param> | |
| <xsl:with-param name="applyTemplates">no</xsl:with-param> | |
| </xsl:call-template> | |
| </span> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:when> | |
| <!-- Tax style --> | |
| <xsl:when test="$aCurrElementStyle = 'tax'"> | |
| <xsl:choose> | |
| <xsl:when | |
| test=" | |
| (@level = 'section' and ancestor::*[@reported-display-style = 'boldface-roman']) | |
| or (@level = 'section' and ancestor::*[@reported-display-style = 'boldface-italic'])"> | |
| <span style="text-align:left" class="lbexIndentFour"> | |
| <xsl:call-template name="createLinkWrapper"> | |
| <xsl:with-param name="styleToPrint" | |
| >lbexTocSectionIRCBold</xsl:with-param> | |
| <xsl:with-param name="toPrintLineBreakInToc" | |
| select="$toPrintLineBreakInToc"/> | |
| <xsl:with-param name="additionalParam">yes</xsl:with-param> | |
| <xsl:with-param name="applyTemplates">no</xsl:with-param> | |
| </xsl:call-template> | |
| </span> | |
| </xsl:when> | |
| <xsl:when test="@level = 'section'"> | |
| <span style="text-align:left" class="lbexIndentFive"> | |
| <xsl:call-template name="createLinkWrapper"> | |
| <xsl:with-param name="styleToPrint" | |
| >lbexTocSectionIRCTax</xsl:with-param> | |
| <xsl:with-param name="toPrintLineBreakInToc" | |
| select="$toPrintLineBreakInToc"/> | |
| <xsl:with-param name="additionalParam">noParam</xsl:with-param> | |
| </xsl:call-template> | |
| </span> | |
| </xsl:when> | |
| <xsl:when | |
| test=" | |
| (@level = 'part' and ancestor::*[@reported-display-style = 'boldface-roman']) or | |
| (@level = 'part' and ancestor::*[@reported-display-style = 'boldface-italic'])"> | |
| <span style="text-align:left" class="lbexIndentFour"> | |
| <xsl:call-template name="createLinkWrapper"> | |
| <xsl:with-param name="styleToPrint" | |
| >lbexTocPartIRCBold</xsl:with-param> | |
| <xsl:with-param name="toPrintLineBreakInToc" | |
| select="$toPrintLineBreakInToc"/> | |
| <xsl:with-param name="additionalParam">yes</xsl:with-param> | |
| <xsl:with-param name="applyTemplates">no</xsl:with-param> | |
| </xsl:call-template> | |
| </span> | |
| </xsl:when> | |
| <xsl:when test="@level = 'part'"> | |
| <span style="text-align:left" class="lbexIndentFour"> | |
| <xsl:call-template name="createLinkWrapper"> | |
| <xsl:with-param name="styleToPrint" | |
| >lbexTocSectionIRCTax</xsl:with-param> | |
| <xsl:with-param name="toPrintLineBreakInToc" | |
| select="$toPrintLineBreakInToc"/> | |
| <xsl:with-param name="additionalParam">noParam</xsl:with-param> | |
| </xsl:call-template> | |
| </span> | |
| </xsl:when> | |
| <xsl:when test="@level = 'subpart'"> | |
| <span style="text-align:left" class="lbexIndentFour"> | |
| <xsl:call-template name="createLinkWrapper"> | |
| <xsl:with-param name="styleToPrint" | |
| >lbexTocSectionIRCTax</xsl:with-param> | |
| <xsl:with-param name="toPrintLineBreakInToc" | |
| select="$toPrintLineBreakInToc"/> | |
| <xsl:with-param name="additionalParam">noParam</xsl:with-param> | |
| </xsl:call-template> | |
| </span> | |
| </xsl:when> | |
| <xsl:when | |
| test=" | |
| (@level = 'chapter' or @level = 'subchapter' or @level = 'subtitle') and | |
| (ancestor::*[@reported-display-style = 'boldface-roman'] or @level = 'chapter' and ancestor::*[@reported-display-style = 'boldface-italic'])"> | |
| <xsl:call-template name="createLinkWrapper"> | |
| <xsl:with-param name="styleToPrint" | |
| >lbexTocBigCapsLowCapsIRCBold</xsl:with-param> | |
| <xsl:with-param name="toPrintLineBreakInToc" | |
| select="$toPrintLineBreakInToc"/> | |
| <xsl:with-param name="additionalParam">no</xsl:with-param> | |
| <xsl:with-param name="applyTemplates">no</xsl:with-param> | |
| <xsl:with-param name="turnToLowerOrUpper">lower</xsl:with-param> | |
| </xsl:call-template> | |
| </xsl:when> | |
| <xsl:when | |
| test="@level = 'title' or @level = 'subchapter' or @level = 'chapter' or @level = 'subtitle'"> | |
| <!--additional param was changed to yes TB 20Dec2012 - checking--> | |
| <xsl:call-template name="createLinkWrapper"> | |
| <xsl:with-param name="styleToPrint" | |
| >lbexTocBigCapsLowCapsIRC</xsl:with-param> | |
| <xsl:with-param name="toPrintLineBreakInToc" | |
| select="$toPrintLineBreakInToc"/> | |
| <xsl:with-param name="additionalParam">yes</xsl:with-param> | |
| <xsl:with-param name="applyTemplates">no</xsl:with-param> | |
| <xsl:with-param name="turnToLowerOrUpper">lower</xsl:with-param> | |
| </xsl:call-template> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <span style="text-align:left" class="lbexIndentFive"> | |
| <xsl:call-template name="createLinkWrapper"> | |
| <xsl:with-param name="styleToPrint" | |
| >lbexTocSectionIRCTax</xsl:with-param> | |
| <xsl:with-param name="toPrintLineBreakInToc" | |
| select="$toPrintLineBreakInToc"/> | |
| <xsl:with-param name="additionalParam">noParam</xsl:with-param> | |
| </xsl:call-template> | |
| </span> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:when> | |
| <!--traditional style--> | |
| <xsl:when | |
| test="contains($aCurrElementStyle, 'traditional') or contains($aCurrElementStyle, 'archaic') or $aCurrElementStyle = 'appropriations'"> | |
| <xsl:choose> | |
| <xsl:when test="@level = 'section'"> | |
| <xsl:call-template name="createLinkWrapper"> | |
| <xsl:with-param name="styleToPrint">lbexTocSectionTrad</xsl:with-param> | |
| <xsl:with-param name="toPrintLineBreakInToc" | |
| select="$toPrintLineBreakInToc"/> | |
| <xsl:with-param name="additionalParam">yes</xsl:with-param> | |
| <xsl:with-param name="applyTemplates">no</xsl:with-param> | |
| </xsl:call-template> | |
| </xsl:when> | |
| <xsl:when test="@level = 'title' or @level = 'division'"> | |
| <div style="text-align:center"> | |
| <xsl:call-template name="createLinkWrapper"> | |
| <xsl:with-param name="styleToPrint" | |
| >lbexTocTitleTrad</xsl:with-param> | |
| <xsl:with-param name="toPrintLineBreakInToc" | |
| select="$toPrintLineBreakInToc"/> | |
| <xsl:with-param name="additionalParam">no</xsl:with-param> | |
| <xsl:with-param name="applyTemplates">yes</xsl:with-param> | |
| </xsl:call-template> | |
| </div> | |
| </xsl:when> | |
| <xsl:when test="@level = 'subtitle'"> | |
| <xsl:call-template name="createLinkWrapper"> | |
| <xsl:with-param name="styleToPrint">lbexTocDivisionOLC</xsl:with-param> | |
| <xsl:with-param name="toPrintLineBreakInToc" | |
| select="$toPrintLineBreakInToc"/> | |
| <xsl:with-param name="additionalParam">yes</xsl:with-param> | |
| <xsl:with-param name="applyTemplates">no</xsl:with-param> | |
| </xsl:call-template> | |
| </xsl:when> | |
| <xsl:when test="@level = 'chapter' and not(enum-in-header)"> | |
| <xsl:call-template name="createLinkWrapper"> | |
| <xsl:with-param name="styleToPrint">lbexTocChapterTrad</xsl:with-param> | |
| <xsl:with-param name="toPrintLineBreakInToc" | |
| select="$toPrintLineBreakInToc"/> | |
| <xsl:with-param name="additionalParam">yes</xsl:with-param> | |
| <xsl:with-param name="applyTemplates">no</xsl:with-param> | |
| </xsl:call-template> | |
| </xsl:when> | |
| <xsl:when test="@level = 'chapter' and enum-in-header"> | |
| <xsl:call-template name="createLinkWrapper"> | |
| <xsl:with-param name="toPrintLineBreakInToc" | |
| select="$toPrintLineBreakInToc"/> | |
| <xsl:with-param name="additionalParam">noParam</xsl:with-param> | |
| </xsl:call-template> | |
| </xsl:when> | |
| <xsl:when test="./@level = 'subchapter'"> | |
| <div style="text-align:center"> | |
| <xsl:call-template name="createLinkWrapper"> | |
| <xsl:with-param name="styleToPrint" | |
| >lbexTocSubchapterTrad</xsl:with-param> | |
| <xsl:with-param name="toPrintLineBreakInToc" | |
| select="$toPrintLineBreakInToc"/> | |
| <xsl:with-param name="additionalParam">yes</xsl:with-param> | |
| <xsl:with-param name="applyTemplates">no</xsl:with-param> | |
| </xsl:call-template> | |
| </div> | |
| </xsl:when> | |
| <xsl:when test="level = 'subchapter'"> | |
| <xsl:call-template name="createLinkWrapper"> | |
| <xsl:with-param name="styleToPrint" | |
| >lbexTocSubchapterTrad</xsl:with-param> | |
| <xsl:with-param name="toPrintLineBreakInToc" | |
| select="$toPrintLineBreakInToc"/> | |
| <xsl:with-param name="additionalParam">yes</xsl:with-param> | |
| <xsl:with-param name="applyTemplates">no</xsl:with-param> | |
| </xsl:call-template> | |
| </xsl:when> | |
| <xsl:when test="./@level = 'part' and not(enum-in-header)"> | |
| <div style="text-align:center"> | |
| <xsl:call-template name="createLinkWrapper"> | |
| <xsl:with-param name="styleToPrint">lbexTocPartTrad</xsl:with-param> | |
| <xsl:with-param name="toPrintLineBreakInToc" | |
| select="$toPrintLineBreakInToc"/> | |
| <xsl:with-param name="additionalParam">yes</xsl:with-param> | |
| <xsl:with-param name="applyTemplates">no</xsl:with-param> | |
| </xsl:call-template> | |
| </div> | |
| </xsl:when> | |
| <xsl:when test="./@level = 'part' and enum-in-header"> | |
| <div style="text-align:center"> | |
| <xsl:call-template name="createLinkWrapper"> | |
| <xsl:with-param name="toPrintLineBreakInToc" | |
| select="$toPrintLineBreakInToc"/> | |
| <xsl:with-param name="additionalParam">noParam</xsl:with-param> | |
| </xsl:call-template> | |
| </div> | |
| </xsl:when> | |
| <xsl:when test="@level = 'subpart'"> | |
| <xsl:call-template name="createLinkWrapper"> | |
| <xsl:with-param name="styleToPrint">lbexTocSubPartTrad</xsl:with-param> | |
| <xsl:with-param name="toPrintLineBreakInToc" | |
| select="$toPrintLineBreakInToc"/> | |
| <xsl:with-param name="additionalParam">yes</xsl:with-param> | |
| <xsl:with-param name="applyTemplates">no</xsl:with-param> | |
| </xsl:call-template> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:if test="preceding-sibling::toc-entry[1]/@level = 'section'"> | |
| <br/> | |
| </xsl:if> | |
| <xsl:call-template name="createLinkWrapper"> | |
| <xsl:with-param name="styleToPrint">lbexTocSectionTrad</xsl:with-param> | |
| <xsl:with-param name="toPrintLineBreakInToc" | |
| select="$toPrintLineBreakInToc"/> | |
| <xsl:with-param name="additionalParam">yes</xsl:with-param> | |
| <xsl:with-param name="applyTemplates">no</xsl:with-param> | |
| </xsl:call-template> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:when> | |
| <xsl:when test="$aCurrElementStyle = 'OLC' or $aCurrElementStyle = ''or contains($aCurrElementStyle, 'codification')"> | |
| <!--OLC style--> | |
| <xsl:choose> | |
| <xsl:when test="@level = 'section'"> | |
| <xsl:call-template name="createLinkWrapper"> | |
| <xsl:with-param name="styleToPrint">lbexTocSectionOLC</xsl:with-param> | |
| <xsl:with-param name="toPrintLineBreakInToc" | |
| select="$toPrintLineBreakInToc"/> | |
| <xsl:with-param name="additionalParam">yes</xsl:with-param> | |
| <xsl:with-param name="applyTemplates">no</xsl:with-param> | |
| </xsl:call-template> | |
| </xsl:when> | |
| <xsl:when test="@level = 'division'"> | |
| <xsl:choose> | |
| <xsl:when test="contains($aCurrElementStyle, 'codification') and count(preceding-sibling::*[1])>0"> | |
| <xsl:choose> | |
| <xsl:when test="preceding-sibling::*/@level='title' or preceding-sibling::*/@level='subtitle'"> | |
| <xsl:call-template name="createLinkWrapper"> | |
| <xsl:with-param name="styleToPrint">lbexTocDivisionOLCCodif</xsl:with-param> | |
| <xsl:with-param name="toPrintLineBreakInToc" | |
| select="$toPrintLineBreakInToc"/> | |
| <xsl:with-param name="additionalParam">no</xsl:with-param> | |
| <xsl:with-param name="applyTemplates">yes</xsl:with-param> | |
| </xsl:call-template> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:call-template name="createLinkWrapper"> | |
| <xsl:with-param name="styleToPrint">lbexTocCodif</xsl:with-param> | |
| <xsl:with-param name="toPrintLineBreakInToc" | |
| select="$toPrintLineBreakInToc"/> | |
| <xsl:with-param name="additionalParam">no</xsl:with-param> | |
| <xsl:with-param name="applyTemplates">yes</xsl:with-param> | |
| </xsl:call-template> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:when> | |
| <xsl:when test="contains($aCurrElementStyle, 'codification') and count(preceding-sibling::*[1])=0"> | |
| <xsl:call-template name="createLinkWrapper"> | |
| <xsl:with-param name="styleToPrint">lbexTocCodif</xsl:with-param> | |
| <xsl:with-param name="toPrintLineBreakInToc" | |
| select="$toPrintLineBreakInToc"/> | |
| <xsl:with-param name="additionalParam">no</xsl:with-param> | |
| <xsl:with-param name="applyTemplates">yes</xsl:with-param> | |
| </xsl:call-template> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:call-template name="createLinkWrapper"> | |
| <xsl:with-param name="styleToPrint">lbexTocDivisionOLC</xsl:with-param> | |
| <xsl:with-param name="toPrintLineBreakInToc" | |
| select="$toPrintLineBreakInToc"/> | |
| <xsl:with-param name="additionalParam">no</xsl:with-param> | |
| <xsl:with-param name="applyTemplates">yes</xsl:with-param> | |
| </xsl:call-template> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:when> | |
| <!-- TB 20Sep2007 Enum-in -header fixing in toc-entry --> | |
| <xsl:when test="@level = 'subdivision' and not(enum-in-header)"> | |
| <xsl:choose> | |
| <xsl:when test="contains($aCurrElementStyle, 'codification') and count(preceding-sibling::*[1])>0"> | |
| <xsl:choose> | |
| <xsl:when test="preceding-sibling::*/@level='division' or | |
| preceding-sibling::*/@level='title' or preceding-sibling::*/@level='subtitle'"> | |
| <xsl:call-template name="createLinkWrapper"> | |
| <xsl:with-param name="styleToPrint" | |
| >lbexTocSubDivisionOLCCodif</xsl:with-param> | |
| <xsl:with-param name="toPrintLineBreakInToc" | |
| select="$toPrintLineBreakInToc"/> | |
| <xsl:with-param name="additionalParam">yes</xsl:with-param> | |
| <xsl:with-param name="applyTemplates">no</xsl:with-param> | |
| </xsl:call-template> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:call-template name="createLinkWrapper"> | |
| <xsl:with-param name="styleToPrint" | |
| >lbexTocCodif</xsl:with-param> | |
| <xsl:with-param name="toPrintLineBreakInToc" | |
| select="$toPrintLineBreakInToc"/> | |
| <xsl:with-param name="additionalParam">yes</xsl:with-param> | |
| <xsl:with-param name="applyTemplates">no</xsl:with-param> | |
| </xsl:call-template> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:when> | |
| <xsl:when test="contains($aCurrElementStyle, 'codification') and count(preceding-sibling::*[1])=0"> | |
| <xsl:call-template name="createLinkWrapper"> | |
| <xsl:with-param name="styleToPrint" | |
| >lbexTocCodif</xsl:with-param> | |
| <xsl:with-param name="toPrintLineBreakInToc" | |
| select="$toPrintLineBreakInToc"/> | |
| <xsl:with-param name="additionalParam">yes</xsl:with-param> | |
| <xsl:with-param name="applyTemplates">no</xsl:with-param> | |
| </xsl:call-template> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:call-template name="createLinkWrapper"> | |
| <xsl:with-param name="styleToPrint" | |
| >lbexTocSubDivisionOLC</xsl:with-param> | |
| <xsl:with-param name="toPrintLineBreakInToc" | |
| select="$toPrintLineBreakInToc"/> | |
| <xsl:with-param name="additionalParam">yes</xsl:with-param> | |
| <xsl:with-param name="applyTemplates">no</xsl:with-param> | |
| </xsl:call-template> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:when> | |
| <xsl:when test="@level = 'subdivision' and enum-in-header"> | |
| <xsl:call-template name="createLinkWrapper"> | |
| <xsl:with-param name="toPrintLineBreakInToc" | |
| select="$toPrintLineBreakInToc"/> | |
| <xsl:with-param name="additionalParam">noParam</xsl:with-param> | |
| </xsl:call-template> | |
| </xsl:when> | |
| <xsl:when test="./@level = 'title'"> | |
| <xsl:call-template name="createLinkWrapper"> | |
| <xsl:with-param name="styleToPrint">lbexTocDivisionOLC</xsl:with-param> | |
| <xsl:with-param name="toPrintLineBreakInToc" | |
| select="$toPrintLineBreakInToc"/> | |
| <xsl:with-param name="applyTemplates">yes</xsl:with-param> | |
| </xsl:call-template> | |
| </xsl:when> | |
| <xsl:when test="./@level = 'subtitle' and not(enum-in-header)"> | |
| <xsl:call-template name="createLinkWrapper"> | |
| <xsl:with-param name="styleToPrint">lbexTocSubTitleOLC</xsl:with-param> | |
| <xsl:with-param name="toPrintLineBreakInToc" | |
| select="$toPrintLineBreakInToc"/> | |
| <xsl:with-param name="additionalParam">yes</xsl:with-param> | |
| <xsl:with-param name="applyTemplates">no</xsl:with-param> | |
| </xsl:call-template> | |
| </xsl:when> | |
| <xsl:when | |
| test="(./@level = 'subtitle' or @level = 'subpart') and enum-in-header"> | |
| <xsl:call-template name="createLinkWrapper"> | |
| <xsl:with-param name="toPrintLineBreakInToc" | |
| select="$toPrintLineBreakInToc"/> | |
| <xsl:with-param name="additionalParam">noParam</xsl:with-param> | |
| </xsl:call-template> | |
| </xsl:when> | |
| <xsl:when test="@level = 'chapter'"> | |
| <xsl:choose> | |
| <xsl:when test="contains($aCurrElementStyle,'codification') and count(preceding-sibling::*[1])>0"> | |
| <xsl:choose> | |
| <xsl:when test="preceding-sibling::*/@level='division'or preceding-sibling::*/@level='subdivision' or | |
| preceding-sibling::*/@level='title' or preceding-sibling::*/@level='subtitle'"> | |
| <xsl:call-template name="createLinkWrapper"> | |
| <xsl:with-param name="styleToPrint">lbexTocSubDivisionOLCCodif</xsl:with-param> | |
| <xsl:with-param name="toPrintLineBreakInToc" | |
| select="$toPrintLineBreakInToc"/> | |
| <xsl:with-param name="additionalParam">no</xsl:with-param> | |
| <xsl:with-param name="applyTemplates">yes</xsl:with-param> | |
| </xsl:call-template> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:call-template name="createLinkWrapper"> | |
| <xsl:with-param name="styleToPrint">lbexTocCodif</xsl:with-param> | |
| <xsl:with-param name="toPrintLineBreakInToc" | |
| select="$toPrintLineBreakInToc"/> | |
| <xsl:with-param name="additionalParam">no</xsl:with-param> | |
| <xsl:with-param name="applyTemplates">yes</xsl:with-param> | |
| </xsl:call-template> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:when> | |
| <xsl:when test="contains($aCurrElementStyle,'codification') and count(preceding-sibling::*[1])=0"> | |
| <xsl:call-template name="createLinkWrapper"> | |
| <xsl:with-param name="styleToPrint">lbexTocCodif</xsl:with-param> | |
| <xsl:with-param name="toPrintLineBreakInToc" | |
| select="$toPrintLineBreakInToc"/> | |
| <xsl:with-param name="additionalParam">no</xsl:with-param> | |
| <xsl:with-param name="applyTemplates">yes</xsl:with-param> | |
| </xsl:call-template> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:call-template name="createLinkWrapper"> | |
| <xsl:with-param name="styleToPrint">lbexTocDivisionOLC</xsl:with-param> | |
| <xsl:with-param name="toPrintLineBreakInToc" | |
| select="$toPrintLineBreakInToc"/> | |
| <xsl:with-param name="additionalParam">no</xsl:with-param> | |
| <xsl:with-param name="applyTemplates">yes</xsl:with-param> | |
| </xsl:call-template> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:when> | |
| <xsl:when test="@level = 'subchapter'"> | |
| <xsl:choose> | |
| <xsl:when test="contains($aCurrElementStyle,'codification') and count(preceding-sibling::*[1])>0"> | |
| <xsl:choose> | |
| <xsl:when test="preceding-sibling::*/@level='division'or preceding-sibling::*/@level='subdivision' or | |
| preceding-sibling::*/@level='title' or preceding-sibling::*/@level='subtitle' or preceding-sibling::*/@level='chapter'"> | |
| <xsl:call-template name="createLinkWrapper"> | |
| <xsl:with-param name="styleToPrint" | |
| >lbexTocSubDivisionOLCCodif</xsl:with-param> | |
| <xsl:with-param name="toPrintLineBreakInToc" | |
| select="$toPrintLineBreakInToc"/> | |
| <xsl:with-param name="additionalParam">no</xsl:with-param> | |
| <xsl:with-param name="applyTemplates">yes</xsl:with-param> | |
| </xsl:call-template> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:call-template name="createLinkWrapper"> | |
| <xsl:with-param name="styleToPrint" | |
| >lbexTocCodif</xsl:with-param> | |
| <xsl:with-param name="toPrintLineBreakInToc" | |
| select="$toPrintLineBreakInToc"/> | |
| <xsl:with-param name="additionalParam">no</xsl:with-param> | |
| <xsl:with-param name="applyTemplates">yes</xsl:with-param> | |
| </xsl:call-template> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:when> | |
| <xsl:when test="contains($aCurrElementStyle,'codification') and count(preceding-sibling::*[1])=0"> | |
| <xsl:call-template name="createLinkWrapper"> | |
| <xsl:with-param name="styleToPrint" | |
| >lbexTocCodif</xsl:with-param> | |
| <xsl:with-param name="toPrintLineBreakInToc" | |
| select="$toPrintLineBreakInToc"/> | |
| <xsl:with-param name="additionalParam">no</xsl:with-param> | |
| <xsl:with-param name="applyTemplates">yes</xsl:with-param> | |
| </xsl:call-template> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:call-template name="createLinkWrapper"> | |
| <xsl:with-param name="styleToPrint" | |
| >lbexTocSubChapterOLC</xsl:with-param> | |
| <xsl:with-param name="toPrintLineBreakInToc" | |
| select="$toPrintLineBreakInToc"/> | |
| <xsl:with-param name="additionalParam">no</xsl:with-param> | |
| <xsl:with-param name="applyTemplates">yes</xsl:with-param> | |
| </xsl:call-template> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:when> | |
| <xsl:when test="@level = 'part'"> | |
| <xsl:choose> | |
| <xsl:when test="contains($aCurrElementStyle,'codification')and count(preceding-sibling::*[1])>0"> | |
| <xsl:choose> | |
| <xsl:when test="preceding-sibling::*/@level='division'or preceding-sibling::*/@level='subdivision' or | |
| preceding-sibling::*/@level='title' or preceding-sibling::*/@level='subtitle' or preceding-sibling::*/@level='chapter' | |
| or preceding-sibling::*/@level='subchapter'"> | |
| <xsl:call-template name="createLinkWrapper"> | |
| <xsl:with-param name="styleToPrint">lbexTocSubDivisionOLCCodif</xsl:with-param> | |
| <xsl:with-param name="toPrintLineBreakInToc" | |
| select="$toPrintLineBreakInToc"/> | |
| <xsl:with-param name="additionalParam">no</xsl:with-param> | |
| <xsl:with-param name="applyTemplates">yes</xsl:with-param> | |
| </xsl:call-template> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:call-template name="createLinkWrapper"> | |
| <xsl:with-param name="styleToPrint">lbexTocCodif</xsl:with-param> | |
| <xsl:with-param name="toPrintLineBreakInToc" | |
| select="$toPrintLineBreakInToc"/> | |
| <xsl:with-param name="additionalParam">no</xsl:with-param> | |
| <xsl:with-param name="applyTemplates">yes</xsl:with-param> | |
| </xsl:call-template> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:when> | |
| <xsl:when test="contains($aCurrElementStyle,'codification') and count(preceding-sibling::*[1])=0"> | |
| <xsl:call-template name="createLinkWrapper"> | |
| <xsl:with-param name="styleToPrint">lbexTocCodif</xsl:with-param> | |
| <xsl:with-param name="toPrintLineBreakInToc" | |
| select="$toPrintLineBreakInToc"/> | |
| <xsl:with-param name="additionalParam">no</xsl:with-param> | |
| <xsl:with-param name="applyTemplates">yes</xsl:with-param> | |
| </xsl:call-template> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:call-template name="createLinkWrapper"> | |
| <xsl:with-param name="styleToPrint">lbexTocDivisionOLC</xsl:with-param> | |
| <xsl:with-param name="toPrintLineBreakInToc" | |
| select="$toPrintLineBreakInToc"/> | |
| <xsl:with-param name="additionalParam">no</xsl:with-param> | |
| <xsl:with-param name="applyTemplates">yes</xsl:with-param> | |
| </xsl:call-template> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:when> | |
| <xsl:when test="@level = 'subpart' and not(enum-in-header)"> | |
| <xsl:choose> | |
| <xsl:when test="contains($aCurrElementStyle,'codification') and count(preceding-sibling::*[1])>0"> | |
| <xsl:choose> | |
| <xsl:when test="preceding-sibling::*/@level='division'or preceding-sibling::*/@level='subdivision' or | |
| preceding-sibling::*/@level='title' or preceding-sibling::*/@level='subtitle' or preceding-sibling::*/@level='chapter' | |
| or preceding-sibling::*/@level='subchapter' or preceding-sibling::*/@level='part'"> | |
| <xsl:call-template name="createLinkWrapper"> | |
| <xsl:with-param name="styleToPrint">lbexTocSubDivisionOLCCodif</xsl:with-param> | |
| <xsl:with-param name="toPrintLineBreakInToc" | |
| select="$toPrintLineBreakInToc"/> | |
| <xsl:with-param name="additionalParam">yes</xsl:with-param> | |
| <xsl:with-param name="applyTemplates">no</xsl:with-param> | |
| </xsl:call-template> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:call-template name="createLinkWrapper"> | |
| <xsl:with-param name="styleToPrint">lbexTocCodif</xsl:with-param> | |
| <xsl:with-param name="toPrintLineBreakInToc" | |
| select="$toPrintLineBreakInToc"/> | |
| <xsl:with-param name="additionalParam">yes</xsl:with-param> | |
| <xsl:with-param name="applyTemplates">no</xsl:with-param> | |
| </xsl:call-template> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:when> | |
| <xsl:when test="contains($aCurrElementStyle,'codification') and count(preceding-sibling::*[1])=0"> | |
| <xsl:call-template name="createLinkWrapper"> | |
| <xsl:with-param name="styleToPrint">lbexTocCodif</xsl:with-param> | |
| <xsl:with-param name="toPrintLineBreakInToc" | |
| select="$toPrintLineBreakInToc"/> | |
| <xsl:with-param name="additionalParam">yes</xsl:with-param> | |
| <xsl:with-param name="applyTemplates">no</xsl:with-param> | |
| </xsl:call-template> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:call-template name="createLinkWrapper"> | |
| <xsl:with-param name="styleToPrint">lbexTocSubPartOLC</xsl:with-param> | |
| <xsl:with-param name="toPrintLineBreakInToc" | |
| select="$toPrintLineBreakInToc"/> | |
| <xsl:with-param name="additionalParam">yes</xsl:with-param> | |
| <xsl:with-param name="applyTemplates">no</xsl:with-param> | |
| <xsl:with-param name="turnToLowerOrUpper">upper</xsl:with-param> | |
| </xsl:call-template> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:if test="preceding-sibling::toc-entry[1]/@level = 'section'"> | |
| <br/> | |
| </xsl:if> | |
| <xsl:call-template name="createLinkWrapper"> | |
| <xsl:with-param name="styleToPrint">lbexTocSectionOLC</xsl:with-param> | |
| <xsl:with-param name="toPrintLineBreakInToc" | |
| select="$toPrintLineBreakInToc"/> | |
| <xsl:with-param name="additionalParam">yes</xsl:with-param> | |
| <xsl:with-param name="applyTemplates">no</xsl:with-param> | |
| </xsl:call-template> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:when> | |
| </xsl:choose> | |
| </xsl:template> | |
| <!-- *******Quoted Block******************* --> | |
| <xsl:template match="quoted-block"> | |
| <xsl:choose> | |
| <xsl:when test="./@style = 'USC'"> | |
| <div style="text-align:left"> | |
| <xsl:apply-templates/> | |
| </div> | |
| </xsl:when> | |
| <xsl:when test="section"> | |
| <div style="text-align:left"> | |
| <xsl:apply-templates/> | |
| </div> | |
| </xsl:when> | |
| <xsl:when test="parent::paragraph and child::subsection"> | |
| <xsl:apply-templates/> | |
| </xsl:when> | |
| <xsl:when test="parent::paragraph and child::paragraph/@indent = 'up1'"> | |
| <xsl:apply-templates/> | |
| </xsl:when> | |
| <xsl:when test="parent::paragraph and child::paragraph"> | |
| <xsl:apply-templates/> | |
| </xsl:when> | |
| <xsl:when test="paragraph"> | |
| <xsl:call-template name="ApplyTemplWithSimpleIndentP"/> | |
| </xsl:when> | |
| <xsl:when test="parent::subsection and child::subsection"> | |
| <xsl:apply-templates/> | |
| </xsl:when> | |
| <xsl:when | |
| test="(parent::subsection/preceding-sibling::subsection/quoted-block/paragraph/subparagraph)"> | |
| <ul> | |
| <xsl:apply-templates/> | |
| </ul> | |
| </xsl:when> | |
| <xsl:when test="parent::subsection and child::subparagraph"> | |
| <ul> | |
| <xsl:apply-templates/> | |
| </ul> | |
| </xsl:when> | |
| <xsl:when test="parent::section and child::subparagraph"> | |
| <ul> | |
| <xsl:apply-templates/> | |
| </ul> | |
| </xsl:when> | |
| <xsl:when test="parent::paragraph and child::subparagraph[@indent = 'up2']"> | |
| <xsl:apply-templates/> | |
| </xsl:when> | |
| <xsl:when test="parent::paragraph and child::subparagraph[@indent = 'up1']"> | |
| <xsl:apply-templates/> | |
| </xsl:when> | |
| <xsl:when test="parent::paragraph and child::subparagraph"> | |
| <ul> | |
| <xsl:apply-templates/> | |
| </ul> | |
| </xsl:when> | |
| <xsl:when test="parent::subparagraph and child::subparagraph"> | |
| <xsl:apply-templates/> | |
| </xsl:when> | |
| <xsl:when test="parent::clause and child::subparagraph"> | |
| <xsl:apply-templates/> | |
| </xsl:when> | |
| <xsl:when test="parent::paragraph and child::clause"> | |
| <ul> | |
| <xsl:apply-templates/> | |
| </ul> | |
| </xsl:when> | |
| <xsl:when test="parent::section and child::clause"> | |
| <ul> | |
| <ul> | |
| <xsl:apply-templates/> | |
| </ul> | |
| </ul> | |
| </xsl:when> | |
| <xsl:when test="parent::paragraph and child::subclause"> | |
| <ul> | |
| <ul> | |
| <ul> | |
| <xsl:apply-templates/> | |
| </ul> | |
| </ul> | |
| </ul> | |
| </xsl:when> | |
| <xsl:when test="subparagraph"> | |
| <ul> | |
| <xsl:apply-templates/> | |
| </ul> | |
| </xsl:when> | |
| <xsl:when test="./@style = 'tax' and child::toc"> | |
| <!-- TB June 2012 bug fixing #1262 --> | |
| <!--ul> | |
| <ul> | |
| <ul> | |
| <ul--> | |
| <span class="lbexHang"> | |
| <xsl:apply-templates/> | |
| </span> | |
| <!--/ul> | |
| </ul> | |
| </ul> | |
| </ul--> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:apply-templates/> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:template> | |
| <xsl:template match="subitem"> | |
| <!-- TB Aug 2016 bug fixing 1434 --> | |
| <xsl:call-template name="printSectionAndDownStructure"> | |
| <xsl:with-param name="thePrintingTemplate">displaySubitem</xsl:with-param> | |
| </xsl:call-template> | |
| </xsl:template> | |
| <xsl:template name="displaySubitem"> | |
| <!-- TB Apr-18-2019 --> | |
| <xsl:variable name="appropReportedStyle"> | |
| <xsl:call-template name="getAppropriationReportingStyle"/> | |
| </xsl:variable> | |
| <!-- END TB Apr-18-2019 --> | |
| <xsl:choose> | |
| <xsl:when test="@display-inline = 'yes-display-inline'"> | |
| <!-- TB aug 2012 Bug fixing #1270 --> | |
| <xsl:if test="parent::quoted-block and not(preceding-sibling::*)"> | |
| <xsl:call-template name="openQuotes"/> | |
| </xsl:if> | |
| <xsl:apply-templates/> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:variable name="indentLevel"> | |
| <xsl:call-template name="defineIndentation"> | |
| <xsl:with-param name="aLevelElement">subitem</xsl:with-param> | |
| </xsl:call-template> | |
| </xsl:variable> | |
| <!-- TB 1Feb2012 one more paragraph with back to zero indentation applied - to support | |
| indentation in Firefox. transparent for other browsers --> | |
| <xsl:variable name="bringIndentToZeroAttr"> | |
| <xsl:call-template name="zeroindentlevel"> | |
| <xsl:with-param name="aLevelToIndent"> | |
| <xsl:value-of select="$indentLevel"/> | |
| </xsl:with-param> | |
| </xsl:call-template> | |
| </xsl:variable> | |
| <p> | |
| <xsl:attribute name="style"> | |
| <xsl:value-of select="$bringIndentToZeroAttr"/> | |
| </xsl:attribute> | |
| <p> | |
| <xsl:attribute name="class"> | |
| <xsl:value-of select="$indentLevel"/> | |
| </xsl:attribute> | |
| <xsl:if | |
| test="@commented = 'yes' or contains(ancestor::quoted-block/@reported-display-style, 'brackets')"> | |
| <xsl:call-template name="openBracketStyles"/> | |
| </xsl:if> | |
| <xsl:if test="ancestor::quoted-block"> | |
| <xsl:call-template name="openQuotes"/> | |
| </xsl:if> | |
| <!-- TB Apr-18-2019 --> | |
| <xsl:choose> | |
| <xsl:when test="$appropReportedStyle = 'strikethrough'"> | |
| <span class="lbexTextStrikethrough"> | |
| <xsl:apply-templates/> | |
| </span> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:apply-templates/> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| <!--xsl:apply-templates/--> | |
| <!-- END TB Apr-18-2019 --> | |
| <xsl:if test="@commented = 'yes'"> | |
| <xsl:call-template name="closedBracketStyles"/> | |
| </xsl:if> | |
| </p> | |
| </p> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:template> | |
| <xsl:template match="constitution-article"> | |
| <p style="text-align:left"> | |
| <div style="text-align:center"> | |
| <xsl:if | |
| test="parent::quoted-block/@style = 'traditional' or parent::quoted-block/@style = 'constitutional-amendment'"> | |
| <xsl:call-template name="openQuotes"/> | |
| <span class="lbexSectionLevelOLCnuclear"> | |
| <xsl:text>article </xsl:text> | |
| </span> | |
| <xsl:apply-templates select="enum"/> | |
| </xsl:if> | |
| </div> | |
| <xsl:apply-templates select="section"/> | |
| </p> | |
| </xsl:template> | |
| <!--*****beginning of cont-text***--> | |
| <!-- ******************************************************************************************************************* --> | |
| <xsl:template match="continuation-text"> | |
| <xsl:call-template name="ContinuationText"/> | |
| </xsl:template> | |
| <!-- **************************Continuation Text*********************************** --> | |
| <xsl:template name="ContinuationText"> | |
| <xsl:variable name="continuationTextLevel"> | |
| <xsl:choose> | |
| <xsl:when test="./@quoted-block-continuation-text-level"> | |
| <xsl:value-of select="./@quoted-block-continuation-text-level"/> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:value-of select="./@continuation-text-level"/> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:variable> | |
| <xsl:choose> | |
| <xsl:when test="$continuationTextLevel = 'section'"> | |
| <p/> | |
| <span class="lbexNonIndentSubsection"> | |
| <xsl:call-template name="ActualPrintContinuationText"/> | |
| </span> | |
| </xsl:when> | |
| <xsl:when test="$continuationTextLevel = 'subsection'"> | |
| <p/> | |
| <span class="lbexNonIndentSubsection"> | |
| <xsl:call-template name="ActualPrintContinuationText"/> | |
| </span> | |
| </xsl:when> | |
| <xsl:when test="contains($continuationTextLevel, 'appropriations')"> | |
| <p/> | |
| <span class="lbexNonIndentSubsection"> | |
| <xsl:call-template name="ActualPrintContinuationText"/> | |
| </span> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:variable name="indentLevel"> | |
| <xsl:call-template name="defineIndentation"> | |
| <xsl:with-param name="aLevelElement" select="$continuationTextLevel"/> | |
| </xsl:call-template> | |
| </xsl:variable> | |
| <p> | |
| <xsl:attribute name="class"> | |
| <xsl:value-of | |
| select="concat('lbexNon', substring-after($indentLevel, 'lbex'))"/> | |
| </xsl:attribute> | |
| <xsl:call-template name="ActualPrintContinuationText"/> | |
| </p> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:template> | |
| <!--******** Actual Print continuation text********************--> | |
| <xsl:template name="ActualPrintContinuationText"> | |
| <xsl:if test="ancestor::quoted-block and not(preceding-sibling::*)"> | |
| <xsl:call-template name="openQuotes"/> | |
| </xsl:if> | |
| <xsl:variable name="appropriationReportedStyle"> | |
| <xsl:call-template name="getAppropriationReportingStyle"/> | |
| </xsl:variable> | |
| <xsl:choose> | |
| <xsl:when test="$appropriationReportedStyle = 'strikethrough'"> | |
| <span class="lbexTextStrikethrough"> | |
| <xsl:apply-templates/> | |
| </span> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:apply-templates/> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| <xsl:if | |
| test="$appropriationReportedStyle = 'bold-brackets' or $appropriationReportedStyle = 'brackets-bold-italic' or $appropriationReportedStyle = 'brackets-bold-roman'"> | |
| <!-- and the next node is not inline --> | |
| <xsl:variable name="toCloseBrackets"> | |
| <xsl:call-template name="toCloseTheBrakets"/> | |
| </xsl:variable> | |
| <xsl:if test="$toCloseBrackets = 'yes'"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>]</xsl:text> | |
| </span> | |
| </xsl:if> | |
| </xsl:if> | |
| <!--/div--> | |
| </xsl:template> | |
| <!-- ************** Clause ***************************************** --> | |
| <xsl:template match="clause"> | |
| <!-- TB Aug 2016 bug fixing 1434 --> | |
| <xsl:call-template name="printSectionAndDownStructure"> | |
| <xsl:with-param name="thePrintingTemplate">displayClause</xsl:with-param> | |
| </xsl:call-template> | |
| </xsl:template> | |
| <xsl:template name="displayClause"> | |
| <xsl:variable name="appropReportedStyle"> | |
| <xsl:call-template name="getAppropriationReportingStyle"/> | |
| </xsl:variable> | |
| <xsl:call-template name="createAnchor"/> | |
| <xsl:choose> | |
| <xsl:when test="(@display-inline = 'yes-display-inline')"> | |
| <xsl:if test="@commented = 'yes'"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>[</xsl:text> | |
| </span> | |
| </xsl:if> | |
| <!-- TB aug 2012 Bug fixing #1270 --> | |
| <xsl:if test="parent::quoted-block and not(preceding-sibling::*)"> | |
| <xsl:call-template name="openQuotes"/> | |
| </xsl:if> | |
| <xsl:apply-templates/> | |
| <xsl:if test="@commented = 'yes'"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>]</xsl:text> | |
| </span> | |
| </xsl:if> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:variable name="indentLevel"> | |
| <xsl:call-template name="defineIndentation"> | |
| <xsl:with-param name="aLevelElement">clause</xsl:with-param> | |
| </xsl:call-template> | |
| </xsl:variable> | |
| <!-- TB 1Feb2012 one more paragraph with back to zero indentation applied - to support | |
| indentation in Firefox. transparent for other browsers --> | |
| <xsl:variable name="bringIndentToZeroAttr"> | |
| <xsl:call-template name="zeroindentlevel"> | |
| <xsl:with-param name="aLevelToIndent"> | |
| <xsl:value-of select="$indentLevel"/> | |
| </xsl:with-param> | |
| </xsl:call-template> | |
| </xsl:variable> | |
| <p> | |
| <xsl:attribute name="style"> | |
| <xsl:value-of select="$bringIndentToZeroAttr"/> | |
| </xsl:attribute> | |
| <p> | |
| <xsl:attribute name="class"> | |
| <xsl:value-of select="$indentLevel"/> | |
| </xsl:attribute> | |
| <xsl:if | |
| test="contains($appropReportedStyle, 'brackets') or @commented = 'yes'"> | |
| <xsl:call-template name="openBracketStyles"/> | |
| </xsl:if> | |
| <xsl:if test="ancestor::quoted-block"> | |
| <xsl:call-template name="openQuotes"/> | |
| </xsl:if> | |
| <xsl:choose> | |
| <xsl:when test="$appropReportedStyle = 'strikethrough'"> | |
| <span class="lbexTextStrikethrough"> | |
| <xsl:apply-templates/> | |
| </span> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:apply-templates/> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| <xsl:variable name="isToCloseTheBrackets"> | |
| <xsl:call-template name="toCloseTheBrakets"/> | |
| </xsl:variable> | |
| <xsl:choose> | |
| <!-- Check in aditional that this is the last element in deleted block --> | |
| <xsl:when | |
| test="(contains($appropReportedStyle, 'brackets') and child::text and $isToCloseTheBrackets = 'yes')"> | |
| <xsl:text/> | |
| </xsl:when> | |
| <xsl:when | |
| test="(contains($appropReportedStyle, 'brackets') and $isToCloseTheBrackets = 'yes')"> | |
| <xsl:call-template name="closedBracketStyles"/> | |
| </xsl:when> | |
| </xsl:choose> | |
| <xsl:choose> | |
| <xsl:when | |
| test="@commented = 'yes' and (child::text or child::*/@commented = 'yes') and local-name() = 'clause'"> </xsl:when> | |
| <xsl:when test="@commented = 'yes' and not(child::text)"> | |
| <xsl:call-template name="closedBracketStyles"/> | |
| </xsl:when> | |
| </xsl:choose> | |
| </p> | |
| </p> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:template> | |
| <xsl:template match="subclause"> | |
| <!-- TB Aug 2016 bug fixing 1434 --> | |
| <xsl:call-template name="printSectionAndDownStructure"> | |
| <xsl:with-param name="thePrintingTemplate">displaySubclause</xsl:with-param> | |
| </xsl:call-template> | |
| </xsl:template> | |
| <xsl:template name="displaySubclause"> | |
| <xsl:call-template name="createAnchor"/> | |
| <xsl:variable name="appropReportedStyle"> | |
| <xsl:call-template name="getAppropriationReportingStyle"/> | |
| </xsl:variable> | |
| <xsl:choose> | |
| <xsl:when test="./@display-inline = 'yes-display-inline'"> | |
| <xsl:if test="@commented = 'yes'"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>[</xsl:text> | |
| </span> | |
| </xsl:if> | |
| <!-- TB aug 2012 Bug fixing #1270 --> | |
| <xsl:if test="parent::quoted-block and not(preceding-sibling::*)"> | |
| <xsl:call-template name="openQuotes"/> | |
| </xsl:if> | |
| <xsl:apply-templates/> | |
| <xsl:if test="@commented = 'yes'"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>]</xsl:text> | |
| </span> | |
| </xsl:if> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:variable name="indentLevel"> | |
| <xsl:call-template name="defineIndentation"> | |
| <xsl:with-param name="aLevelElement">subclause</xsl:with-param> | |
| </xsl:call-template> | |
| </xsl:variable> | |
| <!-- TB 1Feb2012 one more paragraph with back to zero indentation applied - to support | |
| indentation in Firefox. transparent for other browsers --> | |
| <xsl:variable name="bringIndentToZeroAttr"> | |
| <xsl:call-template name="zeroindentlevel"> | |
| <xsl:with-param name="aLevelToIndent"> | |
| <xsl:value-of select="$indentLevel"/> | |
| </xsl:with-param> | |
| </xsl:call-template> | |
| </xsl:variable> | |
| <p> | |
| <xsl:attribute name="style"> | |
| <xsl:value-of select="$bringIndentToZeroAttr"/> | |
| </xsl:attribute> | |
| <p> | |
| <xsl:attribute name="class"> | |
| <xsl:value-of select="$indentLevel"/> | |
| </xsl:attribute> | |
| <xsl:if | |
| test="contains($appropReportedStyle, 'brackets') or @commented = 'yes'"> | |
| <xsl:call-template name="openBracketStyles"/> | |
| </xsl:if> | |
| <xsl:if test="ancestor::quoted-block"> | |
| <xsl:call-template name="openQuotes"/> | |
| </xsl:if> | |
| <!-- TB Apr-18-2019 --> | |
| <xsl:choose> | |
| <xsl:when test="$appropReportedStyle = 'strikethrough'"> | |
| <span class="lbexTextStrikethrough"> | |
| <xsl:apply-templates/> | |
| </span> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:apply-templates/> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| <!--xsl:apply-templates/--> | |
| <!-- END TB Apr-18-2019 --> | |
| <xsl:variable name="isToCloseTheBrackets"> | |
| <xsl:call-template name="toCloseTheBrakets"/> | |
| </xsl:variable> | |
| <xsl:choose> | |
| <!-- Check in aditional that this is the last element in deleted block --> | |
| <xsl:when | |
| test="(contains($appropReportedStyle , 'brackets') and child::text and $isToCloseTheBrackets = 'yes')"> | |
| <xsl:text></xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="(contains($appropReportedStyle , 'brackets') and $isToCloseTheBrackets = 'yes')"> | |
| <xsl:call-template name="closedBracketStyles"/> | |
| </xsl:when> | |
| </xsl:choose> | |
| <xsl:choose> | |
| <xsl:when | |
| test="@commented = 'yes' and (child::text or child::*/@commented = 'yes') and local-name() = 'subclause'"> </xsl:when> | |
| <xsl:when test="@commented = 'yes' and not(child::text)"> | |
| <xsl:call-template name="closedBracketStyles"/> | |
| </xsl:when> | |
| </xsl:choose> | |
| </p> | |
| </p> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:template> | |
| <xsl:template match="item"> | |
| <!-- TB Aug 2016 bug fixing 1434 --> | |
| <xsl:call-template name="printSectionAndDownStructure"> | |
| <xsl:with-param name="thePrintingTemplate">displayItem</xsl:with-param> | |
| </xsl:call-template> | |
| </xsl:template> | |
| <xsl:template name="displayItem"> | |
| <!-- TB Apr-18-2019 --> | |
| <xsl:variable name="appropReportedStyle"> | |
| <xsl:call-template name="getAppropriationReportingStyle"/> | |
| </xsl:variable> | |
| <!-- END TB Apr-18-2019 --> | |
| <xsl:call-template name="createAnchor"/> | |
| <xsl:choose> | |
| <xsl:when test="@display-inline = 'yes-display-inline'"> | |
| <!-- TB aug 2012 Bug fixing #1270 --> | |
| <xsl:if test="parent::quoted-block and not(preceding-sibling::*)"> | |
| <xsl:call-template name="openQuotes"/> | |
| </xsl:if> | |
| <xsl:apply-templates/> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:variable name="indentLevel"> | |
| <xsl:call-template name="defineIndentation"> | |
| <xsl:with-param name="aLevelElement">item</xsl:with-param> | |
| </xsl:call-template> | |
| </xsl:variable> | |
| <!-- TB 1Feb2012 one more paragraph with back to zero indentation applied - to support | |
| indentation in Firefox. transparent for other browsers --> | |
| <xsl:variable name="bringIndentToZeroAttr"> | |
| <xsl:call-template name="zeroindentlevel"> | |
| <xsl:with-param name="aLevelToIndent"> | |
| <xsl:value-of select="$indentLevel"/> | |
| </xsl:with-param> | |
| </xsl:call-template> | |
| </xsl:variable> | |
| <p> | |
| <xsl:attribute name="style"> | |
| <xsl:value-of select="$bringIndentToZeroAttr"/> | |
| </xsl:attribute> | |
| <p> | |
| <xsl:attribute name="class"> | |
| <xsl:value-of select="$indentLevel"/> | |
| </xsl:attribute> | |
| <xsl:if | |
| test="@commented = 'yes' or contains(ancestor::quoted-block/@reported-display-style, 'brackets')"> | |
| <xsl:call-template name="openBracketStyles"/> | |
| </xsl:if> | |
| <xsl:if test="ancestor::quoted-block"> | |
| <xsl:call-template name="openQuotes"/> | |
| </xsl:if> | |
| <!-- TB Apr-18-2019 --> | |
| <xsl:choose> | |
| <xsl:when test="$appropReportedStyle = 'strikethrough'"> | |
| <span class="lbexTextStrikethrough"> | |
| <xsl:apply-templates/> | |
| </span> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:apply-templates/> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| <!--xsl:apply-templates/--> | |
| <!-- END TB Apr-18-2019 --> | |
| <xsl:if test="@commented = 'yes'"> | |
| <xsl:call-template name="closedBracketStyles"/> | |
| </xsl:if> | |
| </p> | |
| </p> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:template> | |
| <xsl:template match="quote/quote"> | |
| <span class="lbexThinSpace"> | |
| <xsl:text> </xsl:text> | |
| </span> | |
| <xsl:text>‘</xsl:text> | |
| <xsl:apply-templates/> | |
| <xsl:text>’</xsl:text> | |
| </xsl:template> | |
| <xsl:template match="quote"> | |
| <xsl:if | |
| test="local-name(preceding-sibling::*[1]) = 'deleted-phrase' and preceding-sibling::*[1]/@reported-display-style = 'bold-brackets'"> | |
| <xsl:text> </xsl:text> | |
| </xsl:if> | |
| <xsl:choose> | |
| <!--TASK#11394 FY2020--> | |
| <xsl:when test="child::short-title "> | |
| <xsl:call-template name="printQuotedText"/> | |
| <xsl:choose> | |
| <xsl:when test="ancestor::quoted-block"> | |
| <xsl:choose> | |
| <xsl:when test="ancestor::quoted-block/@other-style='codification-quoted' or not(ancestor::quoted-block/@other-style)"> | |
| <xsl:text>’</xsl:text> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:text>”</xsl:text> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:text>”</xsl:text> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:when> | |
| <xsl:when test="parent::continuation-text or ancestor::quoted-block"> | |
| <xsl:text>‘</xsl:text> | |
| <xsl:apply-templates/> | |
| <xsl:text>’</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="count(ancestor::quote)+count(current())>1"> | |
| <xsl:call-template name="printQuotedText"/> | |
| <xsl:text>’</xsl:text> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:call-template name="printQuotedText"/> | |
| <xsl:text>”</xsl:text> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| <!--xsl:if | |
| test="local-name(following-sibling::*[1]) = 'deleted-phrase' and following-sibling::*[1]/@reported-display-style='bold-brackets'"--> | |
| <xsl:if | |
| test="contains(following-sibling::*[1]/@reported-display-style, 'brackets') or contains(following-sibling::*[1]/@reported-display-style, 'parentheses') or contains(following-sibling::*[1]/@commented, 'yes')"> | |
| <!--xsl:text> </xsl:text--> | |
| <xsl:variable name="isNoTextFollowing"> | |
| <xsl:call-template name="noTextInBetween"> | |
| <xsl:with-param name="aFirstPartText"> | |
| <xsl:value-of select="normalize-space(.)"/> | |
| </xsl:with-param> | |
| <xsl:with-param name="aSecondPartText"> | |
| <xsl:value-of select="normalize-space(following-sibling::*[1]/text())"/> | |
| </xsl:with-param> | |
| </xsl:call-template> | |
| </xsl:variable> | |
| <xsl:if test="$isNoTextFollowing = 'true'"> | |
| <xsl:text> </xsl:text> | |
| </xsl:if> | |
| </xsl:if> | |
| </xsl:template> | |
| <!-- TB 5May2010 I was absolutely unable to cach this text by normal model. Have to wrote this template to parse the text --> | |
| <xsl:template name="noTextInBetween"> | |
| <xsl:param name="aFirstPartText"/> | |
| <xsl:param name="aSecondPartText"/> | |
| <xsl:variable name="aWholeText"> | |
| <xsl:for-each select="parent::node()"> | |
| <xsl:value-of select="."/> | |
| </xsl:for-each> | |
| </xsl:variable> | |
| <xsl:variable name="stringPartToProceed_1"> | |
| <xsl:value-of select="normalize-space(substring-before($aWholeText, $aSecondPartText))" | |
| /> | |
| </xsl:variable> | |
| <xsl:variable name="stringInBetween"> | |
| <xsl:value-of | |
| select="substring-after($stringPartToProceed_1, normalize-space($aFirstPartText))"/> | |
| </xsl:variable> | |
| <xsl:choose> | |
| <xsl:when test="normalize-space($stringInBetween) = ''"> | |
| <xsl:text>true</xsl:text> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:text>false</xsl:text> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:template> | |
| <xsl:template match="term"> | |
| <xsl:choose> | |
| <xsl:when test="parent::quote or ancestor::quoted-block"> | |
| <xsl:text>‘</xsl:text> | |
| <xsl:apply-templates/> | |
| <xsl:text>’</xsl:text> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:call-template name="printQuotedText"/> | |
| <xsl:text>”</xsl:text> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:template> | |
| <xsl:template match="enum-in-header"> | |
| <xsl:variable name="currentElementStyle"> | |
| <xsl:call-template name="getCurrentElementStyle"/> | |
| </xsl:variable> | |
| <xsl:choose> | |
| <xsl:when | |
| test=" | |
| parent::header-in-text[@level = 'section' or @level = 'division' | |
| or @level = 'part' or @level = 'chapter' or @level = 'subpart' or @level = 'subchapter']"> | |
| <span class="lbexTitleLevelOLC"> | |
| <xsl:value-of select="."/> | |
| </span> | |
| </xsl:when> | |
| <xsl:when | |
| test="../parent::section and ../parent::section/header/enum-in-header and $currentElementStyle = 'tax'"> | |
| <span class="lbexTextNormalBold"> | |
| <xsl:value-of select="."/> | |
| </span> | |
| </xsl:when> | |
| <xsl:when | |
| test="../parent::section and ../parent::section/header/enum-in-header and $currentElementStyle = 'OLC'"> | |
| <span class="lbexSectionlevelOLC"> | |
| <xsl:value-of select="."/> | |
| </span> | |
| </xsl:when> | |
| <xsl:when | |
| test="../parent::section and ../parent::section/header/enum-in-header and $currentElementStyle != 'traditional'"> | |
| <span class="lbexSmallTextNormal"> | |
| <xsl:value-of select="."/> | |
| </span> | |
| </xsl:when> | |
| <xsl:when | |
| test="../parent::section and ../parent::section/header/enum-in-header and $currentElementStyle = 'traditional'"> | |
| <span class="lbexTextNormal"> | |
| <xsl:value-of select="."/> | |
| </span> | |
| </xsl:when> | |
| <xsl:when test="parent::toc-entry[@level = 'subdivision' or @level = 'subtitle']"> | |
| <span style="text-transform:none;font-variant: normal;"> | |
| <xsl:value-of select="."/> | |
| </span> | |
| </xsl:when> | |
| <xsl:when | |
| test="$currentElementStyle = 'OLC' or $currentElementStyle = 'traditional' or $currentElementStyle = 'tax' or $currentElementStyle = 'nuclear' or $currentElementStyle = 'traditional-inline' or $currentElementStyle = 'archaic-paragraph'"> | |
| <span class="lbexTextNormal"> | |
| <xsl:value-of select="."/> | |
| </span> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <span class="lbexTextNormal"> | |
| <xsl:value-of select="."/> | |
| </span> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:template> | |
| <xsl:template match="header-in-text"> | |
| <xsl:variable name="preCurrElementStyle"> | |
| <xsl:choose> | |
| <!--commented by TB 30July2009 becasue on the web the default value alwasy exists -> and it gives OLC style all the time--> | |
| <xsl:when test="@style and @style != 'other'"> | |
| <xsl:value-of select="@style"/> | |
| </xsl:when> | |
| <xsl:when test="@style and @style = 'other'"> | |
| <xsl:value-of select="@other-style"/> | |
| </xsl:when> | |
| </xsl:choose> | |
| </xsl:variable> | |
| <xsl:variable name="currElementStyle"> | |
| <xsl:choose> | |
| <xsl:when test="$preCurrElementStyle != 'OLC'"> | |
| <!-- I want to exclude the default from that. It will be still some problems sometimes, where it will be defined - but the number of problems will be eliminated --> | |
| <xsl:value-of select="$preCurrElementStyle"/> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:call-template name="getCurrentElementStyle"/> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:variable> | |
| <xsl:call-template name="ActualPrintHeaderInText"> | |
| <xsl:with-param name="styleToPrint" select="$currElementStyle"/> | |
| </xsl:call-template> | |
| </xsl:template> | |
| <xsl:template name="ActualPrintHeaderInText"> | |
| <xsl:param name="styleToPrint"/> | |
| <xsl:variable name="printItalicTextForReport"> | |
| <xsl:call-template name="IsPrintItalicTextForReport"/> | |
| </xsl:variable> | |
| <xsl:variable name="classToPrint"> | |
| <xsl:call-template name="getHeaderInTextClass"> | |
| <xsl:with-param name="aStyle" select="$styleToPrint"/> | |
| <xsl:with-param name="aLevel" select="@level"/> | |
| </xsl:call-template> | |
| </xsl:variable> | |
| <xsl:variable name="toBeNeutralized"> | |
| <xsl:call-template name="isNeutralizeSegment"/> | |
| </xsl:variable> | |
| <xsl:variable name="neutralBlockClassName"> | |
| <xsl:call-template name="getNeutralBlockClassName"/> | |
| </xsl:variable> | |
| <xsl:variable name="neutralInlineClassName"> | |
| <xsl:call-template name="getNeutralInlineClassName"/> | |
| </xsl:variable> | |
| <xsl:if test="$classToPrint != 'lowLevel'"> | |
| <span> | |
| <xsl:attribute name="class"> | |
| <xsl:value-of select="$classToPrint"/> | |
| </xsl:attribute> | |
| <xsl:choose> | |
| <xsl:when test="$printItalicTextForReport = 'yes'"> | |
| <i> | |
| <xsl:if test="$toBeNeutralized = 'yes'"> | |
| <xsl:attribute name="class"> | |
| <xsl:value-of select="$neutralInlineClassName"/> | |
| </xsl:attribute> | |
| </xsl:if> | |
| <xsl:apply-templates/> | |
| </i> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:apply-templates/> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </span> | |
| </xsl:if> | |
| <xsl:if test="$classToPrint = 'lowLevel'"> | |
| <xsl:call-template name="headerInTextLowerlevels"> | |
| <xsl:with-param name="printReportItalic" select="$printItalicTextForReport"/> | |
| </xsl:call-template> | |
| </xsl:if> | |
| </xsl:template> | |
| <xsl:template name="getHeaderInTextClass"> | |
| <xsl:param name="aStyle"/> | |
| <xsl:param name="aLevel"/> | |
| <xsl:choose> | |
| <!-- OLC --> | |
| <xsl:when | |
| test="$aStyle = 'OLC' and ($aLevel = 'title' or $aLevel = 'chapter' or $aLevel = 'division' or $aLevel = 'subdivision')"> | |
| <xsl:text>lbexTitleLevelTradIn</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="$aStyle = 'OLC' and ($aLevel = 'subtitle' or $aLevel = 'subchapter' or $aLevel = 'subpart')"> | |
| <xsl:text>lbexSubChapterLevelOLC</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="$aStyle = 'OLC' and ($aLevel = 'part' or $aLevel = 'section')"> | |
| <xsl:text>lbexSectionLevelIRCEx</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="$aStyle = 'OLC' and $aLevel = 'subsection'"> | |
| <xsl:text>lbexSectionLevelOLCnuclear</xsl:text> | |
| </xsl:when> | |
| <!-- Traditional - traditional inline - approbpriations --> | |
| <xsl:when | |
| test="((contains($aStyle, 'traditional') or $aStyle = 'appropriations') and $aLevel = 'title') or ($aLevel = 'subchapter' and $aStyle = 'traditional') or ($aLevel = 'division' and $aStyle = 'traditional')"> | |
| <xsl:text>lbexHeaderAppropMajor</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="(contains($aStyle, 'traditional') or $aStyle = 'appropriations') and ($aLevel = 'division' and ($aStyle = 'traditional-inline' or $aStyle = 'appropriations'))"> | |
| <xsl:text>lbexTitleLevelTradIn</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="(contains($aStyle, 'traditional') or $aStyle = 'appropriations') and ($aLevel = 'subtitle' or $aLevel = 'subpart' or ($aLevel = 'subdivision' and $aStyle = 'traditional'))"> | |
| <xsl:text>lbexSubTitleLevelTrad</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="(contains($aStyle, 'traditional') or $aStyle = 'appropriations') and ($aLevel = 'subdivision' and ($aStyle = 'traditional-inline' or $aStyle = 'appropriations'))"> | |
| <xsl:text>lbexSubChapterLevelOLC</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="$aLevel = 'chapter' and $aStyle = 'traditional'"> | |
| <xsl:text>lbexTitleLevelTradIn</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="$aLevel = 'chapter' and ($aStyle = 'traditional-inline' or $aStyle = 'appropriations')"> | |
| <xsl:text>lbexTitleLevelTradEx</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="$aLevel = 'subchapter' and ($aStyle = 'traditional-inline' or $aStyle = 'appropriations')"> | |
| <xsl:text>lbexSubTitleLevelTrad</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="(contains($aStyle, 'traditional') or $aStyle = 'appropriations') and $aLevel = 'part'"> | |
| <xsl:text>lbexPartlevelTrad</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="(contains($aStyle, 'traditional') or $aStyle = 'appropriations') and $aLevel = 'section'"> | |
| <xsl:text>lbexAllcapnormal</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="(contains($aStyle, 'traditional') or $aStyle = 'appropriations') and $aLevel = 'subsection'"> | |
| <xsl:text>lbexSectionLevelOLCnuclear</xsl:text> | |
| </xsl:when> | |
| <!-- USC and Tax --> | |
| <xsl:when | |
| test="($aStyle = 'USC' or $aStyle = 'tax') and ($aLevel = 'title' or $aLevel = 'chapter' or $aLevel = 'part' or $aLevel = 'division' or $aLevel = 'subdivision')"> | |
| <xsl:text>lbexTitleLevelTradIn</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="($aStyle = 'USC') and $aLevel = 'subchapter'"> | |
| <xsl:text>lbexHeaderAppropMajor</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="($aStyle = 'tax') and $aLevel = 'subchapter'"> | |
| <xsl:text>lbexSubChapterLevelOLC</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="($aStyle = 'USC' or $aStyle = 'tax') and ($aLevel = 'subtitle' or $aLevel = 'subpart')"> | |
| <xsl:text>lbexSubChapterLevelOLC</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="$aStyle = 'USC' and $aLevel = 'section'"> | |
| <xsl:text>lbexSectionlevelOLCBold</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="$aStyle = 'tax' and $aLevel = 'section'"> | |
| <xsl:text>lbexSectionLevelIRCEx</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="($aStyle = 'USC' or $aStyle = 'tax') and $aLevel = 'subsection'"> | |
| <xsl:text>lbexSectionLevelOLCnuclear</xsl:text> | |
| </xsl:when> | |
| <!-- Archaic and Archaic Paragraph --> | |
| <xsl:when | |
| test="contains($aStyle, 'archaic') and ($aLevel = 'title' or $aLevel = 'division' or $aLevel = 'subchapter')"> | |
| <xsl:text>lbexHeaderAppropMajor</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="contains($aStyle, 'archaic') and ($aLevel = 'subtitle' or $aLevel = 'subdivision')"> | |
| <xsl:text>lbexSubTitleLevelTrad</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="contains($aStyle, 'archaic') and $aLevel = 'chapter'"> | |
| <xsl:text>lbexTitleLevelTradIn</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="contains($aStyle, 'archaic') and $aLevel = 'part'"> | |
| <xsl:text>lbexPartlevelTrad</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="contains($aStyle, 'archaic') and $aLevel = 'subpart'"> | |
| <xsl:text>lbexSubTitleLevelTrad</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="contains($aStyle, 'archaic') and $aLevel = 'section'"> | |
| <xsl:text>lbexAllcapnormal</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="contains($aStyle, 'archaic') and $aLevel = 'subsection'"> | |
| <xsl:text>lbexSubTitleLevelTrad</xsl:text> | |
| </xsl:when> | |
| <!-- appropriations --> | |
| <xsl:when test="$aLevel = 'appropriations-major'"> | |
| <xsl:text>lbexHeaderAppropMajor</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="$aLevel = 'appropriations-intermediate'"> | |
| <xsl:text>lbexPartlevelTrad</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="$aLevel = 'appropriations-small'"> | |
| <xsl:text>lbexAllcapnormal</xsl:text> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <!--xsl:text>allcapnormal</xsl:text--> | |
| <xsl:text>lowLevel</xsl:text> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:template> | |
| <xsl:template match="italic"> | |
| <i> | |
| <xsl:apply-templates/> | |
| </i> | |
| </xsl:template> | |
| <xsl:template match="fraction"> | |
| <xsl:choose> | |
| <xsl:when test="contains(., '/')"> | |
| <font size="2"> | |
| <sup> | |
| <xsl:value-of select="substring-before(., '/')"/> | |
| </sup> | |
| </font> | |
| <xsl:text>⁄</xsl:text> | |
| <font size="1"> | |
| <xsl:value-of select="substring-after(., '/')"/> | |
| <xsl:text> </xsl:text> | |
| </font> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:value-of select="."/> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:template> | |
| <xsl:template match="pre-form"> | |
| <xsl:if test="not(@display = 'no')"> | |
| <!---FY2020 Bug--> | |
| <xsl:apply-templates select="signature-line"/> | |
| <!-- TB 27Dec2007 running header --> | |
| <xsl:apply-templates select="first-page-header"/> | |
| <xsl:apply-templates select="first-page-date"/> | |
| <xsl:if test="not(//committee-report)"> | |
| <xsl:apply-templates select="first-page-desc"/> | |
| </xsl:if> | |
| </xsl:if> | |
| <xsl:if test="suspension-floor-action"> | |
| <xsl:apply-templates select="suspension-floor-action"/> | |
| </xsl:if> | |
| <xsl:if test="suspension-instructions"> | |
| <xsl:apply-templates select="suspension-instructions"/> | |
| </xsl:if> | |
| </xsl:template> | |
| <!-- FY2020 Signature-line --> | |
| <xsl:template match="signature-line"> | |
| <xsl:choose> | |
| <xsl:when test="$isReport = 'yes'"> | |
| <!-- nothing --> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:if | |
| test="(@display = 'yes' or not(@display)) and not($amendType = 'engrossed-amendment')"> | |
| <!--xsl:if | |
| test="contains(translate(//first-page-header/text(),$upper,$lower), 'committee') or //amendment-doc"--> | |
| <div style="text-align:right"> | |
| <p class="lbexHangSmall"> ....................................................</p> | |
| <p class="lbexHangSmall"> | |
| <xsl:value-of select="."/> | |
| </p> | |
| </div> | |
| </xsl:if> | |
| <!--/xsl:if--> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:template> | |
| <!-- TB 27Dec2007 running header --> | |
| <xsl:template match="first-page-header"> | |
| <xsl:choose> | |
| <xsl:when test="$isReport = 'yes'"> | |
| <!-- nothing --> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:if | |
| test="(@display = 'yes' or not(@display)) and not($amendType = 'engrossed-amendment')"> | |
| <!--xsl:if | |
| test="contains(translate(//first-page-header/text(),$upper,$lower), 'committee') or //amendment-doc"--> | |
| <div style="text-align:center"> | |
| <p class="lbexTitleLevelOLC"> | |
| <xsl:value-of select="."/> | |
| </p> | |
| </div> | |
| </xsl:if> | |
| <!--/xsl:if--> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:template> | |
| <xsl:template match="first-page-desc" name="first-page-desc"> | |
| <xsl:if | |
| test="(//first-page-desc/@display = 'yes' or not(//first-page-desc/@display)) and //first-page-desc/text() != ''"> | |
| <div style="text-align:center"> | |
| <hr class="lbexBlack"/> | |
| <xsl:choose> | |
| <xsl:when test="string-length(.) < 80"> | |
| <p style="text-align:center" class="lbexSessionEnrolled"> | |
| <xsl:value-of select="//first-page-desc"/> | |
| </p> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <p style="text-align:left" class="lbexSessionEnrolled"> | |
| <xsl:value-of select="//first-page-desc"/> | |
| </p> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| <hr class="lbexBlack"/> | |
| </div> | |
| </xsl:if> | |
| </xsl:template> | |
| <xsl:template match="first-page-date"> | |
| <xsl:if | |
| test="text() != '' and not(//committee-report) and not(@display = 'no') and not(parent::pre-form/@display = 'no')"> | |
| <div style="text-align:center"> | |
| <p class="lbexSectionLevelOLCnuclear"> | |
| <xsl:value-of select="."/> | |
| </p> | |
| </div> | |
| </xsl:if> | |
| </xsl:template> | |
| <xsl:template match="section/quoted-block/part/section"> | |
| <!--xsl:text disable-output-escaping="yes"></center></xsl:text--> | |
| <p style="text-align:left"> | |
| <xsl:apply-templates/> | |
| </p> | |
| </xsl:template> | |
| <!--no section included ************************--> | |
| <xsl:template match="section/quoted-block"> | |
| <!--xsl:call-template name="ApplyTemplWithSimpleIndentP"/--> | |
| <p style="text-align:left" class="lbexHang"> | |
| <xsl:apply-templates/> | |
| </p> | |
| </xsl:template> | |
| <xsl:template match="section/quoted-block[@display-inline = 'yes-display-inline']"> | |
| <!-- TB May2011 bug#1202 - condition added --> | |
| <xsl:if test="not(child::*[1]/@display-inline = 'no-display-inline')"> | |
| <xsl:choose> | |
| <xsl:when test="local-name(child::*[1])='text' and child::text[@display-inline='yes-display-inline']"/> | |
| <xsl:otherwise> | |
| <xsl:text> “</xsl:text> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:if> | |
| <xsl:apply-templates/> | |
| </xsl:template> | |
| <xsl:template | |
| match="section[@display-inline = 'no-display-inline']/paragraph[@display-inline = 'no-display-inline']/quoted-block[@display-inline = 'no-display-inline' or not(@display-inline)]"> | |
| <xsl:choose> | |
| <xsl:when test="@display-inline = 'yes-display-inline'"> | |
| <xsl:text> “</xsl:text> | |
| <xsl:apply-templates/> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:call-template name="ApplyTemplWithSimpleIndentP"/> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:template> | |
| <xsl:template match="section/paragraph/quoted-block[@display-inline = 'yes-display-inline']"> | |
| <!--xsl:text> “</xsl:text--> | |
| <xsl:text> </xsl:text> | |
| <xsl:apply-templates/> | |
| </xsl:template> | |
| <xsl:template match="section/paragraph/subparagraph/quoted-block"> | |
| <xsl:call-template name="ApplyTemplWithSimpleIndentP"/> | |
| </xsl:template> | |
| <xsl:template | |
| match="section/paragraph/subparagraph/quoted-block[@display-inline = 'yes-display-inline']"> | |
| <!--xsl:text> “</xsl:text--> | |
| <xsl:text> </xsl:text> | |
| <xsl:apply-templates/> | |
| </xsl:template> | |
| <xsl:template match="section/paragraph/subparagraph[@indent = 'up2']/quoted-block"> | |
| <xsl:call-template name="ApplyTemplWithSimpleIndentP"/> | |
| </xsl:template> | |
| <xsl:template match="section/paragraph[@indent = 'up1']/subparagraph/quoted-block"> | |
| <xsl:call-template name="ApplyTemplWithSimpleIndentP"/> | |
| </xsl:template> | |
| <xsl:template match="section/paragraph/subparagraph/clause/quoted-block"> | |
| <!--ul> | |
| <ul> | |
| <ul--> | |
| <xsl:call-template name="ApplyTemplWithSimpleIndentP"/> | |
| <!--/ul> | |
| </ul> | |
| </ul--> | |
| </xsl:template> | |
| <!-- TB Sep-2016 template changed - bug fixing #1438 --> | |
| <xsl:template | |
| match="section/paragraph/subparagraph/clause/quoted-block[@display-inline = 'yes-display-inline']"> | |
| <!--xsl:text> “</xsl:text--> | |
| <xsl:text> </xsl:text> | |
| <xsl:apply-templates/> | |
| </xsl:template> | |
| <xsl:template match="section/paragraph/subparagraph/clause[@indent = 'up2']/quoted-block"> | |
| <ul> | |
| <xsl:call-template name="ApplyTemplWithSimpleIndentP"/> | |
| </ul> | |
| </xsl:template> | |
| <xsl:template | |
| match="section/paragraph/subparagraph[@display-inline = 'yes-display-inline']/clause[@display-inline = 'yes-display-inline']/quoted-block"> | |
| <ul> | |
| <xsl:call-template name="ApplyTemplWithSimpleIndentP"/> | |
| </ul> | |
| </xsl:template> | |
| <xsl:template match="section/paragraph/subparagraph[@indent = 'up1']/clause/quoted-block"> | |
| <ul> | |
| <xsl:call-template name="ApplyTemplWithSimpleIndentP"/> | |
| </ul> | |
| </xsl:template> | |
| <xsl:template match="section/paragraph/subparagraph/clause[@indent = 'up3']/quoted-block"> | |
| <xsl:call-template name="ApplyTemplWithSimpleIndentP"/> | |
| </xsl:template> | |
| <xsl:template match="section/paragraph/subparagraph[@indent = 'up2']/clause/quoted-block"> | |
| <xsl:call-template name="ApplyTemplWithSimpleIndentP"/> | |
| </xsl:template> | |
| <xsl:template match="section/paragraph[@indent = 'up1']/subparagraph/clause/quoted-block"> | |
| <!--ul--> | |
| <xsl:call-template name="ApplyTemplWithSimpleIndentP"/> | |
| <!--/ul--> | |
| </xsl:template> | |
| <xsl:template | |
| match="section/paragraph[@indent = 'up1']/subparagraph/clause[@indent = 'up1']/quoted-block"> | |
| <xsl:call-template name="ApplyTemplWithSimpleIndentP"/> | |
| </xsl:template> | |
| <xsl:template match="section/paragraph/subparagraph/clause/subclause/quoted-block"> | |
| <!--ul> | |
| <ul> | |
| <ul> | |
| <ul--> | |
| <xsl:call-template name="ApplyTemplWithSimpleIndentP"/> | |
| <!--/ul> | |
| </ul> | |
| </ul> | |
| </ul--> | |
| </xsl:template> | |
| <xsl:template | |
| match="section/paragraph/subparagraph/clause/subclause/quoted-block[@display-inline = 'yes-display-inline']"> | |
| <xsl:text> “</xsl:text> | |
| <xsl:apply-templates/> | |
| </xsl:template> | |
| <xsl:template | |
| match="section/paragraph/subparagraph/clause[@indent = 'up2']/subclause/quoted-block"> | |
| <!--ul--> | |
| <xsl:call-template name="ApplyTemplWithSimpleIndentP"/> | |
| <!--/ul--> | |
| </xsl:template> | |
| <xsl:template | |
| match="section/paragraph/subparagraph[@indent = 'up1']/clause/subclause/quoted-block"> | |
| <!--ul> | |
| <ul--> | |
| <xsl:call-template name="ApplyTemplWithSimpleIndentP"/> | |
| <!--/ul> | |
| </ul--> | |
| </xsl:template> | |
| <xsl:template | |
| match="section/paragraph/subparagraph/clause/subclause[@indent = 'up4']/quoted-block"> | |
| <xsl:call-template name="ApplyTemplWithSimpleIndentP"/> | |
| </xsl:template> | |
| <xsl:template | |
| match="section/paragraph/subparagraph/clause[@indent = 'up3']/subclause/quoted-block"> | |
| <xsl:call-template name="ApplyTemplWithSimpleIndentP"/> | |
| </xsl:template> | |
| <xsl:template | |
| match="section/paragraph/subparagraph[@indent = 'up2']/clause/subclause/quoted-block"> | |
| <!--ul--> | |
| <xsl:call-template name="ApplyTemplWithSimpleIndentP"/> | |
| <!--/ul--> | |
| </xsl:template> | |
| <xsl:template | |
| match="section/paragraph[@indent = 'up1']/subparagraph/clause/subclause/quoted-block"> | |
| <!--ul> | |
| <ul--> | |
| <xsl:call-template name="ApplyTemplWithSimpleIndentP"/> | |
| <!--/ul> | |
| </ul--> | |
| </xsl:template> | |
| <xsl:template | |
| match="section/paragraph[@indent = 'up1']/subparagraph/clause[@indent = 'up1']/subclause/quoted-block"> | |
| <xsl:call-template name="ApplyTemplWithSimpleIndentP"/> | |
| </xsl:template> | |
| <xsl:template match="section/paragraph/subparagraph/clause/subclause/item/quoted-block"> | |
| <!--ul> | |
| <ul> | |
| <ul> | |
| <ul> | |
| <ul--> | |
| <xsl:call-template name="ApplyTemplWithSimpleIndentP"/> | |
| <!--/ul> | |
| </ul> | |
| </ul> | |
| </ul> | |
| </ul--> | |
| </xsl:template> | |
| <xsl:template | |
| match="section/paragraph/subparagraph/clause/subclause/item/quoted-block[@display-inline = 'yes-display-inline']"> | |
| <xsl:text> “</xsl:text> | |
| <xsl:apply-templates/> | |
| </xsl:template> | |
| <xsl:template | |
| match="section/paragraph/subparagraph/clause/subclause/item[@indent = 'up5']/quoted-block"> | |
| <xsl:call-template name="ApplyTemplWithSimpleIndentP"/> | |
| </xsl:template> | |
| <xsl:template | |
| match="section/paragraph/subparagraph/clause/subclause[@indent = 'up4']/item/quoted-block"> | |
| <xsl:call-template name="ApplyTemplWithSimpleIndentP"/> | |
| </xsl:template> | |
| <xsl:template | |
| match="section/paragraph/subparagraph/clause[@indent = 'up3']/subclause/item/quoted-block"> | |
| <!--ul--> | |
| <xsl:call-template name="ApplyTemplWithSimpleIndentP"/> | |
| <!--/ul--> | |
| </xsl:template> | |
| <xsl:template | |
| match="section/paragraph/subparagraph[@indent = 'up2']/clause/subclause/item/quoted-block"> | |
| <!--ul> | |
| <ul--> | |
| <xsl:call-template name="ApplyTemplWithSimpleIndentP"/> | |
| <!--/ul> | |
| </ul--> | |
| </xsl:template> | |
| <xsl:template | |
| match="section/paragraph/subparagraph[@indent = 'up1']/clause/subclause/item/quoted-block"> | |
| <!--ul> | |
| <ul> | |
| <ul--> | |
| <xsl:call-template name="ApplyTemplWithSimpleIndentP"/> | |
| <!--/ul> | |
| </ul> | |
| </ul--> | |
| </xsl:template> | |
| <xsl:template | |
| match="section/paragraph/subparagraph[@indent = 'up2']/clause/subclause[@indent = 'up1']/item/quoted-block"> | |
| <!--ul--> | |
| <xsl:call-template name="ApplyTemplWithSimpleIndentP"/> | |
| <!--/ul--> | |
| </xsl:template> | |
| <xsl:template | |
| match="section/paragraph[@indent = 'up1']/subparagraph/clause/subclause/item/quoted-block"> | |
| <!--ul> | |
| <ul> | |
| <ul--> | |
| <xsl:call-template name="ApplyTemplWithSimpleIndentP"/> | |
| <!--/ul> | |
| </ul> | |
| </ul--> | |
| </xsl:template> | |
| <xsl:template | |
| match="section/paragraph[@indent = 'up1']/subparagraph/clause[@indent = 'up1']/subclause/item[@indent = 'up1']/quoted-block"> | |
| <!--ul--> | |
| <xsl:call-template name="ApplyTemplWithSimpleIndentP"/> | |
| <!--/ul--> | |
| </xsl:template> | |
| <xsl:template match="section/paragraph/subparagraph/clause/subclause/item/subitem/quoted-block"> | |
| <xsl:call-template name="ApplyTemplWithSimpleIndentP"/> | |
| </xsl:template> | |
| <xsl:template | |
| match="section/paragraph/subparagraph/clause/subclause/item/subitem/quoted-block[@display-inline = 'yes-display-inline']"> | |
| <xsl:text> “</xsl:text> | |
| <xsl:apply-templates/> | |
| </xsl:template> | |
| <xsl:template | |
| match="section/paragraph/subparagraph/clause/subclause[@indent = 'up3']/item/subitem/quoted-block"> | |
| <xsl:call-template name="ApplyTemplWithSimpleIndentP"/> | |
| </xsl:template> | |
| <xsl:template | |
| match="section/paragraph/subparagraph[@indent = 'up1']/clause/subclause/item/subitem[@indent = 'up1']/quoted-block"> | |
| <xsl:call-template name="ApplyTemplWithSimpleIndentP"/> | |
| </xsl:template> | |
| <xsl:template | |
| match="section/paragraph/subparagraph/clause/subclause/item[@indent = 'up5']/subitem/quoted-block"> | |
| <xsl:call-template name="ApplyTemplWithSimpleIndentP"/> | |
| </xsl:template> | |
| <xsl:template | |
| match="subsection/paragraph/subparagraph/clause/subclause[@indent = 'up4']/item/subitem/quoted-block"> | |
| <xsl:call-template name="ApplyTemplWithSimpleIndentP"/> | |
| </xsl:template> | |
| <xsl:template | |
| match="section/paragraph/subparagraph/clause[@indent = 'up3']/subclause/item/subitem/quoted-block"> | |
| <xsl:call-template name="ApplyTemplWithSimpleIndentP"/> | |
| </xsl:template> | |
| <xsl:template | |
| match="section/paragraph/subparagraph[@indent = 'up2']/clause/subclause/item/subitem/quoted-block"> | |
| <xsl:call-template name="ApplyTemplWithSimpleIndentP"/> | |
| </xsl:template> | |
| <xsl:template | |
| match="section/paragraph/subparagraph[@indent = 'up2']/clause/subclause/item/subitem[@indent = 'up1']/quoted-block"> | |
| <xsl:call-template name="ApplyTemplWithSimpleIndentP"/> | |
| </xsl:template> | |
| <xsl:template | |
| match="section/paragraph[@indent = 'up1']/subparagraph/clause/subclause/item/subitem/quoted-block"> | |
| <xsl:call-template name="ApplyTemplWithSimpleIndentP"/> | |
| </xsl:template> | |
| <xsl:template | |
| match="section/paragraph[@indent = 'up1']/subparagraph/clause[@indent = 'up1']/subclause/item[@indent = 'up1']/subitem/quoted-block"> | |
| <xsl:call-template name="ApplyTemplWithSimpleIndentP"/> | |
| </xsl:template> | |
| <!--end of no section included **********************************--> | |
| <!-- section included--> | |
| <xsl:template match="subsection/quoted-block"> | |
| <xsl:choose> | |
| <xsl:when test="@display-inline = 'yes-display-inline'"> | |
| <xsl:apply-templates/> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:call-template name="ApplyTemplWithSimpleIndentP"/> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:template> | |
| <xsl:template match="subsection/paragraph/quoted-block"> | |
| <xsl:choose> | |
| <xsl:when | |
| test=" | |
| parent::paragraph[@display-inline = 'yes-display-inline'] and | |
| not(child::section)"> | |
| <xsl:text> </xsl:text> | |
| <xsl:apply-templates/> | |
| </xsl:when> | |
| <xsl:when test="@display-inline = 'yes-display-inline'"> | |
| <xsl:text> </xsl:text> | |
| <xsl:apply-templates/> | |
| </xsl:when> | |
| <xsl:when test="./@style = 'other' and ./@other-style = 'archaic'"> | |
| <p style="text-align:left" class="lbexIndentSubsection"> | |
| <xsl:apply-templates/> | |
| </p> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <p style="text-align:left" class="lbexIndentSubsection"> | |
| <xsl:apply-templates/> | |
| </p> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:template> | |
| <xsl:template match="subsection/paragraph[@indent = 'up1']/quoted-block"> | |
| <xsl:call-template name="ApplyTemplWithSimpleIndentP"/> | |
| </xsl:template> | |
| <xsl:template match="subsection/paragraph/subparagraph/quoted-block"> | |
| <xsl:choose> | |
| <xsl:when test="@display-inline = 'yes-display-inline'"> | |
| <xsl:text> </xsl:text> | |
| <xsl:apply-templates/> | |
| </xsl:when> | |
| <xsl:when test="parent::subparagraph[@display-inline = 'yes-display-inline']"> | |
| <p style="text-align:left" class="lbexIndentSubpar"> | |
| <xsl:apply-templates/> | |
| </p> | |
| </xsl:when> | |
| <xsl:when test="parent::subparagraph[@indent = 'up1']"> | |
| <p style="text-align:left" class="lbexIndentSubpar"> | |
| <xsl:apply-templates/> | |
| </p> | |
| </xsl:when> | |
| <xsl:when test="./@style = 'tax' and child::toc"> | |
| <p style="text-align:left" class="lbexNonIndentClause"> | |
| <xsl:apply-templates/> | |
| </p> | |
| </xsl:when> | |
| <xsl:when test="./@style = 'tax'"> | |
| <p style="text-align:left" class="lbexIndentSubpar"> | |
| <xsl:apply-templates/> | |
| </p> | |
| </xsl:when> | |
| <xsl:when test="local-name(child::*[1]) = 'section'"> | |
| <xsl:call-template name="ApplyTemplWithSimpleIndentP"/> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <p style="text-align:left" class="lbexIndentClause"> | |
| <xsl:apply-templates/> | |
| </p> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:template> | |
| <!-- TB to be reviewed --> | |
| <xsl:template match="subsection/paragraph/subparagraph[@indent = 'up2']/quoted-block"> | |
| <xsl:call-template name="ApplyTemplWithSimpleIndentP"/> | |
| </xsl:template> | |
| <xsl:template match="subsection/paragraph[@indent = 'up1']/subparagraph/quoted-block"> | |
| <xsl:call-template name="ApplyTemplWithSimpleIndentP"/> | |
| </xsl:template> | |
| <xsl:template match="subsection/paragraph/subparagraph/clause/quoted-block"> | |
| <xsl:choose> | |
| <xsl:when test="@display-inline = 'yes-display-inline'"> | |
| <xsl:text> </xsl:text> | |
| <xsl:apply-templates/> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <p style="text-align:left" class="lbexIndentClause"> | |
| <xsl:apply-templates/> | |
| </p> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:template> | |
| <xsl:template match="subsection/paragraph/subparagraph/clause[@indent = 'up2']/quoted-block"> | |
| <p style="text-align:left" class="lbexIndentClause"> | |
| <xsl:apply-templates/> | |
| </p> | |
| </xsl:template> | |
| <xsl:template | |
| match="subsection/paragraph/subparagraph[@display-inline = 'yes-display-inline']/clause[@display-inline = 'yes-display-inline']/quoted-block"> | |
| <p style="text-align:left" class="lbexIndentClause"> | |
| <xsl:apply-templates/> | |
| </p> | |
| </xsl:template> | |
| <xsl:template match="subsection/paragraph/subparagraph[@indent = 'up1']/clause/quoted-block"> | |
| <p style="text-align:left" class="lbexIndentSubpar"> | |
| <xsl:apply-templates/> | |
| </p> | |
| </xsl:template> | |
| <xsl:template match="subsection/paragraph/subparagraph/clause[@indent = 'up3']/quoted-block"> | |
| <xsl:call-template name="ApplyTemplWithSimpleIndentP"/> | |
| </xsl:template> | |
| <xsl:template match="subsection/paragraph/subparagraph[@indent = 'up2']/clause/quoted-block"> | |
| <p style="text-align:left" class="lbexIndent"> | |
| <xsl:apply-templates/> | |
| </p> | |
| </xsl:template> | |
| <xsl:template match="subsection/paragraph[@indent = 'up1']/subparagraph/clause/quoted-block"> | |
| <p style="text-align:left" class="lbexIndentClause"> | |
| <xsl:apply-templates/> | |
| </p> | |
| </xsl:template> | |
| <xsl:template | |
| match="subsection/paragraph[@indent = 'up1']/subparagraph/clause[@indent = 'up1']/quoted-block"> | |
| <xsl:call-template name="ApplyTemplWithSimpleIndentP"/> | |
| </xsl:template> | |
| <xsl:template match="subsection/paragraph/subparagraph/clause/subclause/quoted-block"> | |
| <xsl:choose> | |
| <xsl:when test="@display-inline = 'yes-display-inline'"> | |
| <xsl:text> </xsl:text> | |
| <xsl:apply-templates/> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <p class="lbexIndentSubclause" style="text-align:left"> | |
| <xsl:call-template name="ApplyTemplWithSimpleIndentP"/> | |
| </p> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:template> | |
| <xsl:template | |
| match="subsection/paragraph/subparagraph/clause[@indent = 'up2']/subclause/quoted-block"> | |
| <p class="lbexIndentSubclause" style="text-align:left"> | |
| <xsl:apply-templates/> | |
| </p> | |
| </xsl:template> | |
| <xsl:template | |
| match="subsection/paragraph/subparagraph[@indent = 'up1']/clause/subclause/quoted-block"> | |
| <p class="lbexIndentSubclause" style="text-align:left"> | |
| <xsl:apply-templates/> | |
| </p> | |
| </xsl:template> | |
| <xsl:template | |
| match="subsection/paragraph/subparagraph/clause/subclause[@indent = 'up4']/quoted-block"> | |
| <xsl:call-template name="ApplyTemplWithSimpleIndentP"/> | |
| </xsl:template> | |
| <xsl:template | |
| match="subsection/paragraph/subparagraph/clause[@indent = 'up3']/subclause/quoted-block"> | |
| <xsl:call-template name="ApplyTemplWithSimpleIndentP"/> | |
| </xsl:template> | |
| <xsl:template | |
| match="subsection/paragraph/subparagraph[@indent = 'up2']/clause/subclause/quoted-block"> | |
| <p class="lbexIndentSubclause"> | |
| <xsl:apply-templates/> | |
| </p> | |
| </xsl:template> | |
| <xsl:template | |
| match="subsection/paragraph[@indent = 'up1']/subparagraph/clause/subclause/quoted-block"> | |
| <p class="lbexIndentSubclause"> | |
| <xsl:apply-templates/> | |
| </p> | |
| </xsl:template> | |
| <xsl:template | |
| match="subsection/paragraph[@indent = 'up1']/subparagraph/clause[@indent = 'up1']/subclause/quoted-block"> | |
| <xsl:call-template name="ApplyTemplWithSimpleIndentP"/> | |
| </xsl:template> | |
| <xsl:template match="subsection/paragraph/subparagraph/clause/subclause/item/quoted-block"> | |
| <xsl:choose> | |
| <xsl:when test="@display-inline = 'yes-display-inline'"> | |
| <xsl:text> </xsl:text> | |
| <xsl:apply-templates/> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <p class="lbexIndentItem"> | |
| <xsl:call-template name="ApplyTemplWithSimpleIndentP"/> | |
| </p> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:template> | |
| <xsl:template | |
| match="subsection/paragraph/subparagraph/clause/subclause/item[@indent = 'up5']/quoted-block"> | |
| <xsl:call-template name="ApplyTemplWithSimpleIndentP"/> | |
| </xsl:template> | |
| <xsl:template | |
| match="subsection/paragraph/subparagraph/clause/subclause[@indent = 'up4']/item/quoted-block"> | |
| <xsl:call-template name="ApplyTemplWithSimpleIndentP"/> | |
| </xsl:template> | |
| <xsl:template | |
| match="subsection/paragraph/subparagraph/clause[@indent = 'up3']/subclause/item/quoted-block"> | |
| <p class="lbexIndentItem"> | |
| <xsl:call-template name="ApplyTemplWithSimpleIndentP"/> | |
| </p> | |
| </xsl:template> | |
| <xsl:template | |
| match="subsection/paragraph/subparagraph[@indent = 'up2']/clause/subclause/item/quoted-block"> | |
| <p class="lbexIndentItem"> | |
| <xsl:call-template name="ApplyTemplWithSimpleIndentP"/> | |
| </p> | |
| </xsl:template> | |
| <xsl:template | |
| match="subsection/paragraph/subparagraph[@indent = 'up1']/clause/subclause/item/quoted-block"> | |
| <p style="text-align:left" class="lbexIndentItem"> | |
| <xsl:apply-templates/> | |
| </p> | |
| </xsl:template> | |
| <xsl:template | |
| match="subsection/paragraph/subparagraph[@indent = 'up2']/clause/subclause[@indent = 'up1']/item/quoted-block"> | |
| <p style="text-align:left" class="lbexIndentSubclause"> | |
| <xsl:apply-templates/> | |
| </p> | |
| </xsl:template> | |
| <xsl:template | |
| match="subsection/paragraph[@indent = 'up1']/subparagraph/clause/subclause/item/quoted-block"> | |
| <p style="text-align:left" class="lbexIndentItem"> | |
| <xsl:apply-templates/> | |
| </p> | |
| </xsl:template> | |
| <xsl:template | |
| match="subsection/paragraph[@indent = 'up1']/subparagraph/clause[@indent = 'up1']/subclause/item[@indent = 'up1']/quoted-block"> | |
| <p style="text-align:left" class="lbexIndentItem"> | |
| <xsl:apply-templates/> | |
| </p> | |
| </xsl:template> | |
| <xsl:template | |
| match="subsection/paragraph/subparagraph/clause/subclause/item/subitem/quoted-block"> | |
| <xsl:choose> | |
| <xsl:when test="@display-inline = 'yes-display-inline'"> | |
| <xsl:text> “</xsl:text> | |
| <xsl:apply-templates/> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <p style="text-align:left" class="lbexIndentSubItem"> | |
| <xsl:apply-templates/> | |
| </p> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:template> | |
| <xsl:template | |
| match="subsection/paragraph/subparagraph/clause/subclause[@indent = 'up3']/item/subitem/quoted-block"> | |
| <p style="text-align:left" class="lbexIndentSubclause"> | |
| <xsl:apply-templates/> | |
| </p> | |
| </xsl:template> | |
| <xsl:template | |
| match="subsection/paragraph/subparagraph[@indent = 'up1']/clause/subclause/item/subitem[@indent = 'up1']/quoted-block"> | |
| <p style="text-align:left" class="lbexIndentSubItem"> | |
| <xsl:apply-templates/> | |
| </p> | |
| </xsl:template> | |
| <xsl:template | |
| match="subsection/paragraph/subparagraph/clause/subclause/item[@indent = 'up5']/subitem/quoted-block"> | |
| <xsl:call-template name="ApplyTemplWithSimpleIndentP"/> | |
| </xsl:template> | |
| <xsl:template | |
| match="subsection/paragraph/subparagraph/clause/subclause[@indent = 'up4']/item/subitem/quoted-block"> | |
| <p style="text-align:left" class="lbexIndentSubclause"> | |
| <xsl:apply-templates/> | |
| </p> | |
| </xsl:template> | |
| <xsl:template | |
| match="subsection/paragraph/subparagraph/clause[@indent = 'up3']/subclause/item/subitem/quoted-block"> | |
| <p style="text-align:left" class="lbexIndentItem"> | |
| <xsl:apply-templates/> | |
| </p> | |
| </xsl:template> | |
| <xsl:template | |
| match="subsection/paragraph/subparagraph[@indent = 'up2']/clause/subclause/item/subitem/quoted-block"> | |
| <p style="text-align:left" class="lbexIndentSubItem"> | |
| <xsl:apply-templates/> | |
| </p> | |
| </xsl:template> | |
| <xsl:template | |
| match="subsection/paragraph/subparagraph[@indent = 'up2']/clause/subclause/item/subitem[@indent = 'up1']/quoted-block"> | |
| <p style="text-align:left" class="lbexIndentSubItem"> | |
| <xsl:apply-templates/> | |
| </p> | |
| </xsl:template> | |
| <xsl:template | |
| match="subsection/paragraph[@indent = 'up1']/subparagraph/clause/subclause/item/subitem/quoted-block"> | |
| <p style="text-align:left" class="lbexIndentSubItem"> | |
| <xsl:apply-templates/> | |
| </p> | |
| </xsl:template> | |
| <xsl:template | |
| match="subsection/paragraph[@indent = 'up1']/subparagraph/clause[@indent = 'up1']/subclause/item[@indent = 'up1']/subitem/quoted-block"> | |
| <p style="text-align:left" class="lbexIndentItem"> | |
| <xsl:apply-templates/> | |
| </p> | |
| </xsl:template> | |
| <!-- end of section included--> | |
| <!--beginning of senate section --> | |
| <!-- subsection --> | |
| <xsl:template match="paragraph[@indent = 'subsection']"> | |
| <p style="text-align:left" class="lbexIndent"> | |
| <xsl:if test="ancestor::quoted-block"> | |
| <xsl:call-template name="openQuotes"/> | |
| </xsl:if> | |
| <xsl:apply-templates select="enum"/> | |
| <xsl:apply-templates select="text"/> | |
| <p class="lbexIndentSubpar"> | |
| <xsl:apply-templates select="subparagraph"/> | |
| </p> | |
| </p> | |
| </xsl:template> | |
| <xsl:template match="paragraph/subparagraph[@indent = 'paragraph']"> | |
| <p style="text-align:left" class="lbexIndent"> | |
| <xsl:call-template name="ActualPrintText"/> | |
| </p> | |
| </xsl:template> | |
| <xsl:template | |
| match="paragraph[@display-inline = 'yes-display-inline']/subparagraph[@indent = 'paragraph']"> | |
| <p style="text-align:left" class="lbexIndentSubpar"> | |
| <xsl:call-template name="ActualPrintText"/> | |
| </p> | |
| </xsl:template> | |
| <xsl:template match="paragraph[@indent = 'subsection']/subparagraph[@indent = 'paragraph']"> | |
| <p style="text-align:left" class="lbexIndentSubpar"> | |
| <xsl:call-template name="ActualPrintText"/> | |
| </p> | |
| </xsl:template> | |
| <xsl:template match="paragraph/subparagraph[@indent = 'subsection']"> | |
| <p style="text-align:left" class="lbexIndent"> | |
| <xsl:call-template name="ActualPrintText"/> | |
| </p> | |
| </xsl:template> | |
| <xsl:template match="paragraph[@indent = 'subsection']/subparagraph[@indent = 'subsection']"> | |
| <p style="text-align:left" class="lbexIndent"> | |
| <xsl:call-template name="ActualPrintText"/> | |
| </p> | |
| </xsl:template> | |
| <xsl:template match="paragraph/subparagraph/clause/subclause[@indent = 'clause']"> | |
| <p style="text-align:left" class="lbexIndent"> | |
| <xsl:call-template name="ActualPrintText"/> | |
| </p> | |
| </xsl:template> | |
| <xsl:template | |
| match="paragraph[@indent = 'subsection']/subparagraph[@indent = 'subsection']/clause[@indent = 'clause']"> | |
| <p style="text-align:left" class="lbexIndent"> | |
| <xsl:call-template name="ActualPrintText"/> | |
| </p> | |
| </xsl:template> | |
| <xsl:template match="paragraph/subparagraph/clause[@indent = 'subparagraph']"> | |
| <p style="text-align:left" class="lbexIndent"> | |
| <xsl:call-template name="ActualPrintText"/> | |
| </p> | |
| </xsl:template> | |
| <xsl:template | |
| match="paragraph/subparagraph[@display-inline = 'yes-display-inline']/clause[@indent = 'subparagraph']"> | |
| <p style="text-align:left" class="lbexIndentSubsection"> | |
| <xsl:call-template name="ActualPrintText"/> | |
| </p> | |
| </xsl:template> | |
| <xsl:template | |
| match="paragraph/subparagraph[@indent = 'paragraph']/clause[@indent = 'subparagraph']"> | |
| <p style="text-align:left" class="lbexIndentSubsection"> | |
| <xsl:call-template name="ActualPrintText"/> | |
| </p> | |
| </xsl:template> | |
| <xsl:template match="paragraph/subparagraph/clause[@indent = 'paragraph']"> | |
| <p style="text-align:left" class="lbexIndent"> | |
| <xsl:call-template name="ActualPrintText"/> | |
| </p> | |
| </xsl:template> | |
| <xsl:template | |
| match="paragraph[@indent = 'subsection']/subparagraph[@indent = 'subsection']/clause[@indent = 'paragraph']"> | |
| <p style="text-align:left" class="lbexIndentSubsection"> | |
| <xsl:call-template name="ActualPrintText"/> | |
| </p> | |
| </xsl:template> | |
| <xsl:template | |
| match="paragraph[@indent = 'subsection']/subparagraph[@indent = 'subsection']/clause[@indent = 'subsection' and @display-inline = 'no-display-inline']"> | |
| <p style="text-align:left" class="lbexIndent"> | |
| <xsl:call-template name="ActualPrintText"/> | |
| </p> | |
| </xsl:template> | |
| <xsl:template | |
| match="paragraph[@indent = 'subsection']/subparagraph[@display-inline = 'yes-display-inline']/clause[@indent = 'subsection' and @display-inline = 'no-display-inline']"> | |
| <p style="text-align:left" class="lbexIndent"> | |
| <xsl:call-template name="ActualPrintText"/> | |
| </p> | |
| </xsl:template> | |
| <xsl:template | |
| match="paragraph[@indent = 'subsection']/subparagraph[@indent = 'subsection']/clause[@indent = 'subsection' and @display-inline = 'yes-display-inline']"> | |
| <xsl:apply-templates/> | |
| </xsl:template> | |
| <xsl:template match="paragraph/subparagraph/clause/subclause[@indent = 'subparagraph']"> | |
| <p style="text-align:left" class="lbexIndent"> | |
| <xsl:call-template name="ActualPrintText"/> | |
| </p> | |
| </xsl:template> | |
| <xsl:template | |
| match="paragraph[@indent = 'subsection']/subparagraph[@indent = 'paragraph']/clause[@indent = 'paragraph']/subclause[@indent = 'subparagraph']"> | |
| <p style="text-align:left" class="lbexIndentSubpar"> | |
| <xsl:call-template name="ActualPrintText"/> | |
| </p> | |
| </xsl:template> | |
| <xsl:template | |
| match="paragraph[@indent = 'subsection']/subparagraph[@indent = 'subsection']/clause[@indent = 'paragraph']/subclause[@indent = 'subparagraph']"> | |
| <p style="text-align:left" class="lbexIndentSubpar"> | |
| <xsl:call-template name="ActualPrintText"/> | |
| </p> | |
| </xsl:template> | |
| <xsl:template match="paragraph/subparagraph/clause/subclause[@indent = 'paragraph']"> | |
| <p style="text-align:left" class="lbexIndent"> | |
| <xsl:call-template name="ActualPrintText"/> | |
| </p> | |
| </xsl:template> | |
| <xsl:template | |
| match="paragraph[@indent = 'subsection']/subparagraph[@indent = 'subsection']/clause[@indent = 'subsection']/subclause[@indent = 'subsection' and @display-inline = 'no-display-inline']"> | |
| <p style="text-align:left" class="lbexIndent"> | |
| <xsl:call-template name="ActualPrintText"/> | |
| </p> | |
| </xsl:template> | |
| <xsl:template | |
| match="paragraph[@indent = 'subsection']/subparagraph[@display-inline = 'no-display-inline']/clause[@display-inline = 'no-display-inline']/subclause[@indent = 'subsection' and @display-inline = 'no-display-inline']"> | |
| <p style="text-align:left" class="lbexIndent"> | |
| <xsl:call-template name="ActualPrintText"/> | |
| </p> | |
| </xsl:template> | |
| <xsl:template | |
| match="paragraph[@indent = 'subsection']/subparagraph[@indent = 'subsection']/clause[@indent = 'subsection']/subclause[@indent = 'subsection' and @display-inline = 'yes-display-inline']"> | |
| <xsl:apply-templates/> | |
| </xsl:template> | |
| <xsl:template | |
| match="paragraph/subparagraph/clause[@indent = 'subparagraph']/subclause[@indent = 'clause']"> | |
| <p style="text-align:left" class="lbexIndentClause"> | |
| <xsl:call-template name="ActualPrintText"/> | |
| </p> | |
| </xsl:template> | |
| <xsl:template match="paragraph/subparagraph/clause/subclause/item[@indent = 'subclause']"> | |
| <p style="text-align:left" class="lbexIndent"> | |
| <xsl:call-template name="ActualPrintText"/> | |
| </p> | |
| </xsl:template> | |
| <xsl:template | |
| match="paragraph/subparagraph/clause/subclause[@indent = 'clause']/item[@indent = 'subclause']"> | |
| <p style="text-align:left" class="lbexIndentSubclause"> | |
| <xsl:call-template name="ActualPrintText"/> | |
| </p> | |
| </xsl:template> | |
| <xsl:template | |
| match="paragraph/subparagraph/clause[@indent = 'subparagraph']/subclause[@indent = 'clause']/item[@indent = 'clause']"> | |
| <p style="text-align:left" class="lbexIndent"> | |
| <xsl:call-template name="ActualPrintText"/> | |
| </p> | |
| </xsl:template> | |
| <xsl:template match="paragraph/subparagraph/clause/subclause/item[@indent = 'clause']"> | |
| <p style="text-align:left" class="lbexIndent"> | |
| <xsl:call-template name="ActualPrintText"/> | |
| </p> | |
| </xsl:template> | |
| <xsl:template | |
| match="paragraph/subparagraph/clause[@display-inline = 'yes-display-inline']/subclause[@display-inline = 'yes-display-inline']/item[@indent = 'clause']"> | |
| <p style="text-align:left" class="lbexIndentClause"> | |
| <xsl:call-template name="ActualPrintText"/> | |
| </p> | |
| </xsl:template> | |
| <xsl:template | |
| match="paragraph/subparagraph[@display-inline = 'yes-display-inline']/clause[@indent = 'subparagraph']/subclause[@display-inline = 'yes-display-inline']/item[@indent = 'clause']"> | |
| <p style="text-align:left" class="lbexIndentClause"> | |
| <xsl:call-template name="ActualPrintText"/> | |
| </p> | |
| </xsl:template> | |
| <xsl:template | |
| match="paragraph/subparagraph/clause/subclause[@indent = 'subparagraph']/item[@indent = 'clause']"> | |
| <ul> | |
| <p style="text-align:left" class="lbexIndent"> | |
| <xsl:call-template name="ActualPrintText"/> | |
| </p> | |
| </ul> | |
| </xsl:template> | |
| <xsl:template | |
| match="paragraph/subparagraph/clause[@indent = 'subparagraph']/subclause[@indent = 'subparagraph']/item[@indent = 'subparagraph']"> | |
| <p style="text-align:left" class="lbexIndent"> | |
| <xsl:call-template name="ActualPrintText"/> | |
| </p> | |
| </xsl:template> | |
| <xsl:template match="paragraph/subparagraph/clause/subclause/item[@indent = 'subparagraph']"> | |
| <p style="text-align:left" class="lbexIndent"> | |
| <xsl:call-template name="ActualPrintText"/> | |
| </p> | |
| </xsl:template> | |
| <xsl:template | |
| match="paragraph[@indent = 'subsection']/subparagraph[@indent = 'paragraph']/clause[@indent = 'paragraph']/subclause[@indent = 'paragraph']/item[@indent = 'subparagraph']"> | |
| <p style="text-align:left" class="lbexIndentSubpar"> | |
| <xsl:call-template name="ActualPrintText"/> | |
| </p> | |
| </xsl:template> | |
| <xsl:template match="paragraph/subparagraph/clause/subclause/item[@indent = 'paragraph']"> | |
| <xsl:choose> | |
| <xsl:when test="./@display-inline = 'yes-display-inline'"> | |
| <xsl:call-template name="ActualPrintText"/> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <p align="justiy" class="lbexIndent"> | |
| <xsl:call-template name="ActualPrintText"/> | |
| </p> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:template> | |
| <xsl:template | |
| match="paragraph[@indent = 'subsection']/subparagraph[@indent = 'subsection']/clause[@indent = 'subsection']/subclause[@indent = 'subsection']/item[@indent = 'subsection' and @display-inline = 'no-display-inline']"> | |
| <p style="text-align:left" class="lbexIndent"> | |
| <xsl:call-template name="ActualPrintText"/> | |
| </p> | |
| </xsl:template> | |
| <xsl:template | |
| match="paragraph[@indent = 'subsection']/subparagraph[@indent = 'subsection']/clause[@indent = 'subsection']/subclause[@indent = 'subsection']/item[@indent = 'subsection' and @display-inline = 'yes-display-inline']"> | |
| <xsl:apply-templates/> | |
| </xsl:template> | |
| <xsl:template match="paragraph/subparagraph/clause/subclause/item/subitem[@indent = 'item']"> | |
| <p style="text-align:left" class="lbexIndent"> | |
| <xsl:call-template name="ActualPrintText"/> | |
| </p> | |
| </xsl:template> | |
| <xsl:template | |
| match="paragraph/subparagraph/clause/subclause/item/subitem[@indent = 'subclause']"> | |
| <p style="text-align:left" class="lbexIndent"> | |
| <xsl:call-template name="ActualPrintText"/> | |
| </p> | |
| </xsl:template> | |
| <xsl:template match="paragraph/subparagraph/clause/subclause/item/subitem[@indent = 'clause']"> | |
| <p style="text-align:left" class="lbexIndent"> | |
| <xsl:call-template name="ActualPrintText"/> | |
| </p> | |
| </xsl:template> | |
| <xsl:template | |
| match="paragraph/subparagraph/clause/subclause/item/subitem[@indent = 'paragraph']"> | |
| <p style="text-align:left" class="lbexIndent"> | |
| <xsl:call-template name="ActualPrintText"/> | |
| </p> | |
| </xsl:template> | |
| <xsl:template | |
| match="paragraph/subparagraph/clause/subclause/item/subitem[@indent = 'subparagraph']"> | |
| <p style="text-align:left" class="lbexIndent"> | |
| <xsl:call-template name="ActualPrintText"/> | |
| </p> | |
| </xsl:template> | |
| <xsl:template | |
| match="paragraph[@indent = 'subsection']/subparagraph[@indent = 'paragraph']/clause[@indent = 'paragraph']/subclause[@indent = 'paragraph']/item[@indent = 'subparagraph']/subitem[@indent = 'subparagraph']"> | |
| <p style="text-align:left" class="lbexIndent"> | |
| <xsl:call-template name="ActualPrintText"/> | |
| </p> | |
| </xsl:template> | |
| <xsl:template | |
| match="paragraph[@indent = 'subsection']/subparagraph[@indent = 'paragraph']/clause[@indent = 'subparagraph']/subclause[@display-inline = 'yes-display-inline']/item[@indent = 'subparagraph']/subitem[@indent = 'subparagraph']"> | |
| <p style="text-align:left" class="lbexIndent"> | |
| <xsl:call-template name="ActualPrintText"/> | |
| </p> | |
| </xsl:template> | |
| <xsl:template | |
| match="paragraph[@indent = 'subsection']/subparagraph[@indent = 'subsection']/clause[@indent = 'subsection']/subclause[@indent = 'subsection']/item[@indent = 'subsection']/subitem[@indent = 'subsection' and @display-inline = 'no-display-inline']"> | |
| <p style="text-align:left" class="lbexIndent"> | |
| <xsl:call-template name="ActualPrintText"/> | |
| </p> | |
| </xsl:template> | |
| <xsl:template | |
| match="paragraph[@indent = 'subsection']/subparagraph[@indent = 'subsection']/clause[@indent = 'subsection']/subclause[@indent = 'subsection']/item[@indent = 'subsection']/subitem[@indent = 'subsection' and @display-inline = 'yes-display-inline']"> | |
| <xsl:apply-templates/> | |
| </xsl:template> | |
| <!-- TB to be reviewed --> | |
| <xsl:template match="multi-column-toc-entry"> | |
| <xsl:variable name="printItalicTextForReport"> | |
| <xsl:call-template name="IsPrintItalicTextForReport"/> | |
| </xsl:variable> | |
| <xsl:variable name="isItalicToc"> | |
| <xsl:choose> | |
| <xsl:when test="$printItalicTextForReport = 'yes'"> | |
| <xsl:text>yes</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="ancestor::*[@reported-display-style = 'italic'] and not(ancestor::*[@reported-display-style = 'italic']/descendant::*[@changed = 'not-changed']) and not(ancestor::*[@reported-display-style = 'italic']/descendant::*[@reported-display-style = 'strikethrough'])"> | |
| <xsl:text>yes</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="ancestor::*[@reported-display-style = 'boldface-italic'] and not(ancestor::*[@reported-display-style = 'italic']/descendant::*[@changed = 'not-changed']) and not(ancestor::*[@reported-display-style = 'italic']/descendant::*[@reported-display-style = 'strikethrough'])"> | |
| <xsl:text>yes</xsl:text> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:text>no</xsl:text> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:variable> | |
| <xsl:choose> | |
| <xsl:when test="@bold = 'on' and $isItalicToc = 'no'"> | |
| <!--b--> | |
| <xsl:call-template name="ActualPrintMultiColumnToc"> | |
| <xsl:with-param name="isBold">yes</xsl:with-param> | |
| <xsl:with-param name="isItalic">no</xsl:with-param> | |
| </xsl:call-template> | |
| <!--/b--> | |
| </xsl:when> | |
| <xsl:when test="@bold = 'on' and $isItalicToc = 'yes'"> | |
| <!--span style="font-weight:bold;font:italic;"--> | |
| <!--i--> | |
| <xsl:call-template name="ActualPrintMultiColumnToc"> | |
| <xsl:with-param name="isBold">yes</xsl:with-param> | |
| <xsl:with-param name="isItalic">yes</xsl:with-param> | |
| </xsl:call-template> | |
| <!--/i--> | |
| <!--/span--> | |
| </xsl:when> | |
| <xsl:when test="not(@bold = 'on') and $isItalicToc = 'yes'"> | |
| <!--span style="ffont:italic;"> | |
| <i--> | |
| <xsl:call-template name="ActualPrintMultiColumnToc"> | |
| <xsl:with-param name="isBold">no</xsl:with-param> | |
| <xsl:with-param name="isItalic">yes</xsl:with-param> | |
| </xsl:call-template> | |
| <!--i> | |
| </span--> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:call-template name="ActualPrintMultiColumnToc"> | |
| <xsl:with-param name="isBold">no</xsl:with-param> | |
| <xsl:with-param name="isItalic">no</xsl:with-param> | |
| </xsl:call-template> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:template> | |
| <xsl:template name="loop"> | |
| <xsl:param name="index">0</xsl:param> | |
| <xsl:param name="val"/> | |
| <xsl:if test="$index > 0"> | |
| <xsl:text>.</xsl:text> | |
| <xsl:call-template name="loop"> | |
| <xsl:with-param name="index" select="$index - 1"/> | |
| </xsl:call-template> | |
| </xsl:if> | |
| </xsl:template> | |
| <!--end of senate section --> | |
| <xsl:template match="amendment-list"> | |
| <xsl:variable name="theListType" select="@amendment-list-type"/> | |
| <xsl:call-template name="ActualPrintList"> | |
| <xsl:with-param name="listType" select="$theListType"/> | |
| </xsl:call-template> | |
| </xsl:template> | |
| <xsl:template match="list"> | |
| <xsl:variable name="theListType" select="@list-type"/> | |
| <xsl:variable name="theListLevelClass"> | |
| <xsl:call-template name="getListLevelClass"> | |
| <xsl:with-param name="aListLevel" select="./@level"/> | |
| </xsl:call-template> | |
| </xsl:variable> | |
| <xsl:variable name="thePrintingClass"> | |
| <xsl:call-template name="getOutputStyle"/> | |
| </xsl:variable> | |
| <xsl:choose> | |
| <xsl:when test="$thePrintingClass = 'hidden'"> | |
| <div> | |
| <xsl:attribute name="class"> | |
| <xsl:value-of select="$thePrintingClass"/> | |
| </xsl:attribute> | |
| <xsl:choose> | |
| <xsl:when test="$theListLevelClass != ''"> | |
| <div> | |
| <xsl:attribute name="class"> | |
| <xsl:value-of select="$theListLevelClass"/> | |
| </xsl:attribute> | |
| <xsl:call-template name="ActualPrintList"> | |
| <xsl:with-param name="listType" select="$theListType"/> | |
| </xsl:call-template> | |
| </div> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:call-template name="ActualPrintList"> | |
| <xsl:with-param name="listType" select="$theListType"/> | |
| </xsl:call-template> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </div> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:choose> | |
| <xsl:when test="$theListLevelClass != ''"> | |
| <div> | |
| <xsl:attribute name="class"> | |
| <xsl:value-of select="$theListLevelClass"/> | |
| </xsl:attribute> | |
| <xsl:call-template name="ActualPrintList"> | |
| <xsl:with-param name="listType" select="$theListType"/> | |
| </xsl:call-template> | |
| </div> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:call-template name="ActualPrintList"> | |
| <xsl:with-param name="listType" select="$theListType"/> | |
| </xsl:call-template> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:template> | |
| <xsl:template name="getListLevelClass"> | |
| <xsl:param name="aListLevel"/> | |
| <xsl:choose> | |
| <xsl:when test="$aListLevel = 'section'"> | |
| <xsl:text>lbexIndent</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="$aListLevel = 'subsection'"> | |
| <xsl:text>lbexIndent</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="$aListLevel = 'paragraph'"> | |
| <xsl:text>lbexIndentParagraph</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="$aListLevel = 'subparagraph'"> | |
| <xsl:text>lbexIndentSubpar</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="$aListLevel = 'clause'"> | |
| <xsl:text>lbexIndentClause</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="$aListLevel = 'subclause'"> | |
| <xsl:text>lbexIndentSubclause</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="$aListLevel = 'item'"> | |
| <xsl:text>lbexIndentItem</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="$aListLevel = 'subitem'"> | |
| <xsl:text>lbexIndentSubItem</xsl:text> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:text>lbexIndent</xsl:text> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:template> | |
| <!-- *******************deleted-phrase********************************** --> | |
| <xsl:template match="deleted-phrase"> | |
| <xsl:param name="source"/> | |
| <xsl:choose> | |
| <!-- TB May2011 #1207 --> | |
| <xsl:when test="parent::after-quoted-block and $source != 'after-quoted-block'"/> | |
| <xsl:when | |
| test="(ancestor::appropriations-major or ancestor::appropriations-intermediate or ancestor::appropriations-small) and parent::header"> | |
| <!--xsl:call-template name="displayHeader"/--> | |
| <xsl:call-template name="PrintHeaderForAppropriations"/> | |
| </xsl:when> | |
| <xsl:when | |
| test="(ancestor::appropriations-major or ancestor::appropriations-intermediate or ancestor::appropriations-small) and parent::subheader"> | |
| <xsl:call-template name="ActualDisplayApppropriationsSubheader"/> | |
| </xsl:when> | |
| <xsl:when | |
| test="(ancestor::appropriations-major or ancestor::appropriations-intermediate or ancestor::appropriations-small)"> | |
| <xsl:call-template name="ActualPrintAppropriationElement"/> | |
| </xsl:when> | |
| <xsl:when test="parent::header"> | |
| <xsl:choose> | |
| <xsl:when test="contains(@reported-display-style, 'brackets')"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>[</xsl:text> | |
| </span> | |
| <xsl:call-template name="displayHeader"/> | |
| <span class="lbexBrakets"> | |
| <xsl:text>]</xsl:text> | |
| </span> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:text> </xsl:text> | |
| <span class="lbexTextStrikethrough"> | |
| <xsl:call-template name="displayHeader"/> | |
| </span> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:when> | |
| <xsl:when | |
| test=" | |
| (parent::enum and ./@deleted-display-style = 'bold-brackets') or | |
| (parent::enum and ./@reported-display-style = 'bold-brackets')"> | |
| <!--span style="font-family:Arial Black;"--> | |
| <span class="lbexBrakets"> | |
| <xsl:text>[</xsl:text> | |
| </span> | |
| <xsl:value-of select="."/> | |
| <!--/span--> | |
| <span class="lbexBrakets"> | |
| <xsl:text>]</xsl:text> | |
| </span> | |
| </xsl:when> | |
| <xsl:when test="@reported-display-style = 'strikethrough'"> | |
| <span class="lbexTextStrikethrough"> | |
| <xsl:if test="ancestor::*/@reported-display-style = 'italic'"> | |
| <xsl:attribute name="style">font-style: normal;</xsl:attribute> | |
| </xsl:if> | |
| <xsl:apply-templates/> | |
| </span> | |
| </xsl:when> | |
| <xsl:when | |
| test="(./@reported-display-style = 'boldface-italic' or @reported-display-style = 'boldface-italic')"> | |
| <b> | |
| <i class="lbexTextNeutral"> | |
| <xsl:apply-templates/> | |
| </i> | |
| </b> | |
| </xsl:when> | |
| <xsl:when test="(@reported-display-style = 'brackets-boldface-italic')"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>[</xsl:text> | |
| </span> | |
| <b> | |
| <i class="lbexTextNeutral"> | |
| <xsl:apply-templates/> | |
| </i> | |
| </b> | |
| <span class="lbexBrakets"> | |
| <xsl:text>]</xsl:text> | |
| </span> | |
| </xsl:when> | |
| <xsl:when test="@reported-display-style = 'parentheses-boldface-italic'"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>(</xsl:text> | |
| </span> | |
| <b> | |
| <i class="lbexTextNeutral"> | |
| <xsl:apply-templates/> | |
| </i> | |
| </b> | |
| <span class="lbexBrakets"> | |
| <xsl:text>)</xsl:text> | |
| </span> | |
| </xsl:when> | |
| <xsl:when test="(@reported-display-style = 'brackets-boldface-roman')"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>[</xsl:text> | |
| </span> | |
| <b> | |
| <xsl:apply-templates/> | |
| </b> | |
| <span class="lbexBrakets"> | |
| <xsl:text>]</xsl:text> | |
| </span> | |
| </xsl:when> | |
| <xsl:when test="(@reported-display-style = 'boldface-roman')"> | |
| <b> | |
| <xsl:apply-templates/> | |
| </b> | |
| </xsl:when> | |
| <xsl:when test="@reported-display-style = 'parentheses-boldface-roman'"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>(</xsl:text> | |
| </span> | |
| <b> | |
| <xsl:apply-templates/> | |
| </b> | |
| <span class="lbexBrakets"> | |
| <xsl:text>)</xsl:text> | |
| </span> | |
| </xsl:when> | |
| <xsl:when | |
| test=" | |
| (./@reported-display-style = 'parentheses-boldface-italic') or | |
| (./@reported-display-style = 'brackets-boldface-italic')"> | |
| <xsl:apply-templates/> | |
| </xsl:when> | |
| <xsl:when | |
| test="(./@reported-display-style = 'bold-brackets' or @reported-display-style = 'bold-brackets')"> | |
| <span class="lbexBrakets"> | |
| <xsl:text>[</xsl:text> | |
| </span> | |
| <xsl:apply-templates/> | |
| <span class="lbexBrakets"> | |
| <xsl:text>]</xsl:text> | |
| </span> | |
| </xsl:when> | |
| <xsl:when test="@reported-display-style = 'italic'"> | |
| <i class="lbexTextNeutral"> | |
| <xsl:apply-templates/> | |
| </i> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <span class="lbexTextStrikethrough"> | |
| <xsl:apply-templates/> | |
| </span> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:template> | |
| <!-- ********************No Text Before***************** --> | |
| <xsl:template name="NoTextBefore"> | |
| <xsl:param name="aCurrentText"/> | |
| <xsl:variable name="aWholeText"> | |
| <xsl:for-each select="parent::node()"> | |
| <xsl:value-of select="."/> | |
| </xsl:for-each> | |
| </xsl:variable> | |
| <xsl:variable name="stringPartToProceed_1"> | |
| <xsl:value-of select="normalize-space(substring-before($aWholeText, $aCurrentText))"/> | |
| </xsl:variable> | |
| <xsl:choose> | |
| <xsl:when | |
| test="parent::subparagraph or parent::clause or parent::subclause or parent::item or parent::subitem"> | |
| <xsl:text>true</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="$stringPartToProceed_1 = ''"> | |
| <xsl:text>true</xsl:text> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:text>false</xsl:text> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:template> | |
| <!-- **********No text before******************** --> | |
| <xsl:template name="SpecialTextBefore"> | |
| <xsl:param name="aCurrentText"/> | |
| <xsl:variable name="aWholeText"> | |
| <xsl:for-each select="parent::node()"> | |
| <xsl:value-of select="."/> | |
| </xsl:for-each> | |
| </xsl:variable> | |
| <xsl:variable name="stringPartToProceed_1"> | |
| <xsl:value-of select="normalize-space(substring-before($aWholeText, $aCurrentText))"/> | |
| </xsl:variable> | |
| <xsl:variable name="stringInBefore"> | |
| <xsl:value-of | |
| select="substring($stringPartToProceed_1, string-length($stringPartToProceed_1), 1)" | |
| /> | |
| </xsl:variable> | |
| <xsl:variable name="string5ChBefore"> | |
| <xsl:value-of | |
| select="substring($stringPartToProceed_1, string-length($stringPartToProceed_1) - 4, 5)" | |
| /> | |
| </xsl:variable> | |
| <xsl:variable name="string10ChBefore"> | |
| <xsl:value-of | |
| select="substring($stringPartToProceed_1, string-length($stringPartToProceed_1) - 9, 10)" | |
| /> | |
| </xsl:variable> | |
| <xsl:choose> | |
| <xsl:when test="$stringInBefore = '('"> | |
| <xsl:text>true</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="$stringInBefore = '['"> | |
| <xsl:text>true</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="$stringInBefore = '+'"> | |
| <xsl:text>true</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="$stringInBefore = '-'"> | |
| <xsl:text>true</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="$stringInBefore = '—'"> | |
| <xsl:text>true</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="$stringInBefore = '–'"> | |
| <xsl:text>true</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="$stringInBefore = '‘'"> | |
| <xsl:text>true</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="$stringInBefore = '“'"> | |
| <xsl:text>true</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="$string5ChBefore = '&' "> | |
| <xsl:text>true</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="$string10ChBefore = '[[[mdash]]]'"> | |
| <xsl:text>true</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="$string10ChBefore = '[[[ndash]]]'"> | |
| <xsl:text>true</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="$string10ChBefore = '[[[ensp]]]'"> | |
| <xsl:text>true</xsl:text> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:text>false</xsl:text> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:template> | |
| <!-- **********To generate em-dash************* --> | |
| <xsl:template name="GenerateEmDash"> | |
| <xsl:param name="IsForFollowingSibling"/> | |
| <xsl:param name="currentStyle"/> | |
| <xsl:variable name="IAmInLowLevelStructure"> | |
| <xsl:choose> | |
| <xsl:when test="ancestor::subparagraph"> | |
| <xsl:text>yes</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="ancestor::clasue"> | |
| <xsl:text>yes</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="ancestor::subclause"> | |
| <xsl:text>yes</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="ancestor::item"> | |
| <xsl:text>yes</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="ancestor::subitem"> | |
| <xsl:text>yes</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="ancestor::rules-subparagraph or ancestor::rules-subdivision or ancestor::rules-item or ancestor::rules-subitem"> | |
| <xsl:text>yes</xsl:text> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:text>no</xsl:text> | |
| </xsl:otherwise> | |
| </xsl:choose> | |
| </xsl:variable> | |
| <xsl:variable name="style"> | |
| <xsl:choose> | |
| <xsl:when test="not($currentStyle = '')"> | |
| <xsl:value-of select="$currentStyle"/> | |
| </xsl:when> | |
| <xsl:otherwise> | |
| <xsl:text>OLC</xsl:text> | |
| </xsl:otherwise> | |
| <!--xsl:otherwise> | |
| <xsl:call-template name="GetNearestAncestorStyleRecursive"/> | |
| </xsl:otherwise--> | |
| </xsl:choose> | |
| </xsl:variable> | |
| <xsl:variable name="isNoTextBefore"> | |
| <xsl:call-template name="NoTextBefore"> | |
| <xsl:with-param name="aCurrentText" select="."/> | |
| </xsl:call-template> | |
| </xsl:variable> | |
| <xsl:variable name="isInRamseyerGenerate"> | |
| <xsl:call-template name="isRamseyerGenerateOn"/> | |
| </xsl:variable> | |
| <xsl:variable name="isInCordonGenerate"> | |
| <xsl:call-template name="isInCordonGenerateOn"/> | |
| </xsl:variable> | |
| <xsl:choose> | |
| <xsl:when | |
| test="$isInRamseyerGenerate = 'no' and ($IAmInLowLevelStructure = 'yes' or ancestor-or-self::section or ancestor-or-self::subsection)"> | |
| <xsl:text>false</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="$isInCordonGenerate = 'no' and ($IAmInLowLevelStructure = 'yes' or ancestor-or-self::section or ancestor-or-self::subsection)"> | |
| <xsl:text>false</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="parent::subsection or parent::paragraph or parent::subparagraph or parent::clause or parent::subclause or parent::item or parent::subitem"> | |
| <xsl:text>true</xsl:text> | |
| </xsl:when> | |
| <xsl:when | |
| test="$IsForFollowingSibling = 'true' and (string(parent::header) != '' and not(parent::header[@display- |