Advertisement
Guest User

Untitled

a guest
Nov 17th, 2016
253
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 287.79 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2.  
  3. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt"
  4.                 xmlns:b="http://schemas.openxmlformats.org/officeDocument/2006/bibliography" xmlns:t="http://www.microsoft.com/temp">
  5.  
  6.     <xsl:output method="html" encoding="us-ascii"/>
  7.  
  8.     <xsl:template match="/">
  9.         <xsl:call-template name="Start"/>
  10.     </xsl:template>
  11.  
  12.     <xsl:template name="Start">
  13.         <xsl:choose>
  14.             <xsl:when test="b:Version">
  15.                 <xsl:text>2010.2.02</xsl:text>
  16.             </xsl:when>
  17.  
  18.             <xsl:when test="b:XslVersion">
  19.                 <xsl:text>2006</xsl:text>
  20.             </xsl:when>
  21.       <xsl:when test="b:StyleNameLocalized">
  22.         <xsl:choose>
  23.           <xsl:when test="b:StyleNameLocalized/b:Lcid='1033'">
  24.             <xsl:text>IEEE 2</xsl:text>
  25.           </xsl:when>
  26.           <xsl:when test="b:StyleNameLocalized/b:Lcid='1025'">
  27.             <xsl:text>IEEE 2</xsl:text>
  28.           </xsl:when>
  29.           <xsl:when test="b:StyleNameLocalized/b:Lcid='1037'">
  30.             <xsl:text>IEEE 2</xsl:text>
  31.           </xsl:when>
  32.           <xsl:when test="b:StyleNameLocalized/b:Lcid='1041'">
  33.             <xsl:text>IEEE 2</xsl:text>
  34.           </xsl:when>
  35.           <xsl:when test="b:StyleNameLocalized/b:Lcid='2052'">
  36.             <xsl:text>IEEE 2</xsl:text>
  37.           </xsl:when>
  38.           <xsl:when test="b:StyleNameLocalized/b:Lcid='1028'">
  39.             <xsl:text>IEEE 2</xsl:text>
  40.           </xsl:when>
  41.           <xsl:when test="b:StyleNameLocalized/b:Lcid='1042'">
  42.             <xsl:text>IEEE 2</xsl:text>
  43.           </xsl:when>
  44.           <xsl:when test="b:StyleNameLocalized/b:Lcid='1036'">
  45.             <xsl:text>IEEE 2</xsl:text>
  46.           </xsl:when>
  47.           <xsl:when test="b:StyleNameLocalized/b:Lcid='1040'">
  48.             <xsl:text>IEEE 2</xsl:text>
  49.           </xsl:when>
  50.           <xsl:when test="b:StyleNameLocalized/b:Lcid='3082'">
  51.             <xsl:text>IEEE 2</xsl:text>
  52.           </xsl:when>
  53.           <xsl:when test="b:StyleNameLocalized/b:Lcid='1043'">
  54.             <xsl:text>IEEE 2</xsl:text>
  55.           </xsl:when>
  56.           <xsl:when test="b:StyleNameLocalized/b:Lcid='1031'">
  57.             <xsl:text>IEEE 2</xsl:text>
  58.           </xsl:when>
  59.           <xsl:when test="b:StyleNameLocalized/b:Lcid='1046'">
  60.             <xsl:text>IEEE 2</xsl:text>
  61.           </xsl:when>
  62.           <xsl:when test="b:StyleNameLocalized/b:Lcid='1049'">
  63.             <xsl:text>IEEE 2</xsl:text>
  64.           </xsl:when>
  65.           <xsl:when test="b:StyleNameLocalized/b:Lcid='1035'">
  66.             <xsl:text>IEEE 2</xsl:text>
  67.           </xsl:when>
  68.           <xsl:when test="b:StyleNameLocalized/b:Lcid='1032'">
  69.             <xsl:text>IEEE 2</xsl:text>
  70.           </xsl:when>
  71.           <xsl:when test="b:StyleNameLocalized/b:Lcid='1081'">
  72.             <xsl:text>IEEE 2</xsl:text>
  73.           </xsl:when>
  74.           <xsl:when test="b:StyleNameLocalized/b:Lcid='1054'">
  75.             <xsl:text>IEEE 2</xsl:text>
  76.           </xsl:when>
  77.           <xsl:when test="b:StyleNameLocalized/b:Lcid='1057'">
  78.             <xsl:text>IEEE 2</xsl:text>
  79.           </xsl:when>
  80.           <xsl:when test="b:StyleNameLocalized/b:Lcid='1086'">
  81.             <xsl:text>IEEE 2</xsl:text>
  82.           </xsl:when>
  83.           <xsl:when test="b:StyleNameLocalized/b:Lcid='1066'">
  84.             <xsl:text>IEEE 2</xsl:text>
  85.           </xsl:when>
  86.           <xsl:when test="b:StyleNameLocalized/b:Lcid='1053'">
  87.             <xsl:text>IEEE 2</xsl:text>
  88.           </xsl:when>
  89.           <xsl:when test="b:StyleNameLocalized/b:Lcid='1069'">
  90.             <xsl:text>IEEE 2</xsl:text>
  91.           </xsl:when>
  92.           <xsl:when test="b:StyleNameLocalized/b:Lcid='1027'">
  93.             <xsl:text>IEEE 2</xsl:text>
  94.           </xsl:when>
  95.           <xsl:when test="b:StyleNameLocalized/b:Lcid='1030'">
  96.             <xsl:text>IEEE 2</xsl:text>
  97.           </xsl:when>
  98.           <xsl:when test="b:StyleNameLocalized/b:Lcid='1110'">
  99.             <xsl:text>IEEE 2</xsl:text>
  100.           </xsl:when>
  101.           <xsl:when test="b:StyleNameLocalized/b:Lcid='1044'">
  102.             <xsl:text>IEEE 2</xsl:text>
  103.           </xsl:when>
  104.           <xsl:when test="b:StyleNameLocalized/b:Lcid='1061'">
  105.             <xsl:text>IEEE 2</xsl:text>
  106.           </xsl:when>
  107.           <xsl:when test="b:StyleNameLocalized/b:Lcid='1062'">
  108.             <xsl:text>IEEE 2</xsl:text>
  109.           </xsl:when>
  110.           <xsl:when test="b:StyleNameLocalized/b:Lcid='1063'">
  111.             <xsl:text>IEEE 2</xsl:text>
  112.           </xsl:when>
  113.           <xsl:when test="b:StyleNameLocalized/b:Lcid='1045'">
  114.             <xsl:text>IEEE 2</xsl:text>
  115.           </xsl:when>
  116.           <xsl:when test="b:StyleNameLocalized/b:Lcid='2070'">
  117.             <xsl:text>IEEE 2</xsl:text>
  118.           </xsl:when>
  119.           <xsl:when test="b:StyleNameLocalized/b:Lcid='1029'">
  120.             <xsl:text>IEEE 2</xsl:text>
  121.           </xsl:when>
  122.           <xsl:when test="b:StyleNameLocalized/b:Lcid='1055'">
  123.             <xsl:text>IEEE 2</xsl:text>
  124.           </xsl:when>
  125.           <xsl:when test="b:StyleNameLocalized/b:Lcid='1038'">
  126.             <xsl:text>IEEE 2</xsl:text>
  127.           </xsl:when>
  128.           <xsl:when test="b:StyleNameLocalized/b:Lcid='1048'">
  129.             <xsl:text>IEEE 2</xsl:text>
  130.           </xsl:when>
  131.           <xsl:when test="b:StyleNameLocalized/b:Lcid='1058'">
  132.             <xsl:text>IEEE 2</xsl:text>
  133.           </xsl:when>
  134.           <xsl:when test="b:StyleNameLocalized/b:Lcid='1026'">
  135.             <xsl:text>IEEE 2</xsl:text>
  136.           </xsl:when>
  137.           <xsl:when test="b:StyleNameLocalized/b:Lcid='1050'">
  138.             <xsl:text>IEEE 2</xsl:text>
  139.           </xsl:when>
  140.           <xsl:when test="b:StyleNameLocalized/b:Lcid='1087'">
  141.             <xsl:text>Электр және электроника инженерлері институты</xsl:text>
  142.           </xsl:when>
  143.           <xsl:when test="b:StyleNameLocalized/b:Lcid='2074'">
  144.             <xsl:text>IEEE 2</xsl:text>
  145.           </xsl:when>
  146.           <xsl:when test="b:StyleNameLocalized/b:Lcid='3098'">
  147.             <xsl:text>IEEE 2</xsl:text>
  148.           </xsl:when>
  149.           <xsl:when test="b:StyleNameLocalized/b:Lcid='1051'">
  150.             <xsl:text>IEEE 2</xsl:text>
  151.           </xsl:when>
  152.           <xsl:when test="b:StyleNameLocalized/b:Lcid='1060'">
  153.             <xsl:text>Način citiranja IEEE 2</xsl:text>
  154.           </xsl:when>
  155.           <xsl:when test="b:StyleNameLocalized/b:Lcid='9242'">
  156.             <xsl:text>IEEE 2</xsl:text>
  157.           </xsl:when>
  158.           <xsl:when test="b:StyleNameLocalized/b:Lcid='10266'">
  159.             <xsl:text>IEEE 2</xsl:text>
  160.           </xsl:when>
  161.           <xsl:otherwise>
  162.             <xsl:text>IEEE 2</xsl:text>
  163.           </xsl:otherwise>
  164.         </xsl:choose>
  165.       </xsl:when>
  166.  
  167.       <xsl:when test="b:category">
  168.                 <xsl:text>From Office Online</xsl:text>
  169.             </xsl:when>
  170.             <xsl:when test="b:GetImportantFields">
  171.                 <b:ImportantFields>
  172.                     <xsl:choose>
  173.                         <xsl:when test="b:GetImportantFields/b:SourceType='Book'">
  174.                             <b:ImportantField>
  175.                                 <xsl:text>b:Author/b:Author/b:NameList</xsl:text>
  176.                             </b:ImportantField>
  177.                             <b:ImportantField>
  178.                                 <xsl:text>b:Year</xsl:text>
  179.                             </b:ImportantField>
  180.                             <b:ImportantField>
  181.                                 <xsl:text>b:Title</xsl:text>
  182.                             </b:ImportantField>
  183.                             <b:ImportantField>
  184.                                 <xsl:text>b:City</xsl:text>
  185.                             </b:ImportantField>
  186.                             <b:ImportantField>
  187.                                 <xsl:text>b:Publisher</xsl:text>
  188.                             </b:ImportantField>
  189.                         </xsl:when>
  190.  
  191.                         <xsl:when test="b:GetImportantFields/b:SourceType='BookSection'">
  192.                             <b:ImportantField>
  193.                                 <xsl:text>b:Author/b:Author/b:NameList</xsl:text>
  194.                             </b:ImportantField>
  195.                             <b:ImportantField>
  196.                                 <xsl:text>b:Year</xsl:text>
  197.                             </b:ImportantField>
  198.                             <b:ImportantField>
  199.                                 <xsl:text>b:Title</xsl:text>
  200.                             </b:ImportantField>
  201.                             <b:ImportantField>
  202.                                 <xsl:text>b:City</xsl:text>
  203.                             </b:ImportantField>
  204.                             <b:ImportantField>
  205.                                 <xsl:text>b:Publisher</xsl:text>
  206.                             </b:ImportantField>
  207.                             <b:ImportantField>
  208.                                 <xsl:text>b:BookTitle</xsl:text>
  209.                             </b:ImportantField>
  210.                             <b:ImportantField>
  211.                                 <xsl:text>b:Pages</xsl:text>
  212.                             </b:ImportantField>
  213.                         </xsl:when>
  214.  
  215.                         <xsl:when test="b:GetImportantFields/b:SourceType='JournalArticle'">
  216.                             <b:ImportantField>
  217.                                 <xsl:text>b:Author/b:Author/b:NameList</xsl:text>
  218.                             </b:ImportantField>
  219.                             <b:ImportantField>
  220.                                 <xsl:text>b:Year</xsl:text>
  221.                             </b:ImportantField>
  222.                             <b:ImportantField>
  223.                                 <xsl:text>b:Title</xsl:text>
  224.                             </b:ImportantField>
  225.                             <b:ImportantField>
  226.                                 <xsl:text>b:JournalName</xsl:text>
  227.                             </b:ImportantField>
  228.                             <b:ImportantField>
  229.                                 <xsl:text>b:Volume</xsl:text>
  230.                             </b:ImportantField>
  231.                             <b:ImportantField>
  232.                                 <xsl:text>b:Issue</xsl:text>
  233.                             </b:ImportantField>
  234.                             <b:ImportantField>
  235.                                 <xsl:text>b:Pages</xsl:text>
  236.                             </b:ImportantField>
  237.                         </xsl:when>
  238.  
  239.                         <xsl:when test="b:GetImportantFields/b:SourceType='ArticleInAPeriodical'">
  240.                             <b:ImportantField>
  241.                                 <xsl:text>b:Author/b:Author/b:NameList</xsl:text>
  242.                             </b:ImportantField>
  243.                             <b:ImportantField>
  244.                                 <xsl:text>b:Year</xsl:text>
  245.                             </b:ImportantField>
  246.                             <b:ImportantField>
  247.                                 <xsl:text>b:Title</xsl:text>
  248.                             </b:ImportantField>
  249.                             <b:ImportantField>
  250.                                 <xsl:text>b:PeriodicalTitle</xsl:text>
  251.                             </b:ImportantField>
  252.                             <b:ImportantField>
  253.                                 <xsl:text>b:Month</xsl:text>
  254.                             </b:ImportantField>
  255.                             <b:ImportantField>
  256.                                 <xsl:text>b:Day</xsl:text>
  257.                             </b:ImportantField>
  258.                             <b:ImportantField>
  259.                                 <xsl:text>b:Pages</xsl:text>
  260.                             </b:ImportantField>
  261.                         </xsl:when>
  262.  
  263.                         <xsl:when test="b:GetImportantFields/b:SourceType='ConferenceProceedings'">
  264.                             <b:ImportantField>
  265.                                 <xsl:text>b:Author/b:Author/b:NameList</xsl:text>
  266.                             </b:ImportantField>
  267.                             <b:ImportantField>
  268.                                 <xsl:text>b:Year</xsl:text>
  269.                             </b:ImportantField>
  270.                             <b:ImportantField>
  271.                                 <xsl:text>b:Title</xsl:text>
  272.                             </b:ImportantField>
  273.                             <b:ImportantField>
  274.                                 <xsl:text>b:City</xsl:text>
  275.                             </b:ImportantField>
  276.                             <b:ImportantField>
  277.                                 <xsl:text>b:ConferenceName</xsl:text>
  278.                             </b:ImportantField>
  279.                         </xsl:when>
  280.  
  281.                         <xsl:when test="b:GetImportantFields/b:SourceType='Report'">
  282.                             <b:ImportantField>
  283.                                 <xsl:text>b:Author/b:Author/b:NameList</xsl:text>
  284.                             </b:ImportantField>
  285.                             <b:ImportantField>
  286.                                 <xsl:text>b:Year</xsl:text>
  287.                             </b:ImportantField>
  288.                             <b:ImportantField>
  289.                                 <xsl:text>b:Title</xsl:text>
  290.                             </b:ImportantField>
  291.                             <b:ImportantField>
  292.                                 <xsl:text>b:City</xsl:text>
  293.                             </b:ImportantField>
  294.                             <b:ImportantField>
  295.                                 <xsl:text>b:Publisher</xsl:text>
  296.                             </b:ImportantField>
  297.                         </xsl:when>
  298.  
  299.                         <xsl:when test="b:GetImportantFields/b:SourceType='SoundRecording'">
  300.                             <b:ImportantField>
  301.                                 <xsl:text>b:Author/b:Composer/b:NameList</xsl:text>
  302.                             </b:ImportantField>
  303.                             <b:ImportantField>
  304.                                 <xsl:text>b:Year</xsl:text>
  305.                             </b:ImportantField>
  306.                             <b:ImportantField>
  307.                                 <xsl:text>b:Title</xsl:text>
  308.                             </b:ImportantField>
  309.                             <b:ImportantField>
  310.                                 <xsl:text>b:ProductionCompany</xsl:text>
  311.                             </b:ImportantField>
  312.                         </xsl:when>
  313.  
  314.                         <xsl:when test="b:GetImportantFields/b:SourceType='Performance'">
  315.                             <b:ImportantField>
  316.                                 <xsl:text>b:Author/b:Writer/b:NameList</xsl:text>
  317.                             </b:ImportantField>
  318.                             <b:ImportantField>
  319.                                 <xsl:text>b:Year</xsl:text>
  320.                             </b:ImportantField>
  321.                             <b:ImportantField>
  322.                                 <xsl:text>b:Title</xsl:text>
  323.                             </b:ImportantField>
  324.                             <b:ImportantField>
  325.                                 <xsl:text>b:ProductionCompany</xsl:text>
  326.                             </b:ImportantField>
  327.                         </xsl:when>
  328.  
  329.                         <xsl:when test="b:GetImportantFields/b:SourceType='Art'">
  330.                             <b:ImportantField>
  331.                                 <xsl:text>b:Author/b:Artist/b:NameList</xsl:text>
  332.                             </b:ImportantField>
  333.                             <b:ImportantField>
  334.                                 <xsl:text>b:Year</xsl:text>
  335.                             </b:ImportantField>
  336.                             <b:ImportantField>
  337.                                 <xsl:text>b:Title</xsl:text>
  338.                             </b:ImportantField>
  339.                             <b:ImportantField>
  340.                                 <xsl:text>b:Institution</xsl:text>
  341.                             </b:ImportantField>
  342.                         </xsl:when>
  343.  
  344.                         <xsl:when test="b:GetImportantFields/b:SourceType='DocumentFromInternetSite'">
  345.                             <b:ImportantField>
  346.                                 <xsl:text>b:Author/b:Author/b:NameList</xsl:text>
  347.                             </b:ImportantField>
  348.                             <b:ImportantField>
  349.                                 <xsl:text>b:Title</xsl:text>
  350.                             </b:ImportantField>
  351.                             <b:ImportantField>
  352.                                 <xsl:text>b:Year</xsl:text>
  353.                             </b:ImportantField>
  354.                             <b:ImportantField>
  355.                                 <xsl:text>b:Month</xsl:text>
  356.                             </b:ImportantField>
  357.                             <b:ImportantField>
  358.                                 <xsl:text>b:Day</xsl:text>
  359.                             </b:ImportantField>
  360.                             <b:ImportantField>
  361.                                 <xsl:text>b:URL</xsl:text>
  362.                             </b:ImportantField>
  363.                             <b:ImportantField>
  364.                                 <xsl:text>b:YearAccessed</xsl:text>
  365.                             </b:ImportantField>
  366.                             <b:ImportantField>
  367.                                 <xsl:text>b:MonthAccessed</xsl:text>
  368.                             </b:ImportantField>
  369.                             <b:ImportantField>
  370.                                 <xsl:text>b:DayAccessed</xsl:text>
  371.                             </b:ImportantField>
  372.                         </xsl:when>
  373.  
  374.                         <xsl:when test="b:GetImportantFields/b:SourceType='InternetSite'">
  375.                             <b:ImportantField>
  376.                                 <xsl:text>b:Author/b:Author/b:NameList</xsl:text>
  377.                             </b:ImportantField>
  378.                             <b:ImportantField>
  379.                                 <xsl:text>b:Title</xsl:text>
  380.                             </b:ImportantField>
  381.                             <b:ImportantField>
  382.                                 <xsl:text>b:Year</xsl:text>
  383.                             </b:ImportantField>
  384.                             <b:ImportantField>
  385.                                 <xsl:text>b:Month</xsl:text>
  386.                             </b:ImportantField>
  387.                             <b:ImportantField>
  388.                                 <xsl:text>b:Day</xsl:text>
  389.                             </b:ImportantField>
  390.                             <b:ImportantField>
  391.                                 <xsl:text>b:URL</xsl:text>
  392.                             </b:ImportantField>
  393.                             <b:ImportantField>
  394.                                 <xsl:text>b:YearAccessed</xsl:text>
  395.                             </b:ImportantField>
  396.                             <b:ImportantField>
  397.                                 <xsl:text>b:MonthAccessed</xsl:text>
  398.                             </b:ImportantField>
  399.                             <b:ImportantField>
  400.                                 <xsl:text>b:ProductionCompany</xsl:text>
  401.                             </b:ImportantField>
  402.                             <b:ImportantField>
  403.                                 <xsl:text>b:DayAccessed</xsl:text>
  404.                             </b:ImportantField>
  405.                         </xsl:when>
  406.  
  407.                         <xsl:when test="b:GetImportantFields/b:SourceType='Film'">
  408.                             <b:ImportantField>
  409.                                 <xsl:text>b:Title</xsl:text>
  410.                             </b:ImportantField>
  411.                             <b:ImportantField>
  412.                                 <xsl:text>b:Year</xsl:text>
  413.                             </b:ImportantField>
  414.                             <b:ImportantField>
  415.                                 <xsl:text>b:Author/b:Director/b:NameList</xsl:text>
  416.                             </b:ImportantField>
  417.                             <b:ImportantField>
  418.                                 <xsl:text>b:CountryRegion</xsl:text>
  419.                             </b:ImportantField>
  420.                             <b:ImportantField>
  421.                                 <xsl:text>b:ProductionCompany</xsl:text>
  422.                             </b:ImportantField>
  423.                         </xsl:when>
  424.  
  425.                         <xsl:when test="b:GetImportantFields/b:SourceType='Interview'">
  426.                             <b:ImportantField>
  427.                                 <xsl:text>b:Author/b:Interviewee/b:NameList</xsl:text>
  428.                             </b:ImportantField>
  429.                             <b:ImportantField>
  430.                                 <xsl:text>b:Year</xsl:text>
  431.                             </b:ImportantField>
  432.                             <b:ImportantField>
  433.                                 <xsl:text>b:Title</xsl:text>
  434.                             </b:ImportantField>
  435.                             <b:ImportantField>
  436.                                 <xsl:text>b:Month</xsl:text>
  437.                             </b:ImportantField>
  438.                             <b:ImportantField>
  439.                                 <xsl:text>b:Day</xsl:text>
  440.                             </b:ImportantField>
  441.                         </xsl:when>
  442.  
  443.                         <xsl:when test="b:GetImportantFields/b:SourceType='Patent'">
  444.                             <b:ImportantField>
  445.                                 <xsl:text>b:Author/b:Inventor/b:NameList</xsl:text>
  446.                             </b:ImportantField>
  447.                             <b:ImportantField>
  448.                                 <xsl:text>b:Year</xsl:text>
  449.                             </b:ImportantField>
  450.                             <b:ImportantField>
  451.                                 <xsl:text>b:Title</xsl:text>
  452.                             </b:ImportantField>
  453.                             <b:ImportantField>
  454.                                 <xsl:text>b:CountryRegion</xsl:text>
  455.                             </b:ImportantField>
  456.                             <b:ImportantField>
  457.                                 <xsl:text>b:PatentNumber</xsl:text>
  458.                             </b:ImportantField>
  459.                             <b:ImportantField>
  460.                                 <xsl:text>b:Day</xsl:text>
  461.                             </b:ImportantField>
  462.                             <b:ImportantField>
  463.                                 <xsl:text>b:Month</xsl:text>
  464.                             </b:ImportantField>
  465.                         </xsl:when>
  466.  
  467.                         <xsl:when test="b:GetImportantFields/b:SourceType='ElectronicSource'">
  468.                             <b:ImportantField>
  469.                                 <xsl:text>b:Author/b:Author/b:NameList</xsl:text>
  470.                             </b:ImportantField>
  471.                             <b:ImportantField>
  472.                                 <xsl:text>b:Year</xsl:text>
  473.                             </b:ImportantField>
  474.                             <b:ImportantField>
  475.                                 <xsl:text>b:Title</xsl:text>
  476.                             </b:ImportantField>
  477.                             <b:ImportantField>
  478.                                 <xsl:text>b:City</xsl:text>
  479.                             </b:ImportantField>
  480.                             <b:ImportantField>
  481.                                 <xsl:text>b:Publisher</xsl:text>
  482.                             </b:ImportantField>
  483.                         </xsl:when>
  484.  
  485.                         <xsl:when test="b:GetImportantFields/b:SourceType='Case'">
  486.                             <b:ImportantField>
  487.                                 <xsl:text>b:Title</xsl:text>
  488.                             </b:ImportantField>
  489.                             <b:ImportantField>
  490.                                 <xsl:text>b:Year</xsl:text>
  491.                             </b:ImportantField>
  492.                         </xsl:when>
  493.  
  494.                         <xsl:when test="b:GetImportantFields/b:SourceType='Misc'">
  495.                             <b:ImportantField>
  496.                                 <xsl:text>b:Author/b:Author/b:NameList</xsl:text>
  497.                             </b:ImportantField>
  498.                             <b:ImportantField>
  499.                                 <xsl:text>b:Year</xsl:text>
  500.                             </b:ImportantField>
  501.                             <b:ImportantField>
  502.                                 <xsl:text>b:Title</xsl:text>
  503.                             </b:ImportantField>
  504.                             <b:ImportantField>
  505.                                 <xsl:text>b:City</xsl:text>
  506.                             </b:ImportantField>
  507.                             <b:ImportantField>
  508.                                 <xsl:text>b:Publisher</xsl:text>
  509.                             </b:ImportantField>
  510.                         </xsl:when>
  511.                     </xsl:choose>
  512.                 </b:ImportantFields>
  513.             </xsl:when>
  514.             <xsl:when test="b:Bibliography">
  515.                 <xsl:call-template name="Bibliography"/>
  516.             </xsl:when>
  517.             <xsl:when test="b:Citation">
  518.                 <xsl:call-template name="Citation"/>
  519.             </xsl:when>
  520.         </xsl:choose>
  521.     </xsl:template>
  522.  
  523.     <xsl:template name ="Entry">
  524.         <xsl:call-template name="Start"/>
  525.     </xsl:template>
  526.  
  527.  
  528.     <xsl:template name="localLCID">
  529.         <xsl:param name="LCID"/>
  530.         <xsl:variable name="_LCID1">
  531.             <xsl:choose>
  532.                 <xsl:when test="$LCID!='0' and $LCID!=''">
  533.                     <xsl:value-of select="$LCID"/>
  534.                 </xsl:when>
  535.                 <xsl:when test="/b:Citation">
  536.                     <xsl:value-of select="/*/b:Locals/b:DefaultLCID"/>
  537.                 </xsl:when>
  538.                 <xsl:when test="b:LCID">
  539.                     <xsl:value-of select="b:LCID"/>
  540.                 </xsl:when>
  541.                 <xsl:when test="../b:LCID">
  542.                     <xsl:value-of select="../b:LCID"/>
  543.                 </xsl:when>
  544.                 <xsl:when test="../../b:LCID">
  545.                     <xsl:value-of select="../../b:LCID"/>
  546.                 </xsl:when>
  547.                 <xsl:when test="../../../b:LCID">
  548.                     <xsl:value-of select="../../../b:LCID"/>
  549.                 </xsl:when>
  550.                 <xsl:when test="../../../../b:LCID">
  551.                     <xsl:value-of select="../../../../b:LCID"/>
  552.                 </xsl:when>
  553.                 <xsl:when test="../../../../b:LCID">
  554.                     <xsl:value-of select="../../../../b:LCID"/>
  555.                 </xsl:when>
  556.                 <xsl:when test="../../../../../b:LCID">
  557.                     <xsl:value-of select="../../../../../b:LCID"/>
  558.                 </xsl:when>
  559.                 <xsl:otherwise>
  560.                     <xsl:value-of select="/*/b:Locals/b:DefaultLCID"/>
  561.                 </xsl:otherwise>
  562.             </xsl:choose>
  563.         </xsl:variable>
  564.         <xsl:choose>
  565.             <xsl:when test="$_LCID1!='0' and string-length($_LCID1)>0">
  566.                 <xsl:value-of select="$_LCID1"/>
  567.             </xsl:when>
  568.             <xsl:otherwise>
  569.                 <xsl:value-of select="/*/b:Locals/b:DefaultLCID"/>
  570.             </xsl:otherwise>
  571.         </xsl:choose>
  572.     </xsl:template>
  573.  
  574.     <xsl:template name ="templ_str_UnCapEditorsShort">
  575.         <xsl:param name="LCID" />
  576.         <xsl:variable name="_LCID">
  577.             <xsl:call-template name="localLCID">
  578.                 <xsl:with-param name="LCID" select="$LCID"/>
  579.             </xsl:call-template>
  580.         </xsl:variable>
  581.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:UnCapEditorsShort"/>
  582.     </xsl:template>
  583.  
  584.     <xsl:template name="templ_str_Film" >
  585.         <xsl:param name="LCID" />
  586.         <xsl:variable name="_LCID">
  587.             <xsl:call-template name="localLCID">
  588.                 <xsl:with-param name="LCID" select="$LCID"/>
  589.             </xsl:call-template>
  590.         </xsl:variable>
  591.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:SourceNames/b:Film"/>
  592.     </xsl:template>
  593.  
  594.     <xsl:template name="templ_str_AccessedCap" >
  595.         <xsl:param name="LCID" />
  596.         <xsl:variable name="_LCID">
  597.             <xsl:call-template name="localLCID">
  598.                 <xsl:with-param name="LCID" select="$LCID"/>
  599.             </xsl:call-template>
  600.         </xsl:variable>
  601.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:AccessedCap"/>
  602.     </xsl:template>
  603.  
  604.     <xsl:template name="templ_str_OnlineCap" >
  605.         <xsl:param name="LCID" />
  606.         <xsl:variable name="_LCID">
  607.             <xsl:call-template name="localLCID">
  608.                 <xsl:with-param name="LCID" select="$LCID"/>
  609.             </xsl:call-template>
  610.         </xsl:variable>
  611.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:OnlineCap"/>
  612.     </xsl:template>
  613.  
  614.     <xsl:template name="templ_str_OnlineUnCap" >
  615.         <xsl:param name="LCID" />
  616.         <xsl:variable name="_LCID">
  617.             <xsl:call-template name="localLCID">
  618.                 <xsl:with-param name="LCID" select="$LCID"/>
  619.             </xsl:call-template>
  620.         </xsl:variable>
  621.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:OnlineUnCap"/>
  622.     </xsl:template>
  623.  
  624.     <xsl:template name="templ_str_FiledCap" >
  625.         <xsl:param name="LCID" />
  626.         <xsl:variable name="_LCID">
  627.             <xsl:call-template name="localLCID">
  628.                 <xsl:with-param name="LCID" select="$LCID"/>
  629.             </xsl:call-template>
  630.         </xsl:variable>
  631.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:FiledCap"/>
  632.     </xsl:template>
  633.  
  634.     <xsl:template name="templ_str_PatentFiledCap" >
  635.         <xsl:param name="LCID" />
  636.         <xsl:variable name="_LCID">
  637.             <xsl:call-template name="localLCID">
  638.                 <xsl:with-param name="LCID" select="$LCID"/>
  639.             </xsl:call-template>
  640.         </xsl:variable>
  641.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:PatentFiledCap"/>
  642.     </xsl:template>
  643.  
  644.     <xsl:template name="templ_str_InUnCap" >
  645.         <xsl:param name="LCID" />
  646.         <xsl:variable name="_LCID">
  647.             <xsl:call-template name="localLCID">
  648.                 <xsl:with-param name="LCID" select="$LCID"/>
  649.             </xsl:call-template>
  650.         </xsl:variable>
  651.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:InNameUnCap"/>
  652.     </xsl:template>
  653.  
  654.  
  655.     <xsl:template name="templ_prop_APA_SecondaryOpen" >
  656.         <xsl:param name="LCID" />
  657.         <xsl:variable name="_LCID">
  658.             <xsl:call-template name="localLCID">
  659.                 <xsl:with-param name="LCID" select="$LCID"/>
  660.             </xsl:call-template>
  661.         </xsl:variable>
  662.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:APA/b:SecondaryOpen"/>
  663.     </xsl:template>
  664.  
  665.     <xsl:template name="templ_prop_APA_SecondaryClose" >
  666.         <xsl:param name="LCID" />
  667.         <xsl:variable name="_LCID">
  668.             <xsl:call-template name="localLCID">
  669.                 <xsl:with-param name="LCID" select="$LCID"/>
  670.             </xsl:call-template>
  671.         </xsl:variable>
  672.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:APA/b:SecondaryClose"/>
  673.     </xsl:template>
  674.  
  675.     <xsl:template name="templ_prop_Hyphens" >
  676.         <xsl:param name="LCID" />
  677.         <xsl:variable name="_LCID">
  678.             <xsl:call-template name="localLCID">
  679.                 <xsl:with-param name="LCID" select="$LCID"/>
  680.             </xsl:call-template>
  681.         </xsl:variable>
  682.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:General/b:Hyphens"/>
  683.     </xsl:template>
  684.  
  685.     <xsl:template name="templ_str_OnAlbumTitleCap" >
  686.         <xsl:param name="LCID" />
  687.         <xsl:variable name="_LCID">
  688.             <xsl:call-template name="localLCID">
  689.                 <xsl:with-param name="LCID" select="$LCID"/>
  690.             </xsl:call-template>
  691.         </xsl:variable>
  692.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:OnAlbumTitleCap"/>
  693.     </xsl:template>
  694.  
  695.     <xsl:template name="templ_str_InNameCap" >
  696.         <xsl:param name="LCID" />
  697.         <xsl:variable name="_LCID">
  698.             <xsl:call-template name="localLCID">
  699.                 <xsl:with-param name="LCID" select="$LCID"/>
  700.             </xsl:call-template>
  701.         </xsl:variable>
  702.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:InNameCap"/>
  703.     </xsl:template>
  704.  
  705.     <xsl:template name="templ_str_WithUnCap" >
  706.         <xsl:param name="LCID" />
  707.         <xsl:variable name="_LCID">
  708.             <xsl:call-template name="localLCID">
  709.                 <xsl:with-param name="LCID" select="$LCID"/>
  710.             </xsl:call-template>
  711.         </xsl:variable>
  712.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:WithUnCap"/>
  713.     </xsl:template>
  714.  
  715.     <xsl:template name="templ_str_VersionShortCap" >
  716.         <xsl:param name="LCID" />
  717.         <xsl:variable name="_LCID">
  718.             <xsl:call-template name="localLCID">
  719.                 <xsl:with-param name="LCID" select="$LCID"/>
  720.             </xsl:call-template>
  721.         </xsl:variable>
  722.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:VersionShortCap"/>
  723.     </xsl:template>
  724.  
  725.     <xsl:template name="templ_str_InterviewCap" >
  726.         <xsl:param name="LCID" />
  727.         <xsl:variable name="_LCID">
  728.             <xsl:call-template name="localLCID">
  729.                 <xsl:with-param name="LCID" select="$LCID"/>
  730.             </xsl:call-template>
  731.         </xsl:variable>
  732.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:InterviewCap"/>
  733.     </xsl:template>
  734.  
  735.     <xsl:template name="templ_str_InterviewWithCap" >
  736.         <xsl:param name="LCID" />
  737.         <xsl:variable name="_LCID">
  738.             <xsl:call-template name="localLCID">
  739.                 <xsl:with-param name="LCID" select="$LCID"/>
  740.             </xsl:call-template>
  741.         </xsl:variable>
  742.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:InterviewWithCap"/>
  743.     </xsl:template>
  744.  
  745.     <xsl:template name="templ_str_InterviewByCap" >
  746.         <xsl:param name="LCID" />
  747.         <xsl:variable name="_LCID">
  748.             <xsl:call-template name="localLCID">
  749.                 <xsl:with-param name="LCID" select="$LCID"/>
  750.             </xsl:call-template>
  751.         </xsl:variable>
  752.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:InterviewByCap"/>
  753.     </xsl:template>
  754.  
  755.     <xsl:template name="templ_str_ArtCap" >
  756.         <xsl:param name="LCID" />
  757.         <xsl:variable name="_LCID">
  758.             <xsl:call-template name="localLCID">
  759.                 <xsl:with-param name="LCID" select="$LCID"/>
  760.             </xsl:call-template>
  761.         </xsl:variable>
  762.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:SourceNames/b:Art"/>
  763.     </xsl:template>
  764.  
  765.     <xsl:template name="templ_str_SoundRecordingCap" >
  766.         <xsl:param name="LCID" />
  767.         <xsl:variable name="_LCID">
  768.             <xsl:call-template name="localLCID">
  769.                 <xsl:with-param name="LCID" select="$LCID"/>
  770.             </xsl:call-template>
  771.         </xsl:variable>
  772.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:SourceNames/b:SoundRecording"/>
  773.     </xsl:template>
  774.  
  775.     <xsl:template name="templ_str_ByCap" >
  776.         <xsl:param name="LCID" />
  777.         <xsl:variable name="_LCID">
  778.             <xsl:call-template name="localLCID">
  779.                 <xsl:with-param name="LCID" select="$LCID"/>
  780.             </xsl:call-template>
  781.         </xsl:variable>
  782.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:ByCap"/>
  783.     </xsl:template>
  784.  
  785.     <xsl:template name="templ_str_AndUnCap" >
  786.         <xsl:param name="LCID" />
  787.         <xsl:variable name="_LCID">
  788.             <xsl:call-template name="localLCID">
  789.                 <xsl:with-param name="LCID" select="$LCID"/>
  790.             </xsl:call-template>
  791.         </xsl:variable>
  792.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:AndUnCap"/>
  793.     </xsl:template>
  794.  
  795.     <xsl:template name="templ_str_AndOthersUnCap" >
  796.         <xsl:param name="LCID" />
  797.         <xsl:variable name="_LCID">
  798.             <xsl:call-template name="localLCID">
  799.                 <xsl:with-param name="LCID" select="$LCID"/>
  800.             </xsl:call-template>
  801.         </xsl:variable>
  802.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:AndOthersUnCap"/>
  803.     </xsl:template>
  804.  
  805.     <xsl:template name="templ_str_MotionPictureCap" >
  806.         <xsl:param name="LCID" />
  807.         <xsl:variable name="_LCID">
  808.             <xsl:call-template name="localLCID">
  809.                 <xsl:with-param name="LCID" select="$LCID"/>
  810.             </xsl:call-template>
  811.         </xsl:variable>
  812.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:MotionPictureCap"/>
  813.     </xsl:template>
  814.  
  815.     <xsl:template name="templ_str_PatentCap" >
  816.         <xsl:param name="LCID" />
  817.         <xsl:variable name="_LCID">
  818.             <xsl:call-template name="localLCID">
  819.                 <xsl:with-param name="LCID" select="$LCID"/>
  820.             </xsl:call-template>
  821.         </xsl:variable>
  822.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:PatentCap"/>
  823.     </xsl:template>
  824.  
  825.     <xsl:template name="templ_str_EditionShortUnCap" >
  826.         <xsl:param name="LCID" />
  827.         <xsl:variable name="_LCID">
  828.             <xsl:call-template name="localLCID">
  829.                 <xsl:with-param name="LCID" select="$LCID"/>
  830.             </xsl:call-template>
  831.         </xsl:variable>
  832.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:EditionShortUnCap"/>
  833.     </xsl:template>
  834.  
  835.     <xsl:template name="templ_str_EditionUnCap" >
  836.         <xsl:param name="LCID" />
  837.         <xsl:variable name="_LCID">
  838.             <xsl:call-template name="localLCID">
  839.                 <xsl:with-param name="LCID" select="$LCID"/>
  840.             </xsl:call-template>
  841.         </xsl:variable>
  842.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:EditionUnCap"/>
  843.     </xsl:template>
  844.  
  845.     <xsl:template name="templ_str_RetrievedFromCap" >
  846.         <xsl:param name="LCID" />
  847.         <xsl:variable name="_LCID">
  848.             <xsl:call-template name="localLCID">
  849.                 <xsl:with-param name="LCID" select="$LCID"/>
  850.             </xsl:call-template>
  851.         </xsl:variable>
  852.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:RetrievedFromCap"/>
  853.     </xsl:template>
  854.  
  855.     <xsl:template name="templ_str_RetrievedCap" >
  856.         <xsl:param name="LCID" />
  857.         <xsl:variable name="_LCID">
  858.             <xsl:call-template name="localLCID">
  859.                 <xsl:with-param name="LCID" select="$LCID"/>
  860.             </xsl:call-template>
  861.         </xsl:variable>
  862.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:RetrievedCap"/>
  863.     </xsl:template>
  864.  
  865.     <xsl:template name="templ_str_FromCap" >
  866.         <xsl:param name="LCID" />
  867.         <xsl:variable name="_LCID">
  868.             <xsl:call-template name="localLCID">
  869.                 <xsl:with-param name="LCID" select="$LCID"/>
  870.             </xsl:call-template>
  871.         </xsl:variable>
  872.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:FromCap"/>
  873.     </xsl:template>
  874.  
  875.     <xsl:template name="templ_str_FromUnCap" >
  876.         <xsl:param name="LCID" />
  877.         <xsl:variable name="_LCID">
  878.             <xsl:call-template name="localLCID">
  879.                 <xsl:with-param name="LCID" select="$LCID"/>
  880.             </xsl:call-template>
  881.         </xsl:variable>
  882.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:FromUnCap"/>
  883.     </xsl:template>
  884.  
  885.     <xsl:template name="templ_str_NoDateShortUnCap" >
  886.         <xsl:param name="LCID" />
  887.         <xsl:variable name="_LCID">
  888.             <xsl:call-template name="localLCID">
  889.                 <xsl:with-param name="LCID" select="$LCID"/>
  890.             </xsl:call-template>
  891.         </xsl:variable>
  892.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:NoDateShortUnCap"/>
  893.     </xsl:template>
  894.  
  895.  
  896.     <xsl:template name="templ_str_NumberShortCap" >
  897.         <xsl:param name="LCID" />
  898.         <xsl:variable name="_LCID">
  899.             <xsl:call-template name="localLCID">
  900.                 <xsl:with-param name="LCID" select="$LCID"/>
  901.             </xsl:call-template>
  902.         </xsl:variable>
  903.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:NumberShortCap"/>
  904.     </xsl:template>
  905.  
  906.  
  907.     <xsl:template name="templ_str_NumberShortUnCap" >
  908.         <xsl:param name="LCID" />
  909.         <xsl:variable name="_LCID">
  910.             <xsl:call-template name="localLCID">
  911.                 <xsl:with-param name="LCID" select="$LCID"/>
  912.             </xsl:call-template>
  913.         </xsl:variable>
  914.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:NumberShortUnCap"/>
  915.     </xsl:template>
  916.  
  917.  
  918.     <xsl:template name="templ_str_PatentNumberShortCap" >
  919.         <xsl:param name="LCID" />
  920.         <xsl:variable name="_LCID">
  921.             <xsl:call-template name="localLCID">
  922.                 <xsl:with-param name="LCID" select="$LCID"/>
  923.             </xsl:call-template>
  924.         </xsl:variable>
  925.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:PatentNumberShortCap"/>
  926.     </xsl:template>
  927.  
  928.  
  929.     <xsl:template name="templ_str_PagesCountinousShort" >
  930.         <xsl:param name="LCID" />
  931.         <xsl:variable name="_LCID">
  932.             <xsl:call-template name="localLCID">
  933.                 <xsl:with-param name="LCID" select="$LCID"/>
  934.             </xsl:call-template>
  935.         </xsl:variable>
  936.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:PagesCountinousShort"/>
  937.     </xsl:template>
  938.  
  939.  
  940.     <xsl:template name="templ_str_PageShort" >
  941.         <xsl:param name="LCID" />
  942.         <xsl:variable name="_LCID">
  943.             <xsl:call-template name="localLCID">
  944.                 <xsl:with-param name="LCID" select="$LCID"/>
  945.             </xsl:call-template>
  946.         </xsl:variable>
  947.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:PageShort"/>
  948.     </xsl:template>
  949.  
  950.  
  951.     <xsl:template name="templ_str_SineNomineShort" >
  952.         <xsl:param name="LCID" />
  953.         <xsl:variable name="_LCID">
  954.             <xsl:call-template name="localLCID">
  955.                 <xsl:with-param name="LCID" select="$LCID"/>
  956.             </xsl:call-template>
  957.         </xsl:variable>
  958.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:SineNomineShort"/>
  959.     </xsl:template>
  960.  
  961.  
  962.     <xsl:template name="templ_str_SineLocoShort" >
  963.         <xsl:param name="LCID" />
  964.         <xsl:variable name="_LCID">
  965.             <xsl:call-template name="localLCID">
  966.                 <xsl:with-param name="LCID" select="$LCID"/>
  967.             </xsl:call-template>
  968.         </xsl:variable>
  969.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:SineLocoShort"/>
  970.     </xsl:template>
  971.  
  972.  
  973.     <xsl:template name="templ_str_SineLocoSineNomineShort" >
  974.         <xsl:param name="LCID" />
  975.         <xsl:variable name="_LCID">
  976.             <xsl:call-template name="localLCID">
  977.                 <xsl:with-param name="LCID" select="$LCID"/>
  978.             </xsl:call-template>
  979.         </xsl:variable>
  980.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:SineLocoSineNomineShort"/>
  981.     </xsl:template>
  982.  
  983.  
  984.     <xsl:template name="templ_str_VolumeOfShortCap" >
  985.         <xsl:param name="LCID" />
  986.         <xsl:variable name="_LCID">
  987.             <xsl:call-template name="localLCID">
  988.                 <xsl:with-param name="LCID" select="$LCID"/>
  989.             </xsl:call-template>
  990.         </xsl:variable>
  991.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:VolumeOfShortCap"/>
  992.     </xsl:template>
  993.  
  994.  
  995.     <xsl:template name="templ_str_VolumesOfShortCap" >
  996.         <xsl:param name="LCID" />
  997.         <xsl:variable name="_LCID">
  998.             <xsl:call-template name="localLCID">
  999.                 <xsl:with-param name="LCID" select="$LCID"/>
  1000.             </xsl:call-template>
  1001.         </xsl:variable>
  1002.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:VolumesOfShortCap"/>
  1003.     </xsl:template>
  1004.  
  1005.  
  1006.     <xsl:template name="templ_str_VolumeShortCap" >
  1007.         <xsl:param name="LCID" />
  1008.         <xsl:variable name="_LCID">
  1009.             <xsl:call-template name="localLCID">
  1010.                 <xsl:with-param name="LCID" select="$LCID"/>
  1011.             </xsl:call-template>
  1012.         </xsl:variable>
  1013.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:VolumeShortCap"/>
  1014.     </xsl:template>
  1015.  
  1016.  
  1017.     <xsl:template name="templ_str_VolumeShortUnCap" >
  1018.         <xsl:param name="LCID" />
  1019.         <xsl:variable name="_LCID">
  1020.             <xsl:call-template name="localLCID">
  1021.                 <xsl:with-param name="LCID" select="$LCID"/>
  1022.             </xsl:call-template>
  1023.         </xsl:variable>
  1024.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:VolumeShortUnCap"/>
  1025.     </xsl:template>
  1026.  
  1027.  
  1028.     <xsl:template name="templ_str_VolumesShortUnCap" >
  1029.         <xsl:param name="LCID" />
  1030.         <xsl:variable name="_LCID">
  1031.             <xsl:call-template name="localLCID">
  1032.                 <xsl:with-param name="LCID" select="$LCID"/>
  1033.             </xsl:call-template>
  1034.         </xsl:variable>
  1035.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:VolumesShortUnCap"/>
  1036.     </xsl:template>
  1037.  
  1038.     <xsl:template name="templ_str_VolumesShortCap" >
  1039.         <xsl:param name="LCID" />
  1040.         <xsl:variable name="_LCID">
  1041.             <xsl:call-template name="localLCID">
  1042.                 <xsl:with-param name="LCID" select="$LCID"/>
  1043.             </xsl:call-template>
  1044.         </xsl:variable>
  1045.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:VolumesShortCap"/>
  1046.     </xsl:template>
  1047.  
  1048.     <xsl:template name="templ_str_VolumeCap" >
  1049.         <xsl:param name="LCID" />
  1050.         <xsl:variable name="_LCID">
  1051.             <xsl:call-template name="localLCID">
  1052.                 <xsl:with-param name="LCID" select="$LCID"/>
  1053.             </xsl:call-template>
  1054.         </xsl:variable>
  1055.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:VolumeCap"/>
  1056.     </xsl:template>
  1057.  
  1058.     <xsl:template name="templ_str_AuthorShortUnCap" >
  1059.         <xsl:param name="LCID" />
  1060.         <xsl:variable name="_LCID">
  1061.             <xsl:call-template name="localLCID">
  1062.                 <xsl:with-param name="LCID" select="$LCID"/>
  1063.             </xsl:call-template>
  1064.         </xsl:variable>
  1065.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:AuthorShortUnCap"/>
  1066.     </xsl:template>
  1067.  
  1068.     <xsl:template name="templ_str_BookAuthorShortUnCap" >
  1069.         <xsl:param name="LCID" />
  1070.         <xsl:variable name="_LCID">
  1071.             <xsl:call-template name="localLCID">
  1072.                 <xsl:with-param name="LCID" select="$LCID"/>
  1073.             </xsl:call-template>
  1074.         </xsl:variable>
  1075.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:BookAuthorShortUnCap"/>
  1076.     </xsl:template>
  1077.  
  1078.     <xsl:template name="templ_str_ArtistShortUnCap" >
  1079.         <xsl:param name="LCID" />
  1080.         <xsl:variable name="_LCID">
  1081.             <xsl:call-template name="localLCID">
  1082.                 <xsl:with-param name="LCID" select="$LCID"/>
  1083.             </xsl:call-template>
  1084.         </xsl:variable>
  1085.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:ArtistShortUnCap"/>
  1086.     </xsl:template>
  1087.  
  1088.     <xsl:template name="templ_str_WriterCap" >
  1089.         <xsl:param name="LCID" />
  1090.         <xsl:variable name="_LCID">
  1091.             <xsl:call-template name="localLCID">
  1092.                 <xsl:with-param name="LCID" select="$LCID"/>
  1093.             </xsl:call-template>
  1094.         </xsl:variable>
  1095.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:WriterCap"/>
  1096.     </xsl:template>
  1097.  
  1098.     <xsl:template name="templ_str_WritersCap" >
  1099.         <xsl:param name="LCID" />
  1100.         <xsl:variable name="_LCID">
  1101.             <xsl:call-template name="localLCID">
  1102.                 <xsl:with-param name="LCID" select="$LCID"/>
  1103.             </xsl:call-template>
  1104.         </xsl:variable>
  1105.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:WritersCap"/>
  1106.     </xsl:template>
  1107.  
  1108.     <xsl:template name="templ_str_WriterShortUnCap" >
  1109.         <xsl:param name="LCID" />
  1110.         <xsl:variable name="_LCID">
  1111.             <xsl:call-template name="localLCID">
  1112.                 <xsl:with-param name="LCID" select="$LCID"/>
  1113.             </xsl:call-template>
  1114.         </xsl:variable>
  1115.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:WriterShortUnCap"/>
  1116.     </xsl:template>
  1117.  
  1118.     <xsl:template name="templ_str_ConductedByCap" >
  1119.         <xsl:param name="LCID" />
  1120.         <xsl:variable name="_LCID">
  1121.             <xsl:call-template name="localLCID">
  1122.                 <xsl:with-param name="LCID" select="$LCID"/>
  1123.             </xsl:call-template>
  1124.         </xsl:variable>
  1125.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:ConductedByCap"/>
  1126.     </xsl:template>
  1127.  
  1128.     <xsl:template name="templ_str_ConductedByUnCap" >
  1129.         <xsl:param name="LCID" />
  1130.         <xsl:variable name="_LCID">
  1131.             <xsl:call-template name="localLCID">
  1132.                 <xsl:with-param name="LCID" select="$LCID"/>
  1133.             </xsl:call-template>
  1134.         </xsl:variable>
  1135.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:ConductedByUnCap"/>
  1136.     </xsl:template>
  1137.  
  1138.     <xsl:template name="templ_str_ConductorCap" >
  1139.         <xsl:param name="LCID" />
  1140.         <xsl:variable name="_LCID">
  1141.             <xsl:call-template name="localLCID">
  1142.                 <xsl:with-param name="LCID" select="$LCID"/>
  1143.             </xsl:call-template>
  1144.         </xsl:variable>
  1145.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:ConductorCap"/>
  1146.     </xsl:template>
  1147.  
  1148.     <xsl:template name="templ_str_ConductorsCap" >
  1149.         <xsl:param name="LCID" />
  1150.         <xsl:variable name="_LCID">
  1151.             <xsl:call-template name="localLCID">
  1152.                 <xsl:with-param name="LCID" select="$LCID"/>
  1153.             </xsl:call-template>
  1154.         </xsl:variable>
  1155.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:ConductorsCap"/>
  1156.     </xsl:template>
  1157.  
  1158.     <xsl:template name="templ_str_ConductorShortCap" >
  1159.         <xsl:param name="LCID" />
  1160.         <xsl:variable name="_LCID">
  1161.             <xsl:call-template name="localLCID">
  1162.                 <xsl:with-param name="LCID" select="$LCID"/>
  1163.             </xsl:call-template>
  1164.         </xsl:variable>
  1165.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:ConductorShortCap"/>
  1166.     </xsl:template>
  1167.  
  1168.     <xsl:template name="templ_str_ConductorShortUnCap" >
  1169.         <xsl:param name="LCID" />
  1170.         <xsl:variable name="_LCID">
  1171.             <xsl:call-template name="localLCID">
  1172.                 <xsl:with-param name="LCID" select="$LCID"/>
  1173.             </xsl:call-template>
  1174.         </xsl:variable>
  1175.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:ConductorShortUnCap"/>
  1176.     </xsl:template>
  1177.  
  1178.     <xsl:template name="templ_str_ConductorsShortCap" >
  1179.         <xsl:param name="LCID" />
  1180.         <xsl:variable name="_LCID">
  1181.             <xsl:call-template name="localLCID">
  1182.                 <xsl:with-param name="LCID" select="$LCID"/>
  1183.             </xsl:call-template>
  1184.         </xsl:variable>
  1185.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:ConductorsShortCap"/>
  1186.     </xsl:template>
  1187.  
  1188.     <xsl:template name="templ_str_ConductorsShortUnCap" >
  1189.         <xsl:param name="LCID" />
  1190.         <xsl:variable name="_LCID">
  1191.             <xsl:call-template name="localLCID">
  1192.                 <xsl:with-param name="LCID" select="$LCID"/>
  1193.             </xsl:call-template>
  1194.         </xsl:variable>
  1195.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:ConductorsShortUnCap"/>
  1196.     </xsl:template>
  1197.  
  1198.     <xsl:template name="templ_str_CounselShortUnCapIso" >
  1199.         <xsl:param name="LCID" />
  1200.         <xsl:variable name="_LCID">
  1201.             <xsl:call-template name="localLCID">
  1202.                 <xsl:with-param name="LCID" select="$LCID"/>
  1203.             </xsl:call-template>
  1204.         </xsl:variable>
  1205.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:CounselShortUnCapIso"/>
  1206.     </xsl:template>
  1207.  
  1208.     <xsl:template name="templ_str_CounselShortUnCap" >
  1209.         <xsl:param name="LCID" />
  1210.         <xsl:variable name="_LCID">
  1211.             <xsl:call-template name="localLCID">
  1212.                 <xsl:with-param name="LCID" select="$LCID"/>
  1213.             </xsl:call-template>
  1214.         </xsl:variable>
  1215.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:CounselShortUnCap"/>
  1216.     </xsl:template>
  1217.  
  1218.     <xsl:template name="templ_str_DirectedByCap" >
  1219.         <xsl:param name="LCID" />
  1220.         <xsl:variable name="_LCID">
  1221.             <xsl:call-template name="localLCID">
  1222.                 <xsl:with-param name="LCID" select="$LCID"/>
  1223.             </xsl:call-template>
  1224.         </xsl:variable>
  1225.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:DirectedByCap"/>
  1226.     </xsl:template>
  1227.  
  1228.     <xsl:template name="templ_str_DirectedByUnCap" >
  1229.         <xsl:param name="LCID" />
  1230.         <xsl:variable name="_LCID">
  1231.             <xsl:call-template name="localLCID">
  1232.                 <xsl:with-param name="LCID" select="$LCID"/>
  1233.             </xsl:call-template>
  1234.         </xsl:variable>
  1235.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:DirectedByUnCap"/>
  1236.     </xsl:template>
  1237.  
  1238.     <xsl:template name="templ_str_DirectorCap" >
  1239.         <xsl:param name="LCID" />
  1240.         <xsl:variable name="_LCID">
  1241.             <xsl:call-template name="localLCID">
  1242.                 <xsl:with-param name="LCID" select="$LCID"/>
  1243.             </xsl:call-template>
  1244.         </xsl:variable>
  1245.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:DirectorCap"/>
  1246.     </xsl:template>
  1247.  
  1248.     <xsl:template name="templ_str_DirectorsCap" >
  1249.         <xsl:param name="LCID" />
  1250.         <xsl:variable name="_LCID">
  1251.             <xsl:call-template name="localLCID">
  1252.                 <xsl:with-param name="LCID" select="$LCID"/>
  1253.             </xsl:call-template>
  1254.         </xsl:variable>
  1255.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:DirectorsCap"/>
  1256.     </xsl:template>
  1257.  
  1258.     <xsl:template name="templ_str_DirectorShortCap" >
  1259.         <xsl:param name="LCID" />
  1260.         <xsl:variable name="_LCID">
  1261.             <xsl:call-template name="localLCID">
  1262.                 <xsl:with-param name="LCID" select="$LCID"/>
  1263.             </xsl:call-template>
  1264.         </xsl:variable>
  1265.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:DirectorShortCap"/>
  1266.     </xsl:template>
  1267.  
  1268.     <xsl:template name="templ_str_DirectorShortUnCap" >
  1269.         <xsl:param name="LCID" />
  1270.         <xsl:variable name="_LCID">
  1271.             <xsl:call-template name="localLCID">
  1272.                 <xsl:with-param name="LCID" select="$LCID"/>
  1273.             </xsl:call-template>
  1274.         </xsl:variable>
  1275.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:DirectorShortUnCap"/>
  1276.     </xsl:template>
  1277.  
  1278.     <xsl:template name="templ_str_DirectorsShortCap" >
  1279.         <xsl:param name="LCID" />
  1280.         <xsl:variable name="_LCID">
  1281.             <xsl:call-template name="localLCID">
  1282.                 <xsl:with-param name="LCID" select="$LCID"/>
  1283.             </xsl:call-template>
  1284.         </xsl:variable>
  1285.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:DirectorsShortCap"/>
  1286.     </xsl:template>
  1287.  
  1288.     <xsl:template name="templ_str_DirectorsShortUnCap" >
  1289.         <xsl:param name="LCID" />
  1290.         <xsl:variable name="_LCID">
  1291.             <xsl:call-template name="localLCID">
  1292.                 <xsl:with-param name="LCID" select="$LCID"/>
  1293.             </xsl:call-template>
  1294.         </xsl:variable>
  1295.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:DirectorsShortUnCap"/>
  1296.     </xsl:template>
  1297.  
  1298.     <xsl:template name="templ_str_EditedByCap" >
  1299.         <xsl:param name="LCID" />
  1300.         <xsl:variable name="_LCID">
  1301.             <xsl:call-template name="localLCID">
  1302.                 <xsl:with-param name="LCID" select="$LCID"/>
  1303.             </xsl:call-template>
  1304.         </xsl:variable>
  1305.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:EditedByCap"/>
  1306.     </xsl:template>
  1307.  
  1308.     <xsl:template name="templ_str_EditedByUnCap" >
  1309.         <xsl:param name="LCID" />
  1310.         <xsl:variable name="_LCID">
  1311.             <xsl:call-template name="localLCID">
  1312.                 <xsl:with-param name="LCID" select="$LCID"/>
  1313.             </xsl:call-template>
  1314.         </xsl:variable>
  1315.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:EditedByUnCap"/>
  1316.     </xsl:template>
  1317.  
  1318.     <xsl:template name="templ_str_EditorCap" >
  1319.         <xsl:param name="LCID" />
  1320.         <xsl:variable name="_LCID">
  1321.             <xsl:call-template name="localLCID">
  1322.                 <xsl:with-param name="LCID" select="$LCID"/>
  1323.             </xsl:call-template>
  1324.         </xsl:variable>
  1325.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:EditorCap"/>
  1326.     </xsl:template>
  1327.  
  1328.     <xsl:template name="templ_str_EditorsCap" >
  1329.         <xsl:param name="LCID" />
  1330.         <xsl:variable name="_LCID">
  1331.             <xsl:call-template name="localLCID">
  1332.                 <xsl:with-param name="LCID" select="$LCID"/>
  1333.             </xsl:call-template>
  1334.         </xsl:variable>
  1335.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:EditorsCap"/>
  1336.     </xsl:template>
  1337.  
  1338.     <xsl:template name="templ_str_EditorShortCap" >
  1339.         <xsl:param name="LCID" />
  1340.         <xsl:variable name="_LCID">
  1341.             <xsl:call-template name="localLCID">
  1342.                 <xsl:with-param name="LCID" select="$LCID"/>
  1343.             </xsl:call-template>
  1344.         </xsl:variable>
  1345.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:EditorShortCap"/>
  1346.     </xsl:template>
  1347.  
  1348.     <xsl:template name="templ_str_EditorShortUnCap" >
  1349.         <xsl:param name="LCID" />
  1350.         <xsl:variable name="_LCID">
  1351.             <xsl:call-template name="localLCID">
  1352.                 <xsl:with-param name="LCID" select="$LCID"/>
  1353.             </xsl:call-template>
  1354.         </xsl:variable>
  1355.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:EditorShortUnCap"/>
  1356.     </xsl:template>
  1357.  
  1358.     <xsl:template name="templ_str_EditorsShortCap" >
  1359.         <xsl:param name="LCID" />
  1360.         <xsl:variable name="_LCID">
  1361.             <xsl:call-template name="localLCID">
  1362.                 <xsl:with-param name="LCID" select="$LCID"/>
  1363.             </xsl:call-template>
  1364.         </xsl:variable>
  1365.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:EditorsShortCap"/>
  1366.     </xsl:template>
  1367.  
  1368.     <xsl:template name="templ_str_EditorsShortUnCap" >
  1369.         <xsl:param name="LCID" />
  1370.         <xsl:variable name="_LCID">
  1371.             <xsl:call-template name="localLCID">
  1372.                 <xsl:with-param name="LCID" select="$LCID"/>
  1373.             </xsl:call-template>
  1374.         </xsl:variable>
  1375.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:EditorsShortUnCap"/>
  1376.     </xsl:template>
  1377.  
  1378.     <xsl:template name="templ_str_IntervieweeShortUnCap" >
  1379.         <xsl:param name="LCID" />
  1380.         <xsl:variable name="_LCID">
  1381.             <xsl:call-template name="localLCID">
  1382.                 <xsl:with-param name="LCID" select="$LCID"/>
  1383.             </xsl:call-template>
  1384.         </xsl:variable>
  1385.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:IntervieweeShortUnCap"/>
  1386.     </xsl:template>
  1387.  
  1388.     <xsl:template name="templ_str_InterviewerCap" >
  1389.         <xsl:param name="LCID" />
  1390.         <xsl:variable name="_LCID">
  1391.             <xsl:call-template name="localLCID">
  1392.                 <xsl:with-param name="LCID" select="$LCID"/>
  1393.             </xsl:call-template>
  1394.         </xsl:variable>
  1395.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:InterviewerCap"/>
  1396.     </xsl:template>
  1397.  
  1398.     <xsl:template name="templ_str_InterviewersCap" >
  1399.         <xsl:param name="LCID" />
  1400.         <xsl:variable name="_LCID">
  1401.             <xsl:call-template name="localLCID">
  1402.                 <xsl:with-param name="LCID" select="$LCID"/>
  1403.             </xsl:call-template>
  1404.         </xsl:variable>
  1405.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:InterviewersCap"/>
  1406.     </xsl:template>
  1407.  
  1408.     <xsl:template name="templ_str_InventorShortUnCap" >
  1409.         <xsl:param name="LCID" />
  1410.         <xsl:variable name="_LCID">
  1411.             <xsl:call-template name="localLCID">
  1412.                 <xsl:with-param name="LCID" select="$LCID"/>
  1413.             </xsl:call-template>
  1414.         </xsl:variable>
  1415.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:InventorShortUnCap"/>
  1416.     </xsl:template>
  1417.  
  1418.     <xsl:template name="templ_str_PerformedByCap" >
  1419.         <xsl:param name="LCID" />
  1420.         <xsl:variable name="_LCID">
  1421.             <xsl:call-template name="localLCID">
  1422.                 <xsl:with-param name="LCID" select="$LCID"/>
  1423.             </xsl:call-template>
  1424.         </xsl:variable>
  1425.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:PerformedByCap"/>
  1426.     </xsl:template>
  1427.  
  1428.     <xsl:template name="templ_str_PerformedByUnCap" >
  1429.         <xsl:param name="LCID" />
  1430.         <xsl:variable name="_LCID">
  1431.             <xsl:call-template name="localLCID">
  1432.                 <xsl:with-param name="LCID" select="$LCID"/>
  1433.             </xsl:call-template>
  1434.         </xsl:variable>
  1435.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:PerformedByUnCap"/>
  1436.     </xsl:template>
  1437.  
  1438.     <xsl:template name="templ_str_PerformerCap" >
  1439.         <xsl:param name="LCID" />
  1440.         <xsl:variable name="_LCID">
  1441.             <xsl:call-template name="localLCID">
  1442.                 <xsl:with-param name="LCID" select="$LCID"/>
  1443.             </xsl:call-template>
  1444.         </xsl:variable>
  1445.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:PerformerCap"/>
  1446.     </xsl:template>
  1447.  
  1448.     <xsl:template name="templ_str_PerformersCap" >
  1449.         <xsl:param name="LCID" />
  1450.         <xsl:variable name="_LCID">
  1451.             <xsl:call-template name="localLCID">
  1452.                 <xsl:with-param name="LCID" select="$LCID"/>
  1453.             </xsl:call-template>
  1454.         </xsl:variable>
  1455.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:PerformersCap"/>
  1456.     </xsl:template>
  1457.  
  1458.     <xsl:template name="templ_str_PerformerShortCap" >
  1459.         <xsl:param name="LCID" />
  1460.         <xsl:variable name="_LCID">
  1461.             <xsl:call-template name="localLCID">
  1462.                 <xsl:with-param name="LCID" select="$LCID"/>
  1463.             </xsl:call-template>
  1464.         </xsl:variable>
  1465.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:PerformerShortCap"/>
  1466.     </xsl:template>
  1467.  
  1468.     <xsl:template name="templ_str_PerformerShortUnCap" >
  1469.         <xsl:param name="LCID" />
  1470.         <xsl:variable name="_LCID">
  1471.             <xsl:call-template name="localLCID">
  1472.                 <xsl:with-param name="LCID" select="$LCID"/>
  1473.             </xsl:call-template>
  1474.         </xsl:variable>
  1475.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:PerformerShortUnCap"/>
  1476.     </xsl:template>
  1477.  
  1478.     <xsl:template name="templ_str_PerformersShortCap" >
  1479.         <xsl:param name="LCID" />
  1480.         <xsl:variable name="_LCID">
  1481.             <xsl:call-template name="localLCID">
  1482.                 <xsl:with-param name="LCID" select="$LCID"/>
  1483.             </xsl:call-template>
  1484.         </xsl:variable>
  1485.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:PerformersShortCap"/>
  1486.     </xsl:template>
  1487.  
  1488.     <xsl:template name="templ_str_PerformersShortUnCap" >
  1489.         <xsl:param name="LCID" />
  1490.         <xsl:variable name="_LCID">
  1491.             <xsl:call-template name="localLCID">
  1492.                 <xsl:with-param name="LCID" select="$LCID"/>
  1493.             </xsl:call-template>
  1494.         </xsl:variable>
  1495.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:PerformersShortUnCap"/>
  1496.     </xsl:template>
  1497.  
  1498.     <xsl:template name="templ_str_ProducedByCap" >
  1499.         <xsl:param name="LCID" />
  1500.         <xsl:variable name="_LCID">
  1501.             <xsl:call-template name="localLCID">
  1502.                 <xsl:with-param name="LCID" select="$LCID"/>
  1503.             </xsl:call-template>
  1504.         </xsl:variable>
  1505.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:ProducedByCap"/>
  1506.     </xsl:template>
  1507.  
  1508.     <xsl:template name="templ_str_ProducedByUnCap" >
  1509.         <xsl:param name="LCID" />
  1510.         <xsl:variable name="_LCID">
  1511.             <xsl:call-template name="localLCID">
  1512.                 <xsl:with-param name="LCID" select="$LCID"/>
  1513.             </xsl:call-template>
  1514.         </xsl:variable>
  1515.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:ProducedByUnCap"/>
  1516.     </xsl:template>
  1517.  
  1518.     <xsl:template name="templ_str_ProducerCap" >
  1519.         <xsl:param name="LCID" />
  1520.         <xsl:variable name="_LCID">
  1521.             <xsl:call-template name="localLCID">
  1522.                 <xsl:with-param name="LCID" select="$LCID"/>
  1523.             </xsl:call-template>
  1524.         </xsl:variable>
  1525.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:ProducerCap"/>
  1526.     </xsl:template>
  1527.  
  1528.     <xsl:template name="templ_str_ProducersCap" >
  1529.         <xsl:param name="LCID" />
  1530.         <xsl:variable name="_LCID">
  1531.             <xsl:call-template name="localLCID">
  1532.                 <xsl:with-param name="LCID" select="$LCID"/>
  1533.             </xsl:call-template>
  1534.         </xsl:variable>
  1535.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:ProducersCap"/>
  1536.     </xsl:template>
  1537.  
  1538.     <xsl:template name="templ_str_ProductionCompanyShortCap" >
  1539.         <xsl:param name="LCID" />
  1540.         <xsl:variable name="_LCID">
  1541.             <xsl:call-template name="localLCID">
  1542.                 <xsl:with-param name="LCID" select="$LCID"/>
  1543.             </xsl:call-template>
  1544.         </xsl:variable>
  1545.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:ProductionCompanyShortCap"/>
  1546.     </xsl:template>
  1547.  
  1548.     <xsl:template name="templ_str_ProducerShortCap" >
  1549.         <xsl:param name="LCID" />
  1550.         <xsl:variable name="_LCID">
  1551.             <xsl:call-template name="localLCID">
  1552.                 <xsl:with-param name="LCID" select="$LCID"/>
  1553.             </xsl:call-template>
  1554.         </xsl:variable>
  1555.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:ProducerShortCap"/>
  1556.     </xsl:template>
  1557.  
  1558.     <xsl:template name="templ_str_ProducersShortCap" >
  1559.         <xsl:param name="LCID" />
  1560.         <xsl:variable name="_LCID">
  1561.             <xsl:call-template name="localLCID">
  1562.                 <xsl:with-param name="LCID" select="$LCID"/>
  1563.             </xsl:call-template>
  1564.         </xsl:variable>
  1565.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:ProducersShortCap"/>
  1566.     </xsl:template>
  1567.  
  1568.     <xsl:template name="templ_str_ProducerShortUnCap" >
  1569.         <xsl:param name="LCID" />
  1570.         <xsl:variable name="_LCID">
  1571.             <xsl:call-template name="localLCID">
  1572.                 <xsl:with-param name="LCID" select="$LCID"/>
  1573.             </xsl:call-template>
  1574.         </xsl:variable>
  1575.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:ProducerShortUnCap"/>
  1576.     </xsl:template>
  1577.  
  1578.     <xsl:template name="templ_str_TranslatedByCap" >
  1579.         <xsl:param name="LCID" />
  1580.         <xsl:variable name="_LCID">
  1581.             <xsl:call-template name="localLCID">
  1582.                 <xsl:with-param name="LCID" select="$LCID"/>
  1583.             </xsl:call-template>
  1584.         </xsl:variable>
  1585.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:TranslatedByCap"/>
  1586.     </xsl:template>
  1587.  
  1588.     <xsl:template name="templ_str_TranslatedByUnCap" >
  1589.         <xsl:param name="LCID" />
  1590.         <xsl:variable name="_LCID">
  1591.             <xsl:call-template name="localLCID">
  1592.                 <xsl:with-param name="LCID" select="$LCID"/>
  1593.             </xsl:call-template>
  1594.         </xsl:variable>
  1595.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:TranslatedByUnCap"/>
  1596.     </xsl:template>
  1597.  
  1598.     <xsl:template name="templ_str_TranslatorCap" >
  1599.         <xsl:param name="LCID" />
  1600.         <xsl:variable name="_LCID">
  1601.             <xsl:call-template name="localLCID">
  1602.                 <xsl:with-param name="LCID" select="$LCID"/>
  1603.             </xsl:call-template>
  1604.         </xsl:variable>
  1605.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:TranslatorCap"/>
  1606.     </xsl:template>
  1607.  
  1608.     <xsl:template name="templ_str_TranslatorsCap" >
  1609.         <xsl:param name="LCID" />
  1610.         <xsl:variable name="_LCID">
  1611.             <xsl:call-template name="localLCID">
  1612.                 <xsl:with-param name="LCID" select="$LCID"/>
  1613.             </xsl:call-template>
  1614.         </xsl:variable>
  1615.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:TranslatorsCap"/>
  1616.     </xsl:template>
  1617.  
  1618.     <xsl:template name="templ_str_TranslatorShortCap" >
  1619.         <xsl:param name="LCID" />
  1620.         <xsl:variable name="_LCID">
  1621.             <xsl:call-template name="localLCID">
  1622.                 <xsl:with-param name="LCID" select="$LCID"/>
  1623.             </xsl:call-template>
  1624.         </xsl:variable>
  1625.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:TranslatorShortCap"/>
  1626.     </xsl:template>
  1627.  
  1628.     <xsl:template name="templ_str_TranslatorShortUnCap" >
  1629.         <xsl:param name="LCID" />
  1630.         <xsl:variable name="_LCID">
  1631.             <xsl:call-template name="localLCID">
  1632.                 <xsl:with-param name="LCID" select="$LCID"/>
  1633.             </xsl:call-template>
  1634.         </xsl:variable>
  1635.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:TranslatorShortUnCap"/>
  1636.     </xsl:template>
  1637.  
  1638.     <xsl:template name="templ_str_TranslatorsShortCap" >
  1639.         <xsl:param name="LCID" />
  1640.         <xsl:variable name="_LCID">
  1641.             <xsl:call-template name="localLCID">
  1642.                 <xsl:with-param name="LCID" select="$LCID"/>
  1643.             </xsl:call-template>
  1644.         </xsl:variable>
  1645.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:TranslatorsShortCap"/>
  1646.     </xsl:template>
  1647.  
  1648.     <xsl:template name="templ_str_TranslatorsShortUnCap" >
  1649.         <xsl:param name="LCID" />
  1650.         <xsl:variable name="_LCID">
  1651.             <xsl:call-template name="localLCID">
  1652.                 <xsl:with-param name="LCID" select="$LCID"/>
  1653.             </xsl:call-template>
  1654.         </xsl:variable>
  1655.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:TranslatorsShortUnCap"/>
  1656.     </xsl:template>
  1657.  
  1658.     <xsl:template name="templ_str_ComposerCap" >
  1659.         <xsl:param name="LCID" />
  1660.         <xsl:variable name="_LCID">
  1661.             <xsl:call-template name="localLCID">
  1662.                 <xsl:with-param name="LCID" select="$LCID"/>
  1663.             </xsl:call-template>
  1664.         </xsl:variable>
  1665.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:ComposerCap"/>
  1666.     </xsl:template>
  1667.  
  1668.     <xsl:template name="templ_str_ComposersCap" >
  1669.         <xsl:param name="LCID" />
  1670.         <xsl:variable name="_LCID">
  1671.             <xsl:call-template name="localLCID">
  1672.                 <xsl:with-param name="LCID" select="$LCID"/>
  1673.             </xsl:call-template>
  1674.         </xsl:variable>
  1675.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:ComposersCap"/>
  1676.     </xsl:template>
  1677.  
  1678.     <xsl:template name="templ_str_ComposerShortCap" >
  1679.         <xsl:param name="LCID" />
  1680.         <xsl:variable name="_LCID">
  1681.             <xsl:call-template name="localLCID">
  1682.                 <xsl:with-param name="LCID" select="$LCID"/>
  1683.             </xsl:call-template>
  1684.         </xsl:variable>
  1685.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:ComposerShortCap"/>
  1686.     </xsl:template>
  1687.  
  1688.     <xsl:template name="templ_str_ComposersShortCap" >
  1689.         <xsl:param name="LCID" />
  1690.         <xsl:variable name="_LCID">
  1691.             <xsl:call-template name="localLCID">
  1692.                 <xsl:with-param name="LCID" select="$LCID"/>
  1693.             </xsl:call-template>
  1694.         </xsl:variable>
  1695.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:ComposersShortCap"/>
  1696.     </xsl:template>
  1697.  
  1698.     <xsl:template name="templ_str_ComposerShortUnCapIso" >
  1699.         <xsl:param name="LCID" />
  1700.         <xsl:variable name="_LCID">
  1701.             <xsl:call-template name="localLCID">
  1702.                 <xsl:with-param name="LCID" select="$LCID"/>
  1703.             </xsl:call-template>
  1704.         </xsl:variable>
  1705.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:ComposerShortUnCapIso"/>
  1706.     </xsl:template>
  1707.  
  1708.     <xsl:template name="templ_str_CompiledByCap" >
  1709.         <xsl:param name="LCID" />
  1710.         <xsl:variable name="_LCID">
  1711.             <xsl:call-template name="localLCID">
  1712.                 <xsl:with-param name="LCID" select="$LCID"/>
  1713.             </xsl:call-template>
  1714.         </xsl:variable>
  1715.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:CompiledByCap"/>
  1716.     </xsl:template>
  1717.  
  1718.     <xsl:template name="templ_str_CompiledByUnCap" >
  1719.         <xsl:param name="LCID" />
  1720.         <xsl:variable name="_LCID">
  1721.             <xsl:call-template name="localLCID">
  1722.                 <xsl:with-param name="LCID" select="$LCID"/>
  1723.             </xsl:call-template>
  1724.         </xsl:variable>
  1725.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:CompiledByUnCap"/>
  1726.     </xsl:template>
  1727.  
  1728.     <xsl:template name="templ_str_CompilerCap" >
  1729.         <xsl:param name="LCID" />
  1730.         <xsl:variable name="_LCID">
  1731.             <xsl:call-template name="localLCID">
  1732.                 <xsl:with-param name="LCID" select="$LCID"/>
  1733.             </xsl:call-template>
  1734.         </xsl:variable>
  1735.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:CompilerCap"/>
  1736.     </xsl:template>
  1737.  
  1738.     <xsl:template name="templ_str_CompilersCap" >
  1739.         <xsl:param name="LCID" />
  1740.         <xsl:variable name="_LCID">
  1741.             <xsl:call-template name="localLCID">
  1742.                 <xsl:with-param name="LCID" select="$LCID"/>
  1743.             </xsl:call-template>
  1744.         </xsl:variable>
  1745.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:CompilersCap"/>
  1746.     </xsl:template>
  1747.  
  1748.     <xsl:template name="templ_str_CompilerShortCap" >
  1749.         <xsl:param name="LCID" />
  1750.         <xsl:variable name="_LCID">
  1751.             <xsl:call-template name="localLCID">
  1752.                 <xsl:with-param name="LCID" select="$LCID"/>
  1753.             </xsl:call-template>
  1754.         </xsl:variable>
  1755.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:CompilerShortCap"/>
  1756.     </xsl:template>
  1757.  
  1758.     <xsl:template name="templ_str_CompilerShortUnCap" >
  1759.         <xsl:param name="LCID" />
  1760.         <xsl:variable name="_LCID">
  1761.             <xsl:call-template name="localLCID">
  1762.                 <xsl:with-param name="LCID" select="$LCID"/>
  1763.             </xsl:call-template>
  1764.         </xsl:variable>
  1765.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:CompilerShortUnCap"/>
  1766.     </xsl:template>
  1767.  
  1768.     <xsl:template name="templ_str_CompilersShortCap" >
  1769.         <xsl:param name="LCID" />
  1770.         <xsl:variable name="_LCID">
  1771.             <xsl:call-template name="localLCID">
  1772.                 <xsl:with-param name="LCID" select="$LCID"/>
  1773.             </xsl:call-template>
  1774.         </xsl:variable>
  1775.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:CompilersShortCap"/>
  1776.     </xsl:template>
  1777.  
  1778.     <xsl:template name="templ_str_CompilersShortUnCap" >
  1779.         <xsl:param name="LCID" />
  1780.         <xsl:variable name="_LCID">
  1781.             <xsl:call-template name="localLCID">
  1782.                 <xsl:with-param name="LCID" select="$LCID"/>
  1783.             </xsl:call-template>
  1784.         </xsl:variable>
  1785.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:CompilersShortUnCap"/>
  1786.     </xsl:template>
  1787.  
  1788.     <xsl:template name="templ_str_CompilerShortUnCapIso" >
  1789.         <xsl:param name="LCID" />
  1790.         <xsl:variable name="_LCID">
  1791.             <xsl:call-template name="localLCID">
  1792.                 <xsl:with-param name="LCID" select="$LCID"/>
  1793.             </xsl:call-template>
  1794.         </xsl:variable>
  1795.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:CompilerShortUnCapIso"/>
  1796.     </xsl:template>
  1797.  
  1798.     <xsl:template name="templ_prop_SecondaryOpen" >
  1799.         <xsl:param name="LCID" />
  1800.         <xsl:variable name="_LCID">
  1801.             <xsl:call-template name="localLCID">
  1802.                 <xsl:with-param name="LCID" select="$LCID"/>
  1803.             </xsl:call-template>
  1804.         </xsl:variable>
  1805.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:APA/b:SecondaryOpen"/>
  1806.     </xsl:template>
  1807.  
  1808.     <xsl:template name="templ_prop_SecondaryClose" >
  1809.         <xsl:param name="LCID" />
  1810.         <xsl:variable name="_LCID">
  1811.             <xsl:call-template name="localLCID">
  1812.                 <xsl:with-param name="LCID" select="$LCID"/>
  1813.             </xsl:call-template>
  1814.         </xsl:variable>
  1815.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:APA/b:SecondaryClose"/>
  1816.     </xsl:template>
  1817.  
  1818.     <xsl:template name="templ_prop_Culture" >
  1819.         <xsl:param name="LCID" />
  1820.         <xsl:variable name="_LCID">
  1821.             <xsl:call-template name="localLCID">
  1822.                 <xsl:with-param name="LCID" select="$LCID"/>
  1823.             </xsl:call-template>
  1824.         </xsl:variable>
  1825.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/@Culture"/>
  1826.     </xsl:template>
  1827.  
  1828.     <xsl:template name="templ_prop_Direction" >
  1829.         <xsl:param name="LCID" />
  1830.         <xsl:variable name="_LCID">
  1831.             <xsl:call-template name="localLCID">
  1832.                 <xsl:with-param name="LCID" select="$LCID"/>
  1833.             </xsl:call-template>
  1834.         </xsl:variable>
  1835.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Properties/b:Direction"/>
  1836.     </xsl:template>
  1837.  
  1838.     <xsl:template name="templ_prop_NoItalics" >
  1839.         <xsl:param name="LCID" />
  1840.         <xsl:variable name="_LCID">
  1841.             <xsl:call-template name="localLCID">
  1842.                 <xsl:with-param name="LCID" select="$LCID"/>
  1843.             </xsl:call-template>
  1844.         </xsl:variable>
  1845.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:General/b:NoItalics"/>
  1846.     </xsl:template>
  1847.  
  1848.     <xsl:template name="templ_prop_TitleOpen" >
  1849.         <xsl:param name="LCID" />
  1850.         <xsl:variable name="_LCID">
  1851.             <xsl:call-template name="localLCID">
  1852.                 <xsl:with-param name="LCID" select="$LCID"/>
  1853.             </xsl:call-template>
  1854.         </xsl:variable>
  1855.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:General/b:TitleOpen"/>
  1856.     </xsl:template>
  1857.  
  1858.     <xsl:template name="templ_prop_TitleClose" >
  1859.         <xsl:param name="LCID" />
  1860.         <xsl:variable name="_LCID">
  1861.             <xsl:call-template name="localLCID">
  1862.                 <xsl:with-param name="LCID" select="$LCID"/>
  1863.             </xsl:call-template>
  1864.         </xsl:variable>
  1865.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:General/b:TitleClose"/>
  1866.     </xsl:template>
  1867.  
  1868.     <xsl:template name="templ_prop_EndChars" >
  1869.         <xsl:param name="LCID" />
  1870.         <xsl:variable name="_LCID">
  1871.             <xsl:call-template name="localLCID">
  1872.                 <xsl:with-param name="LCID" select="$LCID"/>
  1873.             </xsl:call-template>
  1874.         </xsl:variable>
  1875.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:General/b:EndChars"/>
  1876.     </xsl:template>
  1877.  
  1878.     <xsl:template name="templ_prop_Space" >
  1879.         <xsl:param name="LCID" />
  1880.         <xsl:variable name="_LCID">
  1881.             <xsl:call-template name="localLCID">
  1882.                 <xsl:with-param name="LCID" select="$LCID"/>
  1883.             </xsl:call-template>
  1884.         </xsl:variable>
  1885.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:General/b:Space"/>
  1886.     </xsl:template>
  1887.  
  1888.     <xsl:template name="templ_prop_NonBreakingSpace" >
  1889.         <xsl:param name="LCID" />
  1890.         <xsl:variable name="_LCID">
  1891.             <xsl:call-template name="localLCID">
  1892.                 <xsl:with-param name="LCID" select="$LCID"/>
  1893.             </xsl:call-template>
  1894.         </xsl:variable>
  1895.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:General/b:NonBreakingSpace"/>
  1896.     </xsl:template>
  1897.  
  1898.     <xsl:template name="templ_prop_ListSeparator" >
  1899.         <xsl:param name="LCID" />
  1900.         <xsl:variable name="_LCID">
  1901.             <xsl:call-template name="localLCID">
  1902.                 <xsl:with-param name="LCID" select="$LCID"/>
  1903.             </xsl:call-template>
  1904.         </xsl:variable>
  1905.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:General/b:ListSeparator"/>
  1906.     </xsl:template>
  1907.  
  1908.     <xsl:template name="templ_prop_Dot" >
  1909.         <xsl:param name="LCID" />
  1910.         <xsl:variable name="_LCID">
  1911.             <xsl:call-template name="localLCID">
  1912.                 <xsl:with-param name="LCID" select="$LCID"/>
  1913.             </xsl:call-template>
  1914.         </xsl:variable>
  1915.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:General/b:Dot"/>
  1916.     </xsl:template>
  1917.  
  1918.     <xsl:template name="templ_prop_DotInitial" >
  1919.         <xsl:param name="LCID" />
  1920.         <xsl:variable name="_LCID">
  1921.             <xsl:call-template name="localLCID">
  1922.                 <xsl:with-param name="LCID" select="$LCID"/>
  1923.             </xsl:call-template>
  1924.         </xsl:variable>
  1925.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:General/b:DotInitial"/>
  1926.     </xsl:template>
  1927.  
  1928.     <xsl:template name="templ_prop_GroupSeparator" >
  1929.         <xsl:param name="LCID" />
  1930.         <xsl:variable name="_LCID">
  1931.             <xsl:call-template name="localLCID">
  1932.                 <xsl:with-param name="LCID" select="$LCID"/>
  1933.             </xsl:call-template>
  1934.         </xsl:variable>
  1935.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:General/b:GroupSeparator"/>
  1936.     </xsl:template>
  1937.  
  1938.     <xsl:template name="templ_prop_EnumSeparator" >
  1939.         <xsl:param name="LCID" />
  1940.         <xsl:variable name="_LCID">
  1941.             <xsl:call-template name="localLCID">
  1942.                 <xsl:with-param name="LCID" select="$LCID"/>
  1943.             </xsl:call-template>
  1944.         </xsl:variable>
  1945.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:General/b:EnumSeparator"/>
  1946.     </xsl:template>
  1947.  
  1948.     <xsl:template name="templ_prop_Equal" >
  1949.         <xsl:param name="LCID" />
  1950.         <xsl:variable name="_LCID">
  1951.             <xsl:call-template name="localLCID">
  1952.                 <xsl:with-param name="LCID" select="$LCID"/>
  1953.             </xsl:call-template>
  1954.         </xsl:variable>
  1955.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:General/b:Equal"/>
  1956.     </xsl:template>
  1957.  
  1958.     <xsl:template name="templ_prop_Enum" >
  1959.         <xsl:param name="LCID" />
  1960.         <xsl:variable name="_LCID">
  1961.             <xsl:call-template name="localLCID">
  1962.                 <xsl:with-param name="LCID" select="$LCID"/>
  1963.             </xsl:call-template>
  1964.         </xsl:variable>
  1965.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:General/b:Enum"/>
  1966.     </xsl:template>
  1967.  
  1968.     <xsl:template name="templ_prop_OpenQuote" >
  1969.         <xsl:param name="LCID" />
  1970.         <xsl:variable name="_LCID">
  1971.             <xsl:call-template name="localLCID">
  1972.                 <xsl:with-param name="LCID" select="$LCID"/>
  1973.             </xsl:call-template>
  1974.         </xsl:variable>
  1975.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:General/b:OpenQuote"/>
  1976.     </xsl:template>
  1977.  
  1978.     <xsl:template name="templ_prop_CloseQuote" >
  1979.         <xsl:param name="LCID" />
  1980.         <xsl:variable name="_LCID">
  1981.             <xsl:call-template name="localLCID">
  1982.                 <xsl:with-param name="LCID" select="$LCID"/>
  1983.             </xsl:call-template>
  1984.         </xsl:variable>
  1985.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:General/b:CloseQuote"/>
  1986.     </xsl:template>
  1987.  
  1988.     <xsl:template name="templ_prop_OpenBracket" >
  1989.         <xsl:param name="LCID" />
  1990.         <xsl:variable name="_LCID">
  1991.             <xsl:call-template name="localLCID">
  1992.                 <xsl:with-param name="LCID" select="$LCID"/>
  1993.             </xsl:call-template>
  1994.         </xsl:variable>
  1995.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=INITIAL_CONTENTLCID]/b:General/b:OpenBracket"/>
  1996.         <xsl:text></xsl:text>
  1997.     </xsl:template>
  1998.  
  1999.     <xsl:template name="templ_prop_CloseBracket" >
  2000.         <xsl:param name="LCID" />
  2001.         <xsl:variable name="_LCID">
  2002.             <xsl:call-template name="localLCID">
  2003.                 <xsl:with-param name="LCID" select="$LCID"/>
  2004.             </xsl:call-template>
  2005.         </xsl:variable>
  2006.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=INITIAL_CONTENTLCID]/b:General/b:CloseBracket"/>
  2007.         <xsl:text>.</xsl:text>
  2008.     </xsl:template>
  2009.  
  2010.     <xsl:template name="templ_prop_FromToDash" >
  2011.         <xsl:param name="LCID" />
  2012.         <xsl:variable name="_LCID">
  2013.             <xsl:call-template name="localLCID">
  2014.                 <xsl:with-param name="LCID" select="$LCID"/>
  2015.             </xsl:call-template>
  2016.         </xsl:variable>
  2017.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:General/b:FromToDash"/>
  2018.     </xsl:template>
  2019.  
  2020.     <xsl:template name="templ_prop_OpenLink" >
  2021.         <xsl:param name="LCID" />
  2022.         <xsl:variable name="_LCID">
  2023.             <xsl:call-template name="localLCID">
  2024.                 <xsl:with-param name="LCID" select="$LCID"/>
  2025.             </xsl:call-template>
  2026.         </xsl:variable>
  2027.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:General/b:OpenLink"/>
  2028.     </xsl:template>
  2029.  
  2030.     <xsl:template name="templ_prop_CloseLink" >
  2031.         <xsl:param name="LCID" />
  2032.         <xsl:variable name="_LCID">
  2033.             <xsl:call-template name="localLCID">
  2034.                 <xsl:with-param name="LCID" select="$LCID"/>
  2035.             </xsl:call-template>
  2036.         </xsl:variable>
  2037.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:General/b:CloseLink"/>
  2038.     </xsl:template>
  2039.  
  2040.     <xsl:template name="templ_prop_AuthorsSeparator" >
  2041.         <xsl:param name="LCID" />
  2042.         <xsl:variable name="_LCID">
  2043.             <xsl:call-template name="localLCID">
  2044.                 <xsl:with-param name="LCID" select="$LCID"/>
  2045.             </xsl:call-template>
  2046.         </xsl:variable>
  2047.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:General/b:AuthorsSeparator"/>
  2048.     </xsl:template>
  2049.  
  2050.     <xsl:template name="templ_prop_NoAndBeforeLastAuthor" >
  2051.         <xsl:param name="LCID" />
  2052.         <xsl:variable name="_LCID">
  2053.             <xsl:call-template name="localLCID">
  2054.                 <xsl:with-param name="LCID" select="$LCID"/>
  2055.             </xsl:call-template>
  2056.         </xsl:variable>
  2057.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:General/b:NoAndBeforeLastAuthor"/>
  2058.     </xsl:template>
  2059.  
  2060.     <xsl:template name="templ_prop_BeforeLastAuthor" >
  2061.         <xsl:param name="LCID" />
  2062.         <xsl:variable name="_LCID">
  2063.             <xsl:call-template name="localLCID">
  2064.                 <xsl:with-param name="LCID" select="$LCID"/>
  2065.             </xsl:call-template>
  2066.         </xsl:variable>
  2067.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:APA/b:BeforeLastAuthor"/>
  2068.     </xsl:template>
  2069.  
  2070.     <xsl:template name="List_Separator_NoSpace">
  2071.         <xsl:variable name ="str_AccessedCap">
  2072.             <xsl:call-template name ="templ_prop_ListSeparator"/>
  2073.         </xsl:variable>
  2074.  
  2075.         <xsl:call-template name ="FindReplaceString">
  2076.             <xsl:with-param name="originalString" select="string($str_AccessedCap)"/>
  2077.             <xsl:with-param name="stringToBeReplaced" select="' '"/>
  2078.             <xsl:with-param name="stringReplacement" select="''"/>
  2079.         </xsl:call-template>
  2080.  
  2081.     </xsl:template>
  2082.  
  2083.     <xsl:template name="FindReplaceString">
  2084.         <xsl:param name="originalString"/>
  2085.         <xsl:param name="stringToBeReplaced"/>
  2086.         <xsl:param name="stringReplacement"/>
  2087.         <xsl:choose>
  2088.             <xsl:when test="contains($originalString,$stringToBeReplaced)">
  2089.                 <xsl:value-of select="concat(substring-before($originalString,$stringToBeReplaced),$stringReplacement)"/>
  2090.                 <xsl:call-template name="FindReplaceString">
  2091.                     <xsl:with-param name="originalString" select="substring-after($originalString,$stringToBeReplaced)"/>
  2092.                     <xsl:with-param name="stringToBeReplaced" select="$stringToBeReplaced"/>
  2093.                     <xsl:with-param name="stringReplacement" select="$stringReplacement"/>
  2094.                 </xsl:call-template>
  2095.             </xsl:when>
  2096.             <xsl:otherwise>
  2097.                 <xsl:value-of select="$originalString"/>
  2098.             </xsl:otherwise>
  2099.         </xsl:choose>
  2100.     </xsl:template>
  2101.  
  2102.     <xsl:template name ="DisplayPageOrPages">
  2103.         <xsl:param name ="pages"/>
  2104.         <xsl:choose>
  2105.             <xsl:when test="contains($pages, '-')">
  2106.                 <xsl:value-of select="concat('pp. ', $pages)"/>
  2107.             </xsl:when>
  2108.             <xsl:when test="contains($pages, ',')">
  2109.                 <xsl:value-of select="concat('pp. ', $pages)"/>
  2110.             </xsl:when>
  2111.             <xsl:otherwise>
  2112.                 <xsl:value-of select="concat('p. ', $pages)"/>
  2113.             </xsl:otherwise>
  2114.         </xsl:choose>
  2115.     </xsl:template>
  2116.  
  2117.     <xsl:template name="BibAddParagraphAttributes">
  2118.         <xsl:variable name="LCID">
  2119.             <xsl:choose>
  2120.                 <xsl:when test="b:LCID='0' or b:LCID='' or not(b:LCID)">
  2121.                     <xsl:value-of select="/*/b:Locals/b:DefaultLCID"/>
  2122.                 </xsl:when>
  2123.                 <xsl:otherwise>
  2124.                     <xsl:value-of select="b:LCID"/>
  2125.                 </xsl:otherwise>
  2126.             </xsl:choose>
  2127.         </xsl:variable>
  2128.         <xsl:attribute name="lang">
  2129.             <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$LCID]/@Culture"/>
  2130.         </xsl:attribute>
  2131.         <xsl:attribute name="dir">
  2132.             <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$LCID]/b:Properties/b:Direction"/>
  2133.         </xsl:attribute>
  2134.         <xsl:attribute name="class">
  2135.             <xsl:value-of select="'MsoBibliography'"/>
  2136.         </xsl:attribute>
  2137.     </xsl:template>
  2138.  
  2139.     <xsl:template name ="BibDisplayStrOnline">
  2140.         <xsl:call-template name ="templ_prop_SecondaryOpen"/>
  2141.         <xsl:call-template name ="templ_str_OnlineCap"/>
  2142.         <xsl:call-template name ="templ_prop_SecondaryClose"/>
  2143.         <xsl:call-template name ="templ_prop_Dot"/>
  2144.         <xsl:call-template name ="templ_prop_Space"/>
  2145.     </xsl:template>
  2146.  
  2147.     <xsl:template name ="BibDisplayStrFilm">
  2148.         <xsl:call-template name ="templ_prop_SecondaryOpen"/>
  2149.         <xsl:call-template name ="templ_str_Film"/>
  2150.         <xsl:call-template name ="templ_prop_SecondaryClose"/>
  2151.         <xsl:call-template name ="templ_prop_Dot"/>
  2152.         <xsl:call-template name ="templ_prop_Space"/>
  2153.     </xsl:template>
  2154.  
  2155.     <xsl:template name ="BibDisplayStrArt">
  2156.         <xsl:call-template name ="templ_prop_SecondaryOpen"/>
  2157.         <xsl:call-template name ="templ_str_ArtCap"/>
  2158.         <xsl:call-template name ="templ_prop_SecondaryClose"/>
  2159.         <xsl:call-template name ="templ_prop_Space"/>
  2160.     </xsl:template>
  2161.  
  2162.     <xsl:template name ="BibDisplayStrSoundRecording">
  2163.         <xsl:call-template name ="templ_prop_SecondaryOpen"/>
  2164.         <xsl:call-template name ="templ_str_SoundRecordingCap"/>
  2165.         <xsl:call-template name ="templ_prop_SecondaryClose"/>
  2166.         <xsl:call-template name ="templ_prop_Dot"/>
  2167.         <xsl:call-template name ="templ_prop_Space"/>
  2168.     </xsl:template>
  2169.  
  2170.     <xsl:template name ="BibDisplayStrInterview">
  2171.         <xsl:call-template name ="templ_prop_SecondaryOpen"/>
  2172.         <xsl:call-template name ="templ_str_InterviewCap"/>
  2173.         <xsl:call-template name ="templ_prop_SecondaryClose"/>
  2174.         <xsl:call-template name ="templ_prop_Dot"/>
  2175.         <xsl:call-template name ="templ_prop_Space"/>
  2176.     </xsl:template>
  2177.  
  2178.     <xsl:template name ="BibDisplayDayMonthYearWebSiteJournal">
  2179.         <xsl:variable name ="cMonth">
  2180.             <xsl:value-of select="count(b:Month)"/>
  2181.         </xsl:variable>
  2182.         <xsl:variable name ="cDay">
  2183.             <xsl:value-of select="count(b:Day)"/>
  2184.         </xsl:variable>
  2185.         <xsl:variable name ="cYear">
  2186.             <xsl:value-of select="count(b:Year)"/>
  2187.         </xsl:variable>
  2188.  
  2189.         <xsl:choose>
  2190.             <xsl:when test ="$cDay!=0">
  2191.                 <xsl:choose>
  2192.                     <xsl:when test ="$cMonth!=0">
  2193.                         <xsl:choose>
  2194.                             <xsl:when test ="$cYear!=0">
  2195.                                 <xsl:value-of select="b:Day"/>
  2196.                                 <xsl:call-template name ="templ_prop_Space"/>
  2197.                                 <xsl:value-of select="b:Month"/>
  2198.                                 <xsl:call-template name ="templ_prop_Space"/>
  2199.                                 <xsl:value-of select="b:Year"/>
  2200.                                 <xsl:call-template name ="templ_prop_Dot"/>
  2201.                             </xsl:when>
  2202.                         </xsl:choose>
  2203.                     </xsl:when>
  2204.                     <xsl:otherwise>
  2205.                         <xsl:if test ="$cYear!=0">
  2206.                             <xsl:value-of select="b:Year"/>
  2207.                             <xsl:call-template name ="templ_prop_Dot"/>
  2208.                         </xsl:if>
  2209.                     </xsl:otherwise>
  2210.  
  2211.                 </xsl:choose>
  2212.             </xsl:when>
  2213.  
  2214.             <xsl:when test="$cMonth!=0">
  2215.                 <xsl:choose>
  2216.                     <xsl:when test ="$cYear!=0">
  2217.                         <xsl:value-of select="b:Month"/>
  2218.                         <xsl:call-template name ="templ_prop_Space"/>
  2219.                         <xsl:value-of select="b:Year"/>
  2220.                         <xsl:call-template name ="templ_prop_Dot"/>
  2221.                     </xsl:when>
  2222.                 </xsl:choose>
  2223.             </xsl:when>
  2224.             <xsl:when test="$cDay!=0 and $cYear!=0 ">
  2225.                 <xsl:value-of select="b:Year"/>
  2226.                 <xsl:call-template name ="templ_prop_Dot"/>
  2227.             </xsl:when>
  2228.  
  2229.  
  2230.             <xsl:when test="$cYear!=0">
  2231.                 <xsl:value-of select="b:Year"/>
  2232.                 <xsl:call-template name ="templ_prop_Dot"/>
  2233.             </xsl:when>
  2234.         </xsl:choose>
  2235.         <xsl:call-template name ="templ_prop_Space"/>
  2236.     </xsl:template>
  2237.  
  2238.     <xsl:template name ="BibDisplayDirector">
  2239.         <xsl:variable name="cDirector">
  2240.             <xsl:value-of select="count(b:Author/b:Director/b:NameList/b:Person)" />
  2241.         </xsl:variable>
  2242.         <xsl:variable name="prop_APA_FromToDash">
  2243.             <xsl:call-template name="templ_prop_FromToDash"/>
  2244.         </xsl:variable>
  2245.         <xsl:choose>
  2246.  
  2247.             <xsl:when test="$cDirector = 1">
  2248.                 <xsl:variable name ="cDirectorFirstName">
  2249.                     <xsl:value-of select ="count(b:Author/b:Director/b:NameList/b:Person/b:First)"/>
  2250.                 </xsl:variable>
  2251.                 <xsl:variable name ="cDirectorLastName">
  2252.                     <xsl:value-of select ="count(b:Author/b:Director/b:NameList/b:Person/b:Last)"/>
  2253.                 </xsl:variable>
  2254.                 <xsl:variable name ="cDirectorMiddleName">
  2255.                     <xsl:value-of select ="count(b:Author/b:Director/b:NameList/b:Person/b:Middle)"/>
  2256.                 </xsl:variable>
  2257.  
  2258.                 <xsl:choose>
  2259.  
  2260.                     <xsl:when test="$cDirectorFirstName=1">
  2261.                         <xsl:choose>
  2262.                             <xsl:when test="contains(b:Author/b:Director/b:NameList/b:Person/b:First,$prop_APA_FromToDash)">
  2263.                                 <xsl:call-template name="HandleSPaceHypenInAuthor">
  2264.                                     <xsl:with-param name="author">
  2265.                                         <xsl:value-of select="b:Author/b:Director/b:NameList/b:Person/b:First"/>
  2266.                                     </xsl:with-param>
  2267.                                 </xsl:call-template>
  2268.                                 <xsl:call-template name ="templ_prop_Space"/>
  2269.                             </xsl:when>
  2270.                             <xsl:otherwise>
  2271.                                 <xsl:call-template name="splitAuthorSpace">
  2272.                                     <xsl:with-param name ="first">
  2273.                                         <xsl:call-template name="right-trim">
  2274.                                             <xsl:with-param name ="s" select="b:Author/b:Director/b:NameList/b:Person/b:First"/>
  2275.                                         </xsl:call-template>
  2276.                                     </xsl:with-param>
  2277.                                 </xsl:call-template>
  2278.                                 <xsl:call-template name ="templ_prop_Space"/>
  2279.                             </xsl:otherwise>
  2280.                         </xsl:choose>
  2281.                     </xsl:when>
  2282.                 </xsl:choose>
  2283.  
  2284.                 <xsl:choose>
  2285.                     <xsl:when test="$cDirectorMiddleName=1">
  2286.                         <xsl:choose>
  2287.                             <xsl:when test="contains(b:Author/b:Director/b:NameList/b:Person/b:Middle,$prop_APA_FromToDash)">
  2288.                                 <xsl:call-template name="HandleSPaceHypenInAuthor">
  2289.                                     <xsl:with-param name="author">
  2290.                                         <xsl:call-template name="right-trim">
  2291.                                             <xsl:with-param name ="s" select="b:Author/b:Director/b:NameList/b:Person/b:Middle"/>
  2292.                                         </xsl:call-template>
  2293.                                     </xsl:with-param>
  2294.                                 </xsl:call-template>
  2295.                                 <xsl:call-template name ="templ_prop_Space"/>
  2296.                             </xsl:when>
  2297.                             <xsl:otherwise>
  2298.                                 <xsl:call-template name="splitAuthorSpace">
  2299.                                     <xsl:with-param name ="first">
  2300.                                         <xsl:call-template name="right-trim">
  2301.                                             <xsl:with-param name ="s" select="b:Author/b:Director/b:NameList/b:Person/b:Middle"/>
  2302.                                         </xsl:call-template>
  2303.                                     </xsl:with-param>
  2304.                                 </xsl:call-template>
  2305.                                 <xsl:call-template name ="templ_prop_Space"/>
  2306.                             </xsl:otherwise>
  2307.                         </xsl:choose>
  2308.                     </xsl:when>
  2309.                 </xsl:choose>
  2310.  
  2311.                 <xsl:choose>
  2312.                     <xsl:when test="$cDirectorLastName=1">
  2313.                         <xsl:value-of select="b:Author/b:Director/b:NameList/b:Person/b:Last"/>
  2314.                         <xsl:call-template name ="templ_prop_ListSeparator"/>
  2315.                     </xsl:when>
  2316.                 </xsl:choose>
  2317.  
  2318.                 <xsl:if test="$cDirector=1">
  2319.                     <xsl:call-template name="templ_str_DirectorCap"/>
  2320.                     <xsl:call-template name ="templ_prop_ListSeparator"/>
  2321.                 </xsl:if>
  2322.             </xsl:when>
  2323.  
  2324.             <xsl:when test="$cDirector>1">
  2325.                 <xsl:for-each select="b:Author/b:Director/b:NameList/b:Person">
  2326.                     <xsl:variable name ="cDirectorFirstName">
  2327.                         <xsl:value-of select ="count(b:First)"/>
  2328.                     </xsl:variable>
  2329.                     <xsl:variable name ="cDirectorLastName">
  2330.                         <xsl:value-of select ="count(b:Last)"/>
  2331.                     </xsl:variable>
  2332.                     <xsl:variable name ="cDirectorMiddleName">
  2333.                         <xsl:value-of select ="count(b:Middle)"/>
  2334.                     </xsl:variable>
  2335.  
  2336.                     <xsl:choose>
  2337.  
  2338.                         <xsl:when test =" $cDirector>1 and (position())=$cDirector">
  2339.                             <xsl:call-template name ="templ_prop_Space"/>
  2340.                             <xsl:call-template name ="templ_str_AndUnCap"/>
  2341.                             <xsl:call-template name ="templ_prop_Space"/>
  2342.                         </xsl:when>
  2343.                     </xsl:choose>
  2344.  
  2345.                     <xsl:choose>
  2346.                         <xsl:when test="$cDirectorFirstName=1">
  2347.                             <xsl:choose>
  2348.                                 <xsl:when test="contains(b:First,$prop_APA_FromToDash)">
  2349.                                     <xsl:call-template name="HandleSPaceHypenInAuthor">
  2350.                                         <xsl:with-param name="author">
  2351.                                             <xsl:call-template name="right-trim">
  2352.                                                 <xsl:with-param name ="s" select="b:First"/>
  2353.                                             </xsl:call-template>
  2354.                                         </xsl:with-param>
  2355.                                     </xsl:call-template>
  2356.                                     <xsl:call-template name ="templ_prop_Space"/>
  2357.                                 </xsl:when>
  2358.                                 <xsl:otherwise>
  2359.                                     <xsl:call-template name="splitAuthorSpace">
  2360.                                         <xsl:with-param name ="first">
  2361.                                             <xsl:call-template name="right-trim">
  2362.                                                 <xsl:with-param name ="s" select="b:First"/>
  2363.                                             </xsl:call-template>
  2364.                                         </xsl:with-param>
  2365.                                     </xsl:call-template>
  2366.                                     <xsl:call-template name ="templ_prop_Space"/>
  2367.                                 </xsl:otherwise>
  2368.                             </xsl:choose>
  2369.                         </xsl:when>
  2370.                     </xsl:choose>
  2371.  
  2372.                     <xsl:choose>
  2373.                         <xsl:when test="$cDirectorMiddleName=1">
  2374.                             <xsl:choose>
  2375.                                 <xsl:when test="contains(b:Middle,$prop_APA_FromToDash)">
  2376.                                     <xsl:call-template name="HandleSPaceHypenInAuthor">
  2377.                                         <xsl:with-param name="author">
  2378.                                             <xsl:call-template name="right-trim">
  2379.                                                 <xsl:with-param name ="s" select="b:Middle"/>
  2380.                                             </xsl:call-template>
  2381.                                         </xsl:with-param>
  2382.                                     </xsl:call-template>
  2383.                                     <xsl:call-template name ="templ_prop_Space"/>
  2384.                                 </xsl:when>
  2385.                                 <xsl:otherwise>
  2386.                                     <xsl:call-template name="splitAuthorSpace">
  2387.                                         <xsl:with-param name ="first">
  2388.                                             <xsl:call-template name="right-trim">
  2389.                                                 <xsl:with-param name ="s" select="b:Middle"/>
  2390.                                             </xsl:call-template>
  2391.                                         </xsl:with-param>
  2392.                                     </xsl:call-template>
  2393.                                     <xsl:call-template name ="templ_prop_Space"/>
  2394.                                 </xsl:otherwise>
  2395.                             </xsl:choose>
  2396.                         </xsl:when>
  2397.                     </xsl:choose>
  2398.  
  2399.                     <xsl:choose>
  2400.                         <xsl:when test="$cDirectorLastName=1">
  2401.                             <xsl:value-of select="b:Last"/>
  2402.                             <xsl:if test="((position()+1)!=$cDirector) and (position()&lt;$cDirector)">
  2403.                                 <xsl:call-template name ="templ_prop_ListSeparator"/>
  2404.                             </xsl:if>
  2405.                         </xsl:when>
  2406.                     </xsl:choose>
  2407.                 </xsl:for-each>
  2408.                 <xsl:call-template name ="templ_prop_ListSeparator"/>
  2409.                 <xsl:if test="$cDirector>1">
  2410.                     <xsl:call-template name="templ_str_DirectorsCap"/>
  2411.                     <xsl:call-template name ="templ_prop_ListSeparator"/>
  2412.                 </xsl:if>
  2413.             </xsl:when>
  2414.         </xsl:choose>
  2415.     </xsl:template>
  2416.  
  2417.     <xsl:template name ="BibDisplayCountryRegionPatent">
  2418.         <xsl:variable name="cCountryRegion">
  2419.             <xsl:value-of select="count(b:CountryRegion)"/>
  2420.         </xsl:variable>
  2421.         <xsl:variable name="cPatent">
  2422.             <xsl:value-of select="count(b:PatentNumber)"/>
  2423.         </xsl:variable>
  2424.         <xsl:variable name ="cMonth">
  2425.             <xsl:value-of select="count(b:Month)"/>
  2426.         </xsl:variable>
  2427.         <xsl:variable name ="cDay">
  2428.             <xsl:value-of select="count(b:Day)"/>
  2429.         </xsl:variable>
  2430.         <xsl:variable name ="cYear">
  2431.             <xsl:value-of select="count(b:Year)"/>
  2432.         </xsl:variable>
  2433.         <xsl:choose>
  2434.             <xsl:when test ="$cCountryRegion!=0">
  2435.                 <xsl:value-of select="b:CountryRegion"/>
  2436.                 <xsl:choose>
  2437.                     <xsl:when test ="$cPatent=0 and $cYear=0">
  2438.                         <xsl:call-template name ="templ_prop_Dot"/>
  2439.                     </xsl:when>
  2440.                     <xsl:otherwise>
  2441.                         <xsl:call-template name ="templ_prop_Space"/>
  2442.                     </xsl:otherwise>
  2443.                 </xsl:choose>
  2444.             </xsl:when>
  2445.         </xsl:choose>
  2446.     </xsl:template>
  2447.  
  2448.     <xsl:template name="BibDisplayTitleJournal">
  2449.         <xsl:variable name="cTitle">
  2450.             <xsl:value-of select="count(b:Title)"/>
  2451.         </xsl:variable>
  2452.         <xsl:variable name ="cJournalName">
  2453.             <xsl:value-of select="count(b:JournalName)"/>
  2454.         </xsl:variable>
  2455.         <xsl:variable name="cVolume">
  2456.             <xsl:value-of select="count(b:Volume)"/>
  2457.         </xsl:variable>
  2458.         <xsl:variable name="cIssue">
  2459.             <xsl:value-of select="count(b:Issue)"/>
  2460.         </xsl:variable>
  2461.         <xsl:variable name="cPages">
  2462.             <xsl:value-of select="count(b:Pages)"/>
  2463.         </xsl:variable>
  2464.         <xsl:variable name ="cYear">
  2465.             <xsl:value-of select="count(b:Year)"/>
  2466.         </xsl:variable>
  2467.         <xsl:if test ="$cTitle!=0">
  2468.             <xsl:call-template name="templ_prop_OpenQuote"/>
  2469.             <xsl:call-template name="right-trim">
  2470.                 <xsl:with-param name ="s" select="b:Title"/>
  2471.             </xsl:call-template>
  2472.  
  2473.             <xsl:choose>
  2474.                 <xsl:when test="$cJournalName!=0 or $cVolume!=0 or $cIssue!=0 or $cPages!=0 or $cYear!=0 ">
  2475.                     <xsl:call-template name ="List_Separator_NoSpace"/>
  2476.                     <xsl:call-template name="templ_prop_CloseQuote"/>
  2477.                     <xsl:call-template name ="templ_prop_Space"/>
  2478.                 </xsl:when>
  2479.                 <xsl:otherwise>
  2480.                     <xsl:call-template name="templ_prop_CloseQuote"/>
  2481.                     <xsl:call-template name ="templ_prop_Dot"/>
  2482.                 </xsl:otherwise>
  2483.             </xsl:choose>
  2484.         </xsl:if>
  2485.     </xsl:template>
  2486.  
  2487.  
  2488.     <xsl:template name="BibDisplayTitleAP">
  2489.         <xsl:variable name="cTitle">
  2490.             <xsl:value-of select="count(b:Title)"/>
  2491.         </xsl:variable>
  2492.         <xsl:variable name="cVolume">
  2493.             <xsl:value-of select="count(b:Volume)"/>
  2494.         </xsl:variable>
  2495.         <xsl:variable name="cIssue">
  2496.             <xsl:value-of select="count(b:Issue)"/>
  2497.         </xsl:variable>
  2498.         <xsl:variable name="cPages">
  2499.             <xsl:value-of select="count(b:Pages)"/>
  2500.         </xsl:variable>
  2501.         <xsl:variable name ="cYear">
  2502.             <xsl:value-of select="count(b:Year)"/>
  2503.         </xsl:variable>
  2504.         <xsl:if test ="$cTitle!=0">
  2505.             <xsl:call-template name="templ_prop_OpenQuote"/>
  2506.             <xsl:call-template name="right-trim">
  2507.                 <xsl:with-param name ="s" select="b:Title"/>
  2508.             </xsl:call-template>
  2509.  
  2510.             <xsl:choose>
  2511.                 <xsl:when test="$cVolume!=0 or $cIssue!=0 or $cPages!=0 or $cYear!=0 ">
  2512.                     <xsl:call-template name ="List_Separator_NoSpace"/>
  2513.                     <xsl:call-template name="templ_prop_CloseQuote"/>
  2514.                     <xsl:call-template name ="templ_prop_Space"/>
  2515.                 </xsl:when>
  2516.                 <xsl:otherwise>
  2517.                     <xsl:call-template name="templ_prop_CloseQuote"/>
  2518.                     <xsl:call-template name ="templ_prop_Dot"/>
  2519.                 </xsl:otherwise>
  2520.             </xsl:choose>
  2521.         </xsl:if>
  2522.     </xsl:template>
  2523.  
  2524.     <xsl:template name ="BibDisplayProductionCompanySRec">
  2525.         <xsl:variable name="cProductionCompany">
  2526.             <xsl:value-of select="count(b:ProductionCompany)"/>
  2527.         </xsl:variable>
  2528.         <xsl:variable name="cYear">
  2529.             <xsl:value-of select="count(b:Year)"/>
  2530.         </xsl:variable>
  2531.         <xsl:choose>
  2532.             <xsl:when test ="$cProductionCompany!=0">
  2533.                 <xsl:value-of select="b:ProductionCompany"/>
  2534.                 <xsl:call-template name ="templ_prop_Dot"/>
  2535.                 <xsl:call-template name ="templ_prop_Space"/>
  2536.             </xsl:when>
  2537.         </xsl:choose>
  2538.     </xsl:template>
  2539.  
  2540.     <xsl:template name ="BibDisplayProductionCompanyPerformance">
  2541.         <xsl:variable name="cProductionCompany">
  2542.             <xsl:value-of select="count(b:ProductionCompany)"/>
  2543.         </xsl:variable>
  2544.         <xsl:variable name="cYear">
  2545.             <xsl:value-of select="count(b:Year)"/>
  2546.         </xsl:variable>
  2547.         <xsl:choose>
  2548.             <xsl:when test ="$cProductionCompany!=0">
  2549.                 <xsl:value-of select="b:ProductionCompany"/>
  2550.                 <xsl:choose >
  2551.                     <xsl:when test="$cYear>0">
  2552.                         <xsl:call-template name ="templ_prop_ListSeparator"/>
  2553.                         <xsl:call-template name ="templ_prop_Space"/>
  2554.                     </xsl:when>
  2555.                     <xsl:otherwise>
  2556.                         <xsl:call-template name ="templ_prop_Dot"/>
  2557.                     </xsl:otherwise>
  2558.                 </xsl:choose>
  2559.             </xsl:when>
  2560.         </xsl:choose>
  2561.     </xsl:template>
  2562.  
  2563.     <xsl:template name ="BibDisplayProductionCompany">
  2564.         <xsl:variable name="cProductionCompany">
  2565.             <xsl:value-of select="count(b:ProductionCompany)"/>
  2566.         </xsl:variable>
  2567.         <xsl:variable name="cYear">
  2568.             <xsl:value-of select="count(b:Year)"/>
  2569.         </xsl:variable>
  2570.         <xsl:choose>
  2571.             <xsl:when test ="$cProductionCompany!=0">
  2572.                 <xsl:value-of select="b:ProductionCompany"/>
  2573.                 <xsl:choose>
  2574.                     <xsl:when test="$cYear>0">
  2575.                         <xsl:call-template name ="templ_prop_ListSeparator"/>
  2576.                         <xsl:call-template name ="templ_prop_Space"/>
  2577.                     </xsl:when>
  2578.                     <xsl:otherwise>
  2579.                         <xsl:call-template name ="templ_prop_Dot"/>
  2580.                     </xsl:otherwise>
  2581.                 </xsl:choose>
  2582.             </xsl:when>
  2583.         </xsl:choose>
  2584.     </xsl:template>
  2585.  
  2586.     <xsl:template name ="BibDisplayProductionCompanywebsite">
  2587.         <xsl:variable name="cProductionCompany">
  2588.             <xsl:value-of select="count(b:ProductionCompany)"/>
  2589.         </xsl:variable>
  2590.         <xsl:variable name ="cMonth">
  2591.             <xsl:value-of select="count(b:Month)"/>
  2592.         </xsl:variable>
  2593.         <xsl:variable name ="cDay">
  2594.             <xsl:value-of select="count(b:Day)"/>
  2595.         </xsl:variable>
  2596.         <xsl:variable name ="cYear">
  2597.             <xsl:value-of select="count(b:Year)"/>
  2598.         </xsl:variable>
  2599.         <xsl:variable name="cURL">
  2600.             <xsl:value-of select="count(b:URL)"/>
  2601.         </xsl:variable>
  2602.         <xsl:choose>
  2603.             <xsl:when test ="$cProductionCompany!=0">
  2604.                 <xsl:value-of select="b:ProductionCompany"/>
  2605.                 <xsl:choose>
  2606.                     <xsl:when test="$cMonth!=0 or $cDay!=0 or $cYear!=0 or $cURL!=0  ">
  2607.                         <xsl:call-template name ="templ_prop_ListSeparator"/>
  2608.                     </xsl:when>
  2609.                     <xsl:when test="$cMonth=0 and $cDay=0 and $cYear=0 and $cURL=0" >
  2610.                         <xsl:call-template name ="templ_prop_Dot"/>
  2611.                     </xsl:when>
  2612.                 </xsl:choose>
  2613.             </xsl:when>
  2614.         </xsl:choose>
  2615.     </xsl:template>
  2616.  
  2617.     <xsl:template name ="BibDisplayEditor">
  2618.         <xsl:variable name="cEditor">
  2619.             <xsl:value-of select="count(b:Author/b:Editor/b:NameList/b:Person)" />
  2620.         </xsl:variable>
  2621.         <xsl:variable name="prop_APA_FromToDash">
  2622.             <xsl:call-template name="templ_prop_FromToDash"/>
  2623.         </xsl:variable>
  2624.         <xsl:variable name="cCity">
  2625.             <xsl:value-of select="count(b:City)"/>
  2626.         </xsl:variable>
  2627.         <xsl:variable name="cPublisher">
  2628.             <xsl:value-of select="count(b:Publisher)"/>
  2629.         </xsl:variable>
  2630.         <xsl:variable name="cStateProvince">
  2631.             <xsl:value-of select="count(b:StateProvince)"/>
  2632.         </xsl:variable>
  2633.         <xsl:variable name="cYear">
  2634.             <xsl:value-of select="count(b:Year)"/>
  2635.         </xsl:variable>
  2636.         <xsl:variable name="cPages">
  2637.             <xsl:value-of select="count(b:Pages)"/>
  2638.         </xsl:variable>
  2639.         <xsl:variable name ="cAuthors">
  2640.             <xsl:value-of select ="count(b:Author/b:Author/b:NameList/b:Person)"/>
  2641.         </xsl:variable>
  2642.         <xsl:variable name ="corpAuthor">
  2643.             <xsl:value-of select ="count(b:Author/b:Author/b:Corporate)"/>
  2644.         </xsl:variable>
  2645.  
  2646.         <xsl:if test ="$cAuthors>0 or $corpAuthor>0">
  2647.             <xsl:choose>
  2648.                 <xsl:when test="$cEditor = 1">
  2649.                     <xsl:variable name ="cEditorFirstName">
  2650.                         <xsl:value-of select ="count(b:Author/b:Editor/b:NameList/b:Person/b:First)"/>
  2651.                     </xsl:variable>
  2652.                     <xsl:variable name ="cEditorLastName">
  2653.                         <xsl:value-of select ="count(b:Author/b:Editor/b:NameList/b:Person/b:Last)"/>
  2654.                     </xsl:variable>
  2655.                     <xsl:variable name ="cEditorMiddleName">
  2656.                         <xsl:value-of select ="count(b:Author/b:Editor/b:NameList/b:Person/b:Middle)"/>
  2657.                     </xsl:variable>
  2658.                     <xsl:choose>
  2659.                         <xsl:when test="$cEditorFirstName=1">
  2660.                             <xsl:call-template name="splitAuthorSpace">
  2661.                                 <xsl:with-param name ="first">
  2662.                                     <xsl:call-template name="right-trim">
  2663.                                         <xsl:with-param name ="s" select="b:Author/b:Editor/b:NameList/b:Person/b:First"/>
  2664.                                     </xsl:call-template>
  2665.                                 </xsl:with-param>
  2666.                             </xsl:call-template>
  2667.                             <xsl:call-template name ="templ_prop_Space"/>
  2668.                         </xsl:when>
  2669.                     </xsl:choose>
  2670.                     <xsl:choose>
  2671.                         <xsl:when test="$cEditorMiddleName=1">
  2672.                             <xsl:call-template name="splitAuthorSpace">
  2673.                                 <xsl:with-param name ="first">
  2674.                                     <xsl:call-template name="right-trim">
  2675.                                         <xsl:with-param name ="s" select="b:Author/b:Editor/b:NameList/b:Person/b:Middle"/>
  2676.                                     </xsl:call-template>
  2677.                                 </xsl:with-param>
  2678.                             </xsl:call-template>
  2679.                             <xsl:call-template name ="templ_prop_Space"/>
  2680.                         </xsl:when>
  2681.                     </xsl:choose>
  2682.                     <xsl:choose>
  2683.                         <xsl:when test="$cEditorLastName=1">
  2684.                             <xsl:value-of select="b:Author/b:Editor/b:NameList/b:Person/b:Last"/>
  2685.                             <xsl:call-template name ="templ_prop_ListSeparator"/>
  2686.                         </xsl:when>
  2687.                     </xsl:choose>
  2688.                     <xsl:if test="$cEditor=1">
  2689.                         <xsl:call-template name="templ_str_EditorShortCap"/>
  2690.                         <xsl:choose>
  2691.                             <xsl:when test="$cCity!=0 or $cPublisher!=0 or $cStateProvince!=0 or $cYear!=0 or $cPages!=0 ">
  2692.                                 <xsl:call-template name ="templ_prop_ListSeparator"/>
  2693.                             </xsl:when>
  2694.                             <xsl:when test="$cCity=0 and $cPublisher=0 and $cStateProvince=0 and $cYear=0 and $cPages=0 ">
  2695.                                 <xsl:call-template name ="templ_prop_Space"/>
  2696.  
  2697.                             </xsl:when>
  2698.                         </xsl:choose>
  2699.                     </xsl:if>
  2700.                 </xsl:when>
  2701.                 <xsl:when test="$cEditor>1">
  2702.                     <xsl:for-each select="b:Author/b:Editor/b:NameList/b:Person">
  2703.                         <xsl:variable name ="cEditorFirstName">
  2704.                             <xsl:value-of select ="count(b:First)"/>
  2705.                         </xsl:variable>
  2706.                         <xsl:variable name ="cEditorLastName">
  2707.                             <xsl:value-of select ="count(b:Last)"/>
  2708.                         </xsl:variable>
  2709.                         <xsl:variable name ="cEditorMiddleName">
  2710.                             <xsl:value-of select ="count(b:Middle)"/>
  2711.                         </xsl:variable>
  2712.  
  2713.                         <xsl:choose>
  2714.  
  2715.                             <xsl:when test ="$cEditor>1 and (position())=$cEditor">
  2716.                                 <xsl:call-template name ="templ_prop_Space"/>
  2717.                                 <xsl:call-template name ="templ_str_AndUnCap"/>
  2718.                                 <xsl:call-template name ="templ_prop_Space"/>
  2719.                             </xsl:when>
  2720.                         </xsl:choose>
  2721.  
  2722.                         <xsl:choose>
  2723.                             <xsl:when test="$cEditorFirstName=1">
  2724.                                 <xsl:call-template name="splitAuthorSpace">
  2725.                                     <xsl:with-param name ="first">
  2726.                                         <xsl:call-template name="right-trim">
  2727.                                             <xsl:with-param name ="s" select="b:First"/>
  2728.                                         </xsl:call-template>
  2729.                                     </xsl:with-param>
  2730.                                 </xsl:call-template>
  2731.                                 <xsl:call-template name ="templ_prop_Space"/>
  2732.                             </xsl:when>
  2733.                         </xsl:choose>
  2734.                         <xsl:choose>
  2735.                             <xsl:when test="$cEditorMiddleName=1">
  2736.                                 <xsl:call-template name="splitAuthorSpace">
  2737.                                     <xsl:with-param name ="first">
  2738.                                         <xsl:call-template name="right-trim">
  2739.                                             <xsl:with-param name ="s" select="b:Middle"/>
  2740.                                         </xsl:call-template>
  2741.                                     </xsl:with-param>
  2742.                                 </xsl:call-template>
  2743.                                 <xsl:call-template name ="templ_prop_Space"/>
  2744.                             </xsl:when>
  2745.                         </xsl:choose>
  2746.  
  2747.                         <xsl:choose>
  2748.                             <xsl:when test="$cEditorLastName=1">
  2749.                                 <xsl:value-of select="b:Last"/>
  2750.                                 <xsl:if test="((position()+1)!=$cEditor) and (position()&lt;$cEditor)">
  2751.                                     <xsl:call-template name ="templ_prop_ListSeparator"/>
  2752.                                 </xsl:if>
  2753.  
  2754.                             </xsl:when>
  2755.                         </xsl:choose>
  2756.                     </xsl:for-each>
  2757.                     <xsl:call-template name ="templ_prop_ListSeparator"/>
  2758.                     <xsl:if test="$cEditor>1">
  2759.                         <xsl:call-template name="templ_str_EditorsShortCap"/>
  2760.                         <xsl:choose>
  2761.                             <xsl:when test="$cCity!=0 or $cPublisher!=0 or $cStateProvince!=0 or $cYear!=0 or $cPages!=0 ">
  2762.                                 <xsl:call-template name ="templ_prop_ListSeparator"/>
  2763.                             </xsl:when>
  2764.                             <xsl:when test="$cCity=0 and $cPublisher=0 and $cStateProvince=0 and $cYear=0 and $cPages=0 ">
  2765.                                 <xsl:call-template name ="templ_prop_Space"/>
  2766.                             </xsl:when>
  2767.                         </xsl:choose>
  2768.                     </xsl:if>
  2769.                 </xsl:when>
  2770.             </xsl:choose>
  2771.         </xsl:if>
  2772.     </xsl:template>
  2773.  
  2774.     <xsl:template name ="BibDisplayEditorBook">
  2775.         <xsl:variable name="cAuthor">
  2776.             <xsl:value-of select="count(b:Author/b:Author/b:NameList/b:Person)" />
  2777.         </xsl:variable>
  2778.         <xsl:variable name="cEditor">
  2779.             <xsl:value-of select="count(b:Author/b:Editor/b:NameList/b:Person)" />
  2780.         </xsl:variable>
  2781.         <xsl:variable name="prop_APA_FromToDash">
  2782.             <xsl:call-template name="templ_prop_FromToDash"/>
  2783.         </xsl:variable>
  2784.         <xsl:variable name="cCity">
  2785.             <xsl:value-of select="count(b:City)"/>
  2786.         </xsl:variable>
  2787.         <xsl:variable name="cPublisher">
  2788.             <xsl:value-of select="count(b:Publisher)"/>
  2789.         </xsl:variable>
  2790.         <xsl:variable name="cStateProvince">
  2791.             <xsl:value-of select="count(b:StateProvince)"/>
  2792.         </xsl:variable>
  2793.         <xsl:variable name="cYear">
  2794.             <xsl:value-of select="count(b:Year)"/>
  2795.         </xsl:variable>
  2796.         <xsl:variable name="cPages">
  2797.             <xsl:value-of select="count(b:Pages)"/>
  2798.         </xsl:variable>
  2799.         <xsl:variable name ="cAuthors">
  2800.             <xsl:value-of select ="count(b:Author/b:Author/b:NameList/b:Person)"/>
  2801.         </xsl:variable>
  2802.         <xsl:variable name ="corpAuthor">
  2803.             <xsl:value-of select ="count(b:Author/b:Author/b:Corporate)"/>
  2804.         </xsl:variable>
  2805.  
  2806.         <xsl:if test ="$cAuthors>0 or $corpAuthor>0">
  2807.             <xsl:choose>
  2808.                 <xsl:when test="$cEditor = 1">
  2809.                     <xsl:variable name ="cEditorFirstName">
  2810.                         <xsl:value-of select ="count(b:Author/b:Editor/b:NameList/b:Person/b:First)"/>
  2811.                     </xsl:variable>
  2812.                     <xsl:variable name ="cEditorLastName">
  2813.                         <xsl:value-of select ="count(b:Author/b:Editor/b:NameList/b:Person/b:Last)"/>
  2814.                     </xsl:variable>
  2815.                     <xsl:variable name ="cEditorMiddleName">
  2816.                         <xsl:value-of select ="count(b:Author/b:Editor/b:NameList/b:Person/b:Middle)"/>
  2817.                     </xsl:variable>
  2818.                     <xsl:choose>
  2819.                         <xsl:when test="$cEditorFirstName=1">
  2820.                             <xsl:call-template name="splitAuthorSpace">
  2821.                                 <xsl:with-param name ="first">
  2822.                                     <xsl:call-template name="right-trim">
  2823.                                         <xsl:with-param name ="s" select="b:Author/b:Editor/b:NameList/b:Person/b:First"/>
  2824.                                     </xsl:call-template>
  2825.                                 </xsl:with-param>
  2826.                             </xsl:call-template>
  2827.                             <xsl:call-template name ="templ_prop_Space"/>
  2828.                         </xsl:when>
  2829.                     </xsl:choose>
  2830.                     <xsl:choose>
  2831.                         <xsl:when test="$cEditorMiddleName=1">
  2832.                             <xsl:call-template name="splitAuthorSpace">
  2833.                                 <xsl:with-param name ="first">
  2834.                                     <xsl:call-template name="right-trim">
  2835.                                         <xsl:with-param name ="s" select="b:Author/b:Editor/b:NameList/b:Person/b:Middle"/>
  2836.                                     </xsl:call-template>
  2837.                                 </xsl:with-param>
  2838.                             </xsl:call-template>
  2839.                             <xsl:call-template name ="templ_prop_Space"/>
  2840.                         </xsl:when>
  2841.                     </xsl:choose>
  2842.                     <xsl:choose>
  2843.                         <xsl:when test="$cEditorLastName=1">
  2844.                             <xsl:value-of select="b:Author/b:Editor/b:NameList/b:Person/b:Last"/>
  2845.                             <xsl:call-template name ="templ_prop_ListSeparator"/>
  2846.                         </xsl:when>
  2847.                     </xsl:choose>
  2848.                     <xsl:if test="$cEditor=1">
  2849.                         <xsl:call-template name="templ_str_EditorShortCap"/>
  2850.                         <xsl:choose>
  2851.                             <xsl:when test="$cCity!=0 or $cPublisher!=0 or $cStateProvince!=0 or $cYear!=0 or $cPages!=0 ">
  2852.                                 <xsl:call-template name ="templ_prop_ListSeparator"/>
  2853.                             </xsl:when>
  2854.                             <xsl:when test="$cCity=0 and $cPublisher=0 and $cStateProvince=0 and $cYear=0 and $cPages=0 ">
  2855.                                 <xsl:call-template name ="templ_prop_Space"/>
  2856.                             </xsl:when>
  2857.                         </xsl:choose>
  2858.                     </xsl:if>
  2859.                 </xsl:when>
  2860.                 <xsl:when test="$cEditor>1">
  2861.                     <xsl:for-each select="b:Author/b:Editor/b:NameList/b:Person">
  2862.                         <xsl:variable name ="cEditorFirstName">
  2863.                             <xsl:value-of select ="count(b:First)"/>
  2864.                         </xsl:variable>
  2865.                         <xsl:variable name ="cEditorLastName">
  2866.                             <xsl:value-of select ="count(b:Last)"/>
  2867.                         </xsl:variable>
  2868.                         <xsl:variable name ="cEditorMiddleName">
  2869.                             <xsl:value-of select ="count(b:Middle)"/>
  2870.                         </xsl:variable>
  2871.  
  2872.                         <xsl:choose>
  2873.                             <xsl:when test ="$cEditor>1 and (position())=$cEditor">
  2874.                                 <xsl:call-template name ="templ_prop_Space"/>
  2875.                                 <xsl:call-template name ="templ_str_AndUnCap"/>
  2876.                                 <xsl:call-template name ="templ_prop_Space"/>
  2877.                             </xsl:when>
  2878.                         </xsl:choose>
  2879.  
  2880.                         <xsl:choose>
  2881.                             <xsl:when test="$cEditorFirstName=1">
  2882.                                 <xsl:call-template name="splitAuthorSpace">
  2883.                                     <xsl:with-param name ="first">
  2884.                                         <xsl:call-template name="right-trim">
  2885.                                             <xsl:with-param name ="s" select="b:First"/>
  2886.                                         </xsl:call-template>
  2887.                                     </xsl:with-param>
  2888.                                 </xsl:call-template>
  2889.                                 <xsl:call-template name ="templ_prop_Space"/>
  2890.                             </xsl:when>
  2891.                         </xsl:choose>
  2892.                         <xsl:choose>
  2893.                             <xsl:when test="$cEditorMiddleName=1">
  2894.                                 <xsl:call-template name="splitAuthorSpace">
  2895.                                     <xsl:with-param name ="first">
  2896.                                         <xsl:call-template name="right-trim">
  2897.                                             <xsl:with-param name ="s" select="b:Middle"/>
  2898.                                         </xsl:call-template>
  2899.                                     </xsl:with-param>
  2900.                                 </xsl:call-template>
  2901.                                 <xsl:call-template name ="templ_prop_Space"/>
  2902.                             </xsl:when>
  2903.                         </xsl:choose>
  2904.  
  2905.                         <xsl:choose>
  2906.                             <xsl:when test="$cEditorLastName=1">
  2907.                                 <xsl:value-of select="b:Last"/>
  2908.                                 <xsl:if test="((position()+1)!=$cEditor) and (position()&lt;$cEditor)">
  2909.                                     <xsl:call-template name ="templ_prop_ListSeparator"/>
  2910.                                 </xsl:if>
  2911.                             </xsl:when>
  2912.                         </xsl:choose>
  2913.                     </xsl:for-each>
  2914.                     <xsl:call-template name ="templ_prop_ListSeparator"/>
  2915.                     <xsl:if test="$cEditor>1">
  2916.                         <xsl:call-template name="templ_str_EditorsShortCap"/>
  2917.                         <xsl:choose>
  2918.                             <xsl:when test="$cCity!=0 or $cPublisher!=0 or $cStateProvince!=0 or $cYear!=0 or $cPages!=0 ">
  2919.                                 <xsl:call-template name ="templ_prop_ListSeparator"/>
  2920.                             </xsl:when>
  2921.                             <xsl:when test="$cCity=0 and $cPublisher=0 and $cStateProvince=0 and $cYear=0 and $cPages=0 ">
  2922.                                 <xsl:call-template name ="templ_prop_Space"/>
  2923.                             </xsl:when>
  2924.                         </xsl:choose>
  2925.                     </xsl:if>
  2926.                 </xsl:when>
  2927.             </xsl:choose>
  2928.         </xsl:if>
  2929.     </xsl:template>
  2930.  
  2931.     <xsl:template name ="BibDisplayEditorNL">
  2932.         <xsl:variable name="cEditor">
  2933.             <xsl:value-of select="count(b:Author/b:Editor/b:NameList/b:Person)" />
  2934.         </xsl:variable>
  2935.  
  2936.         <xsl:variable name="prop_APA_FromToDash">
  2937.             <xsl:call-template name="templ_prop_FromToDash"/>
  2938.         </xsl:variable>
  2939.  
  2940.         <xsl:choose>
  2941.             <xsl:when test="$cEditor = 1">
  2942.                 <xsl:variable name ="cEditorFirstName">
  2943.                     <xsl:value-of select ="count(b:Author/b:Editor/b:NameList/b:Person/b:First)"/>
  2944.                 </xsl:variable>
  2945.                 <xsl:variable name ="cEditorLastName">
  2946.                     <xsl:value-of select ="count(b:Author/b:Editor/b:NameList/b:Person/b:Last)"/>
  2947.                 </xsl:variable>
  2948.                 <xsl:variable name ="cEditorMiddleName">
  2949.                     <xsl:value-of select ="count(b:Author/b:Editor/b:NameList/b:Person/b:Middle)"/>
  2950.                 </xsl:variable>
  2951.                 <xsl:choose>
  2952.                     <xsl:when test="$cEditorFirstName=1">
  2953.                         <xsl:choose>
  2954.                             <xsl:when test="contains(b:Author/b:Editor/b:NameList/b:Person/b:First,$prop_APA_FromToDash)">
  2955.                                 <xsl:call-template name="HandleSPaceHypenInAuthor">
  2956.                                     <xsl:with-param name="author">
  2957.                                         <xsl:call-template name="right-trim">
  2958.                                             <xsl:with-param name ="s" select="b:Author/b:Editor/b:NameList/b:Person/b:First"/>
  2959.                                         </xsl:call-template>
  2960.                                     </xsl:with-param>
  2961.                                 </xsl:call-template>
  2962.                                 <xsl:call-template name ="templ_prop_Space"/>
  2963.                             </xsl:when>
  2964.                             <xsl:otherwise>
  2965.                                 <xsl:call-template name="splitAuthorSpace">
  2966.                                     <xsl:with-param name ="first">
  2967.                                         <xsl:call-template name="right-trim">
  2968.                                             <xsl:with-param name ="s" select="b:Author/b:Editor/b:NameList/b:Person/b:First"/>
  2969.                                         </xsl:call-template>
  2970.                                     </xsl:with-param>
  2971.                                 </xsl:call-template>
  2972.                                 <xsl:call-template name ="templ_prop_Space"/>
  2973.                             </xsl:otherwise>
  2974.                         </xsl:choose>
  2975.                     </xsl:when>
  2976.                 </xsl:choose>
  2977.                 <xsl:choose>
  2978.                     <xsl:when test="$cEditorMiddleName=1">
  2979.                         <xsl:choose>
  2980.                             <xsl:when test="contains(b:Author/b:Editor/b:NameList/b:Person/b:Middle,$prop_APA_FromToDash)">
  2981.                                 <xsl:call-template name="HandleSPaceHypenInAuthor">
  2982.                                     <xsl:with-param name="author">
  2983.                                         <xsl:call-template name="right-trim">
  2984.                                             <xsl:with-param name ="s"  select="b:Author/b:Editor/b:NameList/b:Person/b:Middle"/>
  2985.                                         </xsl:call-template>
  2986.                                     </xsl:with-param>
  2987.                                 </xsl:call-template>
  2988.                                 <xsl:call-template name ="templ_prop_Space"/>
  2989.                             </xsl:when>
  2990.                             <xsl:otherwise>
  2991.                                 <xsl:call-template name="splitAuthorSpace">
  2992.                                     <xsl:with-param name ="first">
  2993.                                         <xsl:call-template name="right-trim">
  2994.                                             <xsl:with-param name ="s" select="b:Author/b:Editor/b:NameList/b:Person/b:Middle"/>
  2995.                                         </xsl:call-template>
  2996.                                     </xsl:with-param>
  2997.                                 </xsl:call-template>
  2998.                                 <xsl:call-template name ="templ_prop_Space"/>
  2999.                             </xsl:otherwise>
  3000.                         </xsl:choose>
  3001.                     </xsl:when>
  3002.                 </xsl:choose>
  3003.                 <xsl:choose>
  3004.                     <xsl:when test="$cEditorLastName=1">
  3005.                         <xsl:value-of select="b:Author/b:Editor/b:NameList/b:Person/b:Last"/>
  3006.                         <xsl:call-template name="templ_prop_ListSeparator" />
  3007.                     </xsl:when>
  3008.                 </xsl:choose>
  3009.                 <xsl:if test="$cEditor=1">
  3010.                     <xsl:call-template name ="templ_str_EditorShortCap"/>
  3011.                     <xsl:call-template name="Seperator"/>
  3012.                 </xsl:if>
  3013.             </xsl:when>
  3014.             <xsl:when test="$cEditor>1">
  3015.                 <xsl:for-each select="b:Author/b:Editor/b:NameList/b:Person">
  3016.                     <xsl:variable name ="cEditorFirstName">
  3017.                         <xsl:value-of select ="count(b:First)"/>
  3018.                     </xsl:variable>
  3019.                     <xsl:variable name ="cEditorLastName">
  3020.                         <xsl:value-of select ="count(b:Last)"/>
  3021.                     </xsl:variable>
  3022.                     <xsl:variable name ="cEditorMiddleName">
  3023.                         <xsl:value-of select ="count(b:Middle)"/>
  3024.                     </xsl:variable>
  3025.  
  3026.                     <xsl:choose>
  3027.  
  3028.                         <xsl:when test ="$cEditor>1 and (position())=$cEditor">
  3029.                             <xsl:call-template name ="templ_prop_Space"/>
  3030.                             <xsl:call-template name ="templ_str_AndUnCap"/>
  3031.                             <xsl:call-template name ="templ_prop_Space"/>
  3032.                         </xsl:when>
  3033.                     </xsl:choose>
  3034.  
  3035.                     <xsl:choose>
  3036.                         <xsl:when test="$cEditorFirstName=1">
  3037.                             <xsl:choose>
  3038.                                 <xsl:when test="contains(b:First,$prop_APA_FromToDash)">
  3039.                                     <xsl:call-template name="HandleSPaceHypenInAuthor">
  3040.                                         <xsl:with-param name="author">
  3041.                                             <xsl:call-template name="right-trim">
  3042.                                                 <xsl:with-param name ="s" select="b:First"/>
  3043.                                             </xsl:call-template>
  3044.                                         </xsl:with-param>
  3045.                                     </xsl:call-template>
  3046.                                     <xsl:call-template name ="templ_prop_Space"/>
  3047.                                 </xsl:when>
  3048.                                 <xsl:otherwise>
  3049.                                     <xsl:call-template name="splitAuthorSpace">
  3050.                                         <xsl:with-param name ="first">
  3051.                                             <xsl:call-template name="right-trim">
  3052.                                                 <xsl:with-param name ="s" select="b:First"/>
  3053.                                             </xsl:call-template>
  3054.                                         </xsl:with-param>
  3055.                                     </xsl:call-template>
  3056.                                     <xsl:call-template name ="templ_prop_Space"/>
  3057.                                 </xsl:otherwise>
  3058.                             </xsl:choose>
  3059.                         </xsl:when>
  3060.                     </xsl:choose>
  3061.  
  3062.                     <xsl:choose>
  3063.                         <xsl:when test="$cEditorMiddleName=1">
  3064.                             <xsl:choose>
  3065.                                 <xsl:when test="contains(b:Middle,$prop_APA_FromToDash)">
  3066.                                     <xsl:call-template name="HandleSPaceHypenInAuthor">
  3067.                                         <xsl:with-param name="author">
  3068.                                             <xsl:call-template name="right-trim">
  3069.                                                 <xsl:with-param name ="s" select="b:Middle"/>
  3070.                                             </xsl:call-template>
  3071.                                         </xsl:with-param>
  3072.                                     </xsl:call-template>
  3073.                                     <xsl:call-template name ="templ_prop_Space"/>
  3074.                                 </xsl:when>
  3075.                                 <xsl:otherwise>
  3076.                                     <xsl:call-template name="splitAuthorSpace">
  3077.                                         <xsl:with-param name ="first">
  3078.                                             <xsl:call-template name="right-trim">
  3079.                                                 <xsl:with-param name ="s" select="b:Middle"/>
  3080.                                             </xsl:call-template>
  3081.                                         </xsl:with-param>
  3082.                                     </xsl:call-template>
  3083.                                     <xsl:call-template name ="templ_prop_Space"/>
  3084.                                 </xsl:otherwise>
  3085.                             </xsl:choose>
  3086.                         </xsl:when>
  3087.                     </xsl:choose>
  3088.                     <xsl:choose>
  3089.                         <xsl:when test="$cEditorLastName=1">
  3090.                             <xsl:value-of select="b:Last"/>
  3091.                             <xsl:if test="((position()+1)!=$cEditor) and (position()&lt;$cEditor)">
  3092.                                 <xsl:call-template name ="templ_prop_ListSeparator"/>
  3093.                             </xsl:if>
  3094.                         </xsl:when>
  3095.                     </xsl:choose>
  3096.                 </xsl:for-each>
  3097.                 <xsl:call-template name ="templ_prop_ListSeparator"/>
  3098.                 <xsl:if test="$cEditor>1">
  3099.                     <xsl:call-template name ="templ_str_EditorsShortCap"/>
  3100.                     <xsl:call-template name="Seperator"/>
  3101.                 </xsl:if>
  3102.             </xsl:when>
  3103.         </xsl:choose>
  3104.     </xsl:template>
  3105.  
  3106.  
  3107.     <xsl:template name ="Seperator">
  3108.         <xsl:variable name="cTitle">
  3109.             <xsl:value-of select ="count(b:Title)"/>
  3110.         </xsl:variable>
  3111.         <xsl:variable name="cEdition">
  3112.             <xsl:value-of select ="count(b:Edition)"/>
  3113.         </xsl:variable>
  3114.         <xsl:variable name="cBookTitle">
  3115.             <xsl:value-of select ="count(b:BookTitle)"/>
  3116.         </xsl:variable>
  3117.         <xsl:variable name="cJournalName">
  3118.             <xsl:value-of select ="count(b:JournalName)"/>
  3119.         </xsl:variable>
  3120.         <xsl:variable name="cVolume">
  3121.             <xsl:value-of select ="count(b:Volume)"/>
  3122.         </xsl:variable>
  3123.         <xsl:variable name="cIssue">
  3124.             <xsl:value-of select ="count(b:Issue)"/>
  3125.         </xsl:variable>
  3126.         <xsl:variable name="cEditor">
  3127.             <xsl:value-of select="count(b:Author/b:Editor/b:NameList/b:Person)" />
  3128.         </xsl:variable>
  3129.         <xsl:variable name="cCity">
  3130.             <xsl:value-of select ="count(b:City)"/>
  3131.         </xsl:variable>
  3132.         <xsl:variable name="cStateProvince">
  3133.             <xsl:value-of select ="count(b:StateProvince)"/>
  3134.         </xsl:variable>
  3135.         <xsl:variable name="cPublisher">
  3136.             <xsl:value-of select ="count(b:Publisher)"/>
  3137.         </xsl:variable>
  3138.         <xsl:variable name="cYear">
  3139.             <xsl:value-of select ="count(b:Year)"/>
  3140.         </xsl:variable>
  3141.         <xsl:variable name="cPages">
  3142.             <xsl:value-of select ="count(b:Pages)"/>
  3143.         </xsl:variable>
  3144.  
  3145.         <xsl:choose>
  3146.             <xsl:when test="b:SourceType='Book' or b:SourceType='Misc'">
  3147.                 <xsl:choose>
  3148.                     <xsl:when test="$cTitle!=0 or $cEdition!=0 or $cVolume!=0 or $cCity!=0 or $cStateProvince!=0 or $cPublisher!=0 or $cYear!=0 or $cPages!=0">
  3149.                         <xsl:call-template name ="templ_prop_ListSeparator"/>
  3150.                     </xsl:when>
  3151.                     <xsl:otherwise>
  3152.                         <xsl:call-template name ="templ_prop_Space"/>
  3153.                     </xsl:otherwise>
  3154.                 </xsl:choose>
  3155.             </xsl:when>
  3156.  
  3157.             <xsl:when test="b:SourceType='BookSection'">
  3158.                 <xsl:choose>
  3159.                     <xsl:when test="$cTitle!=0 or $cBookTitle!=0 or $cEdition!=0 or $cVolume!=0 or $cCity!=0 or $cStateProvince!=0 or $cPublisher!=0 or $cYear!=0 or $cPages!=0">
  3160.                         <xsl:call-template name ="templ_prop_ListSeparator"/>
  3161.                     </xsl:when>
  3162.                     <xsl:otherwise>
  3163.                         <xsl:call-template name ="templ_prop_Space"/>
  3164.                     </xsl:otherwise>
  3165.                 </xsl:choose>
  3166.             </xsl:when>
  3167.         </xsl:choose>
  3168.     </xsl:template>
  3169.  
  3170.     <xsl:template name ="BibDisplayAuthorSoundRec">
  3171.         <xsl:variable name="cComposer">
  3172.             <xsl:value-of select="count(b:Author/b:Composer/b:NameList/b:Person)" />
  3173.         </xsl:variable>
  3174.         <xsl:variable name="cConductor">
  3175.             <xsl:value-of select="count(b:Author/b:Conductor/b:NameList/b:Person)" />
  3176.         </xsl:variable>
  3177.         <xsl:variable name="cPerformer">
  3178.             <xsl:value-of select="count(b:Author/b:Performer/b:NameList/b:Person)" />
  3179.         </xsl:variable>
  3180.         <xsl:variable name="cCorporatePerformer">
  3181.             <xsl:value-of select="count(b:Author/b:Performer/b:Corporate)" />
  3182.         </xsl:variable>
  3183.         <xsl:variable name="prop_APA_FromToDash">
  3184.             <xsl:call-template name="templ_prop_FromToDash"/>
  3185.         </xsl:variable>
  3186.         <xsl:choose>
  3187.             <xsl:when test="$cComposer!=0">
  3188.                 <xsl:choose>
  3189.                     <xsl:when test="$cComposer = 1">
  3190.                         <xsl:variable name ="cComposerFirstName">
  3191.                             <xsl:value-of select ="count(b:Author/b:Composer/b:NameList/b:Person/b:First)"/>
  3192.                         </xsl:variable>
  3193.                         <xsl:variable name ="cComposerLastName">
  3194.                             <xsl:value-of select ="count(b:Author/b:Composer/b:NameList/b:Person/b:Last)"/>
  3195.                         </xsl:variable>
  3196.                         <xsl:variable name ="cComposerMiddleName">
  3197.                             <xsl:value-of select ="count(b:Author/b:Composer/b:NameList/b:Person/b:Middle)"/>
  3198.                         </xsl:variable>
  3199.  
  3200.                         <xsl:choose>
  3201.  
  3202.                             <xsl:when test="$cComposerFirstName=1">
  3203.                                 <xsl:choose>
  3204.                                     <xsl:when test="contains(b:Author/b:Composer/b:NameList/b:Person/b:First,$prop_APA_FromToDash)">
  3205.                                         <xsl:call-template name="HandleSPaceHypenInAuthor">
  3206.                                             <xsl:with-param name="author">
  3207.                                                 <xsl:call-template name="right-trim">
  3208.                                                     <xsl:with-param name ="s" select="b:Author/b:Composer/b:NameList/b:Person/b:First"/>
  3209.                                                 </xsl:call-template>
  3210.                                             </xsl:with-param>
  3211.                                         </xsl:call-template>
  3212.                                         <xsl:call-template name ="templ_prop_Space"/>
  3213.                                     </xsl:when>
  3214.                                     <xsl:otherwise>
  3215.                                         <xsl:call-template name="splitAuthorSpace">
  3216.                                             <xsl:with-param name ="first">
  3217.                                                 <xsl:call-template name="right-trim">
  3218.                                                     <xsl:with-param name ="s" select="b:Author/b:Composer/b:NameList/b:Person/b:First"/>
  3219.                                                 </xsl:call-template>
  3220.                                             </xsl:with-param>
  3221.                                         </xsl:call-template>
  3222.                                         <xsl:call-template name ="templ_prop_Space"/>
  3223.                                     </xsl:otherwise>
  3224.                                 </xsl:choose>
  3225.                             </xsl:when>
  3226.                         </xsl:choose>
  3227.  
  3228.                         <xsl:choose>
  3229.                             <xsl:when test="$cComposerMiddleName=1">
  3230.                                 <xsl:choose>
  3231.                                     <xsl:when test="contains(b:Author/b:Composer/b:NameList/b:Person/b:Middle,$prop_APA_FromToDash)">
  3232.                                         <xsl:call-template name="HandleSPaceHypenInAuthor">
  3233.                                             <xsl:with-param name="author">
  3234.                                                 <xsl:call-template name="right-trim">
  3235.                                                     <xsl:with-param name ="s" select="b:Author/b:Composer/b:NameList/b:Person/b:Middle"/>
  3236.                                                 </xsl:call-template>
  3237.                                             </xsl:with-param>
  3238.                                         </xsl:call-template>
  3239.                                         <xsl:call-template name ="templ_prop_Space"/>
  3240.                                     </xsl:when>
  3241.                                     <xsl:otherwise>
  3242.                                         <xsl:call-template name="splitAuthorSpace">
  3243.                                             <xsl:with-param name ="first">
  3244.                                                 <xsl:call-template name="right-trim">
  3245.                                                     <xsl:with-param name ="s" select="b:Author/b:Composer/b:NameList/b:Person/b:Middle"/>
  3246.                                                 </xsl:call-template>
  3247.                                             </xsl:with-param>
  3248.                                         </xsl:call-template>
  3249.                                         <xsl:call-template name ="templ_prop_Space"/>
  3250.                                     </xsl:otherwise>
  3251.                                 </xsl:choose>
  3252.                             </xsl:when>
  3253.                         </xsl:choose>
  3254.  
  3255.                         <xsl:choose>
  3256.                             <xsl:when test="$cComposerLastName=1">
  3257.                                 <xsl:value-of select="b:Author/b:Composer/b:NameList/b:Person/b:Last"/>
  3258.                                 <xsl:call-template name ="templ_prop_ListSeparator"/>
  3259.                             </xsl:when>
  3260.                         </xsl:choose>
  3261.  
  3262.                         <xsl:if test="$cComposer=1">
  3263.                             <xsl:call-template name="templ_str_ComposerCap"/>
  3264.                             <xsl:call-template name ="templ_prop_ListSeparator"/>
  3265.                         </xsl:if>
  3266.                     </xsl:when>
  3267.  
  3268.                     <xsl:when test="$cComposer>1">
  3269.                         <xsl:for-each select="b:Author/b:Composer/b:NameList/b:Person">
  3270.                             <xsl:variable name ="cComposerFirstName">
  3271.                                 <xsl:value-of select ="count(b:First)"/>
  3272.                             </xsl:variable>
  3273.                             <xsl:variable name ="cComposerLastName">
  3274.                                 <xsl:value-of select ="count(b:Last)"/>
  3275.                             </xsl:variable>
  3276.                             <xsl:variable name ="cComposerMiddleName">
  3277.                                 <xsl:value-of select ="count(b:Middle)"/>
  3278.                             </xsl:variable>
  3279.  
  3280.                             <xsl:choose>
  3281.  
  3282.                                 <xsl:when test =" $cComposer>1 and (position())=$cComposer">
  3283.                                     <xsl:call-template name ="templ_prop_Space"/>
  3284.                                     <xsl:call-template name ="templ_str_AndUnCap"/>
  3285.                                     <xsl:call-template name ="templ_prop_Space"/>
  3286.                                 </xsl:when>
  3287.                             </xsl:choose>
  3288.  
  3289.                             <xsl:choose>
  3290.                                 <xsl:when test="$cComposerFirstName=1">
  3291.                                     <xsl:choose>
  3292.                                         <xsl:when test="contains(b:First,$prop_APA_FromToDash)">
  3293.                                             <xsl:call-template name="HandleSPaceHypenInAuthor">
  3294.                                                 <xsl:with-param name="author">
  3295.                                                     <xsl:call-template name="right-trim">
  3296.                                                         <xsl:with-param name ="s" select="b:First"/>
  3297.                                                     </xsl:call-template>
  3298.                                                 </xsl:with-param>
  3299.                                             </xsl:call-template>
  3300.                                             <xsl:call-template name ="templ_prop_Space"/>
  3301.                                         </xsl:when>
  3302.                                         <xsl:otherwise>
  3303.                                             <xsl:call-template name="splitAuthorSpace">
  3304.                                                 <xsl:with-param name ="first">
  3305.                                                     <xsl:call-template name="right-trim">
  3306.                                                         <xsl:with-param name ="s" select="b:First"/>
  3307.                                                     </xsl:call-template>
  3308.                                                 </xsl:with-param>
  3309.                                             </xsl:call-template>
  3310.                                             <xsl:call-template name ="templ_prop_Space"/>
  3311.                                         </xsl:otherwise>
  3312.                                     </xsl:choose>
  3313.                                 </xsl:when>
  3314.                             </xsl:choose>
  3315.  
  3316.                             <xsl:choose>
  3317.                                 <xsl:when test="$cComposerMiddleName=1">
  3318.                                     <xsl:choose>
  3319.                                         <xsl:when test="contains(b:Middle,$prop_APA_FromToDash)">
  3320.                                             <xsl:call-template name="HandleSPaceHypenInAuthor">
  3321.                                                 <xsl:with-param name="author">
  3322.                                                     <xsl:call-template name="right-trim">
  3323.                                                         <xsl:with-param name ="s" select="b:Middle"/>
  3324.                                                     </xsl:call-template>
  3325.                                                 </xsl:with-param>
  3326.                                             </xsl:call-template>
  3327.                                             <xsl:call-template name ="templ_prop_Space"/>
  3328.                                         </xsl:when>
  3329.                                         <xsl:otherwise>
  3330.                                             <xsl:call-template name="splitAuthorSpace">
  3331.                                                 <xsl:with-param name ="first">
  3332.                                                     <xsl:call-template name="right-trim">
  3333.                                                         <xsl:with-param name ="s" select="b:Middle"/>
  3334.                                                     </xsl:call-template>
  3335.                                                 </xsl:with-param>
  3336.                                             </xsl:call-template>
  3337.                                             <xsl:call-template name ="templ_prop_Space"/>
  3338.                                         </xsl:otherwise>
  3339.                                     </xsl:choose>
  3340.                                 </xsl:when>
  3341.                             </xsl:choose>
  3342.  
  3343.                             <xsl:choose>
  3344.                                 <xsl:when test="$cComposerLastName=1">
  3345.                                     <xsl:value-of select="b:Last"/>
  3346.                                     <xsl:if test="((position()+1)!=$cComposer) and (position()&lt;$cComposer)">
  3347.                                         <xsl:call-template name ="templ_prop_ListSeparator"/>
  3348.                                     </xsl:if>
  3349.  
  3350.                                 </xsl:when>
  3351.                             </xsl:choose>
  3352.                         </xsl:for-each>
  3353.                         <xsl:call-template name ="templ_prop_ListSeparator"/>
  3354.  
  3355.                         <xsl:if test="$cComposer>1">
  3356.                             <xsl:call-template name="templ_str_ComposersCap"/>
  3357.                             <xsl:call-template name ="templ_prop_ListSeparator"/>
  3358.                         </xsl:if>
  3359.  
  3360.                     </xsl:when>
  3361.                 </xsl:choose>
  3362.             </xsl:when>
  3363.  
  3364.             <xsl:when test="$cConductor!=0">
  3365.                 <xsl:choose>
  3366.                     <xsl:when test="$cConductor = 1">
  3367.                         <xsl:variable name ="cConductorFirstName">
  3368.                             <xsl:value-of select ="count(b:Author/b:Conductor/b:NameList/b:Person/b:First)"/>
  3369.                         </xsl:variable>
  3370.                         <xsl:variable name ="cConductorLastName">
  3371.                             <xsl:value-of select ="count(b:Author/b:Conductor/b:NameList/b:Person/b:Last)"/>
  3372.                         </xsl:variable>
  3373.                         <xsl:variable name ="cConductorMiddleName">
  3374.                             <xsl:value-of select ="count(b:Author/b:Conductor/b:NameList/b:Person/b:Middle)"/>
  3375.                         </xsl:variable>
  3376.  
  3377.                         <xsl:choose>
  3378.  
  3379.                             <xsl:when test="$cConductorFirstName=1">
  3380.                                 <xsl:choose>
  3381.                                     <xsl:when test="contains(b:Author/b:Conductor/b:NameList/b:Person/b:First,$prop_APA_FromToDash)">
  3382.                                         <xsl:call-template name="HandleSPaceHypenInAuthor">
  3383.                                             <xsl:with-param name="author">
  3384.                                                 <xsl:call-template name="right-trim">
  3385.                                                     <xsl:with-param name ="s" select="b:Author/b:Conductor/b:NameList/b:Person/b:First"/>
  3386.                                                 </xsl:call-template>
  3387.                                             </xsl:with-param>
  3388.                                         </xsl:call-template>
  3389.                                         <xsl:call-template name ="templ_prop_Space"/>
  3390.                                     </xsl:when>
  3391.                                     <xsl:otherwise>
  3392.                                         <xsl:call-template name="splitAuthorSpace">
  3393.                                             <xsl:with-param name ="first">
  3394.                                                 <xsl:call-template name="right-trim">
  3395.                                                     <xsl:with-param name ="s" select="b:Author/b:Conductor/b:NameList/b:Person/b:First"/>
  3396.                                                 </xsl:call-template>
  3397.                                             </xsl:with-param>
  3398.                                         </xsl:call-template>
  3399.                                         <xsl:call-template name ="templ_prop_Space"/>
  3400.                                     </xsl:otherwise>
  3401.                                 </xsl:choose>
  3402.                             </xsl:when>
  3403.                         </xsl:choose>
  3404.  
  3405.                         <xsl:choose>
  3406.                             <xsl:when test="$cConductorMiddleName=1">
  3407.                                 <xsl:choose>
  3408.                                     <xsl:when test="contains(b:Author/b:Conductor/b:NameList/b:Person/b:Middle,$prop_APA_FromToDash)">
  3409.                                         <xsl:call-template name="HandleSPaceHypenInAuthor">
  3410.                                             <xsl:with-param name="author">
  3411.                                                 <xsl:call-template name="right-trim">
  3412.                                                     <xsl:with-param name ="s" select="b:Author/b:Conductor/b:NameList/b:Person/b:Middle"/>
  3413.                                                 </xsl:call-template>
  3414.                                             </xsl:with-param>
  3415.                                         </xsl:call-template>
  3416.                                         <xsl:call-template name ="templ_prop_Space"/>
  3417.                                     </xsl:when>
  3418.                                     <xsl:otherwise>
  3419.                                         <xsl:call-template name="splitAuthorSpace">
  3420.                                             <xsl:with-param name ="first">
  3421.                                                 <xsl:call-template name="right-trim">
  3422.                                                     <xsl:with-param name ="s" select="b:Author/b:Conductor/b:NameList/b:Person/b:Middle"/>
  3423.                                                 </xsl:call-template>
  3424.                                             </xsl:with-param>
  3425.                                         </xsl:call-template>
  3426.                                         <xsl:call-template name ="templ_prop_Space"/>
  3427.                                     </xsl:otherwise>
  3428.                                 </xsl:choose>
  3429.                             </xsl:when>
  3430.                         </xsl:choose>
  3431.  
  3432.                         <xsl:choose>
  3433.                             <xsl:when test="$cConductorLastName=1">
  3434.                                 <xsl:value-of select="b:Author/b:Conductor/b:NameList/b:Person/b:Last"/>
  3435.                                 <xsl:call-template name ="templ_prop_ListSeparator"/>
  3436.                             </xsl:when>
  3437.                         </xsl:choose>
  3438.  
  3439.                         <xsl:if test="$cConductor=1">
  3440.                             <xsl:call-template name="templ_str_ConductorCap"/>
  3441.                             <xsl:call-template name ="templ_prop_ListSeparator"/>
  3442.                         </xsl:if>
  3443.                     </xsl:when>
  3444.  
  3445.                     <xsl:when test="$cConductor>1">
  3446.                         <xsl:for-each select="b:Author/b:Conductor/b:NameList/b:Person">
  3447.                             <xsl:variable name ="cConductorFirstName">
  3448.                                 <xsl:value-of select ="count(b:First)"/>
  3449.                             </xsl:variable>
  3450.                             <xsl:variable name ="cConductorLastName">
  3451.                                 <xsl:value-of select ="count(b:Last)"/>
  3452.                             </xsl:variable>
  3453.                             <xsl:variable name ="cConductorMiddleName">
  3454.                                 <xsl:value-of select ="count(b:Middle)"/>
  3455.                             </xsl:variable>
  3456.  
  3457.                             <xsl:choose>
  3458.  
  3459.                                 <xsl:when test =" $cConductor>1 and (position())=$cConductor">
  3460.                                     <xsl:call-template name ="templ_prop_Space"/>
  3461.                                     <xsl:call-template name ="templ_str_AndUnCap"/>
  3462.                                     <xsl:call-template name ="templ_prop_Space"/>
  3463.                                 </xsl:when>
  3464.                             </xsl:choose>
  3465.  
  3466.                             <xsl:choose>
  3467.                                 <xsl:when test="$cConductorFirstName=1">
  3468.                                     <xsl:choose>
  3469.                                         <xsl:when test="contains(b:First,$prop_APA_FromToDash)">
  3470.                                             <xsl:call-template name="HandleSPaceHypenInAuthor">
  3471.                                                 <xsl:with-param name="author">
  3472.                                                     <xsl:call-template name="right-trim">
  3473.                                                         <xsl:with-param name ="s" select="b:First"/>
  3474.                                                     </xsl:call-template>
  3475.                                                 </xsl:with-param>
  3476.                                             </xsl:call-template>
  3477.                                             <xsl:call-template name ="templ_prop_Space"/>
  3478.                                         </xsl:when>
  3479.                                         <xsl:otherwise>
  3480.                                             <xsl:call-template name="splitAuthorSpace">
  3481.                                                 <xsl:with-param name ="first">
  3482.                                                     <xsl:call-template name="right-trim">
  3483.                                                         <xsl:with-param name ="s" select="b:First"/>
  3484.                                                     </xsl:call-template>
  3485.                                                 </xsl:with-param>
  3486.                                             </xsl:call-template>
  3487.                                             <xsl:call-template name ="templ_prop_Space"/>
  3488.                                         </xsl:otherwise>
  3489.                                     </xsl:choose>
  3490.                                 </xsl:when>
  3491.                             </xsl:choose>
  3492.  
  3493.                             <xsl:choose>
  3494.                                 <xsl:when test="$cConductorMiddleName=1">
  3495.                                     <xsl:choose>
  3496.                                         <xsl:when test="contains(b:Middle,$prop_APA_FromToDash)">
  3497.                                             <xsl:call-template name="HandleSPaceHypenInAuthor">
  3498.                                                 <xsl:with-param name="author">
  3499.                                                     <xsl:call-template name="right-trim">
  3500.                                                         <xsl:with-param name ="s" select="b:Middle"/>
  3501.                                                     </xsl:call-template>
  3502.                                                 </xsl:with-param>
  3503.                                             </xsl:call-template>
  3504.                                             <xsl:call-template name ="templ_prop_Space"/>
  3505.                                         </xsl:when>
  3506.                                         <xsl:otherwise>
  3507.                                             <xsl:call-template name="splitAuthorSpace">
  3508.                                                 <xsl:with-param name ="first">
  3509.                                                     <xsl:call-template name="right-trim">
  3510.                                                         <xsl:with-param name ="s" select="b:Middle"/>
  3511.                                                     </xsl:call-template>
  3512.                                                 </xsl:with-param>
  3513.                                             </xsl:call-template>
  3514.                                             <xsl:call-template name ="templ_prop_Space"/>
  3515.                                         </xsl:otherwise>
  3516.                                     </xsl:choose>
  3517.                                 </xsl:when>
  3518.                             </xsl:choose>
  3519.  
  3520.                             <xsl:choose>
  3521.                                 <xsl:when test="$cConductorLastName=1">
  3522.                                     <xsl:value-of select="b:Last"/>
  3523.                                     <xsl:if test="((position()+1)!=$cConductor) and (position()&lt;$cConductor)">
  3524.                                         <xsl:call-template name ="templ_prop_ListSeparator"/>
  3525.                                     </xsl:if>
  3526.                                 </xsl:when>
  3527.                             </xsl:choose>
  3528.                         </xsl:for-each>
  3529.                         <xsl:call-template name ="templ_prop_ListSeparator"/>
  3530.  
  3531.                         <xsl:if test="$cConductor>1">
  3532.                             <xsl:call-template name="templ_str_ConductorsCap"/>
  3533.                             <xsl:call-template name ="templ_prop_ListSeparator"/>
  3534.                         </xsl:if>
  3535.  
  3536.                     </xsl:when>
  3537.                 </xsl:choose>
  3538.             </xsl:when>
  3539.  
  3540.             <xsl:when test="$cPerformer!=0">
  3541.                 <xsl:choose>
  3542.                     <xsl:when test="$cPerformer = 1">
  3543.                         <xsl:variable name ="cPerformerFirstName">
  3544.                             <xsl:value-of select ="count(b:Author/b:Performer/b:NameList/b:Person/b:First)"/>
  3545.                         </xsl:variable>
  3546.                         <xsl:variable name ="cPerformerLastName">
  3547.                             <xsl:value-of select ="count(b:Author/b:Performer/b:NameList/b:Person/b:Last)"/>
  3548.                         </xsl:variable>
  3549.                         <xsl:variable name ="cPerformerMiddleName">
  3550.                             <xsl:value-of select ="count(b:Author/b:Performer/b:NameList/b:Person/b:Middle)"/>
  3551.                         </xsl:variable>
  3552.  
  3553.                         <xsl:choose>
  3554.  
  3555.                             <xsl:when test="$cPerformerFirstName=1">
  3556.                                 <xsl:choose>
  3557.                                     <xsl:when test="contains(b:Author/b:Performer/b:NameList/b:Person/b:First,$prop_APA_FromToDash)">
  3558.                                         <xsl:call-template name="HandleSPaceHypenInAuthor">
  3559.                                             <xsl:with-param name="author">
  3560.                                                 <xsl:call-template name="right-trim">
  3561.                                                     <xsl:with-param name ="s" select="b:Author/b:Performer/b:NameList/b:Person/b:First"/>
  3562.                                                 </xsl:call-template>
  3563.                                             </xsl:with-param>
  3564.                                         </xsl:call-template>
  3565.                                         <xsl:call-template name ="templ_prop_Space"/>
  3566.                                     </xsl:when>
  3567.                                     <xsl:otherwise>
  3568.                                         <xsl:call-template name="splitAuthorSpace">
  3569.                                             <xsl:with-param name ="first">
  3570.                                                 <xsl:call-template name="right-trim">
  3571.                                                     <xsl:with-param name ="s" select="b:Author/b:Performer/b:NameList/b:Person/b:First"/>
  3572.                                                 </xsl:call-template>
  3573.                                             </xsl:with-param>
  3574.                                         </xsl:call-template>
  3575.                                         <xsl:call-template name ="templ_prop_Space"/>
  3576.                                     </xsl:otherwise>
  3577.                                 </xsl:choose>
  3578.                             </xsl:when>
  3579.                         </xsl:choose>
  3580.  
  3581.                         <xsl:choose>
  3582.                             <xsl:when test="$cPerformerMiddleName=1">
  3583.                                 <xsl:choose>
  3584.                                     <xsl:when test="contains(b:Author/b:Performer/b:NameList/b:Person/b:Middle,$prop_APA_FromToDash)">
  3585.                                         <xsl:call-template name="HandleSPaceHypenInAuthor">
  3586.                                             <xsl:with-param name="author">
  3587.                                                 <xsl:call-template name="right-trim">
  3588.                                                     <xsl:with-param name ="s" select="b:Author/b:Performer/b:NameList/b:Person/b:Middle"/>
  3589.                                                 </xsl:call-template>
  3590.                                             </xsl:with-param>
  3591.                                         </xsl:call-template>
  3592.                                         <xsl:call-template name ="templ_prop_Space"/>
  3593.                                     </xsl:when>
  3594.                                     <xsl:otherwise>
  3595.                                         <xsl:call-template name="splitAuthorSpace">
  3596.                                             <xsl:with-param name ="first">
  3597.                                                 <xsl:call-template name="right-trim">
  3598.                                                     <xsl:with-param name ="s" select="b:Author/b:Performer/b:NameList/b:Person/b:Middle"/>
  3599.                                                 </xsl:call-template>
  3600.                                             </xsl:with-param>
  3601.                                         </xsl:call-template>
  3602.                                         <xsl:call-template name ="templ_prop_Space"/>
  3603.                                     </xsl:otherwise>
  3604.                                 </xsl:choose>
  3605.                             </xsl:when>
  3606.                         </xsl:choose>
  3607.  
  3608.                         <xsl:choose>
  3609.                             <xsl:when test="$cPerformerLastName=1">
  3610.                                 <xsl:value-of select="b:Author/b:Performer/b:NameList/b:Person/b:Last"/>
  3611.                                 <xsl:call-template name ="templ_prop_ListSeparator"/>
  3612.                             </xsl:when>
  3613.                         </xsl:choose>
  3614.  
  3615.                         <xsl:if test="$cPerformer=1">
  3616.                             <xsl:call-template name="templ_str_PerformerCap"/>
  3617.                             <xsl:call-template name ="templ_prop_ListSeparator"/>
  3618.                         </xsl:if>
  3619.                     </xsl:when>
  3620.  
  3621.                     <xsl:when test="$cPerformer>1">
  3622.                         <xsl:for-each select="b:Author/b:Performer/b:NameList/b:Person">
  3623.                             <xsl:variable name ="cPerformerFirstName">
  3624.                                 <xsl:value-of select ="count(b:First)"/>
  3625.                             </xsl:variable>
  3626.                             <xsl:variable name ="cPerformerLastName">
  3627.                                 <xsl:value-of select ="count(b:Last)"/>
  3628.                             </xsl:variable>
  3629.                             <xsl:variable name ="cPerformerMiddleName">
  3630.                                 <xsl:value-of select ="count(b:Middle)"/>
  3631.                             </xsl:variable>
  3632.  
  3633.                             <xsl:choose>
  3634.                                 <xsl:when test =" $cPerformer>1 and (position())=$cPerformer">
  3635.                                     <xsl:call-template name ="templ_prop_Space"/>
  3636.                                     <xsl:call-template name ="templ_str_AndUnCap"/>
  3637.                                     <xsl:call-template name ="templ_prop_Space"/>
  3638.                                 </xsl:when>
  3639.                             </xsl:choose>
  3640.  
  3641.                             <xsl:choose>
  3642.                                 <xsl:when test="$cPerformerFirstName=1">
  3643.                                     <xsl:choose>
  3644.                                         <xsl:when test="contains(b:First,$prop_APA_FromToDash)">
  3645.                                             <xsl:call-template name="HandleSPaceHypenInAuthor">
  3646.                                                 <xsl:with-param name="author">
  3647.                                                     <xsl:call-template name="right-trim">
  3648.                                                         <xsl:with-param name ="s" select="b:First"/>
  3649.                                                     </xsl:call-template>
  3650.                                                 </xsl:with-param>
  3651.                                             </xsl:call-template>
  3652.                                             <xsl:call-template name ="templ_prop_Space"/>
  3653.                                         </xsl:when>
  3654.                                         <xsl:otherwise>
  3655.                                             <xsl:call-template name="splitAuthorSpace">
  3656.                                                 <xsl:with-param name ="first">
  3657.                                                     <xsl:call-template name="right-trim">
  3658.                                                         <xsl:with-param name ="s" select="b:First"/>
  3659.                                                     </xsl:call-template>
  3660.                                                 </xsl:with-param>
  3661.                                             </xsl:call-template>
  3662.                                             <xsl:call-template name ="templ_prop_Space"/>
  3663.                                         </xsl:otherwise>
  3664.                                     </xsl:choose>
  3665.                                 </xsl:when>
  3666.                             </xsl:choose>
  3667.  
  3668.                             <xsl:choose>
  3669.                                 <xsl:when test="$cPerformerMiddleName=1">
  3670.                                     <xsl:choose>
  3671.                                         <xsl:when test="contains(b:Middle,$prop_APA_FromToDash)">
  3672.                                             <xsl:call-template name="HandleSPaceHypenInAuthor">
  3673.                                                 <xsl:with-param name="author">
  3674.                                                     <xsl:call-template name="right-trim">
  3675.                                                         <xsl:with-param name ="s" select="b:Middle"/>
  3676.                                                     </xsl:call-template>
  3677.                                                 </xsl:with-param>
  3678.                                             </xsl:call-template>
  3679.                                             <xsl:call-template name ="templ_prop_Space"/>
  3680.                                         </xsl:when>
  3681.                                         <xsl:otherwise>
  3682.                                             <xsl:call-template name="splitAuthorSpace">
  3683.                                                 <xsl:with-param name ="first">
  3684.                                                     <xsl:call-template name="right-trim">
  3685.                                                         <xsl:with-param name ="s" select="b:Middle"/>
  3686.                                                     </xsl:call-template>
  3687.                                                 </xsl:with-param>
  3688.                                             </xsl:call-template>
  3689.                                             <xsl:call-template name ="templ_prop_Space"/>
  3690.                                         </xsl:otherwise>
  3691.                                     </xsl:choose>
  3692.                                 </xsl:when>
  3693.                             </xsl:choose>
  3694.  
  3695.                             <xsl:choose>
  3696.                                 <xsl:when test="$cPerformerLastName=1">
  3697.                                     <xsl:value-of select="b:Last"/>
  3698.                                     <xsl:if test="((position()+1)!=$cPerformer) and (position()&lt;$cPerformer)">
  3699.                                         <xsl:call-template name ="templ_prop_ListSeparator"/>
  3700.                                     </xsl:if>
  3701.                                 </xsl:when>
  3702.                             </xsl:choose>
  3703.                         </xsl:for-each>
  3704.                         <xsl:call-template name ="templ_prop_ListSeparator"/>
  3705.  
  3706.                         <xsl:if test="$cPerformer>1">
  3707.                             <xsl:call-template name="templ_str_PerformersCap"/>
  3708.                             <xsl:call-template name ="templ_prop_ListSeparator"/>
  3709.                         </xsl:if>
  3710.                     </xsl:when>
  3711.                 </xsl:choose>
  3712.             </xsl:when>
  3713.             <xsl:otherwise>
  3714.                 <xsl:if test="$cCorporatePerformer>0">
  3715.                     <xsl:value-of select="b:Author/b:Performer/b:Corporate"/>
  3716.                     <xsl:call-template name ="templ_prop_ListSeparator"/>
  3717.                     <xsl:call-template name="templ_str_PerformerCap"/>
  3718.                     <xsl:call-template name ="templ_prop_ListSeparator"/>
  3719.                 </xsl:if>
  3720.             </xsl:otherwise>
  3721.         </xsl:choose>
  3722.     </xsl:template>
  3723.  
  3724.     <xsl:template name="BibDisplayTitlePerformance">
  3725.         <xsl:variable name="cTitle">
  3726.             <xsl:value-of select="count(b:Title)"/>
  3727.         </xsl:variable>
  3728.         <xsl:if test ="$cTitle!=0">
  3729.             <xsl:call-template name="right-trim">
  3730.                 <xsl:with-param name ="s" select="b:Title"/>
  3731.             </xsl:call-template>
  3732.             <xsl:call-template name ="templ_prop_Dot"/>
  3733.             <xsl:call-template name ="templ_prop_Space"/>
  3734.         </xsl:if>
  3735.     </xsl:template>
  3736.  
  3737.  
  3738.     <xsl:template name="strinventorPatent">
  3739.         <xsl:text>Inventor</xsl:text>
  3740.         <xsl:call-template name ="templ_prop_Dot"/>
  3741.         <xsl:call-template name ="templ_prop_Space"/>
  3742.     </xsl:template>
  3743.  
  3744.     <xsl:template name="strinventorsPatent">
  3745.         <xsl:text>Inventors</xsl:text>
  3746.         <xsl:call-template name ="templ_prop_Dot"/>
  3747.         <xsl:call-template name ="templ_prop_Space"/>
  3748.     </xsl:template>
  3749.     <xsl:template name="strintervieweeInterview">
  3750.         <xsl:text>Interviewee</xsl:text>
  3751.         <xsl:call-template name ="templ_prop_ListSeparator"/>
  3752.         <xsl:call-template name ="templ_prop_Space"/>
  3753.     </xsl:template>
  3754.  
  3755.     <xsl:template name="strintervieweesInterview">
  3756.         <xsl:text>Interviewees</xsl:text>
  3757.         <xsl:call-template name ="templ_prop_ListSeparator"/>
  3758.         <xsl:call-template name ="templ_prop_Space"/>
  3759.     </xsl:template>
  3760.  
  3761.     <xsl:template name="strPerformance">
  3762.         <xsl:call-template name ="templ_prop_SecondaryOpen"/>
  3763.         <xsl:text>Performance</xsl:text>
  3764.         <xsl:call-template name="templ_prop_SecondaryClose"/>
  3765.         <xsl:call-template name ="templ_prop_Dot"/>
  3766.         <xsl:call-template name ="templ_prop_Space"/>
  3767.     </xsl:template>
  3768.  
  3769.     <xsl:template name="strArtist">
  3770.  
  3771.         <xsl:text >Artist</xsl:text>
  3772.         <xsl:call-template name ="templ_prop_ListSeparator"/>
  3773.         <xsl:call-template name ="templ_prop_Space"/>
  3774.     </xsl:template>
  3775.     <xsl:template name="strArtists">
  3776.  
  3777.         <xsl:text >Artists</xsl:text>
  3778.         <xsl:call-template name ="templ_prop_ListSeparator"/>
  3779.         <xsl:call-template name ="templ_prop_Space"/>
  3780.     </xsl:template>
  3781.     <xsl:template name="strArt">
  3782.         <xsl:call-template name ="templ_prop_SecondaryOpen"/>
  3783.         <xsl:text >Art</xsl:text>
  3784.         <xsl:call-template name="templ_prop_SecondaryClose"/>
  3785.         <xsl:call-template name ="templ_prop_Dot"/>
  3786.         <xsl:call-template name ="templ_prop_Space"/>
  3787.     </xsl:template>
  3788.  
  3789.     <xsl:template name ="BibDisplayAuthorPatent">
  3790.         <xsl:variable name="cInventor">
  3791.             <xsl:value-of select="count(b:Author/b:Inventor/b:NameList/b:Person)" />
  3792.         </xsl:variable>
  3793.         <xsl:variable name="cTitle">
  3794.             <xsl:value-of select="count(b:Title)" />
  3795.         </xsl:variable>
  3796.         <xsl:variable name="prop_APA_FromToDash">
  3797.             <xsl:call-template name="templ_prop_FromToDash"/>
  3798.         </xsl:variable>
  3799.         <xsl:choose>
  3800.  
  3801.             <xsl:when test="$cInventor = 1">
  3802.                 <xsl:variable name ="cInventorFirstName">
  3803.                     <xsl:value-of select ="count(b:Author/b:Inventor/b:NameList/b:Person/b:First)"/>
  3804.                 </xsl:variable>
  3805.                 <xsl:variable name ="cInventorLastName">
  3806.                     <xsl:value-of select ="count(b:Author/b:Inventor/b:NameList/b:Person/b:Last)"/>
  3807.                 </xsl:variable>
  3808.                 <xsl:variable name ="cInventorMiddleName">
  3809.                     <xsl:value-of select ="count(b:Author/b:Inventor/b:NameList/b:Person/b:Middle)"/>
  3810.                 </xsl:variable>
  3811.  
  3812.                 <xsl:choose>
  3813.                     <xsl:when test="$cInventorFirstName=1">
  3814.                         <xsl:choose>
  3815.                             <xsl:when test="contains(b:Author/b:Inventor/b:NameList/b:Person/b:First,$prop_APA_FromToDash)">
  3816.                                 <xsl:call-template name="HandleSPaceHypenInAuthor">
  3817.                                     <xsl:with-param name="author">
  3818.                                         <xsl:call-template name="right-trim">
  3819.                                             <xsl:with-param name ="s" select="b:Author/b:Inventor/b:NameList/b:Person/b:First"/>
  3820.                                         </xsl:call-template>
  3821.                                     </xsl:with-param>
  3822.                                 </xsl:call-template>
  3823.                                 <xsl:call-template name ="templ_prop_Space"/>
  3824.                             </xsl:when>
  3825.                             <xsl:otherwise>
  3826.                                 <xsl:call-template name="splitAuthorSpace">
  3827.                                     <xsl:with-param name ="first">
  3828.                                         <xsl:call-template name="right-trim">
  3829.                                             <xsl:with-param name ="s" select="b:Author/b:Inventor/b:NameList/b:Person/b:First"/>
  3830.                                         </xsl:call-template>
  3831.                                     </xsl:with-param>
  3832.                                 </xsl:call-template>
  3833.                                 <xsl:call-template name ="templ_prop_Space"/>
  3834.                             </xsl:otherwise>
  3835.                         </xsl:choose>
  3836.                     </xsl:when>
  3837.                 </xsl:choose>
  3838.  
  3839.                 <xsl:choose>
  3840.                     <xsl:when test="$cInventorMiddleName=1">
  3841.                         <xsl:choose>
  3842.                             <xsl:when test="contains(b:Author/b:Inventor/b:NameList/b:Person/b:Middle,$prop_APA_FromToDash)">
  3843.                                 <xsl:call-template name="HandleSPaceHypenInAuthor">
  3844.                                     <xsl:with-param name="author">
  3845.                                         <xsl:call-template name="right-trim">
  3846.                                             <xsl:with-param name ="s" select="b:Author/b:Inventor/b:NameList/b:Person/b:Middle"/>
  3847.                                         </xsl:call-template>
  3848.                                     </xsl:with-param>
  3849.                                 </xsl:call-template>
  3850.                                 <xsl:call-template name ="templ_prop_Space"/>
  3851.                             </xsl:when>
  3852.                             <xsl:otherwise>
  3853.                                 <xsl:call-template name="splitAuthorSpace">
  3854.                                     <xsl:with-param name ="first">
  3855.                                         <xsl:call-template name="right-trim">
  3856.                                             <xsl:with-param name ="s" select="b:Author/b:Inventor/b:NameList/b:Person/b:Middle"/>
  3857.                                         </xsl:call-template>
  3858.                                     </xsl:with-param>
  3859.                                 </xsl:call-template>
  3860.                                 <xsl:call-template name ="templ_prop_Space"/>
  3861.                             </xsl:otherwise>
  3862.                         </xsl:choose>
  3863.                     </xsl:when>
  3864.                 </xsl:choose>
  3865.  
  3866.                 <xsl:choose>
  3867.                     <xsl:when test="$cInventorLastName=1">
  3868.                         <xsl:value-of select="b:Author/b:Inventor/b:NameList/b:Person/b:Last"/>
  3869.                         <xsl:choose>
  3870.                             <xsl:when test="$cTitle!=0">
  3871.                                 <xsl:call-template name ="templ_prop_ListSeparator"/>
  3872.                             </xsl:when>
  3873.                             <xsl:otherwise>
  3874.                                 <xsl:call-template name ="templ_prop_Dot"/>
  3875.                             </xsl:otherwise>
  3876.                         </xsl:choose>
  3877.                     </xsl:when>
  3878.                 </xsl:choose>
  3879.             </xsl:when>
  3880.  
  3881.             <xsl:when test="$cInventor>1">
  3882.                 <xsl:for-each select="b:Author/b:Inventor/b:NameList/b:Person">
  3883.                     <xsl:variable name ="cInventorFirstName">
  3884.                         <xsl:value-of select ="count(b:First)"/>
  3885.                     </xsl:variable>
  3886.                     <xsl:variable name ="cInventorLastName">
  3887.                         <xsl:value-of select ="count(b:Last)"/>
  3888.                     </xsl:variable>
  3889.                     <xsl:variable name ="cInventorMiddleName">
  3890.                         <xsl:value-of select ="count(b:Middle)"/>
  3891.                     </xsl:variable>
  3892.  
  3893.                     <xsl:choose>
  3894.  
  3895.                         <xsl:when test =" $cInventor>1 and (position())=$cInventor">
  3896.                             <xsl:call-template name ="templ_prop_Space"/>
  3897.                             <xsl:call-template name ="templ_str_AndUnCap"/>
  3898.                             <xsl:call-template name ="templ_prop_Space"/>
  3899.                         </xsl:when>
  3900.                     </xsl:choose>
  3901.  
  3902.                     <xsl:choose>
  3903.                         <xsl:when test="$cInventorFirstName=1">
  3904.                             <xsl:choose>
  3905.                                 <xsl:when test="contains(b:First,$prop_APA_FromToDash)">
  3906.                                     <xsl:call-template name="HandleSPaceHypenInAuthor">
  3907.                                         <xsl:with-param name="author">
  3908.                                             <xsl:call-template name="right-trim">
  3909.                                                 <xsl:with-param name ="s" select="b:First"/>
  3910.                                             </xsl:call-template>
  3911.                                         </xsl:with-param>
  3912.                                     </xsl:call-template>
  3913.                                     <xsl:call-template name ="templ_prop_Space"/>
  3914.                                 </xsl:when>
  3915.                                 <xsl:otherwise>
  3916.                                     <xsl:call-template name="splitAuthorSpace">
  3917.                                         <xsl:with-param name ="first">
  3918.                                             <xsl:call-template name="right-trim">
  3919.                                                 <xsl:with-param name ="s" select="b:First"/>
  3920.                                             </xsl:call-template>
  3921.                                         </xsl:with-param>
  3922.                                     </xsl:call-template>
  3923.                                     <xsl:call-template name ="templ_prop_Space"/>
  3924.                                 </xsl:otherwise>
  3925.                             </xsl:choose>
  3926.                         </xsl:when>
  3927.                     </xsl:choose>
  3928.  
  3929.                     <xsl:choose>
  3930.                         <xsl:when test="$cInventorMiddleName=1">
  3931.                             <xsl:choose>
  3932.                                 <xsl:when test="contains(b:Middle,$prop_APA_FromToDash)">
  3933.                                     <xsl:call-template name="HandleSPaceHypenInAuthor">
  3934.                                         <xsl:with-param name="author">
  3935.                                             <xsl:call-template name="right-trim">
  3936.                                                 <xsl:with-param name ="s" select="b:Middle"/>
  3937.                                             </xsl:call-template>
  3938.                                         </xsl:with-param>
  3939.                                     </xsl:call-template>
  3940.                                     <xsl:call-template name ="templ_prop_Space"/>
  3941.                                 </xsl:when>
  3942.                                 <xsl:otherwise>
  3943.                                     <xsl:call-template name="splitAuthorSpace">
  3944.                                         <xsl:with-param name ="first">
  3945.                                             <xsl:call-template name="right-trim">
  3946.                                                 <xsl:with-param name ="s" select="b:Middle"/>
  3947.                                             </xsl:call-template>
  3948.                                         </xsl:with-param>
  3949.                                     </xsl:call-template>
  3950.                                     <xsl:call-template name ="templ_prop_Space"/>
  3951.                                 </xsl:otherwise>
  3952.                             </xsl:choose>
  3953.                         </xsl:when>
  3954.                     </xsl:choose>
  3955.  
  3956.                     <xsl:choose>
  3957.                         <xsl:when test="$cInventorLastName=1">
  3958.                             <xsl:value-of select="b:Last"/>
  3959.                             <xsl:if test="((position()+1)!=$cInventor) and (position()&lt;$cInventor)">
  3960.                                 <xsl:call-template name ="templ_prop_ListSeparator"/>
  3961.                             </xsl:if>
  3962.                         </xsl:when>
  3963.                     </xsl:choose>
  3964.                 </xsl:for-each>
  3965.                 <xsl:choose>
  3966.                     <xsl:when test="$cTitle!=0">
  3967.                         <xsl:call-template name ="templ_prop_ListSeparator"/>
  3968.                     </xsl:when>
  3969.                     <xsl:otherwise>
  3970.                         <xsl:call-template name ="templ_prop_Dot"/>
  3971.                     </xsl:otherwise>
  3972.                 </xsl:choose>
  3973.             </xsl:when>
  3974.         </xsl:choose>
  3975.     </xsl:template>
  3976.  
  3977.     <xsl:template name ="BibDisplayAuthorPerformance">
  3978.         <xsl:variable name="cWriter">
  3979.             <xsl:value-of select="count(b:Author/b:Writer/b:NameList/b:Person)" />
  3980.         </xsl:variable>
  3981.         <xsl:variable name="prop_APA_FromToDash">
  3982.             <xsl:call-template name="templ_prop_FromToDash"/>
  3983.         </xsl:variable>
  3984.         <xsl:choose>
  3985.             <xsl:when test="$cWriter = 1">
  3986.                 <xsl:variable name ="cWriterFirstName">
  3987.                     <xsl:value-of select ="count(b:Author/b:Writer/b:NameList/b:Person/b:First)"/>
  3988.                 </xsl:variable>
  3989.                 <xsl:variable name ="cWriterLastName">
  3990.                     <xsl:value-of select ="count(b:Author/b:Writer/b:NameList/b:Person/b:Last)"/>
  3991.                 </xsl:variable>
  3992.                 <xsl:variable name ="cWriterMiddleName">
  3993.                     <xsl:value-of select ="count(b:Author/b:Writer/b:NameList/b:Person/b:Middle)"/>
  3994.                 </xsl:variable>
  3995.  
  3996.                 <xsl:choose>
  3997.  
  3998.                     <xsl:when test="$cWriterFirstName=1">
  3999.                         <xsl:choose>
  4000.                             <xsl:when test="contains(b:Author/b:Writer/b:NameList/b:Person/b:First,$prop_APA_FromToDash)">
  4001.                                 <xsl:call-template name="HandleSPaceHypenInAuthor">
  4002.                                     <xsl:with-param name="author">
  4003.                                         <xsl:call-template name="right-trim">
  4004.                                             <xsl:with-param name ="s" select="b:Author/b:Writer/b:NameList/b:Person/b:First"/>
  4005.                                         </xsl:call-template>
  4006.                                     </xsl:with-param>
  4007.                                 </xsl:call-template>
  4008.                                 <xsl:call-template name ="templ_prop_Space"/>
  4009.                             </xsl:when>
  4010.                             <xsl:otherwise>
  4011.                                 <xsl:call-template name="splitAuthorSpace">
  4012.                                     <xsl:with-param name ="first">
  4013.                                         <xsl:call-template name="right-trim">
  4014.                                             <xsl:with-param name ="s" select="b:Author/b:Writer/b:NameList/b:Person/b:First"/>
  4015.                                         </xsl:call-template>
  4016.                                     </xsl:with-param>
  4017.                                 </xsl:call-template>
  4018.                                 <xsl:call-template name ="templ_prop_Space"/>
  4019.                             </xsl:otherwise>
  4020.                         </xsl:choose>
  4021.                     </xsl:when>
  4022.                 </xsl:choose>
  4023.  
  4024.                 <xsl:choose>
  4025.                     <xsl:when test="$cWriterMiddleName=1">
  4026.                         <xsl:choose>
  4027.                             <xsl:when test="contains(b:Author/b:Writer/b:NameList/b:Person/b:Middle,$prop_APA_FromToDash)">
  4028.                                 <xsl:call-template name="HandleSPaceHypenInAuthor">
  4029.                                     <xsl:with-param name="author">
  4030.                                         <xsl:call-template name="right-trim">
  4031.                                             <xsl:with-param name ="s" select="b:Author/b:Writer/b:NameList/b:Person/b:Middle"/>
  4032.                                         </xsl:call-template>
  4033.                                     </xsl:with-param>
  4034.                                 </xsl:call-template>
  4035.                                 <xsl:call-template name ="templ_prop_Space"/>
  4036.                             </xsl:when>
  4037.                             <xsl:otherwise>
  4038.                                 <xsl:call-template name="splitAuthorSpace">
  4039.                                     <xsl:with-param name ="first">
  4040.                                         <xsl:call-template name="right-trim">
  4041.                                             <xsl:with-param name ="s" select="b:Author/b:Writer/b:NameList/b:Person/b:Middle"/>
  4042.                                         </xsl:call-template>
  4043.                                     </xsl:with-param>
  4044.                                 </xsl:call-template>
  4045.                                 <xsl:call-template name ="templ_prop_Space"/>
  4046.                             </xsl:otherwise>
  4047.                         </xsl:choose>
  4048.                     </xsl:when>
  4049.                 </xsl:choose>
  4050.  
  4051.                 <xsl:choose>
  4052.                     <xsl:when test="$cWriterLastName=1">
  4053.                         <xsl:value-of select="b:Author/b:Writer/b:NameList/b:Person/b:Last"/>
  4054.                         <xsl:call-template name ="templ_prop_ListSeparator"/>
  4055.                     </xsl:when>
  4056.                 </xsl:choose>
  4057.  
  4058.                 <xsl:if test="$cWriter=1">
  4059.                     <xsl:call-template name="templ_str_WriterCap"/>
  4060.                     <xsl:call-template name ="templ_prop_ListSeparator"/>
  4061.                 </xsl:if>
  4062.             </xsl:when>
  4063.  
  4064.             <xsl:when test="$cWriter>1">
  4065.                 <xsl:for-each select="b:Author/b:Writer/b:NameList/b:Person">
  4066.                     <xsl:variable name ="cWriterFirstName">
  4067.                         <xsl:value-of select ="count(b:First)"/>
  4068.                     </xsl:variable>
  4069.                     <xsl:variable name ="cWriterLastName">
  4070.                         <xsl:value-of select ="count(b:Last)"/>
  4071.                     </xsl:variable>
  4072.                     <xsl:variable name ="cWriterMiddleName">
  4073.                         <xsl:value-of select ="count(b:Middle)"/>
  4074.                     </xsl:variable>
  4075.  
  4076.                     <xsl:choose>
  4077.  
  4078.                         <xsl:when test =" $cWriter>1 and (position())=$cWriter">
  4079.                             <xsl:call-template name ="templ_prop_Space"/>
  4080.                             <xsl:call-template name ="templ_str_AndUnCap"/>
  4081.                             <xsl:call-template name ="templ_prop_Space"/>
  4082.                         </xsl:when>
  4083.                     </xsl:choose>
  4084.  
  4085.                     <xsl:choose>
  4086.                         <xsl:when test="$cWriterFirstName=1">
  4087.                             <xsl:choose>
  4088.                                 <xsl:when test="contains(b:First,$prop_APA_FromToDash)">
  4089.                                     <xsl:call-template name="HandleSPaceHypenInAuthor">
  4090.                                         <xsl:with-param name="author">
  4091.                                             <xsl:call-template name="right-trim">
  4092.                                                 <xsl:with-param name ="s" select="b:First"/>
  4093.                                             </xsl:call-template>
  4094.                                         </xsl:with-param>
  4095.                                     </xsl:call-template>
  4096.                                     <xsl:call-template name ="templ_prop_Space"/>
  4097.                                 </xsl:when>
  4098.                                 <xsl:otherwise>
  4099.                                     <xsl:call-template name="splitAuthorSpace">
  4100.                                         <xsl:with-param name ="first">
  4101.                                             <xsl:call-template name="right-trim">
  4102.                                                 <xsl:with-param name ="s" select="b:First"/>
  4103.                                             </xsl:call-template>
  4104.                                         </xsl:with-param>
  4105.                                     </xsl:call-template>
  4106.                                     <xsl:call-template name ="templ_prop_Space"/>
  4107.                                 </xsl:otherwise>
  4108.                             </xsl:choose>
  4109.                         </xsl:when>
  4110.                     </xsl:choose>
  4111.  
  4112.                     <xsl:choose>
  4113.                         <xsl:when test="$cWriterMiddleName=1">
  4114.                             <xsl:choose>
  4115.                                 <xsl:when test="contains(b:Middle,$prop_APA_FromToDash)">
  4116.                                     <xsl:call-template name="HandleSPaceHypenInAuthor">
  4117.                                         <xsl:with-param name="author">
  4118.                                             <xsl:call-template name="right-trim">
  4119.                                                 <xsl:with-param name ="s" select="b:Middle"/>
  4120.                                             </xsl:call-template>
  4121.                                         </xsl:with-param>
  4122.                                     </xsl:call-template>
  4123.                                     <xsl:call-template name ="templ_prop_Space"/>
  4124.                                 </xsl:when>
  4125.                                 <xsl:otherwise>
  4126.                                     <xsl:call-template name="splitAuthorSpace">
  4127.                                         <xsl:with-param name ="first">
  4128.                                             <xsl:call-template name="right-trim">
  4129.                                                 <xsl:with-param name ="s" select="b:Middle"/>
  4130.                                             </xsl:call-template>
  4131.                                         </xsl:with-param>
  4132.                                     </xsl:call-template>
  4133.                                     <xsl:call-template name ="templ_prop_Space"/>
  4134.                                 </xsl:otherwise>
  4135.                             </xsl:choose>
  4136.                         </xsl:when>
  4137.                     </xsl:choose>
  4138.  
  4139.                     <xsl:choose>
  4140.                         <xsl:when test="$cWriterLastName=1">
  4141.                             <xsl:value-of select="b:Last"/>
  4142.                             <xsl:if test="((position()+1)!=$cWriter) and (position()&lt;$cWriter)">
  4143.                                 <xsl:call-template name ="templ_prop_ListSeparator"/>
  4144.                             </xsl:if>
  4145.                         </xsl:when>
  4146.                     </xsl:choose>
  4147.                 </xsl:for-each>
  4148.                 <xsl:call-template name ="templ_prop_ListSeparator"/>
  4149.  
  4150.                 <xsl:if test="$cWriter>1">
  4151.                     <xsl:call-template name="templ_str_WritersCap"/>
  4152.                     <xsl:call-template name ="templ_prop_ListSeparator"/>
  4153.                 </xsl:if>
  4154.  
  4155.             </xsl:when>
  4156.         </xsl:choose>
  4157.     </xsl:template>
  4158.  
  4159.     <xsl:template name ="BibDisplayAuthorInterview">
  4160.         <xsl:variable name="cInterviewee">
  4161.             <xsl:value-of select="count(b:Author/b:Interviewee/b:NameList/b:Person)" />
  4162.         </xsl:variable>
  4163.         <xsl:variable name="prop_APA_FromToDash">
  4164.             <xsl:call-template name="templ_prop_FromToDash"/>
  4165.         </xsl:variable>
  4166.         <xsl:choose>
  4167.             <xsl:when test="$cInterviewee = 1">
  4168.                 <xsl:variable name ="cIntervieweeFirstName">
  4169.                     <xsl:value-of select ="count(b:Author/b:Interviewee/b:NameList/b:Person/b:First)"/>
  4170.                 </xsl:variable>
  4171.                 <xsl:variable name ="cIntervieweeLastName">
  4172.                     <xsl:value-of select ="count(b:Author/b:Interviewee/b:NameList/b:Person/b:Last)"/>
  4173.                 </xsl:variable>
  4174.                 <xsl:variable name ="cIntervieweeMiddleName">
  4175.                     <xsl:value-of select ="count(b:Author/b:Interviewee/b:NameList/b:Person/b:Middle)"/>
  4176.                 </xsl:variable>
  4177.  
  4178.                 <xsl:choose>
  4179.  
  4180.                     <xsl:when test="$cIntervieweeFirstName=1">
  4181.                         <xsl:choose>
  4182.                             <xsl:when test="contains(b:Author/b:Interviewee/b:NameList/b:Person/b:First,$prop_APA_FromToDash)">
  4183.                                 <xsl:call-template name="HandleSPaceHypenInAuthor">
  4184.                                     <xsl:with-param name="author">
  4185.                                         <xsl:call-template name="right-trim">
  4186.                                             <xsl:with-param name ="s" select="b:Author/b:Interviewee/b:NameList/b:Person/b:First"/>
  4187.                                         </xsl:call-template>
  4188.                                     </xsl:with-param>
  4189.                                 </xsl:call-template>
  4190.                                 <xsl:call-template name ="templ_prop_Space"/>
  4191.                             </xsl:when>
  4192.                             <xsl:otherwise>
  4193.                                 <xsl:call-template name="splitAuthorSpace">
  4194.                                     <xsl:with-param name ="first">
  4195.                                         <xsl:call-template name="right-trim">
  4196.                                             <xsl:with-param name ="s" select="b:Author/b:Interviewee/b:NameList/b:Person/b:First"/>
  4197.                                         </xsl:call-template>
  4198.                                     </xsl:with-param>
  4199.                                 </xsl:call-template>
  4200.                                 <xsl:call-template name ="templ_prop_Space"/>
  4201.                             </xsl:otherwise>
  4202.                         </xsl:choose>
  4203.                     </xsl:when>
  4204.                 </xsl:choose>
  4205.  
  4206.                 <xsl:choose>
  4207.                     <xsl:when test="$cIntervieweeMiddleName=1">
  4208.                         <xsl:choose>
  4209.                             <xsl:when test="contains(b:Author/b:Interviewee/b:NameList/b:Person/b:Middle,$prop_APA_FromToDash)">
  4210.                                 <xsl:call-template name="HandleSPaceHypenInAuthor">
  4211.                                     <xsl:with-param name="author">
  4212.                                         <xsl:call-template name="right-trim">
  4213.                                             <xsl:with-param name ="s" select="b:Author/b:Interviewee/b:NameList/b:Person/b:Middle"/>
  4214.                                         </xsl:call-template>
  4215.                                     </xsl:with-param>
  4216.                                 </xsl:call-template>
  4217.                                 <xsl:call-template name ="templ_prop_Space"/>
  4218.                             </xsl:when>
  4219.                             <xsl:otherwise>
  4220.                                 <xsl:call-template name="splitAuthorSpace">
  4221.                                     <xsl:with-param name ="first">
  4222.                                         <xsl:call-template name="right-trim">
  4223.                                             <xsl:with-param name ="s" select="b:Author/b:Interviewee/b:NameList/b:Person/b:Middle"/>
  4224.                                         </xsl:call-template>
  4225.                                     </xsl:with-param>
  4226.                                 </xsl:call-template>
  4227.                                 <xsl:call-template name ="templ_prop_Space"/>
  4228.                             </xsl:otherwise>
  4229.                         </xsl:choose>
  4230.                     </xsl:when>
  4231.                 </xsl:choose>
  4232.  
  4233.                 <xsl:choose>
  4234.                     <xsl:when test="$cIntervieweeLastName=1">
  4235.                         <xsl:value-of select="b:Author/b:Interviewee/b:NameList/b:Person/b:Last"/>
  4236.                         <xsl:call-template name ="templ_prop_ListSeparator"/>
  4237.                     </xsl:when>
  4238.                 </xsl:choose>
  4239.  
  4240.                 <xsl:if test="$cInterviewee=1">
  4241.                     <xsl:call-template name="strintervieweeInterview"/>
  4242.                 </xsl:if>
  4243.             </xsl:when>
  4244.  
  4245.             <xsl:when test="$cInterviewee>1">
  4246.                 <xsl:for-each select="b:Author/b:Interviewee/b:NameList/b:Person">
  4247.                     <xsl:variable name ="cIntervieweeFirstName">
  4248.                         <xsl:value-of select ="count(b:First)"/>
  4249.                     </xsl:variable>
  4250.                     <xsl:variable name ="cIntervieweeLastName">
  4251.                         <xsl:value-of select ="count(b:Last)"/>
  4252.                     </xsl:variable>
  4253.                     <xsl:variable name ="cIntervieweeMiddleName">
  4254.                         <xsl:value-of select ="count(b:Middle)"/>
  4255.                     </xsl:variable>
  4256.  
  4257.                     <xsl:choose>
  4258.  
  4259.                         <xsl:when test =" $cInterviewee>1 and (position())=$cInterviewee">
  4260.                             <xsl:call-template name ="templ_prop_Space"/>
  4261.                             <xsl:call-template name ="templ_str_AndUnCap"/>
  4262.                             <xsl:call-template name ="templ_prop_Space"/>
  4263.                         </xsl:when>
  4264.                     </xsl:choose>
  4265.  
  4266.                     <xsl:choose>
  4267.                         <xsl:when test="$cIntervieweeFirstName=1">
  4268.                             <xsl:choose>
  4269.                                 <xsl:when test="contains(b:First,$prop_APA_FromToDash)">
  4270.                                     <xsl:call-template name="HandleSPaceHypenInAuthor">
  4271.                                         <xsl:with-param name="author">
  4272.                                             <xsl:call-template name="right-trim">
  4273.                                                 <xsl:with-param name ="s" select="b:First"/>
  4274.                                             </xsl:call-template>
  4275.                                         </xsl:with-param>
  4276.                                     </xsl:call-template>
  4277.                                     <xsl:call-template name ="templ_prop_Space"/>
  4278.                                 </xsl:when>
  4279.                                 <xsl:otherwise>
  4280.                                     <xsl:call-template name="splitAuthorSpace">
  4281.                                         <xsl:with-param name ="first">
  4282.                                             <xsl:call-template name="right-trim">
  4283.                                                 <xsl:with-param name ="s" select="b:First"/>
  4284.                                             </xsl:call-template>
  4285.                                         </xsl:with-param>
  4286.                                     </xsl:call-template>
  4287.                                     <xsl:call-template name ="templ_prop_Space"/>
  4288.                                 </xsl:otherwise>
  4289.                             </xsl:choose>
  4290.                         </xsl:when>
  4291.                     </xsl:choose>
  4292.  
  4293.                     <xsl:choose>
  4294.                         <xsl:when test="$cIntervieweeMiddleName=1">
  4295.                             <xsl:choose>
  4296.                                 <xsl:when test="contains(b:Middle,$prop_APA_FromToDash)">
  4297.                                     <xsl:call-template name="HandleSPaceHypenInAuthor">
  4298.                                         <xsl:with-param name="author">
  4299.                                             <xsl:call-template name="right-trim">
  4300.                                                 <xsl:with-param name ="s" select="b:Middle"/>
  4301.                                             </xsl:call-template>
  4302.                                         </xsl:with-param>
  4303.                                     </xsl:call-template>
  4304.                                     <xsl:call-template name ="templ_prop_Space"/>
  4305.                                 </xsl:when>
  4306.                                 <xsl:otherwise>
  4307.                                     <xsl:call-template name="splitAuthorSpace">
  4308.                                         <xsl:with-param name ="first">
  4309.                                             <xsl:call-template name="right-trim">
  4310.                                                 <xsl:with-param name ="s" select="b:Middle"/>
  4311.                                             </xsl:call-template>
  4312.                                         </xsl:with-param>
  4313.                                     </xsl:call-template>
  4314.                                     <xsl:call-template name ="templ_prop_Space"/>
  4315.                                 </xsl:otherwise>
  4316.                             </xsl:choose>
  4317.                         </xsl:when>
  4318.                     </xsl:choose>
  4319.  
  4320.                     <xsl:choose>
  4321.                         <xsl:when test="$cIntervieweeLastName=1">
  4322.                             <xsl:value-of select="b:Last"/>
  4323.                             <xsl:if test="((position()+1)!=$cInterviewee) and (position()&lt;$cInterviewee)">
  4324.                                 <xsl:call-template name ="templ_prop_ListSeparator"/>
  4325.                             </xsl:if>
  4326.                         </xsl:when>
  4327.                     </xsl:choose>
  4328.                 </xsl:for-each>
  4329.                 <xsl:call-template name ="templ_prop_ListSeparator"/>
  4330.  
  4331.                 <xsl:if test="$cInterviewee>1">
  4332.                     <xsl:call-template name="strintervieweesInterview"/>
  4333.                 </xsl:if>
  4334.             </xsl:when>
  4335.         </xsl:choose>
  4336.     </xsl:template>
  4337.  
  4338.     <xsl:template name ="BibDisplayArtist">
  4339.         <xsl:variable name="cArtist">
  4340.             <xsl:value-of select="count(b:Author/b:Artist/b:NameList/b:Person)" />
  4341.         </xsl:variable>
  4342.         <xsl:variable name="prop_APA_FromToDash">
  4343.             <xsl:call-template name="templ_prop_FromToDash"/>
  4344.         </xsl:variable>
  4345.         <xsl:choose>
  4346.             <xsl:when test="$cArtist = 1">
  4347.                 <xsl:variable name ="cArtistFirstName">
  4348.                     <xsl:value-of select ="count(b:Author/b:Artist/b:NameList/b:Person/b:First)"/>
  4349.                 </xsl:variable>
  4350.                 <xsl:variable name ="cArtistLastName">
  4351.                     <xsl:value-of select ="count(b:Author/b:Artist/b:NameList/b:Person/b:Last)"/>
  4352.                 </xsl:variable>
  4353.                 <xsl:variable name ="cArtistMiddleName">
  4354.                     <xsl:value-of select ="count(b:Author/b:Artist/b:NameList/b:Person/b:Middle)"/>
  4355.                 </xsl:variable>
  4356.  
  4357.                 <xsl:choose>
  4358.                     <xsl:when test="$cArtistFirstName=1">
  4359.                         <xsl:choose>
  4360.                             <xsl:when test="contains(b:Author/b:Artist/b:NameList/b:Person/b:First,$prop_APA_FromToDash)">
  4361.                                 <xsl:call-template name="HandleSPaceHypenInAuthor">
  4362.                                     <xsl:with-param name="author">
  4363.                                         <xsl:call-template name="right-trim">
  4364.                                             <xsl:with-param name ="s" select="b:Author/b:Artist/b:NameList/b:Person/b:First"/>
  4365.                                         </xsl:call-template>
  4366.                                     </xsl:with-param>
  4367.                                 </xsl:call-template>
  4368.                                 <xsl:call-template name ="templ_prop_Space"/>
  4369.                             </xsl:when>
  4370.                             <xsl:otherwise>
  4371.                                 <xsl:call-template name="splitAuthorSpace">
  4372.                                     <xsl:with-param name ="first">
  4373.                                         <xsl:call-template name="right-trim">
  4374.                                             <xsl:with-param name ="s" select="b:Author/b:Artist/b:NameList/b:Person/b:First"/>
  4375.                                         </xsl:call-template>
  4376.                                     </xsl:with-param>
  4377.                                 </xsl:call-template>
  4378.                                 <xsl:call-template name ="templ_prop_Space"/>
  4379.                             </xsl:otherwise>
  4380.                         </xsl:choose>
  4381.                     </xsl:when>
  4382.                 </xsl:choose>
  4383.  
  4384.                 <xsl:choose>
  4385.                     <xsl:when test="$cArtistMiddleName=1">
  4386.                         <xsl:choose>
  4387.                             <xsl:when test="contains(b:Author/b:Artist/b:NameList/b:Person/b:Middle,$prop_APA_FromToDash)">
  4388.                                 <xsl:call-template name="HandleSPaceHypenInAuthor">
  4389.                                     <xsl:with-param name="author">
  4390.                                         <xsl:call-template name="right-trim">
  4391.                                             <xsl:with-param name ="s" select="b:Author/b:Artist/b:NameList/b:Person/b:Middle"/>
  4392.                                         </xsl:call-template>
  4393.                                     </xsl:with-param>
  4394.                                 </xsl:call-template>
  4395.                                 <xsl:call-template name ="templ_prop_Space"/>
  4396.                             </xsl:when>
  4397.                             <xsl:otherwise>
  4398.                                 <xsl:call-template name="splitAuthorSpace">
  4399.                                     <xsl:with-param name ="first">
  4400.                                         <xsl:call-template name="right-trim">
  4401.                                             <xsl:with-param name ="s" select="b:Author/b:Artist/b:NameList/b:Person/b:Middle"/>
  4402.                                         </xsl:call-template>
  4403.                                     </xsl:with-param>
  4404.                                 </xsl:call-template>
  4405.                                 <xsl:call-template name ="templ_prop_Space"/>
  4406.                             </xsl:otherwise>
  4407.                         </xsl:choose>
  4408.                     </xsl:when>
  4409.                 </xsl:choose>
  4410.  
  4411.                 <xsl:choose>
  4412.                     <xsl:when test="$cArtistLastName=1">
  4413.                         <xsl:value-of select="b:Author/b:Artist/b:NameList/b:Person/b:Last"/>
  4414.                         <xsl:call-template name ="templ_prop_ListSeparator"/>
  4415.                     </xsl:when>
  4416.                 </xsl:choose>
  4417.  
  4418.                 <xsl:if test="$cArtist=1">
  4419.                     <xsl:call-template name="strArtist"/>
  4420.                 </xsl:if>
  4421.             </xsl:when>
  4422.  
  4423.             <xsl:when test="$cArtist>1">
  4424.                 <xsl:for-each select="b:Author/b:Artist/b:NameList/b:Person">
  4425.                     <xsl:variable name ="cArtistFirstName">
  4426.                         <xsl:value-of select ="count(b:First)"/>
  4427.                     </xsl:variable>
  4428.                     <xsl:variable name ="cArtistLastName">
  4429.                         <xsl:value-of select ="count(b:Last)"/>
  4430.                     </xsl:variable>
  4431.                     <xsl:variable name ="cArtistMiddleName">
  4432.                         <xsl:value-of select ="count(b:Middle)"/>
  4433.                     </xsl:variable>
  4434.  
  4435.                     <xsl:choose>
  4436.  
  4437.                         <xsl:when test =" $cArtist>1 and (position())=$cArtist">
  4438.                             <xsl:call-template name ="templ_prop_Space"/>
  4439.                             <xsl:call-template name ="templ_str_AndUnCap"/>
  4440.                             <xsl:call-template name ="templ_prop_Space"/>
  4441.                         </xsl:when>
  4442.                     </xsl:choose>
  4443.  
  4444.                     <xsl:choose>
  4445.                         <xsl:when test="$cArtistFirstName=1">
  4446.                             <xsl:choose>
  4447.                                 <xsl:when test="contains(b:First,$prop_APA_FromToDash)">
  4448.                                     <xsl:call-template name="HandleSPaceHypenInAuthor">
  4449.                                         <xsl:with-param name="author">
  4450.                                             <xsl:call-template name="right-trim">
  4451.                                                 <xsl:with-param name ="s" select="b:First"/>
  4452.                                             </xsl:call-template>
  4453.                                         </xsl:with-param>
  4454.                                     </xsl:call-template>
  4455.                                     <xsl:call-template name ="templ_prop_Space"/>
  4456.                                 </xsl:when>
  4457.                                 <xsl:otherwise>
  4458.                                     <xsl:call-template name="splitAuthorSpace">
  4459.                                         <xsl:with-param name ="first">
  4460.                                             <xsl:call-template name="right-trim">
  4461.                                                 <xsl:with-param name ="s" select="b:First"/>
  4462.                                             </xsl:call-template>
  4463.                                         </xsl:with-param>
  4464.                                     </xsl:call-template>
  4465.                                     <xsl:call-template name ="templ_prop_Space"/>
  4466.                                 </xsl:otherwise>
  4467.                             </xsl:choose>
  4468.                         </xsl:when>
  4469.                     </xsl:choose>
  4470.  
  4471.                     <xsl:choose>
  4472.                         <xsl:when test="$cArtistMiddleName=1">
  4473.                             <xsl:choose>
  4474.                                 <xsl:when test="contains(b:Middle,$prop_APA_FromToDash)">
  4475.                                     <xsl:call-template name="HandleSPaceHypenInAuthor">
  4476.                                         <xsl:with-param name="author">
  4477.                                             <xsl:call-template name="right-trim">
  4478.                                                 <xsl:with-param name ="s" select="b:Middle"/>
  4479.                                             </xsl:call-template>
  4480.                                         </xsl:with-param>
  4481.                                     </xsl:call-template>
  4482.                                     <xsl:call-template name ="templ_prop_Space"/>
  4483.                                 </xsl:when>
  4484.                                 <xsl:otherwise>
  4485.                                     <xsl:call-template name="splitAuthorSpace">
  4486.                                         <xsl:with-param name ="first">
  4487.                                             <xsl:call-template name="right-trim">
  4488.                                                 <xsl:with-param name ="s" select="b:Middle"/>
  4489.                                             </xsl:call-template>
  4490.                                         </xsl:with-param>
  4491.                                     </xsl:call-template>
  4492.                                     <xsl:call-template name ="templ_prop_Space"/>
  4493.                                 </xsl:otherwise>
  4494.                             </xsl:choose>
  4495.                         </xsl:when>
  4496.                     </xsl:choose>
  4497.  
  4498.                     <xsl:choose>
  4499.                         <xsl:when test="$cArtistLastName=1">
  4500.                             <xsl:value-of select="b:Last"/>
  4501.                             <xsl:if test="((position()+1)!=$cArtist) and (position()&lt;$cArtist)">
  4502.                                 <xsl:call-template name ="templ_prop_ListSeparator"/>
  4503.                             </xsl:if>
  4504.  
  4505.                         </xsl:when>
  4506.                     </xsl:choose>
  4507.                 </xsl:for-each>
  4508.                 <xsl:call-template name ="templ_prop_ListSeparator"/>
  4509.  
  4510.                 <xsl:if test="$cArtist>1">
  4511.                     <xsl:call-template name="strArtists"/>
  4512.                 </xsl:if>
  4513.             </xsl:when>
  4514.         </xsl:choose>
  4515.     </xsl:template>
  4516.  
  4517.     <xsl:template name ="splitAuthorSpace">
  4518.         <xsl:param name ="first"/>
  4519.         <xsl:param name ="end"/>
  4520.         <xsl:choose>
  4521.             <xsl:when test="contains($first, '&#32;')">
  4522.                 <xsl:value-of select="substring(substring-before($first, '&#32;'),1,1)" />
  4523.                 <xsl:call-template name ="templ_prop_Dot"/>
  4524.                 <xsl:call-template name ="templ_prop_Space"/>
  4525.                 <xsl:variable name ="result">
  4526.                     <xsl:call-template name ="left-trim">
  4527.                         <xsl:with-param name ="s" select="substring-after($first,'&#32;')"/>
  4528.                     </xsl:call-template>
  4529.                 </xsl:variable>
  4530.                 <xsl:call-template name="splitAuthorSpace">
  4531.                     <xsl:with-param name="first" select="$result" />
  4532.                 </xsl:call-template>
  4533.             </xsl:when>
  4534.             <xsl:otherwise>
  4535.                 <xsl:value-of select="substring($first,1,1)"/>
  4536.                 <xsl:call-template name ="templ_prop_Dot"/>
  4537.             </xsl:otherwise>
  4538.         </xsl:choose>
  4539.     </xsl:template>
  4540.  
  4541.  
  4542.  
  4543.     <xsl:template name="BibDisplayAuthorBook">
  4544.         <xsl:param name ="DisplayEditorIfAuthorUnavailale"/>
  4545.         <xsl:variable name ="cAuthors">
  4546.             <xsl:value-of select ="count(b:Author/b:Author/b:NameList/b:Person)"/>
  4547.         </xsl:variable>
  4548.         <xsl:variable name="cCorporateAuthors">
  4549.             <xsl:value-of select="count(b:Author/b:Author/b:Corporate)" />
  4550.         </xsl:variable>
  4551.         <xsl:variable name="prop_APA_FromToDash">
  4552.             <xsl:call-template name="templ_prop_FromToDash"/>
  4553.         </xsl:variable>
  4554.  
  4555.         <xsl:variable name="cTitle">
  4556.             <xsl:value-of select ="count(b:Title)"/>
  4557.         </xsl:variable>
  4558.         <xsl:variable name="cEdition">
  4559.             <xsl:value-of select ="count(b:Edition)"/>
  4560.         </xsl:variable>
  4561.         <xsl:variable name="cVolume">
  4562.             <xsl:value-of select ="count(b:Volume)"/>
  4563.         </xsl:variable>
  4564.         <xsl:variable name="cEditor">
  4565.             <xsl:value-of select="count(b:Author/b:Editor/b:NameList/b:Person)" />
  4566.         </xsl:variable>
  4567.         <xsl:variable name="cCity">
  4568.             <xsl:value-of select ="count(b:City)"/>
  4569.         </xsl:variable>
  4570.         <xsl:variable name="cStateProvince">
  4571.             <xsl:value-of select ="count(b:StateProvince)"/>
  4572.         </xsl:variable>
  4573.         <xsl:variable name="cPublisher">
  4574.             <xsl:value-of select ="count(b:Publisher)"/>
  4575.         </xsl:variable>
  4576.         <xsl:variable name="cYear">
  4577.             <xsl:value-of select ="count(b:Year)"/>
  4578.         </xsl:variable>
  4579.         <xsl:variable name="cPages">
  4580.             <xsl:value-of select ="count(b:Pages)"/>
  4581.         </xsl:variable>
  4582.  
  4583.         <xsl:choose>
  4584.             <xsl:when test ="$cAuthors=0">
  4585.                 <xsl:choose>
  4586.                     <xsl:when test="$cCorporateAuthors=0">
  4587.                         <xsl:choose>
  4588.                             <xsl:when test ="$cEditor=0 or $DisplayEditorIfAuthorUnavailale!='true'">
  4589.                             </xsl:when>
  4590.                             <xsl:otherwise>
  4591.                                 <xsl:call-template name="BibDisplayEditorNL"/>
  4592.                             </xsl:otherwise>
  4593.                         </xsl:choose>
  4594.                     </xsl:when>
  4595.                     <xsl:otherwise>
  4596.                         <xsl:value-of select="b:Author/b:Author/b:Corporate"/>
  4597.                         <xsl:choose>
  4598.                             <xsl:when test="$cAuthors=0">
  4599.                                 <xsl:choose>
  4600.                                     <xsl:when test="$cTitle!=0 or $cEdition!=0 or $cVolume!=0 or $cCity!=0 or $cStateProvince!=0 or $cPublisher!=0 or $cYear!=0 or $cPages!=0">
  4601.                                         <xsl:call-template name ="templ_prop_ListSeparator"/>
  4602.                                     </xsl:when>
  4603.                                     <xsl:otherwise>
  4604.                                         <xsl:call-template name ="templ_prop_Dot"/>
  4605.                                     </xsl:otherwise>
  4606.                                 </xsl:choose>
  4607.                             </xsl:when>
  4608.                             <xsl:otherwise>
  4609.                                 <xsl:choose>
  4610.                                     <xsl:when test="$cTitle!=0 or $cEdition!=0 or $cVolume!=0 or $cEditor!=0 or $cCity!=0 or $cStateProvince!=0 or $cPublisher!=0 or $cYear!=0 or $cPages!=0">
  4611.                                         <xsl:call-template name ="templ_prop_ListSeparator"/>
  4612.                                     </xsl:when>
  4613.                                     <xsl:otherwise>
  4614.                                         <xsl:call-template name ="templ_prop_Dot"/>
  4615.                                     </xsl:otherwise>
  4616.                                 </xsl:choose>
  4617.                             </xsl:otherwise>
  4618.                         </xsl:choose>
  4619.                     </xsl:otherwise>
  4620.                 </xsl:choose>
  4621.             </xsl:when>
  4622.  
  4623.             <xsl:when test="$cAuthors=1">
  4624.                 <xsl:for-each select="b:Author/b:Author/b:NameList/b:Person">
  4625.                     <xsl:variable name ="cAuthorFirstName">
  4626.                         <xsl:value-of select ="count(b:First)"/>
  4627.                     </xsl:variable>
  4628.                     <xsl:variable name ="cAuthorLastName">
  4629.                         <xsl:value-of select ="count(b:Last)"/>
  4630.                     </xsl:variable>
  4631.                     <xsl:variable name ="cAuthorMiddleName">
  4632.                         <xsl:value-of select ="count(b:Middle)"/>
  4633.                     </xsl:variable>
  4634.                     <xsl:choose>
  4635.                         <xsl:when test="$cAuthorFirstName=1">
  4636.                             <xsl:choose>
  4637.                                 <xsl:when test="contains(b:First,$prop_APA_FromToDash)">
  4638.                                     <xsl:call-template name="HandleSPaceHypenInAuthor">
  4639.                                         <xsl:with-param name="author">
  4640.                                             <xsl:call-template name="right-trim">
  4641.                                                 <xsl:with-param name ="s" select="b:First"/>
  4642.                                             </xsl:call-template>
  4643.                                         </xsl:with-param>
  4644.                                     </xsl:call-template>
  4645.                                     <xsl:call-template name ="templ_prop_Space"/>
  4646.                                 </xsl:when>
  4647.                                 <xsl:otherwise>
  4648.                                     <xsl:call-template name="splitAuthorSpace">
  4649.                                         <xsl:with-param name ="first">
  4650.                                             <xsl:call-template name="right-trim">
  4651.                                                 <xsl:with-param name ="s" select="b:First"/>
  4652.                                             </xsl:call-template>
  4653.                                         </xsl:with-param>
  4654.                                     </xsl:call-template>
  4655.                                     <xsl:call-template name ="templ_prop_Space"/>
  4656.                                 </xsl:otherwise>
  4657.                             </xsl:choose>
  4658.                         </xsl:when>
  4659.                     </xsl:choose>
  4660.  
  4661.                     <xsl:choose>
  4662.                         <xsl:when test="$cAuthorMiddleName=1">
  4663.                             <xsl:choose>
  4664.                                 <xsl:when test="contains(b:Middle,$prop_APA_FromToDash)">
  4665.                                     <xsl:call-template name="HandleSPaceHypenInAuthor">
  4666.                                         <xsl:with-param name="author">
  4667.                                             <xsl:call-template name="right-trim">
  4668.                                                 <xsl:with-param name ="s" select="b:Middle"/>
  4669.                                             </xsl:call-template>
  4670.                                         </xsl:with-param>
  4671.                                     </xsl:call-template>
  4672.                                     <xsl:call-template name ="templ_prop_Space"/>
  4673.                                 </xsl:when>
  4674.                                 <xsl:otherwise>
  4675.                                     <xsl:call-template name="splitAuthorSpace">
  4676.                                         <xsl:with-param name ="first">
  4677.                                             <xsl:call-template name="right-trim">
  4678.                                                 <xsl:with-param name ="s" select="b:Middle"/>
  4679.                                             </xsl:call-template>
  4680.                                         </xsl:with-param>
  4681.                                     </xsl:call-template>
  4682.                                     <xsl:call-template name ="templ_prop_Space"/>
  4683.                                 </xsl:otherwise>
  4684.                             </xsl:choose>
  4685.                         </xsl:when>
  4686.                     </xsl:choose>
  4687.                     <xsl:choose>
  4688.                         <xsl:when test="$cAuthorLastName=1">
  4689.                             <xsl:value-of select="b:Last"/>
  4690.                             <xsl:choose>
  4691.                                 <xsl:when test="$cAuthors=0">
  4692.                                     <xsl:choose>
  4693.                                         <xsl:when test="$cTitle!=0 or $cEdition!=0 or $cVolume!=0 or $cCity!=0 or $cStateProvince!=0 or $cPublisher!=0 or $cYear!=0 or $cPages!=0">
  4694.                                             <xsl:call-template name ="templ_prop_ListSeparator"/>
  4695.                                         </xsl:when>
  4696.                                         <xsl:otherwise>
  4697.                                             <xsl:call-template name ="templ_prop_Dot"/>
  4698.                                         </xsl:otherwise>
  4699.                                     </xsl:choose>
  4700.                                 </xsl:when>
  4701.                                 <xsl:otherwise>
  4702.                                     <xsl:choose>
  4703.                                         <xsl:when test="$cTitle!=0 or $cEdition!=0 or $cVolume!=0 or $cEditor!=0 or $cCity!=0 or $cStateProvince!=0 or $cPublisher!=0 or $cYear!=0 or $cPages!=0">
  4704.                                             <xsl:call-template name ="templ_prop_ListSeparator"/>
  4705.                                         </xsl:when>
  4706.                                         <xsl:otherwise>
  4707.                                             <xsl:call-template name ="templ_prop_Dot"/>
  4708.                                         </xsl:otherwise>
  4709.                                     </xsl:choose>
  4710.                                 </xsl:otherwise>
  4711.                             </xsl:choose>
  4712.                         </xsl:when>
  4713.                     </xsl:choose>
  4714.                 </xsl:for-each>
  4715.  
  4716.             </xsl:when>
  4717.  
  4718.             <xsl:when test="$cAuthors>1">
  4719.                 <xsl:for-each select="b:Author/b:Author/b:NameList/b:Person">
  4720.                     <xsl:variable name ="cAuthorFirstName">
  4721.                         <xsl:value-of select ="count(b:First)"/>
  4722.                     </xsl:variable>
  4723.                     <xsl:variable name ="cAuthorLastName">
  4724.                         <xsl:value-of select ="count(b:Last)"/>
  4725.                     </xsl:variable>
  4726.                     <xsl:variable name ="cAuthorMiddleName">
  4727.                         <xsl:value-of select ="count(b:Middle)"/>
  4728.                     </xsl:variable>
  4729.  
  4730.                     <xsl:choose>
  4731.                         <xsl:when test ="(position())=$cAuthors">
  4732.                             <xsl:call-template name ="templ_prop_Space"/>
  4733.                             <xsl:call-template name ="templ_str_AndUnCap"/>
  4734.                             <xsl:call-template name ="templ_prop_Space"/>
  4735.                         </xsl:when>
  4736.                     </xsl:choose>
  4737.  
  4738.                     <xsl:choose>
  4739.                         <xsl:when test="$cAuthorFirstName=1">
  4740.                             <xsl:choose>
  4741.                                 <xsl:when test="contains(b:First,$prop_APA_FromToDash)">
  4742.                                     <xsl:call-template name="HandleSPaceHypenInAuthor">
  4743.                                         <xsl:with-param name="author">
  4744.                                             <xsl:call-template name="right-trim">
  4745.                                                 <xsl:with-param name ="s" select="b:First"/>
  4746.                                             </xsl:call-template>
  4747.                                         </xsl:with-param>
  4748.                                     </xsl:call-template>
  4749.                                     <xsl:call-template name ="templ_prop_Space"/>
  4750.                                 </xsl:when>
  4751.                                 <xsl:otherwise>
  4752.                                     <xsl:call-template name="splitAuthorSpace">
  4753.                                         <xsl:with-param name ="first">
  4754.                                             <xsl:call-template name="right-trim">
  4755.                                                 <xsl:with-param name ="s" select="b:First"/>
  4756.                                             </xsl:call-template>
  4757.                                         </xsl:with-param>
  4758.                                     </xsl:call-template>
  4759.                                     <xsl:call-template name ="templ_prop_Space"/>
  4760.                                 </xsl:otherwise>
  4761.                             </xsl:choose>
  4762.                         </xsl:when>
  4763.                     </xsl:choose>
  4764.                     <xsl:choose>
  4765.                         <xsl:when test="$cAuthorMiddleName=1">
  4766.                             <xsl:choose>
  4767.                                 <xsl:when test="contains(b:Middle,$prop_APA_FromToDash)">
  4768.                                     <xsl:call-template name="HandleSPaceHypenInAuthor">
  4769.                                         <xsl:with-param name="author">
  4770.                                             <xsl:call-template name="right-trim">
  4771.                                                 <xsl:with-param name ="s" select="b:Middle"/>
  4772.                                             </xsl:call-template>
  4773.                                         </xsl:with-param>
  4774.                                     </xsl:call-template>
  4775.                                     <xsl:call-template name ="templ_prop_Space"/>
  4776.                                 </xsl:when>
  4777.                                 <xsl:otherwise>
  4778.                                     <xsl:call-template name="splitAuthorSpace">
  4779.                                         <xsl:with-param name ="first">
  4780.                                             <xsl:call-template name="right-trim">
  4781.                                                 <xsl:with-param name ="s" select="b:Middle"/>
  4782.                                             </xsl:call-template>
  4783.                                         </xsl:with-param>
  4784.                                     </xsl:call-template>
  4785.                                     <xsl:call-template name ="templ_prop_Space"/>
  4786.                                 </xsl:otherwise>
  4787.                             </xsl:choose>
  4788.                         </xsl:when>
  4789.                     </xsl:choose>
  4790.                     <xsl:choose>
  4791.                         <xsl:when test="$cAuthorLastName=1">
  4792.                             <xsl:value-of select="b:Last"/>
  4793.                             <xsl:if test="((position()+1)!=$cAuthors) and (position()&lt;$cAuthors)">
  4794.                                 <xsl:call-template name ="templ_prop_ListSeparator"/>
  4795.                             </xsl:if>
  4796.                         </xsl:when>
  4797.                     </xsl:choose>
  4798.                 </xsl:for-each>
  4799.                 <xsl:choose>
  4800.                     <xsl:when test="$cAuthors=0">
  4801.                         <xsl:choose>
  4802.                             <xsl:when test="$cTitle!=0 or $cEdition!=0 or $cVolume!=0 or $cCity!=0 or $cStateProvince!=0 or $cPublisher!=0 or $cYear!=0 or $cPages!=0">
  4803.                                 <xsl:call-template name ="templ_prop_ListSeparator"/>
  4804.                             </xsl:when>
  4805.                             <xsl:otherwise>
  4806.                                 <xsl:call-template name ="templ_prop_Dot"/>
  4807.                             </xsl:otherwise>
  4808.                         </xsl:choose>
  4809.                     </xsl:when>
  4810.                     <xsl:otherwise>
  4811.                         <xsl:choose>
  4812.                             <xsl:when test="$cTitle!=0 or $cEdition!=0 or $cVolume!=0 or $cEditor!=0 or $cCity!=0 or $cStateProvince!=0 or $cPublisher!=0 or $cYear!=0 or $cPages!=0">
  4813.                                 <xsl:call-template name ="templ_prop_ListSeparator"/>
  4814.                             </xsl:when>
  4815.                             <xsl:otherwise>
  4816.                                 <xsl:call-template name ="templ_prop_Dot"/>
  4817.                             </xsl:otherwise>
  4818.                         </xsl:choose>
  4819.                     </xsl:otherwise>
  4820.                 </xsl:choose>
  4821.             </xsl:when>
  4822.         </xsl:choose>
  4823.     </xsl:template>
  4824.  
  4825.     <xsl:template name="BibDisplayAuthorBookSection">
  4826.         <xsl:param name ="DisplayEditorIfAuthorUnavailale"/>
  4827.         <xsl:variable name ="cAuthors">
  4828.             <xsl:value-of select ="count(b:Author/b:Author/b:NameList/b:Person)"/>
  4829.         </xsl:variable>
  4830.         <xsl:variable name="cCorporateAuthors">
  4831.             <xsl:value-of select="count(b:Author/b:Author/b:Corporate)" />
  4832.         </xsl:variable>
  4833.         <xsl:variable name="prop_APA_FromToDash">
  4834.             <xsl:call-template name="templ_prop_FromToDash"/>
  4835.         </xsl:variable>
  4836.  
  4837.         <xsl:variable name="cTitle">
  4838.             <xsl:value-of select ="count(b:Title)"/>
  4839.         </xsl:variable>
  4840.         <xsl:variable name="cBookTitle">
  4841.             <xsl:value-of select ="count(b:BookTitle)"/>
  4842.         </xsl:variable>
  4843.         <xsl:variable name="cEdition">
  4844.             <xsl:value-of select ="count(b:Edition)"/>
  4845.         </xsl:variable>
  4846.         <xsl:variable name="cVolume">
  4847.             <xsl:value-of select ="count(b:Volume)"/>
  4848.         </xsl:variable>
  4849.         <xsl:variable name="cEditor">
  4850.             <xsl:value-of select="count(b:Author/b:Editor/b:NameList/b:Person)" />
  4851.         </xsl:variable>
  4852.         <xsl:variable name="cCity">
  4853.             <xsl:value-of select ="count(b:City)"/>
  4854.         </xsl:variable>
  4855.         <xsl:variable name="cStateProvince">
  4856.             <xsl:value-of select ="count(b:StateProvince)"/>
  4857.         </xsl:variable>
  4858.         <xsl:variable name="cPublisher">
  4859.             <xsl:value-of select ="count(b:Publisher)"/>
  4860.         </xsl:variable>
  4861.         <xsl:variable name="cYear">
  4862.             <xsl:value-of select ="count(b:Year)"/>
  4863.         </xsl:variable>
  4864.         <xsl:variable name="cPages">
  4865.             <xsl:value-of select ="count(b:Pages)"/>
  4866.         </xsl:variable>
  4867.  
  4868.         <xsl:choose>
  4869.             <xsl:when test ="$cAuthors=0">
  4870.                 <xsl:choose>
  4871.                     <xsl:when test="$cCorporateAuthors=0">
  4872.                         <xsl:choose>
  4873.                             <xsl:when test ="$cEditor=0 or $DisplayEditorIfAuthorUnavailale!='true'">
  4874.                             </xsl:when>
  4875.                             <xsl:otherwise>
  4876.                                 <xsl:call-template name="BibDisplayEditorNL"/>
  4877.                             </xsl:otherwise>
  4878.                         </xsl:choose>
  4879.                     </xsl:when>
  4880.                     <xsl:otherwise>
  4881.                         <xsl:value-of select="b:Author/b:Author/b:Corporate"/>
  4882.                         <xsl:choose>
  4883.                             <xsl:when test="$cAuthors=0">
  4884.                                 <xsl:choose>
  4885.                                     <xsl:when test="$cTitle!=0 or $cBookTitle!=0 or $cEdition!=0 or $cVolume!=0 or $cCity!=0 or $cStateProvince!=0 or $cPublisher!=0 or $cYear!=0 or $cPages!=0">
  4886.                                         <xsl:call-template name ="templ_prop_ListSeparator"/>
  4887.                                     </xsl:when>
  4888.                                     <xsl:otherwise>
  4889.                                         <xsl:call-template name ="templ_prop_Dot"/>
  4890.                                     </xsl:otherwise>
  4891.                                 </xsl:choose>
  4892.                             </xsl:when>
  4893.                             <xsl:otherwise>
  4894.                                 <xsl:choose>
  4895.                                     <xsl:when test="$cTitle!=0 or $cBookTitle!=0 or $cEdition!=0 or $cVolume!=0 or $cEditor!=0 or $cCity!=0 or $cStateProvince!=0 or $cPublisher!=0 or $cYear!=0 or $cPages!=0">
  4896.                                         <xsl:call-template name ="templ_prop_ListSeparator"/>
  4897.                                     </xsl:when>
  4898.                                     <xsl:otherwise>
  4899.                                         <xsl:call-template name ="templ_prop_Dot"/>
  4900.                                     </xsl:otherwise>
  4901.                                 </xsl:choose>
  4902.                             </xsl:otherwise>
  4903.                         </xsl:choose>
  4904.                     </xsl:otherwise>
  4905.                 </xsl:choose>
  4906.             </xsl:when>
  4907.  
  4908.             <xsl:when test="$cAuthors=1">
  4909.                 <xsl:for-each select="b:Author/b:Author/b:NameList/b:Person">
  4910.                     <xsl:variable name ="cAuthorFirstName">
  4911.                         <xsl:value-of select ="count(b:First)"/>
  4912.                     </xsl:variable>
  4913.                     <xsl:variable name ="cAuthorLastName">
  4914.                         <xsl:value-of select ="count(b:Last)"/>
  4915.                     </xsl:variable>
  4916.                     <xsl:variable name ="cAuthorMiddleName">
  4917.                         <xsl:value-of select ="count(b:Middle)"/>
  4918.                     </xsl:variable>
  4919.                     <xsl:choose>
  4920.                         <xsl:when test="$cAuthorFirstName=1">
  4921.                             <xsl:choose>
  4922.                                 <xsl:when test="contains(b:First,$prop_APA_FromToDash)">
  4923.                                     <xsl:call-template name="HandleSPaceHypenInAuthor">
  4924.                                         <xsl:with-param name="author">
  4925.                                             <xsl:call-template name="right-trim">
  4926.                                                 <xsl:with-param name ="s" select="b:First"/>
  4927.                                             </xsl:call-template>
  4928.                                         </xsl:with-param>
  4929.                                     </xsl:call-template>
  4930.                                     <xsl:call-template name ="templ_prop_Space"/>
  4931.                                 </xsl:when>
  4932.                                 <xsl:otherwise>
  4933.                                     <xsl:call-template name="splitAuthorSpace">
  4934.                                         <xsl:with-param name ="first">
  4935.                                             <xsl:call-template name="right-trim">
  4936.                                                 <xsl:with-param name ="s" select="b:First"/>
  4937.                                             </xsl:call-template>
  4938.                                         </xsl:with-param>
  4939.                                     </xsl:call-template>
  4940.                                     <xsl:call-template name ="templ_prop_Space"/>
  4941.                                 </xsl:otherwise>
  4942.                             </xsl:choose>
  4943.                         </xsl:when>
  4944.                     </xsl:choose>
  4945.  
  4946.                     <xsl:choose>
  4947.                         <xsl:when test="$cAuthorMiddleName=1">
  4948.                             <xsl:choose>
  4949.                                 <xsl:when test="contains(b:Middle,$prop_APA_FromToDash)">
  4950.                                     <xsl:call-template name="HandleSPaceHypenInAuthor">
  4951.                                         <xsl:with-param name="author">
  4952.                                             <xsl:call-template name="right-trim">
  4953.                                                 <xsl:with-param name ="s" select="b:Middle"/>
  4954.                                             </xsl:call-template>
  4955.                                         </xsl:with-param>
  4956.                                     </xsl:call-template>
  4957.                                     <xsl:call-template name ="templ_prop_Space"/>
  4958.                                 </xsl:when>
  4959.                                 <xsl:otherwise>
  4960.                                     <xsl:call-template name="splitAuthorSpace">
  4961.                                         <xsl:with-param name ="first">
  4962.                                             <xsl:call-template name="right-trim">
  4963.                                                 <xsl:with-param name ="s" select="b:Middle"/>
  4964.                                             </xsl:call-template>
  4965.                                         </xsl:with-param>
  4966.                                     </xsl:call-template>
  4967.                                     <xsl:call-template name ="templ_prop_Space"/>
  4968.                                 </xsl:otherwise>
  4969.                             </xsl:choose>
  4970.                         </xsl:when>
  4971.                     </xsl:choose>
  4972.                     <xsl:choose>
  4973.                         <xsl:when test="$cAuthorLastName=1">
  4974.                             <xsl:value-of select="b:Last"/>
  4975.                             <xsl:choose>
  4976.                                 <xsl:when test="$cAuthors=0">
  4977.                                     <xsl:choose>
  4978.                                         <xsl:when test="$cTitle!=0 or $cBookTitle!=0 or $cEdition!=0 or $cVolume!=0 or $cCity!=0 or $cStateProvince!=0 or $cPublisher!=0 or $cYear!=0 or $cPages!=0">
  4979.                                             <xsl:call-template name ="templ_prop_ListSeparator"/>
  4980.                                         </xsl:when>
  4981.                                         <xsl:otherwise>
  4982.                                             <xsl:call-template name ="templ_prop_Dot"/>
  4983.                                         </xsl:otherwise>
  4984.                                     </xsl:choose>
  4985.                                 </xsl:when>
  4986.                                 <xsl:otherwise>
  4987.                                     <xsl:choose>
  4988.                                         <xsl:when test="$cTitle!=0 or $cBookTitle!=0 or $cEdition!=0 or $cVolume!=0 or $cEditor!=0 or $cCity!=0 or $cStateProvince!=0 or $cPublisher!=0 or $cYear!=0 or $cPages!=0">
  4989.                                             <xsl:call-template name ="templ_prop_ListSeparator"/>
  4990.                                         </xsl:when>
  4991.                                         <xsl:otherwise>
  4992.                                             <xsl:call-template name ="templ_prop_Dot"/>
  4993.                                         </xsl:otherwise>
  4994.                                     </xsl:choose>
  4995.                                 </xsl:otherwise>
  4996.                             </xsl:choose>
  4997.                         </xsl:when>
  4998.                     </xsl:choose>
  4999.                 </xsl:for-each>
  5000.  
  5001.             </xsl:when>
  5002.  
  5003.             <xsl:when test="$cAuthors>1">
  5004.                 <xsl:for-each select="b:Author/b:Author/b:NameList/b:Person">
  5005.                     <xsl:variable name ="cAuthorFirstName">
  5006.                         <xsl:value-of select ="count(b:First)"/>
  5007.                     </xsl:variable>
  5008.                     <xsl:variable name ="cAuthorLastName">
  5009.                         <xsl:value-of select ="count(b:Last)"/>
  5010.                     </xsl:variable>
  5011.                     <xsl:variable name ="cAuthorMiddleName">
  5012.                         <xsl:value-of select ="count(b:Middle)"/>
  5013.                     </xsl:variable>
  5014.  
  5015.                     <xsl:choose>
  5016.                         <xsl:when test ="(position())=$cAuthors">
  5017.                             <xsl:call-template name ="templ_prop_Space"/>
  5018.                             <xsl:call-template name ="templ_str_AndUnCap"/>
  5019.                             <xsl:call-template name ="templ_prop_Space"/>
  5020.                         </xsl:when>
  5021.                     </xsl:choose>
  5022.  
  5023.                     <xsl:choose>
  5024.                         <xsl:when test="$cAuthorFirstName=1">
  5025.                             <xsl:choose>
  5026.                                 <xsl:when test="contains(b:First,$prop_APA_FromToDash)">
  5027.                                     <xsl:call-template name="HandleSPaceHypenInAuthor">
  5028.                                         <xsl:with-param name="author">
  5029.                                             <xsl:call-template name="right-trim">
  5030.                                                 <xsl:with-param name ="s" select="b:First"/>
  5031.                                             </xsl:call-template>
  5032.                                         </xsl:with-param>
  5033.                                     </xsl:call-template>
  5034.                                     <xsl:call-template name ="templ_prop_Space"/>
  5035.                                 </xsl:when>
  5036.                                 <xsl:otherwise>
  5037.                                     <xsl:call-template name="splitAuthorSpace">
  5038.                                         <xsl:with-param name ="first">
  5039.                                             <xsl:call-template name="right-trim">
  5040.                                                 <xsl:with-param name ="s" select="b:First"/>
  5041.                                             </xsl:call-template>
  5042.                                         </xsl:with-param>
  5043.                                     </xsl:call-template>
  5044.                                     <xsl:call-template name ="templ_prop_Space"/>
  5045.                                 </xsl:otherwise>
  5046.                             </xsl:choose>
  5047.                         </xsl:when>
  5048.                     </xsl:choose>
  5049.                     <xsl:choose>
  5050.                         <xsl:when test="$cAuthorMiddleName=1">
  5051.                             <xsl:choose>
  5052.                                 <xsl:when test="contains(b:Middle,$prop_APA_FromToDash)">
  5053.                                     <xsl:call-template name="HandleSPaceHypenInAuthor">
  5054.                                         <xsl:with-param name="author">
  5055.                                             <xsl:call-template name="right-trim">
  5056.                                                 <xsl:with-param name ="s" select="b:Middle"/>
  5057.                                             </xsl:call-template>
  5058.                                         </xsl:with-param>
  5059.                                     </xsl:call-template>
  5060.                                     <xsl:call-template name ="templ_prop_Space"/>
  5061.                                 </xsl:when>
  5062.                                 <xsl:otherwise>
  5063.                                     <xsl:call-template name="splitAuthorSpace">
  5064.                                         <xsl:with-param name ="first">
  5065.                                             <xsl:call-template name="right-trim">
  5066.                                                 <xsl:with-param name ="s" select="b:Middle"/>
  5067.                                             </xsl:call-template>
  5068.                                         </xsl:with-param>
  5069.                                     </xsl:call-template>
  5070.                                     <xsl:call-template name ="templ_prop_Space"/>
  5071.                                 </xsl:otherwise>
  5072.                             </xsl:choose>
  5073.                         </xsl:when>
  5074.                     </xsl:choose>
  5075.                     <xsl:choose>
  5076.                         <xsl:when test="$cAuthorLastName=1">
  5077.                             <xsl:value-of select="b:Last"/>
  5078.                             <xsl:if test="((position()+1)!=$cAuthors) and (position()&lt;$cAuthors)">
  5079.                                 <xsl:call-template name ="templ_prop_ListSeparator"/>
  5080.                             </xsl:if>
  5081.                         </xsl:when>
  5082.                     </xsl:choose>
  5083.                 </xsl:for-each>
  5084.                 <xsl:choose>
  5085.                     <xsl:when test="$cAuthors=0">
  5086.                         <xsl:choose>
  5087.                             <xsl:when test="$cTitle!=0 or $cBookTitle!=0 or $cEdition!=0 or $cVolume!=0 or $cCity!=0 or $cStateProvince!=0 or $cPublisher!=0 or $cYear!=0 or $cPages!=0">
  5088.                                 <xsl:call-template name ="templ_prop_ListSeparator"/>
  5089.                             </xsl:when>
  5090.                             <xsl:otherwise>
  5091.                                 <xsl:call-template name ="templ_prop_Dot"/>
  5092.                             </xsl:otherwise>
  5093.                         </xsl:choose>
  5094.                     </xsl:when>
  5095.                     <xsl:otherwise>
  5096.                         <xsl:choose>
  5097.                             <xsl:when test="$cTitle!=0 or $cBookTitle!=0 or $cEdition!=0 or $cVolume!=0 or $cEditor!=0 or $cCity!=0 or $cStateProvince!=0 or $cPublisher!=0 or $cYear!=0 or $cPages!=0">
  5098.                                 <xsl:call-template name ="templ_prop_ListSeparator"/>
  5099.                             </xsl:when>
  5100.                             <xsl:otherwise>
  5101.                                 <xsl:call-template name ="templ_prop_Dot"/>
  5102.                             </xsl:otherwise>
  5103.                         </xsl:choose>
  5104.                     </xsl:otherwise>
  5105.                 </xsl:choose>
  5106.             </xsl:when>
  5107.         </xsl:choose>
  5108.     </xsl:template>
  5109.  
  5110.     <xsl:template name="BibDisplayAuthorWebsite">
  5111.         <xsl:param name ="DisplayEditorIfAuthorUnavailale"/>
  5112.         <xsl:variable name ="cAuthors">
  5113.             <xsl:value-of select ="count(b:Author/b:Author/b:NameList/b:Person)"/>
  5114.         </xsl:variable>
  5115.         <xsl:variable name ="cEditor">
  5116.             <xsl:value-of select ="count(b:Author/b:Editor/b:NameList/b:Person)"/>
  5117.         </xsl:variable>
  5118.         <xsl:variable name="cCorporateAuthors">
  5119.             <xsl:value-of select="count(b:Author/b:Author/b:Corporate)" />
  5120.         </xsl:variable>
  5121.         <xsl:variable name="prop_APA_FromToDash">
  5122.             <xsl:call-template name="templ_prop_FromToDash"/>
  5123.         </xsl:variable>
  5124.  
  5125.         <xsl:variable name="cTitle">
  5126.             <xsl:value-of select ="count(b:Title)"/>
  5127.         </xsl:variable>
  5128.         <xsl:variable name="cProductionCompany">
  5129.             <xsl:value-of select ="count(b:ProductionCompany)"/>
  5130.         </xsl:variable>
  5131.         <xsl:variable name="cYear">
  5132.             <xsl:value-of select ="count(b:Year)"/>
  5133.         </xsl:variable>
  5134.  
  5135.         <xsl:choose>
  5136.             <xsl:when test ="$cAuthors=0">
  5137.                 <xsl:choose>
  5138.                     <xsl:when test="$cCorporateAuthors!=0">
  5139.                         <xsl:value-of select="b:Author/b:Author/b:Corporate"/>
  5140.                         <xsl:call-template name ="templ_prop_ListSeparator"/>
  5141.                     </xsl:when>
  5142.                 </xsl:choose>
  5143.             </xsl:when>
  5144.  
  5145.             <xsl:when test="$cAuthors=1">
  5146.                 <xsl:for-each select="b:Author/b:Author/b:NameList/b:Person">
  5147.                     <xsl:variable name ="cAuthorFirstName">
  5148.                         <xsl:value-of select ="count(b:First)"/>
  5149.                     </xsl:variable>
  5150.                     <xsl:variable name ="cAuthorLastName">
  5151.                         <xsl:value-of select ="count(b:Last)"/>
  5152.                     </xsl:variable>
  5153.                     <xsl:variable name ="cAuthorMiddleName">
  5154.                         <xsl:value-of select ="count(b:Middle)"/>
  5155.                     </xsl:variable>
  5156.                     <xsl:choose>
  5157.                         <xsl:when test="$cAuthorFirstName=1">
  5158.                             <xsl:choose>
  5159.                                 <xsl:when test="contains(b:First,$prop_APA_FromToDash)">
  5160.                                     <xsl:call-template name="HandleSPaceHypenInAuthor">
  5161.                                         <xsl:with-param name="author">
  5162.                                             <xsl:call-template name="right-trim">
  5163.                                                 <xsl:with-param name ="s" select="b:First"/>
  5164.                                             </xsl:call-template>
  5165.                                         </xsl:with-param>
  5166.                                     </xsl:call-template>
  5167.                                     <xsl:call-template name ="templ_prop_Space"/>
  5168.                                 </xsl:when>
  5169.                                 <xsl:otherwise>
  5170.                                     <xsl:call-template name="splitAuthorSpace">
  5171.                                         <xsl:with-param name ="first">
  5172.                                             <xsl:call-template name="right-trim">
  5173.                                                 <xsl:with-param name ="s" select="b:First"/>
  5174.                                             </xsl:call-template>
  5175.                                         </xsl:with-param>
  5176.                                     </xsl:call-template>
  5177.                                     <xsl:call-template name ="templ_prop_Space"/>
  5178.                                 </xsl:otherwise>
  5179.                             </xsl:choose>
  5180.                         </xsl:when>
  5181.                     </xsl:choose>
  5182.  
  5183.                     <xsl:choose>
  5184.                         <xsl:when test="$cAuthorMiddleName=1">
  5185.                             <xsl:choose>
  5186.                                 <xsl:when test="contains(b:Middle,$prop_APA_FromToDash)">
  5187.                                     <xsl:call-template name="HandleSPaceHypenInAuthor">
  5188.                                         <xsl:with-param name="author">
  5189.                                             <xsl:call-template name="right-trim">
  5190.                                                 <xsl:with-param name ="s" select="b:Middle"/>
  5191.                                             </xsl:call-template>
  5192.                                         </xsl:with-param>
  5193.                                     </xsl:call-template>
  5194.                                     <xsl:call-template name ="templ_prop_Space"/>
  5195.                                 </xsl:when>
  5196.                                 <xsl:otherwise>
  5197.                                     <xsl:call-template name="splitAuthorSpace">
  5198.                                         <xsl:with-param name ="first">
  5199.                                             <xsl:call-template name="right-trim">
  5200.                                                 <xsl:with-param name ="s" select="b:Middle"/>
  5201.                                             </xsl:call-template>
  5202.                                         </xsl:with-param>
  5203.                                     </xsl:call-template>
  5204.                                     <xsl:call-template name ="templ_prop_Space"/>
  5205.                                 </xsl:otherwise>
  5206.                             </xsl:choose>
  5207.                         </xsl:when>
  5208.                     </xsl:choose>
  5209.                     <xsl:choose>
  5210.                         <xsl:when test="$cAuthorLastName=1">
  5211.                             <xsl:value-of select="b:Last"/>
  5212.                             <xsl:choose>
  5213.                                 <xsl:when test="$cTitle!=0 or $cProductionCompany!=0 or $cYear!=0">
  5214.                                     <xsl:call-template name ="templ_prop_ListSeparator"/>
  5215.                                 </xsl:when>
  5216.                                 <xsl:otherwise>
  5217.                                     <xsl:call-template name ="templ_prop_Dot"/>
  5218.                                 </xsl:otherwise>
  5219.                             </xsl:choose>
  5220.                         </xsl:when>
  5221.                     </xsl:choose>
  5222.                 </xsl:for-each>
  5223.  
  5224.             </xsl:when>
  5225.  
  5226.             <xsl:when test="$cAuthors>1">
  5227.                 <xsl:for-each select="b:Author/b:Author/b:NameList/b:Person">
  5228.                     <xsl:variable name ="cAuthorFirstName">
  5229.                         <xsl:value-of select ="count(b:First)"/>
  5230.                     </xsl:variable>
  5231.                     <xsl:variable name ="cAuthorLastName">
  5232.                         <xsl:value-of select ="count(b:Last)"/>
  5233.                     </xsl:variable>
  5234.                     <xsl:variable name ="cAuthorMiddleName">
  5235.                         <xsl:value-of select ="count(b:Middle)"/>
  5236.                     </xsl:variable>
  5237.  
  5238.                     <xsl:choose>
  5239.                         <xsl:when test ="(position())=$cAuthors">
  5240.                             <xsl:call-template name ="templ_prop_Space"/>
  5241.                             <xsl:call-template name ="templ_str_AndUnCap"/>
  5242.                             <xsl:call-template name ="templ_prop_Space"/>
  5243.                         </xsl:when>
  5244.                     </xsl:choose>
  5245.  
  5246.                     <xsl:choose>
  5247.                         <xsl:when test="$cAuthorFirstName=1">
  5248.                             <xsl:choose>
  5249.                                 <xsl:when test="contains(b:First,$prop_APA_FromToDash)">
  5250.                                     <xsl:call-template name="HandleSPaceHypenInAuthor">
  5251.                                         <xsl:with-param name="author">
  5252.                                             <xsl:call-template name="right-trim">
  5253.                                                 <xsl:with-param name ="s" select="b:First"/>
  5254.                                             </xsl:call-template>
  5255.                                         </xsl:with-param>
  5256.                                     </xsl:call-template>
  5257.                                     <xsl:call-template name ="templ_prop_Space"/>
  5258.                                 </xsl:when>
  5259.                                 <xsl:otherwise>
  5260.                                     <xsl:call-template name="splitAuthorSpace">
  5261.                                         <xsl:with-param name ="first">
  5262.                                             <xsl:call-template name="right-trim">
  5263.                                                 <xsl:with-param name ="s" select="b:First"/>
  5264.                                             </xsl:call-template>
  5265.                                         </xsl:with-param>
  5266.                                     </xsl:call-template>
  5267.                                     <xsl:call-template name ="templ_prop_Space"/>
  5268.                                 </xsl:otherwise>
  5269.                             </xsl:choose>
  5270.                         </xsl:when>
  5271.                     </xsl:choose>
  5272.                     <xsl:choose>
  5273.                         <xsl:when test="$cAuthorMiddleName=1">
  5274.                             <xsl:choose>
  5275.                                 <xsl:when test="contains(b:Middle,$prop_APA_FromToDash)">
  5276.                                     <xsl:call-template name="HandleSPaceHypenInAuthor">
  5277.                                         <xsl:with-param name="author">
  5278.                                             <xsl:call-template name="right-trim">
  5279.                                                 <xsl:with-param name ="s" select="b:Middle"/>
  5280.                                             </xsl:call-template>
  5281.                                         </xsl:with-param>
  5282.                                     </xsl:call-template>
  5283.                                     <xsl:call-template name ="templ_prop_Space"/>
  5284.                                 </xsl:when>
  5285.                                 <xsl:otherwise>
  5286.                                     <xsl:call-template name="splitAuthorSpace">
  5287.                                         <xsl:with-param name ="first">
  5288.                                             <xsl:call-template name="right-trim">
  5289.                                                 <xsl:with-param name ="s" select="b:Middle"/>
  5290.                                             </xsl:call-template>
  5291.                                         </xsl:with-param>
  5292.                                     </xsl:call-template>
  5293.                                     <xsl:call-template name ="templ_prop_Space"/>
  5294.                                 </xsl:otherwise>
  5295.                             </xsl:choose>
  5296.                         </xsl:when>
  5297.                     </xsl:choose>
  5298.                     <xsl:choose>
  5299.                         <xsl:when test="$cAuthorLastName=1">
  5300.                             <xsl:value-of select="b:Last"/>
  5301.                             <xsl:if test="((position()+1)!=$cAuthors) and (position()&lt;$cAuthors)">
  5302.                                 <xsl:call-template name ="templ_prop_ListSeparator"/>
  5303.                             </xsl:if>
  5304.                         </xsl:when>
  5305.                     </xsl:choose>
  5306.                 </xsl:for-each>
  5307.                 <xsl:choose>
  5308.                     <xsl:when test="$cTitle!=0 or $cProductionCompany!=0 or $cYear!=0">
  5309.                         <xsl:call-template name ="templ_prop_ListSeparator"/>
  5310.                     </xsl:when>
  5311.                     <xsl:otherwise>
  5312.                         <xsl:call-template name ="templ_prop_Dot"/>
  5313.                     </xsl:otherwise>
  5314.                 </xsl:choose>
  5315.             </xsl:when>
  5316.         </xsl:choose>
  5317.     </xsl:template>
  5318.  
  5319.     <xsl:template name="BibDisplayAuthorJArtcicle">
  5320.         <xsl:param name ="DisplayEditorIfAuthorUnavailale"/>
  5321.         <xsl:variable name ="cAuthors">
  5322.             <xsl:value-of select ="count(b:Author/b:Author/b:NameList/b:Person)"/>
  5323.         </xsl:variable>
  5324.         <xsl:variable name="cCorporateAuthors">
  5325.             <xsl:value-of select="count(b:Author/b:Author/b:Corporate)" />
  5326.         </xsl:variable>
  5327.         <xsl:variable name="prop_APA_FromToDash">
  5328.             <xsl:call-template name="templ_prop_FromToDash"/>
  5329.         </xsl:variable>
  5330.  
  5331.         <xsl:variable name="cTitle">
  5332.             <xsl:value-of select ="count(b:Title)"/>
  5333.         </xsl:variable>
  5334.         <xsl:variable name="cJournalName">
  5335.             <xsl:value-of select ="count(b:JournalName)"/>
  5336.         </xsl:variable>
  5337.         <xsl:variable name="cVolume">
  5338.             <xsl:value-of select ="count(b:Volume)"/>
  5339.         </xsl:variable>
  5340.         <xsl:variable name="cEditor">
  5341.             <xsl:value-of select="count(b:Author/b:Editor/b:NameList/b:Person)" />
  5342.         </xsl:variable>
  5343.         <xsl:variable name="cIssue">
  5344.             <xsl:value-of select ="count(b:Issue)"/>
  5345.         </xsl:variable>
  5346.         <xsl:variable name="cYear">
  5347.             <xsl:value-of select ="count(b:Year)"/>
  5348.         </xsl:variable>
  5349.         <xsl:variable name="cPages">
  5350.             <xsl:value-of select ="count(b:Pages)"/>
  5351.         </xsl:variable>
  5352.  
  5353.         <xsl:choose>
  5354.             <xsl:when test ="$cAuthors=0">
  5355.                 <xsl:choose>
  5356.                     <xsl:when test="$cCorporateAuthors!=0">
  5357.                         <xsl:value-of select="b:Author/b:Author/b:Corporate"/>
  5358.                         <xsl:choose>
  5359.                             <xsl:when test="$cTitle!=0 or $cJournalName!=0 or $cVolume!=0 or $cIssue!=0 or $cYear!=0 or $cPages!=0">
  5360.                                 <xsl:call-template name ="templ_prop_ListSeparator"/>
  5361.                             </xsl:when>
  5362.                             <xsl:otherwise>
  5363.                                 <xsl:call-template name ="templ_prop_Dot"/>
  5364.                             </xsl:otherwise>
  5365.                         </xsl:choose>
  5366.                     </xsl:when>
  5367.                     <xsl:otherwise>
  5368.                         <xsl:choose>
  5369.                             <xsl:when test ="$cEditor=0 or $DisplayEditorIfAuthorUnavailale!='true'">
  5370.                             </xsl:when>
  5371.                             <xsl:otherwise>
  5372.                                 <xsl:call-template name="BibDisplayEditorNL"/>
  5373.                             </xsl:otherwise>
  5374.                         </xsl:choose>
  5375.                     </xsl:otherwise>
  5376.                 </xsl:choose>
  5377.             </xsl:when>
  5378.  
  5379.             <xsl:when test="$cAuthors=1">
  5380.                 <xsl:for-each select="b:Author/b:Author/b:NameList/b:Person">
  5381.                     <xsl:variable name ="cAuthorFirstName">
  5382.                         <xsl:value-of select ="count(b:First)"/>
  5383.                     </xsl:variable>
  5384.                     <xsl:variable name ="cAuthorLastName">
  5385.                         <xsl:value-of select ="count(b:Last)"/>
  5386.                     </xsl:variable>
  5387.                     <xsl:variable name ="cAuthorMiddleName">
  5388.                         <xsl:value-of select ="count(b:Middle)"/>
  5389.                     </xsl:variable>
  5390.                     <xsl:choose>
  5391.                         <xsl:when test="$cAuthorFirstName=1">
  5392.                             <xsl:choose>
  5393.                                 <xsl:when test="contains(b:First,$prop_APA_FromToDash)">
  5394.                                     <xsl:call-template name="HandleSPaceHypenInAuthor">
  5395.                                         <xsl:with-param name="author">
  5396.                                             <xsl:call-template name="right-trim">
  5397.                                                 <xsl:with-param name ="s" select="b:First"/>
  5398.                                             </xsl:call-template>
  5399.                                         </xsl:with-param>
  5400.                                     </xsl:call-template>
  5401.                                     <xsl:call-template name ="templ_prop_Space"/>
  5402.                                 </xsl:when>
  5403.                                 <xsl:otherwise>
  5404.                                     <xsl:call-template name="splitAuthorSpace">
  5405.                                         <xsl:with-param name ="first">
  5406.                                             <xsl:call-template name="right-trim">
  5407.                                                 <xsl:with-param name ="s" select="b:First"/>
  5408.                                             </xsl:call-template>
  5409.                                         </xsl:with-param>
  5410.                                     </xsl:call-template>
  5411.                                     <xsl:call-template name ="templ_prop_Space"/>
  5412.                                 </xsl:otherwise>
  5413.                             </xsl:choose>
  5414.                         </xsl:when>
  5415.                     </xsl:choose>
  5416.  
  5417.                     <xsl:choose>
  5418.                         <xsl:when test="$cAuthorMiddleName=1">
  5419.                             <xsl:choose>
  5420.                                 <xsl:when test="contains(b:Middle,$prop_APA_FromToDash)">
  5421.                                     <xsl:call-template name="HandleSPaceHypenInAuthor">
  5422.                                         <xsl:with-param name="author">
  5423.                                             <xsl:call-template name="right-trim">
  5424.                                                 <xsl:with-param name ="s" select="b:Middle"/>
  5425.                                             </xsl:call-template>
  5426.                                         </xsl:with-param>
  5427.                                     </xsl:call-template>
  5428.                                     <xsl:call-template name ="templ_prop_Space"/>
  5429.                                 </xsl:when>
  5430.                                 <xsl:otherwise>
  5431.                                     <xsl:call-template name="splitAuthorSpace">
  5432.                                         <xsl:with-param name ="first">
  5433.                                             <xsl:call-template name="right-trim">
  5434.                                                 <xsl:with-param name ="s" select="b:Middle"/>
  5435.                                             </xsl:call-template>
  5436.                                         </xsl:with-param>
  5437.                                     </xsl:call-template>
  5438.                                     <xsl:call-template name ="templ_prop_Space"/>
  5439.                                 </xsl:otherwise>
  5440.                             </xsl:choose>
  5441.                         </xsl:when>
  5442.                     </xsl:choose>
  5443.                     <xsl:choose>
  5444.                         <xsl:when test="$cAuthorLastName=1">
  5445.                             <xsl:value-of select="b:Last"/>
  5446.                             <xsl:choose>
  5447.                                 <xsl:when test="$cTitle!=0 or $cJournalName!=0 or $cVolume!=0 or $cIssue!=0 or $cYear!=0 or $cPages!=0">
  5448.                                     <xsl:call-template name ="templ_prop_ListSeparator"/>
  5449.                                 </xsl:when>
  5450.                                 <xsl:otherwise>
  5451.                                     <xsl:call-template name ="templ_prop_Dot"/>
  5452.                                 </xsl:otherwise>
  5453.                             </xsl:choose>
  5454.                         </xsl:when>
  5455.                     </xsl:choose>
  5456.                 </xsl:for-each>
  5457.             </xsl:when>
  5458.  
  5459.             <xsl:when test="$cAuthors>1">
  5460.                 <xsl:for-each select="b:Author/b:Author/b:NameList/b:Person">
  5461.                     <xsl:variable name ="cAuthorFirstName">
  5462.                         <xsl:value-of select ="count(b:First)"/>
  5463.                     </xsl:variable>
  5464.                     <xsl:variable name ="cAuthorLastName">
  5465.                         <xsl:value-of select ="count(b:Last)"/>
  5466.                     </xsl:variable>
  5467.                     <xsl:variable name ="cAuthorMiddleName">
  5468.                         <xsl:value-of select ="count(b:Middle)"/>
  5469.                     </xsl:variable>
  5470.  
  5471.                     <xsl:choose>
  5472.                         <xsl:when test ="(position())=$cAuthors">
  5473.                             <xsl:call-template name ="templ_prop_Space"/>
  5474.                             <xsl:call-template name ="templ_str_AndUnCap"/>
  5475.                             <xsl:call-template name ="templ_prop_Space"/>
  5476.                         </xsl:when>
  5477.                     </xsl:choose>
  5478.  
  5479.                     <xsl:choose>
  5480.                         <xsl:when test="$cAuthorFirstName=1">
  5481.                             <xsl:choose>
  5482.                                 <xsl:when test="contains(b:First,$prop_APA_FromToDash)">
  5483.                                     <xsl:call-template name="HandleSPaceHypenInAuthor">
  5484.                                         <xsl:with-param name="author">
  5485.                                             <xsl:call-template name="right-trim">
  5486.                                                 <xsl:with-param name ="s" select="b:First"/>
  5487.                                             </xsl:call-template>
  5488.                                         </xsl:with-param>
  5489.                                     </xsl:call-template>
  5490.                                     <xsl:call-template name ="templ_prop_Space"/>
  5491.                                 </xsl:when>
  5492.                                 <xsl:otherwise>
  5493.                                     <xsl:call-template name="splitAuthorSpace">
  5494.                                         <xsl:with-param name ="first">
  5495.                                             <xsl:call-template name="right-trim">
  5496.                                                 <xsl:with-param name ="s" select="b:First"/>
  5497.                                             </xsl:call-template>
  5498.                                         </xsl:with-param>
  5499.                                     </xsl:call-template>
  5500.                                     <xsl:call-template name ="templ_prop_Space"/>
  5501.                                 </xsl:otherwise>
  5502.                             </xsl:choose>
  5503.                         </xsl:when>
  5504.                     </xsl:choose>
  5505.                     <xsl:choose>
  5506.                         <xsl:when test="$cAuthorMiddleName=1">
  5507.                             <xsl:choose>
  5508.                                 <xsl:when test="contains(b:Middle,$prop_APA_FromToDash)">
  5509.                                     <xsl:call-template name="HandleSPaceHypenInAuthor">
  5510.                                         <xsl:with-param name="author">
  5511.                                             <xsl:call-template name="right-trim">
  5512.                                                 <xsl:with-param name ="s" select="b:Middle"/>
  5513.                                             </xsl:call-template>
  5514.                                         </xsl:with-param>
  5515.                                     </xsl:call-template>
  5516.                                     <xsl:call-template name ="templ_prop_Space"/>
  5517.                                 </xsl:when>
  5518.                                 <xsl:otherwise>
  5519.                                     <xsl:call-template name="splitAuthorSpace">
  5520.                                         <xsl:with-param name ="first">
  5521.                                             <xsl:call-template name="right-trim">
  5522.                                                 <xsl:with-param name ="s" select="b:Middle"/>
  5523.                                             </xsl:call-template>
  5524.                                         </xsl:with-param>
  5525.                                     </xsl:call-template>
  5526.                                     <xsl:call-template name ="templ_prop_Space"/>
  5527.                                 </xsl:otherwise>
  5528.                             </xsl:choose>
  5529.                         </xsl:when>
  5530.                     </xsl:choose>
  5531.                     <xsl:choose>
  5532.                         <xsl:when test="$cAuthorLastName=1">
  5533.                             <xsl:value-of select="b:Last"/>
  5534.                             <xsl:if test="((position()+1)!=$cAuthors) and (position()&lt;$cAuthors)">
  5535.                                 <xsl:call-template name ="templ_prop_ListSeparator"/>
  5536.                             </xsl:if>
  5537.                         </xsl:when>
  5538.                     </xsl:choose>
  5539.                 </xsl:for-each>
  5540.                 <xsl:choose>
  5541.                     <xsl:when test="$cTitle!=0 or $cJournalName!=0 or $cVolume!=0 or $cIssue!=0 or $cYear!=0 or $cPages!=0">
  5542.                         <xsl:call-template name ="templ_prop_ListSeparator"/>
  5543.                     </xsl:when>
  5544.                     <xsl:otherwise>
  5545.                         <xsl:call-template name ="templ_prop_Dot"/>
  5546.                     </xsl:otherwise>
  5547.                 </xsl:choose>
  5548.             </xsl:when>
  5549.         </xsl:choose>
  5550.     </xsl:template>
  5551.  
  5552.     <xsl:template name="BibDisplayAuthorConPr">
  5553.         <xsl:param name ="DisplayEditorIfAuthorUnavailale"/>
  5554.         <xsl:variable name ="cAuthors">
  5555.             <xsl:value-of select ="count(b:Author/b:Author/b:NameList/b:Person)"/>
  5556.         </xsl:variable>
  5557.         <xsl:variable name="cCorporateAuthors">
  5558.             <xsl:value-of select="count(b:Author/b:Author/b:Corporate)" />
  5559.         </xsl:variable>
  5560.         <xsl:variable name="prop_APA_FromToDash">
  5561.             <xsl:call-template name="templ_prop_FromToDash"/>
  5562.         </xsl:variable>
  5563.  
  5564.         <xsl:variable name="cTitle">
  5565.             <xsl:value-of select ="count(b:Title)"/>
  5566.         </xsl:variable>
  5567.         <xsl:variable name="cConferenceName">
  5568.             <xsl:value-of select ="count(b:ConferenceName)"/>
  5569.         </xsl:variable>
  5570.         <xsl:variable name="cEditor">
  5571.             <xsl:value-of select="count(b:Author/b:Editor/b:NameList/b:Person)" />
  5572.         </xsl:variable>
  5573.         <xsl:variable name="cCity">
  5574.             <xsl:value-of select ="count(b:City)"/>
  5575.         </xsl:variable>
  5576.         <xsl:variable name="cYear">
  5577.             <xsl:value-of select ="count(b:Year)"/>
  5578.         </xsl:variable>
  5579.  
  5580.         <xsl:choose>
  5581.             <xsl:when test ="$cAuthors=0">
  5582.                 <xsl:choose>
  5583.                     <xsl:when test="$cCorporateAuthors!=0">
  5584.                         <xsl:value-of select="b:Author/b:Author/b:Corporate"/>
  5585.                         <xsl:choose>
  5586.                             <xsl:when test="$cTitle!=0 or $cConferenceName!=0 or $cCity!=0 or $cYear!=0">
  5587.                                 <xsl:call-template name ="templ_prop_ListSeparator"/>
  5588.                             </xsl:when>
  5589.                             <xsl:otherwise>
  5590.                                 <xsl:call-template name ="templ_prop_Dot"/>
  5591.                             </xsl:otherwise>
  5592.                         </xsl:choose>
  5593.                     </xsl:when>
  5594.                 </xsl:choose>
  5595.             </xsl:when>
  5596.  
  5597.             <xsl:when test="$cAuthors=1">
  5598.                 <xsl:for-each select="b:Author/b:Author/b:NameList/b:Person">
  5599.                     <xsl:variable name ="cAuthorFirstName">
  5600.                         <xsl:value-of select ="count(b:First)"/>
  5601.                     </xsl:variable>
  5602.                     <xsl:variable name ="cAuthorLastName">
  5603.                         <xsl:value-of select ="count(b:Last)"/>
  5604.                     </xsl:variable>
  5605.                     <xsl:variable name ="cAuthorMiddleName">
  5606.                         <xsl:value-of select ="count(b:Middle)"/>
  5607.                     </xsl:variable>
  5608.                     <xsl:choose>
  5609.                         <xsl:when test="$cAuthorFirstName=1">
  5610.                             <xsl:choose>
  5611.                                 <xsl:when test="contains(b:First,$prop_APA_FromToDash)">
  5612.                                     <xsl:call-template name="HandleSPaceHypenInAuthor">
  5613.                                         <xsl:with-param name="author">
  5614.                                             <xsl:call-template name="right-trim">
  5615.                                                 <xsl:with-param name ="s" select="b:First"/>
  5616.                                             </xsl:call-template>
  5617.                                         </xsl:with-param>
  5618.                                     </xsl:call-template>
  5619.                                     <xsl:call-template name ="templ_prop_Space"/>
  5620.                                 </xsl:when>
  5621.                                 <xsl:otherwise>
  5622.                                     <xsl:call-template name="splitAuthorSpace">
  5623.                                         <xsl:with-param name ="first">
  5624.                                             <xsl:call-template name="right-trim">
  5625.                                                 <xsl:with-param name ="s" select="b:First"/>
  5626.                                             </xsl:call-template>
  5627.                                         </xsl:with-param>
  5628.                                     </xsl:call-template>
  5629.                                     <xsl:call-template name ="templ_prop_Space"/>
  5630.                                 </xsl:otherwise>
  5631.                             </xsl:choose>
  5632.                         </xsl:when>
  5633.                     </xsl:choose>
  5634.  
  5635.                     <xsl:choose>
  5636.                         <xsl:when test="$cAuthorMiddleName=1">
  5637.                             <xsl:choose>
  5638.                                 <xsl:when test="contains(b:Middle,$prop_APA_FromToDash)">
  5639.                                     <xsl:call-template name="HandleSPaceHypenInAuthor">
  5640.                                         <xsl:with-param name="author">
  5641.                                             <xsl:call-template name="right-trim">
  5642.                                                 <xsl:with-param name ="s" select="b:Middle"/>
  5643.                                             </xsl:call-template>
  5644.                                         </xsl:with-param>
  5645.                                     </xsl:call-template>
  5646.                                     <xsl:call-template name ="templ_prop_Space"/>
  5647.                                 </xsl:when>
  5648.                                 <xsl:otherwise>
  5649.                                     <xsl:call-template name="splitAuthorSpace">
  5650.                                         <xsl:with-param name ="first">
  5651.                                             <xsl:call-template name="right-trim">
  5652.                                                 <xsl:with-param name ="s" select="b:Middle"/>
  5653.                                             </xsl:call-template>
  5654.                                         </xsl:with-param>
  5655.                                     </xsl:call-template>
  5656.                                     <xsl:call-template name ="templ_prop_Space"/>
  5657.                                 </xsl:otherwise>
  5658.                             </xsl:choose>
  5659.                         </xsl:when>
  5660.                     </xsl:choose>
  5661.                     <xsl:choose>
  5662.                         <xsl:when test="$cAuthorLastName=1">
  5663.                             <xsl:value-of select="b:Last"/>
  5664.                             <xsl:choose>
  5665.                                 <xsl:when test="$cTitle!=0 or $cConferenceName!=0 or $cCity!=0 or $cYear!=0">
  5666.                                     <xsl:call-template name ="templ_prop_ListSeparator"/>
  5667.                                 </xsl:when>
  5668.                                 <xsl:otherwise>
  5669.                                     <xsl:call-template name ="templ_prop_Dot"/>
  5670.                                 </xsl:otherwise>
  5671.                             </xsl:choose>
  5672.                         </xsl:when>
  5673.                     </xsl:choose>
  5674.                 </xsl:for-each>
  5675.  
  5676.             </xsl:when>
  5677.  
  5678.             <xsl:when test="$cAuthors>1">
  5679.                 <xsl:for-each select="b:Author/b:Author/b:NameList/b:Person">
  5680.                     <xsl:variable name ="cAuthorFirstName">
  5681.                         <xsl:value-of select ="count(b:First)"/>
  5682.                     </xsl:variable>
  5683.                     <xsl:variable name ="cAuthorLastName">
  5684.                         <xsl:value-of select ="count(b:Last)"/>
  5685.                     </xsl:variable>
  5686.                     <xsl:variable name ="cAuthorMiddleName">
  5687.                         <xsl:value-of select ="count(b:Middle)"/>
  5688.                     </xsl:variable>
  5689.  
  5690.                     <xsl:choose>
  5691.                         <xsl:when test ="(position())=$cAuthors">
  5692.                             <xsl:call-template name ="templ_prop_Space"/>
  5693.                             <xsl:call-template name ="templ_str_AndUnCap"/>
  5694.                             <xsl:call-template name ="templ_prop_Space"/>
  5695.                         </xsl:when>
  5696.                     </xsl:choose>
  5697.  
  5698.                     <xsl:choose>
  5699.                         <xsl:when test="$cAuthorFirstName=1">
  5700.                             <xsl:choose>
  5701.                                 <xsl:when test="contains(b:First,$prop_APA_FromToDash)">
  5702.                                     <xsl:call-template name="HandleSPaceHypenInAuthor">
  5703.                                         <xsl:with-param name="author">
  5704.                                             <xsl:call-template name="right-trim">
  5705.                                                 <xsl:with-param name ="s" select="b:First"/>
  5706.                                             </xsl:call-template>
  5707.                                         </xsl:with-param>
  5708.                                     </xsl:call-template>
  5709.                                     <xsl:call-template name ="templ_prop_Space"/>
  5710.                                 </xsl:when>
  5711.                                 <xsl:otherwise>
  5712.                                     <xsl:call-template name="splitAuthorSpace">
  5713.                                         <xsl:with-param name ="first">
  5714.                                             <xsl:call-template name="right-trim">
  5715.                                                 <xsl:with-param name ="s" select="b:First"/>
  5716.                                             </xsl:call-template>
  5717.                                         </xsl:with-param>
  5718.                                     </xsl:call-template>
  5719.                                     <xsl:call-template name ="templ_prop_Space"/>
  5720.                                 </xsl:otherwise>
  5721.                             </xsl:choose>
  5722.                         </xsl:when>
  5723.                     </xsl:choose>
  5724.                     <xsl:choose>
  5725.                         <xsl:when test="$cAuthorMiddleName=1">
  5726.                             <xsl:choose>
  5727.                                 <xsl:when test="contains(b:Middle,$prop_APA_FromToDash)">
  5728.                                     <xsl:call-template name="HandleSPaceHypenInAuthor">
  5729.                                         <xsl:with-param name="author">
  5730.                                             <xsl:call-template name="right-trim">
  5731.                                                 <xsl:with-param name ="s" select="b:Middle"/>
  5732.                                             </xsl:call-template>
  5733.                                         </xsl:with-param>
  5734.                                     </xsl:call-template>
  5735.                                     <xsl:call-template name ="templ_prop_Space"/>
  5736.                                 </xsl:when>
  5737.                                 <xsl:otherwise>
  5738.                                     <xsl:call-template name="splitAuthorSpace">
  5739.                                         <xsl:with-param name ="first">
  5740.                                             <xsl:call-template name="right-trim">
  5741.                                                 <xsl:with-param name ="s" select="b:Middle"/>
  5742.                                             </xsl:call-template>
  5743.                                         </xsl:with-param>
  5744.                                     </xsl:call-template>
  5745.                                     <xsl:call-template name ="templ_prop_Space"/>
  5746.                                 </xsl:otherwise>
  5747.                             </xsl:choose>
  5748.                         </xsl:when>
  5749.                     </xsl:choose>
  5750.                     <xsl:choose>
  5751.                         <xsl:when test="$cAuthorLastName=1">
  5752.                             <xsl:value-of select="b:Last"/>
  5753.                             <xsl:if test="((position()+1)!=$cAuthors) and (position()&lt;$cAuthors)">
  5754.                                 <xsl:call-template name ="templ_prop_ListSeparator"/>
  5755.                             </xsl:if>
  5756.                         </xsl:when>
  5757.                     </xsl:choose>
  5758.                 </xsl:for-each>
  5759.                 <xsl:choose>
  5760.                     <xsl:when test="$cTitle!=0 or $cConferenceName!=0 or $cCity!=0 or $cYear!=0">
  5761.                         <xsl:call-template name ="templ_prop_ListSeparator"/>
  5762.                     </xsl:when>
  5763.                     <xsl:otherwise>
  5764.                         <xsl:call-template name ="templ_prop_Dot"/>
  5765.                     </xsl:otherwise>
  5766.                 </xsl:choose>
  5767.             </xsl:when>
  5768.         </xsl:choose>
  5769.     </xsl:template>
  5770.  
  5771.     <xsl:template name="BibDisplayAuthorReport">
  5772.         <xsl:param name ="DisplayEditorIfAuthorUnavailale"/>
  5773.         <xsl:variable name ="cAuthors">
  5774.             <xsl:value-of select ="count(b:Author/b:Author/b:NameList/b:Person)"/>
  5775.         </xsl:variable>
  5776.         <xsl:variable name="cCorporateAuthors">
  5777.             <xsl:value-of select="count(b:Author/b:Author/b:Corporate)" />
  5778.         </xsl:variable>
  5779.         <xsl:variable name="prop_APA_FromToDash">
  5780.             <xsl:call-template name="templ_prop_FromToDash"/>
  5781.         </xsl:variable>
  5782.  
  5783.         <xsl:variable name="cTitle">
  5784.             <xsl:value-of select ="count(b:Title)"/>
  5785.         </xsl:variable>
  5786.         <xsl:variable name="cEditor">
  5787.             <xsl:value-of select="count(b:Author/b:Editor/b:NameList/b:Person)" />
  5788.         </xsl:variable>
  5789.         <xsl:variable name="cCity">
  5790.             <xsl:value-of select ="count(b:City)"/>
  5791.         </xsl:variable>
  5792.         <xsl:variable name="cPublisher">
  5793.             <xsl:value-of select ="count(b:Publisher)"/>
  5794.         </xsl:variable>
  5795.         <xsl:variable name="cYear">
  5796.             <xsl:value-of select ="count(b:Year)"/>
  5797.         </xsl:variable>
  5798.  
  5799.         <xsl:choose>
  5800.             <xsl:when test ="$cAuthors=0">
  5801.                 <xsl:choose>
  5802.                     <xsl:when test="$cCorporateAuthors!=0">
  5803.                         <xsl:value-of select="b:Author/b:Author/b:Corporate"/>
  5804.                         <xsl:choose>
  5805.                             <xsl:when test="$cTitle!=0 or $cCity!=0 or $cPublisher!=0 or $cYear!=0">
  5806.                                 <xsl:call-template name ="templ_prop_ListSeparator"/>
  5807.                             </xsl:when>
  5808.                             <xsl:otherwise>
  5809.                                 <xsl:call-template name ="templ_prop_Dot"/>
  5810.                             </xsl:otherwise>
  5811.                         </xsl:choose>
  5812.                     </xsl:when>
  5813.                 </xsl:choose>
  5814.             </xsl:when>
  5815.  
  5816.             <xsl:when test="$cAuthors=1">
  5817.                 <xsl:for-each select="b:Author/b:Author/b:NameList/b:Person">
  5818.                     <xsl:variable name ="cAuthorFirstName">
  5819.                         <xsl:value-of select ="count(b:First)"/>
  5820.                     </xsl:variable>
  5821.                     <xsl:variable name ="cAuthorLastName">
  5822.                         <xsl:value-of select ="count(b:Last)"/>
  5823.                     </xsl:variable>
  5824.                     <xsl:variable name ="cAuthorMiddleName">
  5825.                         <xsl:value-of select ="count(b:Middle)"/>
  5826.                     </xsl:variable>
  5827.                     <xsl:choose>
  5828.                         <xsl:when test="$cAuthorFirstName=1">
  5829.                             <xsl:choose>
  5830.                                 <xsl:when test="contains(b:First,$prop_APA_FromToDash)">
  5831.                                     <xsl:call-template name="HandleSPaceHypenInAuthor">
  5832.                                         <xsl:with-param name="author">
  5833.                                             <xsl:call-template name="right-trim">
  5834.                                                 <xsl:with-param name ="s" select="b:First"/>
  5835.                                             </xsl:call-template>
  5836.                                         </xsl:with-param>
  5837.                                     </xsl:call-template>
  5838.                                     <xsl:call-template name ="templ_prop_Space"/>
  5839.                                 </xsl:when>
  5840.                                 <xsl:otherwise>
  5841.                                     <xsl:call-template name="splitAuthorSpace">
  5842.                                         <xsl:with-param name ="first">
  5843.                                             <xsl:call-template name="right-trim">
  5844.                                                 <xsl:with-param name ="s" select="b:First"/>
  5845.                                             </xsl:call-template>
  5846.                                         </xsl:with-param>
  5847.                                     </xsl:call-template>
  5848.                                     <xsl:call-template name ="templ_prop_Space"/>
  5849.                                 </xsl:otherwise>
  5850.                             </xsl:choose>
  5851.                         </xsl:when>
  5852.                     </xsl:choose>
  5853.  
  5854.                     <xsl:choose>
  5855.                         <xsl:when test="$cAuthorMiddleName=1">
  5856.                             <xsl:choose>
  5857.                                 <xsl:when test="contains(b:Middle,$prop_APA_FromToDash)">
  5858.                                     <xsl:call-template name="HandleSPaceHypenInAuthor">
  5859.                                         <xsl:with-param name="author">
  5860.                                             <xsl:call-template name="right-trim">
  5861.                                                 <xsl:with-param name ="s" select="b:Middle"/>
  5862.                                             </xsl:call-template>
  5863.                                         </xsl:with-param>
  5864.                                     </xsl:call-template>
  5865.                                     <xsl:call-template name ="templ_prop_Space"/>
  5866.                                 </xsl:when>
  5867.                                 <xsl:otherwise>
  5868.                                     <xsl:call-template name="splitAuthorSpace">
  5869.                                         <xsl:with-param name ="first">
  5870.                                             <xsl:call-template name="right-trim">
  5871.                                                 <xsl:with-param name ="s" select="b:Middle"/>
  5872.                                             </xsl:call-template>
  5873.                                         </xsl:with-param>
  5874.                                     </xsl:call-template>
  5875.                                     <xsl:call-template name ="templ_prop_Space"/>
  5876.                                 </xsl:otherwise>
  5877.                             </xsl:choose>
  5878.                         </xsl:when>
  5879.                     </xsl:choose>
  5880.                     <xsl:choose>
  5881.                         <xsl:when test="$cAuthorLastName=1">
  5882.                             <xsl:value-of select="b:Last"/>
  5883.                             <xsl:choose>
  5884.                                 <xsl:when test="$cTitle!=0 or $cCity!=0 or $cPublisher!=0 or $cYear!=0">
  5885.                                     <xsl:call-template name ="templ_prop_ListSeparator"/>
  5886.                                 </xsl:when>
  5887.                                 <xsl:otherwise>
  5888.                                     <xsl:call-template name ="templ_prop_Dot"/>
  5889.                                 </xsl:otherwise>
  5890.                             </xsl:choose>
  5891.                         </xsl:when>
  5892.                     </xsl:choose>
  5893.                 </xsl:for-each>
  5894.  
  5895.             </xsl:when>
  5896.  
  5897.             <xsl:when test="$cAuthors>1">
  5898.                 <xsl:for-each select="b:Author/b:Author/b:NameList/b:Person">
  5899.                     <xsl:variable name ="cAuthorFirstName">
  5900.                         <xsl:value-of select ="count(b:First)"/>
  5901.                     </xsl:variable>
  5902.                     <xsl:variable name ="cAuthorLastName">
  5903.                         <xsl:value-of select ="count(b:Last)"/>
  5904.                     </xsl:variable>
  5905.                     <xsl:variable name ="cAuthorMiddleName">
  5906.                         <xsl:value-of select ="count(b:Middle)"/>
  5907.                     </xsl:variable>
  5908.  
  5909.                     <xsl:choose>
  5910.                         <xsl:when test ="(position())=$cAuthors">
  5911.                             <xsl:call-template name ="templ_prop_Space"/>
  5912.                             <xsl:call-template name ="templ_str_AndUnCap"/>
  5913.                             <xsl:call-template name ="templ_prop_Space"/>
  5914.                         </xsl:when>
  5915.                     </xsl:choose>
  5916.  
  5917.                     <xsl:choose>
  5918.                         <xsl:when test="$cAuthorFirstName=1">
  5919.                             <xsl:choose>
  5920.                                 <xsl:when test="contains(b:First,$prop_APA_FromToDash)">
  5921.                                     <xsl:call-template name="HandleSPaceHypenInAuthor">
  5922.                                         <xsl:with-param name="author">
  5923.                                             <xsl:call-template name="right-trim">
  5924.                                                 <xsl:with-param name ="s" select="b:First"/>
  5925.                                             </xsl:call-template>
  5926.                                         </xsl:with-param>
  5927.                                     </xsl:call-template>
  5928.                                     <xsl:call-template name ="templ_prop_Space"/>
  5929.                                 </xsl:when>
  5930.                                 <xsl:otherwise>
  5931.                                     <xsl:call-template name="splitAuthorSpace">
  5932.                                         <xsl:with-param name ="first">
  5933.                                             <xsl:call-template name="right-trim">
  5934.                                                 <xsl:with-param name ="s" select="b:First"/>
  5935.                                             </xsl:call-template>
  5936.                                         </xsl:with-param>
  5937.                                     </xsl:call-template>
  5938.                                     <xsl:call-template name ="templ_prop_Space"/>
  5939.                                 </xsl:otherwise>
  5940.                             </xsl:choose>
  5941.                         </xsl:when>
  5942.                     </xsl:choose>
  5943.                     <xsl:choose>
  5944.                         <xsl:when test="$cAuthorMiddleName=1">
  5945.                             <xsl:choose>
  5946.                                 <xsl:when test="contains(b:Middle,$prop_APA_FromToDash)">
  5947.                                     <xsl:call-template name="HandleSPaceHypenInAuthor">
  5948.                                         <xsl:with-param name="author">
  5949.                                             <xsl:call-template name="right-trim">
  5950.                                                 <xsl:with-param name ="s" select="b:Middle"/>
  5951.                                             </xsl:call-template>
  5952.                                         </xsl:with-param>
  5953.                                     </xsl:call-template>
  5954.                                     <xsl:call-template name ="templ_prop_Space"/>
  5955.                                 </xsl:when>
  5956.                                 <xsl:otherwise>
  5957.                                     <xsl:call-template name="splitAuthorSpace">
  5958.                                         <xsl:with-param name ="first">
  5959.                                             <xsl:call-template name="right-trim">
  5960.                                                 <xsl:with-param name ="s" select="b:Middle"/>
  5961.                                             </xsl:call-template>
  5962.                                         </xsl:with-param>
  5963.                                     </xsl:call-template>
  5964.                                     <xsl:call-template name ="templ_prop_Space"/>
  5965.                                 </xsl:otherwise>
  5966.                             </xsl:choose>
  5967.                         </xsl:when>
  5968.                     </xsl:choose>
  5969.                     <xsl:choose>
  5970.                         <xsl:when test="$cAuthorLastName=1">
  5971.                             <xsl:value-of select="b:Last"/>
  5972.                             <xsl:if test="((position()+1)!=$cAuthors) and (position()&lt;$cAuthors)">
  5973.                                 <xsl:call-template name ="templ_prop_ListSeparator"/>
  5974.                             </xsl:if>
  5975.                         </xsl:when>
  5976.                     </xsl:choose>
  5977.                 </xsl:for-each>
  5978.                 <xsl:choose>
  5979.                     <xsl:when test="$cTitle!=0 or $cCity!=0 or $cPublisher!=0 or $cYear!=0">
  5980.                         <xsl:call-template name ="templ_prop_ListSeparator"/>
  5981.                     </xsl:when>
  5982.                     <xsl:otherwise>
  5983.                         <xsl:call-template name ="templ_prop_Dot"/>
  5984.                     </xsl:otherwise>
  5985.                 </xsl:choose>
  5986.             </xsl:when>
  5987.         </xsl:choose>
  5988.     </xsl:template>
  5989.  
  5990.  
  5991.     <xsl:template name="BibDisplayYear">
  5992.         <xsl:variable name="cYear">
  5993.             <xsl:value-of select="count(b:Year)"/>
  5994.         </xsl:variable>
  5995.         <xsl:choose>
  5996.             <xsl:when test ="$cYear=1">
  5997.                 <xsl:value-of select = "b:Year"/>
  5998.                 <xsl:call-template name = "templ_prop_Dot"/>
  5999.             </xsl:when>
  6000.         </xsl:choose>
  6001.         <xsl:call-template name="templ_prop_Space"/>
  6002.     </xsl:template>
  6003.  
  6004.     <xsl:template name="BibDisplayTitleReport">
  6005.         <xsl:variable name="cTitle">
  6006.             <xsl:value-of select="count(b:Title)"/>
  6007.         </xsl:variable>
  6008.         <xsl:variable name="cCity">
  6009.             <xsl:value-of select="count(b:City)"/>
  6010.         </xsl:variable>
  6011.         <xsl:variable name="cYear">
  6012.             <xsl:value-of select="count(b:Year)"/>
  6013.         </xsl:variable>
  6014.         <xsl:variable name="cPublisher">
  6015.             <xsl:value-of select="count(b:Publisher)"/>
  6016.         </xsl:variable>
  6017.         <xsl:if test ="$cTitle!=0">
  6018.             <xsl:call-template name="templ_prop_OpenQuote"/>
  6019.             <xsl:call-template name="right-trim">
  6020.                 <xsl:with-param name ="s" select="b:Title"/>
  6021.             </xsl:call-template>
  6022.             <xsl:choose>
  6023.                 <xsl:when test=" $cCity!=0 or $cYear!=0 or  $cPublisher!=0  ">
  6024.                     <xsl:call-template name ="List_Separator_NoSpace"/>
  6025.                     <xsl:call-template name="templ_prop_CloseQuote"/>
  6026.                     <xsl:call-template name ="templ_prop_Space"/>
  6027.                 </xsl:when>
  6028.                 <xsl:when test="$cCity=0 and $cYear=0 and $cPublisher=0 ">
  6029.                     <xsl:call-template name="templ_prop_CloseQuote"/>
  6030.                     <xsl:call-template name = "templ_prop_Dot"/>
  6031.                 </xsl:when>
  6032.             </xsl:choose>
  6033.         </xsl:if>
  6034.     </xsl:template>
  6035.  
  6036.     <xsl:template name="BibDisplayYearCase">
  6037.         <xsl:variable name="cYear">
  6038.             <xsl:value-of select="count(b:Year)"/>
  6039.         </xsl:variable>
  6040.         <xsl:choose>
  6041.             <xsl:when test ="$cYear=1">
  6042.                 <xsl:value-of select = "b:Year"/>
  6043.                 <xsl:call-template name = "templ_prop_Dot"/>
  6044.             </xsl:when>
  6045.         </xsl:choose>
  6046.     </xsl:template>
  6047.  
  6048.     <xsl:template name="BibDisplayInstitutionArt">
  6049.         <xsl:variable name="cInstitution">
  6050.             <xsl:value-of select="count(b:Institution)"/>
  6051.         </xsl:variable>
  6052.         <xsl:variable name="cYear">
  6053.             <xsl:value-of select="count(b:Year)"/>
  6054.         </xsl:variable>
  6055.  
  6056.         <xsl:choose>
  6057.             <xsl:when test ="$cInstitution!=0">
  6058.  
  6059.                 <xsl:value-of select = "b:Institution"/>
  6060.                 <xsl:choose>
  6061.                     <xsl:when test="$cYear>0">
  6062.                         <xsl:call-template name ="templ_prop_ListSeparator"/>
  6063.                         <xsl:call-template name ="templ_prop_Space"/>
  6064.                     </xsl:when>
  6065.                     <xsl:otherwise>
  6066.                         <xsl:call-template name = "templ_prop_Dot"/>
  6067.                     </xsl:otherwise>
  6068.                 </xsl:choose>
  6069.             </xsl:when>
  6070.         </xsl:choose>
  6071.     </xsl:template>
  6072.  
  6073.  
  6074.  
  6075.     <xsl:template name="BibDisplayTitleBook">
  6076.         <xsl:variable name="cTitle">
  6077.             <xsl:value-of select="count(b:Title)"/>
  6078.         </xsl:variable>
  6079.         <xsl:variable name="cEdition">
  6080.             <xsl:value-of select ="count(b:Edition)"/>
  6081.         </xsl:variable>
  6082.         <xsl:variable name="cVolume">
  6083.             <xsl:value-of select ="count(b:Volume)"/>
  6084.         </xsl:variable>
  6085.         <xsl:variable name="cEditor">
  6086.             <xsl:value-of select="count(b:Author/b:Editor/b:NameList/b:Person)" />
  6087.         </xsl:variable>
  6088.         <xsl:variable name="cAuthor">
  6089.             <xsl:value-of select="count(b:Author/b:Author/b:NameList/b:Person)" />
  6090.         </xsl:variable>
  6091.         <xsl:variable name="cCity">
  6092.             <xsl:value-of select ="count(b:City)"/>
  6093.         </xsl:variable>
  6094.         <xsl:variable name="cStateProvince">
  6095.             <xsl:value-of select ="count(b:StateProvince)"/>
  6096.         </xsl:variable>
  6097.         <xsl:variable name="cPublisher">
  6098.             <xsl:value-of select ="count(b:Publisher)"/>
  6099.         </xsl:variable>
  6100.         <xsl:variable name="cYear">
  6101.             <xsl:value-of select ="count(b:Year)"/>
  6102.         </xsl:variable>
  6103.         <xsl:variable name="cPages">
  6104.             <xsl:value-of select ="count(b:Pages)"/>
  6105.         </xsl:variable>
  6106.  
  6107.         <xsl:if test ="$cTitle!=0">
  6108.             <xsl:call-template name="right-trim">
  6109.                 <xsl:with-param name ="s" select="b:Title"/>
  6110.             </xsl:call-template>
  6111.             <xsl:choose>
  6112.                 <xsl:when test="$cAuthor=0">
  6113.                     <xsl:choose>
  6114.                         <xsl:when test="$cEdition!=0 or $cVolume!=0 or $cCity!=0 or $cStateProvince!=0 or $cPublisher!=0 or $cYear!=0 or $cPages!=0">
  6115.                             <xsl:call-template name ="templ_prop_ListSeparator"/>
  6116.                         </xsl:when>
  6117.                         <xsl:otherwise>
  6118.                             <xsl:call-template name ="templ_prop_Dot"/>
  6119.                         </xsl:otherwise>
  6120.                     </xsl:choose>
  6121.                 </xsl:when>
  6122.                 <xsl:otherwise>
  6123.                     <xsl:choose>
  6124.                         <xsl:when test="$cEdition!=0 or $cVolume!=0 or $cEditor!=0 or $cCity!=0 or $cStateProvince!=0 or $cPublisher!=0 or $cYear!=0 or $cPages!=0">
  6125.                             <xsl:call-template name ="templ_prop_ListSeparator"/>
  6126.                         </xsl:when>
  6127.                         <xsl:otherwise>
  6128.                             <xsl:call-template name ="templ_prop_Dot"/>
  6129.                         </xsl:otherwise>
  6130.                     </xsl:choose>
  6131.                 </xsl:otherwise>
  6132.             </xsl:choose>
  6133.         </xsl:if>
  6134.     </xsl:template>
  6135.  
  6136.     <xsl:template name="BibDisplayTitle">
  6137.         <xsl:variable name="cTitle">
  6138.             <xsl:value-of select="count(b:Title)"/>
  6139.         </xsl:variable>
  6140.         <xsl:if test ="$cTitle!=0">
  6141.             <xsl:call-template name="right-trim">
  6142.                 <xsl:with-param name ="s" select="b:Title"/>
  6143.             </xsl:call-template>
  6144.             <xsl:call-template name ="templ_prop_Dot"/>
  6145.             <xsl:call-template name ="templ_prop_Space"/>
  6146.         </xsl:if>
  6147.     </xsl:template>
  6148.  
  6149.     <xsl:template name="BibDisplayTitleInt">
  6150.         <xsl:variable name="cTitle">
  6151.             <xsl:value-of select="count(b:Title)"/>
  6152.         </xsl:variable>
  6153.         <xsl:if test ="$cTitle!=0">
  6154.             <xsl:call-template name="right-trim">
  6155.                 <xsl:with-param name ="s" select="b:Title"/>
  6156.             </xsl:call-template>
  6157.             <xsl:call-template name ="templ_prop_Dot"/>
  6158.             <xsl:call-template name ="templ_prop_Space"/>
  6159.         </xsl:if>
  6160.     </xsl:template>
  6161.  
  6162.  
  6163.     <xsl:template name="BibDisplayYearSoundrecording">
  6164.         <xsl:variable name="cYear">
  6165.             <xsl:value-of select="count(b:Year)"/>
  6166.         </xsl:variable>
  6167.         <xsl:choose>
  6168.             <xsl:when test ="$cYear=1">
  6169.                 <xsl:value-of select = "b:Year"/>
  6170.                 <xsl:call-template name = "templ_prop_Dot"/>
  6171.             </xsl:when>
  6172.         </xsl:choose>
  6173.     </xsl:template>
  6174.  
  6175.     <xsl:template name="BibDisplayTitleCase">
  6176.         <xsl:variable name="cTitle">
  6177.             <xsl:value-of select="count(b:Title)"/>
  6178.         </xsl:variable>
  6179.         <xsl:variable name="cYear">
  6180.             <xsl:value-of select="count(b:Year)"/>
  6181.         </xsl:variable>
  6182.         <xsl:if test ="$cTitle!=0">
  6183.             <xsl:call-template name="right-trim">
  6184.                 <xsl:with-param name ="s" select="b:Title"/>
  6185.             </xsl:call-template>
  6186.             <xsl:if test="$cYear=1">
  6187.                 <xsl:call-template name ="templ_prop_ListSeparator"/>
  6188.             </xsl:if >
  6189.             <xsl:if test="not($cYear=1)">
  6190.                 <xsl:call-template name = "templ_prop_Dot"/>
  6191.             </xsl:if >
  6192.         </xsl:if>
  6193.     </xsl:template>
  6194.  
  6195.     <xsl:template name="BibDisplayTitleBC">
  6196.         <xsl:variable name="cTitle">
  6197.             <xsl:value-of select="count(b:Title)"/>
  6198.         </xsl:variable>
  6199.         <xsl:variable name="cAuthor">
  6200.             <xsl:value-of select="count(b:Author/b:Author/b:NameList/b:Person)" />
  6201.         </xsl:variable>
  6202.         <xsl:variable name="cBookTitle">
  6203.             <xsl:value-of select ="count(b:BookTitle)"/>
  6204.         </xsl:variable>
  6205.         <xsl:variable name="cEdition">
  6206.             <xsl:value-of select ="count(b:Edition)"/>
  6207.         </xsl:variable>
  6208.         <xsl:variable name="cVolume">
  6209.             <xsl:value-of select ="count(b:Volume)"/>
  6210.         </xsl:variable>
  6211.         <xsl:variable name="cEditor">
  6212.             <xsl:value-of select="count(b:Author/b:Editor/b:NameList/b:Person)" />
  6213.         </xsl:variable>
  6214.         <xsl:variable name="cCity">
  6215.             <xsl:value-of select ="count(b:City)"/>
  6216.         </xsl:variable>
  6217.         <xsl:variable name="cStateProvince">
  6218.             <xsl:value-of select ="count(b:StateProvince)"/>
  6219.         </xsl:variable>
  6220.         <xsl:variable name="cPublisher">
  6221.             <xsl:value-of select ="count(b:Publisher)"/>
  6222.         </xsl:variable>
  6223.         <xsl:variable name="cYear">
  6224.             <xsl:value-of select ="count(b:Year)"/>
  6225.         </xsl:variable>
  6226.         <xsl:variable name="cPages">
  6227.             <xsl:value-of select ="count(b:Pages)"/>
  6228.         </xsl:variable>
  6229.  
  6230.         <xsl:if test ="$cTitle!=0">
  6231.             <xsl:call-template name="templ_prop_OpenQuote"/>
  6232.             <xsl:call-template name="right-trim">
  6233.                 <xsl:with-param name ="s" select="b:Title"/>
  6234.             </xsl:call-template>
  6235.             <xsl:choose>
  6236.                 <xsl:when test="$cAuthor=0">
  6237.                     <xsl:choose>
  6238.                         <xsl:when test="$cBookTitle!=0 or $cEdition!=0 or $cVolume!=0 or $cCity!=0 or $cStateProvince!=0 or $cPublisher!=0 or $cYear!=0 or $cPages!=0">
  6239.                             <xsl:call-template name ="List_Separator_NoSpace"/>
  6240.                             <xsl:call-template name="templ_prop_CloseQuote"/>
  6241.                             <xsl:call-template name ="templ_prop_Space"/>
  6242.                         </xsl:when>
  6243.                         <xsl:otherwise>
  6244.                             <xsl:call-template name="templ_prop_CloseQuote"/>
  6245.                             <xsl:call-template name ="templ_prop_Dot"/>
  6246.                         </xsl:otherwise>
  6247.                     </xsl:choose>
  6248.                 </xsl:when>
  6249.                 <xsl:otherwise>
  6250.                     <xsl:choose>
  6251.                         <xsl:when test="$cBookTitle!=0 or $cEdition!=0 or $cVolume!=0 or $cEditor!=0 or $cCity!=0 or $cStateProvince!=0 or $cPublisher!=0 or $cYear!=0 or $cPages!=0">
  6252.                             <xsl:call-template name ="List_Separator_NoSpace"/>
  6253.                             <xsl:call-template name="templ_prop_CloseQuote"/>
  6254.                             <xsl:call-template name ="templ_prop_Space"/>
  6255.                         </xsl:when>
  6256.                         <xsl:otherwise>
  6257.                             <xsl:call-template name="templ_prop_CloseQuote"/>
  6258.                             <xsl:call-template name ="templ_prop_Dot"/>
  6259.                         </xsl:otherwise>
  6260.                     </xsl:choose>
  6261.                 </xsl:otherwise>
  6262.             </xsl:choose>
  6263.         </xsl:if>
  6264.     </xsl:template>
  6265.  
  6266.     <xsl:template name ="BibDisplayJournalName">
  6267.         <xsl:variable name ="cJournalName">
  6268.             <xsl:value-of select="count(b:JournalName)"/>
  6269.         </xsl:variable>
  6270.         <xsl:variable name="cVolume">
  6271.             <xsl:value-of select="count(b:Volume)"/>
  6272.         </xsl:variable>
  6273.         <xsl:variable name="cIssue">
  6274.             <xsl:value-of select="count(b:Issue)"/>
  6275.         </xsl:variable>
  6276.         <xsl:variable name="cPages">
  6277.             <xsl:value-of select="count(b:Pages)"/>
  6278.         </xsl:variable>
  6279.         <xsl:variable name ="cYear">
  6280.             <xsl:value-of select="count(b:Year)"/>
  6281.         </xsl:variable>
  6282.  
  6283.         <xsl:if test ="$cJournalName!=0">
  6284.             <xsl:value-of select="b:JournalName"/>
  6285.             <xsl:choose>
  6286.                 <xsl:when test="$cVolume!=0 or $cIssue!=0 or $cPages!=0 or $cYear!=0">
  6287.                     <xsl:call-template name ="templ_prop_ListSeparator"/>
  6288.                 </xsl:when>
  6289.                 <xsl:otherwise>
  6290.                     <xsl:call-template name ="templ_prop_Dot"/>
  6291.                 </xsl:otherwise>
  6292.             </xsl:choose>
  6293.         </xsl:if>
  6294.     </xsl:template>
  6295.  
  6296.     <xsl:template name ="BibDisplayJournalNameAP">
  6297.         <xsl:variable name ="cJournalName">
  6298.             <xsl:value-of select="count(b:PeriodicalTitle)"/>
  6299.         </xsl:variable>
  6300.         <xsl:variable name="cVolume">
  6301.             <xsl:value-of select="count(b:Volume)"/>
  6302.         </xsl:variable>
  6303.         <xsl:variable name="cIssue">
  6304.             <xsl:value-of select="count(b:Issue)"/>
  6305.         </xsl:variable>
  6306.         <xsl:variable name="cPages">
  6307.             <xsl:value-of select="count(b:Pages)"/>
  6308.         </xsl:variable>
  6309.         <xsl:variable name ="cYear">
  6310.             <xsl:value-of select="count(b:Year)"/>
  6311.         </xsl:variable>
  6312.  
  6313.         <xsl:if test ="$cJournalName!=0">
  6314.             <xsl:value-of select="b:PeriodicalTitle"/>
  6315.             <xsl:choose>
  6316.                 <xsl:when test="$cVolume!=0 or $cIssue!=0 or $cPages!=0 or $cYear!=0">
  6317.                     <xsl:call-template name ="templ_prop_ListSeparator"/>
  6318.                 </xsl:when>
  6319.                 <xsl:otherwise>
  6320.                     <xsl:call-template name ="templ_prop_Dot"/>
  6321.                 </xsl:otherwise>
  6322.             </xsl:choose>
  6323.         </xsl:if>
  6324.     </xsl:template>
  6325.  
  6326.     <xsl:template name="BibDisplayVolumeJournal">
  6327.         <xsl:variable name="cVolume">
  6328.             <xsl:value-of select="count(b:Volume)"/>
  6329.         </xsl:variable>
  6330.         <xsl:variable name ="initValueOfVolume">
  6331.             <xsl:value-of select="b:Volume"/>
  6332.         </xsl:variable>
  6333.         <xsl:variable name="cIssue">
  6334.             <xsl:value-of select="count(b:Issue)"/>
  6335.         </xsl:variable>
  6336.         <xsl:variable name="cPages">
  6337.             <xsl:value-of select="count(b:Pages)"/>
  6338.         </xsl:variable>
  6339.         <xsl:variable name ="cYear">
  6340.             <xsl:value-of select="count(b:Year)"/>
  6341.         </xsl:variable>
  6342.  
  6343.         <xsl:choose>
  6344.             <xsl:when test ="$cVolume!=0">
  6345.                 <xsl:choose>
  6346.                     <xsl:when test="contains($initValueOfVolume,'-') or contains($initValueOfVolume,',') ">
  6347.                         <xsl:variable name="str_VolumesOfShortCap">
  6348.                             <xsl:call-template name="templ_str_VolumesOfShortCap"/>
  6349.                         </xsl:variable>
  6350.                         <xsl:variable name="prop_EnumSeaparator">
  6351.                             <xsl:call-template name="templ_prop_Space"/>
  6352.                         </xsl:variable>
  6353.                         <xsl:call-template name ="FindReplaceString">
  6354.                             <xsl:with-param name="originalString" select="string($str_VolumesOfShortCap)"/>
  6355.                             <xsl:with-param name="stringToBeReplaced" select="'%1 of %2'"/>
  6356.                             <xsl:with-param name="stringReplacement" select="$prop_EnumSeaparator"/>
  6357.                         </xsl:call-template>
  6358.  
  6359.                         <xsl:value-of select="b:Volume"/>
  6360.                     </xsl:when>
  6361.  
  6362.                     <xsl:when test="not(contains($initValueOfVolume,'-')) or not(contains($initValueOfVolume,','))">
  6363.                         <xsl:call-template name ="templ_prop_Space"/>
  6364.                         <xsl:variable name="str_VolumeShortUnCap">
  6365.                             <xsl:call-template name="templ_str_VolumeShortUnCap"/>
  6366.                         </xsl:variable>
  6367.                         <xsl:variable name="prop_EnumSeaparator">
  6368.                             <xsl:call-template name="templ_prop_Space"/>
  6369.                         </xsl:variable>
  6370.                         <xsl:call-template name ="FindReplaceString">
  6371.                             <xsl:with-param name="originalString" select="string($str_VolumeShortUnCap)"/>
  6372.                             <xsl:with-param name="stringToBeReplaced" select="' %1'"/>
  6373.                             <xsl:with-param name="stringReplacement" select="$prop_EnumSeaparator"/>
  6374.                         </xsl:call-template>
  6375.                         <xsl:value-of select="b:Volume"/>
  6376.                     </xsl:when>
  6377.                 </xsl:choose>
  6378.                 <xsl:choose>
  6379.                     <xsl:when test="$cPages!=0 or $cYear!=0 or $cIssue!=0">
  6380.                         <xsl:call-template name ="templ_prop_ListSeparator"/>
  6381.                     </xsl:when>
  6382.                     <xsl:otherwise>
  6383.                         <xsl:call-template name ="templ_prop_Dot"/>
  6384.                     </xsl:otherwise>
  6385.                 </xsl:choose>
  6386.             </xsl:when>
  6387.         </xsl:choose>
  6388.     </xsl:template>
  6389.  
  6390.     <xsl:template name="BibDisplayVolumeBook">
  6391.         <xsl:variable name="cVolume">
  6392.             <xsl:value-of select="count(b:Volume)"/>
  6393.         </xsl:variable>
  6394.         <xsl:variable name ="initValueOfVolume">
  6395.             <xsl:value-of select="b:Volume"/>
  6396.         </xsl:variable>
  6397.         <xsl:variable name="cEditor">
  6398.             <xsl:value-of select="count(b:Author/b:Editor/b:NameList/b:Person)" />
  6399.         </xsl:variable>
  6400.         <xsl:variable name="cAuthors">
  6401.             <xsl:value-of select="count(b:Author/b:Author/b:NameList/b:Person)" />
  6402.         </xsl:variable>
  6403.         <xsl:variable name="cCity">
  6404.             <xsl:value-of select="count(b:City)"/>
  6405.         </xsl:variable>
  6406.         <xsl:variable name="cStateProvince">
  6407.             <xsl:value-of select="count(b:StateProvince)"/>
  6408.         </xsl:variable>
  6409.         <xsl:variable name="cPublisher">
  6410.             <xsl:value-of select="count(b:Publisher)"/>
  6411.         </xsl:variable>
  6412.         <xsl:variable name="cPages">
  6413.             <xsl:value-of select="count(b:Pages)"/>
  6414.         </xsl:variable>
  6415.         <xsl:variable name ="cYear">
  6416.             <xsl:value-of select="count(b:Year)"/>
  6417.         </xsl:variable>
  6418.  
  6419.         <xsl:choose>
  6420.             <xsl:when test ="$cVolume!=0">
  6421.                 <xsl:choose>
  6422.                     <xsl:when test="contains($initValueOfVolume,'-') or contains($initValueOfVolume,',') ">
  6423.                         <xsl:variable name="str_VolumesOfShortCap">
  6424.                             <xsl:call-template name="templ_str_VolumesOfShortCap"/>
  6425.                         </xsl:variable>
  6426.                         <xsl:variable name="prop_EnumSeaparator">
  6427.                             <xsl:call-template name="templ_prop_Space"/>
  6428.                         </xsl:variable>
  6429.                         <xsl:call-template name ="FindReplaceString">
  6430.                             <xsl:with-param name="originalString" select="string($str_VolumesOfShortCap)"/>
  6431.                             <xsl:with-param name="stringToBeReplaced" select="'%1 of %2'"/>
  6432.                             <xsl:with-param name="stringReplacement" select="$prop_EnumSeaparator"/>
  6433.                         </xsl:call-template>
  6434.  
  6435.                         <xsl:value-of select="b:Volume"/>
  6436.                     </xsl:when>
  6437.  
  6438.                     <xsl:when test="not(contains($initValueOfVolume,'-')) or not(contains($initValueOfVolume,','))">
  6439.                         <xsl:call-template name ="templ_prop_Space"/>
  6440.                         <xsl:variable name="str_VolumeShortUnCap">
  6441.                             <xsl:call-template name="templ_str_VolumeShortUnCap"/>
  6442.                         </xsl:variable>
  6443.                         <xsl:variable name="prop_EnumSeaparator">
  6444.                             <xsl:call-template name="templ_prop_Space"/>
  6445.                         </xsl:variable>
  6446.                         <xsl:call-template name ="FindReplaceString">
  6447.                             <xsl:with-param name="originalString" select="string($str_VolumeShortUnCap)"/>
  6448.                             <xsl:with-param name="stringToBeReplaced" select="' %1'"/>
  6449.                             <xsl:with-param name="stringReplacement" select="$prop_EnumSeaparator"/>
  6450.                         </xsl:call-template>
  6451.                         <xsl:value-of select="b:Volume"/>
  6452.                     </xsl:when>
  6453.                 </xsl:choose>
  6454.                 <xsl:choose>
  6455.                     <xsl:when test="$cAuthors=0">
  6456.                         <xsl:choose>
  6457.                             <xsl:when test="$cCity!=0 or $cStateProvince!=0 or $cPublisher!=0 or $cYear!=0 or $cPages!=0">
  6458.                                 <xsl:call-template name ="templ_prop_ListSeparator"/>
  6459.                             </xsl:when>
  6460.                             <xsl:otherwise>
  6461.                                 <xsl:call-template name ="templ_prop_Dot"/>
  6462.                             </xsl:otherwise>
  6463.                         </xsl:choose>
  6464.                     </xsl:when>
  6465.                     <xsl:otherwise>
  6466.                         <xsl:choose>
  6467.                             <xsl:when test="$cEditor!=0 or $cCity!=0 or $cStateProvince!=0 or $cPublisher!=0 or $cYear!=0 or $cPages!=0">
  6468.                                 <xsl:call-template name ="templ_prop_ListSeparator"/>
  6469.                             </xsl:when>
  6470.                             <xsl:otherwise>
  6471.                                 <xsl:call-template name ="templ_prop_Dot"/>
  6472.                             </xsl:otherwise>
  6473.                         </xsl:choose>
  6474.                     </xsl:otherwise>
  6475.                 </xsl:choose>
  6476.             </xsl:when>
  6477.         </xsl:choose>
  6478.     </xsl:template>
  6479.  
  6480.     <xsl:template name="BibDisplayIssueJournal">
  6481.         <xsl:variable name="cIssue">
  6482.             <xsl:value-of select="count(b:Issue)"/>
  6483.         </xsl:variable>
  6484.         <xsl:variable name="cPages">
  6485.             <xsl:value-of select="count(b:Pages)"/>
  6486.         </xsl:variable>
  6487.         <xsl:variable name ="cYear">
  6488.             <xsl:value-of select="count(b:Year)"/>
  6489.         </xsl:variable>
  6490.         <xsl:choose>
  6491.             <xsl:when test ="$cIssue!=0">
  6492.                 <xsl:call-template name ="templ_prop_Space"/>
  6493.  
  6494.                 <xsl:variable name="str_NumberShortUnCap">
  6495.                     <xsl:call-template name="templ_str_NumberShortUnCap"/>
  6496.                 </xsl:variable>
  6497.                 <xsl:variable name="prop_EnumSeaparator">
  6498.                     <xsl:call-template name="templ_prop_Space"/>
  6499.                 </xsl:variable>
  6500.                 <xsl:call-template name ="FindReplaceString">
  6501.                     <xsl:with-param name="originalString" select="string($str_NumberShortUnCap)"/>
  6502.                     <xsl:with-param name="stringToBeReplaced" select="' %1'"/>
  6503.                     <xsl:with-param name="stringReplacement" select="$prop_EnumSeaparator"/>
  6504.                 </xsl:call-template>
  6505.                 <xsl:value-of select="b:Issue"/>
  6506.                 <xsl:choose>
  6507.                     <xsl:when test="$cPages!=0 or $cYear!=0">
  6508.                         <xsl:call-template name ="templ_prop_ListSeparator"/>
  6509.                     </xsl:when>
  6510.                     <xsl:otherwise>
  6511.                         <xsl:call-template name ="templ_prop_Dot"/>
  6512.                     </xsl:otherwise>
  6513.                 </xsl:choose>
  6514.             </xsl:when>
  6515.         </xsl:choose>
  6516.     </xsl:template>
  6517.  
  6518.     <xsl:variable name ="initValueOfPages">
  6519.         <xsl:value-of select="b:Pages"/>
  6520.     </xsl:variable>
  6521.  
  6522.     <xsl:variable name ="pages">
  6523.         <xsl:choose>
  6524.             <xsl:when test="contains($initValueOfPages, '-')">
  6525.                 <xsl:value-of select="concat('pp. ',$initValueOfPages)"/>
  6526.             </xsl:when>
  6527.             <xsl:when test="contains($initValueOfPages, ',')">
  6528.                 <xsl:value-of select="concat('pp. ',$initValueOfPages)"/>
  6529.             </xsl:when>
  6530.             <xsl:otherwise>
  6531.                 <xsl:value-of select="concat('p. ',$initValueOfPages)"/>
  6532.             </xsl:otherwise>
  6533.         </xsl:choose>
  6534.     </xsl:variable>
  6535.  
  6536.     <xsl:template name="BibDisplayPagesJournal">
  6537.         <xsl:variable name="cPages">
  6538.             <xsl:value-of select="count(b:Pages)"/>
  6539.         </xsl:variable>
  6540.         <xsl:variable name ="cMonth">
  6541.             <xsl:value-of select="count(b:Month)"/>
  6542.         </xsl:variable>
  6543.         <xsl:variable name ="cDay">
  6544.             <xsl:value-of select="count(b:Day)"/>
  6545.         </xsl:variable>
  6546.         <xsl:variable name ="cYear">
  6547.             <xsl:value-of select="count(b:Year)"/>
  6548.         </xsl:variable>
  6549.         <xsl:variable name ="pages">
  6550.             <xsl:value-of select="b:Pages"/>
  6551.         </xsl:variable>
  6552.         <xsl:if test ="$cPages!=0">
  6553.             <xsl:call-template name ="DisplayPageOrPages">
  6554.                 <xsl:with-param name="pages" select ="$pages"/>
  6555.             </xsl:call-template>
  6556.             <xsl:choose>
  6557.                 <xsl:when test="$cYear=0">
  6558.                     <xsl:call-template name ="templ_prop_Dot"/>
  6559.                 </xsl:when>
  6560.                 <xsl:otherwise>
  6561.                     <xsl:call-template name ="templ_prop_ListSeparator"/>
  6562.                 </xsl:otherwise>
  6563.             </xsl:choose>
  6564.         </xsl:if>
  6565.     </xsl:template>
  6566.  
  6567.     <xsl:template name="BibDisplayTitleConferenceProceedings">
  6568.         <xsl:variable name="cTitle">
  6569.             <xsl:value-of select="count(b:Title)"/>
  6570.         </xsl:variable>
  6571.         <xsl:variable name="cConferenceName">
  6572.             <xsl:value-of select="count(b:ConferenceName)"/>
  6573.         </xsl:variable>
  6574.         <xsl:variable name="cCity">
  6575.             <xsl:value-of select="count(b:City)"/>
  6576.         </xsl:variable>
  6577.         <xsl:variable name="cYear">
  6578.             <xsl:value-of select="count(b:Year)"/>
  6579.         </xsl:variable>
  6580.  
  6581.         <xsl:if test ="$cTitle!=0">
  6582.             <xsl:call-template name="templ_prop_OpenQuote"/>
  6583.             <xsl:call-template name="right-trim">
  6584.                 <xsl:with-param name ="s" select="b:Title"/>
  6585.             </xsl:call-template>
  6586.             <xsl:choose>
  6587.                 <xsl:when test ="$cConferenceName!=0 or $cCity!=0 or $cYear!=0">
  6588.                     <xsl:call-template name ="List_Separator_NoSpace"/>
  6589.                     <xsl:call-template name="templ_prop_CloseQuote"/>
  6590.                     <xsl:call-template name ="templ_prop_Space"/>
  6591.                 </xsl:when>
  6592.                 <xsl:otherwise>
  6593.                     <xsl:call-template name="templ_prop_CloseQuote"/>
  6594.                     <xsl:call-template name ="templ_prop_Dot"/>
  6595.                 </xsl:otherwise>
  6596.             </xsl:choose>
  6597.         </xsl:if>
  6598.     </xsl:template>
  6599.  
  6600.     <xsl:template name="BibDisplayConferenceName">
  6601.         <xsl:variable name="cConferenceName">
  6602.             <xsl:value-of select="count(b:ConferenceName)"/>
  6603.         </xsl:variable>
  6604.         <xsl:variable name="cCity">
  6605.             <xsl:value-of select="count(b:City)"/>
  6606.         </xsl:variable>
  6607.         <xsl:variable name="cYear">
  6608.             <xsl:value-of select="count(b:Year)"/>
  6609.         </xsl:variable>
  6610.  
  6611.         <xsl:variable name="str_InNameCap">
  6612.             <xsl:call-template name="templ_str_InUnCap"/>
  6613.         </xsl:variable>
  6614.         <xsl:variable name="prop_EnumSeaparator">
  6615.             <xsl:call-template name ="templ_prop_Space"/>
  6616.         </xsl:variable>
  6617.  
  6618.  
  6619.         <xsl:if test ="$cConferenceName!=0">
  6620.             <xsl:call-template name ="FindReplaceString">
  6621.                 <xsl:with-param name="originalString" select="string($str_InNameCap)"/>
  6622.                 <xsl:with-param name="stringToBeReplaced" select="' %1'"/>
  6623.                 <xsl:with-param name="stringReplacement" select="$prop_EnumSeaparator"/>
  6624.             </xsl:call-template>
  6625.             <xsl:call-template name ="templ_prop_Space"/>
  6626.             <i>
  6627.                 <xsl:value-of select="b:ConferenceName"/>
  6628.             </i>
  6629.             <xsl:choose>
  6630.                 <xsl:when test=" $cCity!=0 or $cYear!=0 ">
  6631.  
  6632.                     <xsl:call-template name ="templ_prop_ListSeparator"/>
  6633.                 </xsl:when>
  6634.                 <xsl:when test=" $cCity=0 and $cYear=0">
  6635.                     <xsl:call-template name ="templ_prop_Dot"/>
  6636.                 </xsl:when>
  6637.             </xsl:choose>
  6638.         </xsl:if>
  6639.     </xsl:template>
  6640.  
  6641.     <xsl:template name="BibDisplayBookTitle">
  6642.         <xsl:variable name="cBookTitle">
  6643.             <xsl:value-of select="count(b:BookTitle)"/>
  6644.         </xsl:variable>
  6645.         <xsl:variable name="cEdition">
  6646.             <xsl:value-of select="count(b:Edition)"/>
  6647.         </xsl:variable>
  6648.         <xsl:variable name="cVolume">
  6649.             <xsl:value-of select="count(b:Volume)"/>
  6650.         </xsl:variable>
  6651.         <xsl:variable name="cEditor">
  6652.             <xsl:value-of select="count(b:Author/b:Editor/b:NameList/b:Person)"/>
  6653.         </xsl:variable>
  6654.         <xsl:variable name ="cAuthor">
  6655.             <xsl:value-of select ="count(b:Author/b:Author/b:NameList/b:Person)"/>
  6656.         </xsl:variable>
  6657.         <xsl:variable name="cCity">
  6658.             <xsl:value-of select="count(b:City)"/>
  6659.         </xsl:variable>
  6660.         <xsl:variable name="cStateProvince">
  6661.             <xsl:value-of select="count(b:StateProvince)"/>
  6662.         </xsl:variable>
  6663.         <xsl:variable name="cPublisher">
  6664.             <xsl:value-of select="count(b:Publisher)"/>
  6665.         </xsl:variable>
  6666.         <xsl:variable name="cPages">
  6667.             <xsl:value-of select="count(b:Pages)"/>
  6668.         </xsl:variable>
  6669.         <xsl:variable name ="cYear">
  6670.             <xsl:value-of select="count(b:Year)"/>
  6671.         </xsl:variable>
  6672.  
  6673.         <xsl:variable name="str_InNameCap">
  6674.             <xsl:call-template name="templ_str_InUnCap"/>
  6675.         </xsl:variable>
  6676.         <xsl:variable name="prop_EnumSeaparator">
  6677.             <xsl:call-template name ="templ_prop_Space"/>
  6678.         </xsl:variable>
  6679.  
  6680.  
  6681.         <xsl:if test ="$cBookTitle!=0">
  6682.             <xsl:call-template name ="FindReplaceString">
  6683.                 <xsl:with-param name="originalString" select="string($str_InNameCap)"/>
  6684.                 <xsl:with-param name="stringToBeReplaced" select="' %1'"/>
  6685.                 <xsl:with-param name="stringReplacement" select="$prop_EnumSeaparator"/>
  6686.             </xsl:call-template>
  6687.             <xsl:call-template name ="templ_prop_Space"/>
  6688.             <i>
  6689.                 <xsl:value-of select="b:BookTitle"/>
  6690.             </i>
  6691.             <xsl:choose>
  6692.                 <xsl:when test="$cAuthor=0">
  6693.                     <xsl:choose>
  6694.                         <xsl:when test="$cEdition!=0 or $cVolume!=0 or $cCity!=0 or $cStateProvince!=0 or $cPublisher!=0 or $cYear!=0 or $cPages!=0">
  6695.                             <xsl:call-template name ="templ_prop_ListSeparator"/>
  6696.                         </xsl:when>
  6697.                         <xsl:otherwise>
  6698.                             <xsl:call-template name ="templ_prop_Dot"/>
  6699.                         </xsl:otherwise>
  6700.                     </xsl:choose>
  6701.                 </xsl:when>
  6702.                 <xsl:otherwise>
  6703.                     <xsl:choose>
  6704.                         <xsl:when test="$cEdition!=0 or $cVolume!=0 or $cEditor!=0 or $cCity!=0 or $cStateProvince!=0 or $cPublisher!=0 or $cYear!=0 or $cPages!=0">
  6705.                             <xsl:call-template name ="templ_prop_ListSeparator"/>
  6706.                         </xsl:when>
  6707.                         <xsl:otherwise>
  6708.                             <xsl:call-template name ="templ_prop_Dot"/>
  6709.                         </xsl:otherwise>
  6710.                     </xsl:choose>
  6711.                 </xsl:otherwise>
  6712.             </xsl:choose>
  6713.         </xsl:if>
  6714.     </xsl:template>
  6715.  
  6716.     <xsl:template name="BibDisplayStateProvinceBook">
  6717.         <xsl:variable name="cStateProvince">
  6718.             <xsl:value-of select="count(b:StateProvince)"/>
  6719.         </xsl:variable>
  6720.         <xsl:variable name="cPublisher">
  6721.             <xsl:value-of select="count(b:Publisher)"/>
  6722.         </xsl:variable>
  6723.         <xsl:variable name="cYear">
  6724.             <xsl:value-of select="count(b:Year)"/>
  6725.         </xsl:variable>
  6726.         <xsl:variable name="cPages">
  6727.             <xsl:value-of select="count(b:Pages)"/>
  6728.         </xsl:variable>
  6729.         <xsl:choose>
  6730.             <xsl:when test ="$cStateProvince!=0">
  6731.                 <xsl:value-of select="b:StateProvince"/>
  6732.                 <xsl:choose>
  6733.                     <xsl:when test="$cPublisher>0">
  6734.                         <xsl:call-template name ="templ_prop_EnumSeparator"/>
  6735.                         <xsl:call-template name ="templ_prop_Space"/>
  6736.                     </xsl:when>
  6737.                     <xsl:when test="$cPublisher=0 and ($cYear!=0 or $cPages!=0)">
  6738.                         <xsl:call-template name ="templ_prop_ListSeparator"/>
  6739.                     </xsl:when>
  6740.                     <xsl:when test="$cPublisher=0 and $cYear=0 and $cPages=0 " >
  6741.                         <xsl:call-template name ="templ_prop_Dot"/>
  6742.                     </xsl:when>
  6743.                 </xsl:choose>
  6744.             </xsl:when>
  6745.         </xsl:choose>
  6746.     </xsl:template>
  6747.  
  6748.     <xsl:template name="BibDisplayStateProvinceBC">
  6749.         <xsl:variable name="cStateProvince">
  6750.             <xsl:value-of select="count(b:StateProvince)"/>
  6751.         </xsl:variable>
  6752.         <xsl:variable name="cPublisher">
  6753.             <xsl:value-of select="count(b:Publisher)"/>
  6754.         </xsl:variable>
  6755.         <xsl:variable name="cYear">
  6756.             <xsl:value-of select="count(b:Year)"/>
  6757.         </xsl:variable>
  6758.         <xsl:variable name="cPages">
  6759.             <xsl:value-of select="count(b:Pages)"/>
  6760.         </xsl:variable>
  6761.         <xsl:choose>
  6762.             <xsl:when test ="$cStateProvince!=0">
  6763.                 <xsl:value-of select="b:StateProvince"/>
  6764.                 <xsl:choose>
  6765.                     <xsl:when test="$cPublisher>0">
  6766.                         <xsl:call-template name ="templ_prop_EnumSeparator"/>
  6767.                         <xsl:call-template name ="templ_prop_Space"/>
  6768.                     </xsl:when>
  6769.                     <xsl:when test="$cPublisher=0 and ($cYear!=0 or $cPages!=0)">
  6770.                         <xsl:call-template name ="templ_prop_ListSeparator"/>
  6771.                     </xsl:when>
  6772.                     <xsl:when test="$cPublisher=0 and $cYear=0 and $cPages=0 " >
  6773.                         <xsl:call-template name ="templ_prop_Dot"/>
  6774.                     </xsl:when>
  6775.                 </xsl:choose>
  6776.             </xsl:when>
  6777.         </xsl:choose>
  6778.     </xsl:template>
  6779.  
  6780.     <xsl:template name="BibDisplayYearBC">
  6781.         <xsl:variable name="cYear">
  6782.             <xsl:value-of select="count(b:Year)"/>
  6783.         </xsl:variable>
  6784.         <xsl:variable name="cPages">
  6785.             <xsl:value-of select="count(b:Pages)"/>
  6786.         </xsl:variable>
  6787.         <xsl:choose>
  6788.             <xsl:when test ="$cYear=1">
  6789.                 <xsl:value-of select = "b:Year"/>
  6790.  
  6791.                 <xsl:choose>
  6792.  
  6793.                     <xsl:when test="$cPages>0">
  6794.                         <xsl:call-template name ="templ_prop_ListSeparator"/>
  6795.                     </xsl:when>
  6796.                     <xsl:otherwise>
  6797.  
  6798.                         <xsl:call-template name ="templ_prop_Dot"/>
  6799.                     </xsl:otherwise>
  6800.  
  6801.                 </xsl:choose>
  6802.  
  6803.  
  6804.             </xsl:when>
  6805.         </xsl:choose>
  6806.         <xsl:call-template name="templ_prop_Space"/>
  6807.     </xsl:template>
  6808.  
  6809.     <xsl:template name="BibDisplayCityBookSection">
  6810.         <xsl:variable name="cCity">
  6811.             <xsl:value-of select="count(b:City)"/>
  6812.         </xsl:variable>
  6813.         <xsl:variable name="cPublisher">
  6814.             <xsl:value-of select="count(b:Publisher)"/>
  6815.         </xsl:variable>
  6816.         <xsl:variable name="cStateProvince">
  6817.             <xsl:value-of select="count(b:StateProvince)"/>
  6818.         </xsl:variable>
  6819.         <xsl:variable name="cYear">
  6820.             <xsl:value-of select="count(b:Year)"/>
  6821.         </xsl:variable>
  6822.         <xsl:variable name="cPages">
  6823.             <xsl:value-of select="count(b:Pages)"/>
  6824.         </xsl:variable>
  6825.         <xsl:choose>
  6826.             <xsl:when test ="$cCity!=0">
  6827.                 <xsl:value-of select="b:City"/>
  6828.                 <xsl:choose>
  6829.                     <xsl:when test="$cPublisher!=0 or $cStateProvince!=0 or $cYear!=0 or $cPages!=0 " >
  6830.                         <xsl:call-template name ="templ_prop_ListSeparator"/>
  6831.                     </xsl:when>
  6832.                     <xsl:when test="$cPublisher=0 and $cStateProvince=0 and $cYear=0 and $cPages=0 " >
  6833.                         <xsl:call-template name ="templ_prop_Dot"/>
  6834.                     </xsl:when>
  6835.  
  6836.                 </xsl:choose>
  6837.             </xsl:when>
  6838.         </xsl:choose>
  6839.  
  6840.     </xsl:template>
  6841.  
  6842.     <xsl:template name="BibDisplayCity">
  6843.         <xsl:variable name="cCity">
  6844.             <xsl:value-of select="count(b:City)"/>
  6845.         </xsl:variable>
  6846.         <xsl:variable name="cPublisher">
  6847.             <xsl:value-of select="count(b:Publisher)"/>
  6848.         </xsl:variable>
  6849.         <xsl:variable name="cStateProvince">
  6850.             <xsl:value-of select="count(b:StateProvince)"/>
  6851.         </xsl:variable>
  6852.         <xsl:variable name="cYear">
  6853.             <xsl:value-of select="count(b:Year)"/>
  6854.         </xsl:variable>
  6855.         <xsl:variable name="cPages">
  6856.             <xsl:value-of select="count(b:Pages)"/>
  6857.         </xsl:variable>
  6858.         <xsl:choose>
  6859.             <xsl:when test ="$cCity!=0 ">
  6860.                 <xsl:value-of select="b:City"/>
  6861.                 <xsl:choose>
  6862.                     <xsl:when test="$cPublisher!=0 and $cStateProvince=0">
  6863.                         <xsl:call-template name ="templ_prop_EnumSeparator"/>
  6864.                     </xsl:when>
  6865.                     <xsl:when test="$cStateProvince!=0 or $cYear!=0 or $cPages!=0">
  6866.                         <xsl:call-template name ="templ_prop_ListSeparator"/>
  6867.                     </xsl:when>
  6868.                     <xsl:when test="$cStateProvince=0 and $cYear=0 and $cPages=0 " >
  6869.                         <xsl:call-template name ="templ_prop_Dot"/>
  6870.                     </xsl:when>
  6871.                 </xsl:choose>
  6872.             </xsl:when>
  6873.         </xsl:choose>
  6874.     </xsl:template>
  6875.  
  6876.     <xsl:template name="BibDisplayTitlePatent">
  6877.         <xsl:variable name="cTitle">
  6878.             <xsl:value-of select="count(b:Title)"/>
  6879.         </xsl:variable>
  6880.         <xsl:if test ="$cTitle!=0">
  6881.             <xsl:call-template name="templ_prop_OpenQuote"/>
  6882.             <xsl:call-template name="right-trim">
  6883.                 <xsl:with-param name ="s" select="b:Title"/>
  6884.             </xsl:call-template>
  6885.             <xsl:call-template name="templ_prop_CloseQuote"/>
  6886.             <xsl:call-template name ="templ_prop_Dot"/>
  6887.             <xsl:call-template name="templ_prop_Space"/>
  6888.         </xsl:if>
  6889.     </xsl:template>
  6890.  
  6891.  
  6892.  
  6893.     <xsl:template name ="BibDisplayPages">
  6894.         <xsl:variable name="cPages">
  6895.             <xsl:value-of select="count(b:Pages)"/>
  6896.         </xsl:variable>
  6897.         <xsl:variable name ="pages">
  6898.             <xsl:value-of select="b:Pages"/>
  6899.         </xsl:variable>
  6900.         <xsl:if test ="$cPages!=0">
  6901.             <xsl:call-template name ="DisplayPageOrPages">
  6902.                 <xsl:with-param name="pages" select ="$pages"/>
  6903.             </xsl:call-template>
  6904.             <xsl:call-template name ="templ_prop_Dot"/>
  6905.         </xsl:if>
  6906.     </xsl:template>
  6907.  
  6908.     <xsl:template name="BibDisplayCityReport">
  6909.         <xsl:variable name="cCity">
  6910.             <xsl:value-of select="count(b:City)"/>
  6911.         </xsl:variable>
  6912.         <xsl:variable name="cYear">
  6913.             <xsl:value-of select="count(b:Year)"/>
  6914.         </xsl:variable>
  6915.         <xsl:choose>
  6916.             <xsl:when test ="$cCity!=0">
  6917.                 <xsl:value-of select="b:City"/>
  6918.                 <xsl:choose>
  6919.                     <xsl:when test ="$cYear=0">
  6920.                         <xsl:call-template name = "templ_prop_Dot"/>
  6921.                     </xsl:when>
  6922.                     <xsl:otherwise>
  6923.                         <xsl:call-template name ="templ_prop_ListSeparator"/>
  6924.                     </xsl:otherwise>
  6925.                 </xsl:choose>
  6926.             </xsl:when>
  6927.         </xsl:choose>
  6928.     </xsl:template>
  6929.  
  6930.     <xsl:template name ="BibDisplayCountryRegionFilm">
  6931.         <xsl:variable name="cCountryRegion">
  6932.             <xsl:value-of select="count(b:CountryRegion)"/>
  6933.         </xsl:variable>
  6934.         <xsl:variable name="cProductionCompany">
  6935.             <xsl:value-of select="count(b:ProductionCompany)"/>
  6936.         </xsl:variable>
  6937.         <xsl:variable name="cYear">
  6938.             <xsl:value-of select="count(b:Year)"/>
  6939.         </xsl:variable>
  6940.         <xsl:choose>
  6941.             <xsl:when test ="$cCountryRegion!=0">
  6942.                 <xsl:value-of select="b:CountryRegion"/>
  6943.                 <xsl:choose>
  6944.                     <xsl:when test ="$cProductionCompany=0">
  6945.                         <xsl:call-template name = "templ_prop_Dot"/>
  6946.                     </xsl:when>
  6947.                     <xsl:otherwise>
  6948.                         <xsl:call-template name ="templ_prop_EnumSeparator"/>
  6949.                     </xsl:otherwise>
  6950.                 </xsl:choose>
  6951.             </xsl:when>
  6952.         </xsl:choose>
  6953.     </xsl:template>
  6954.  
  6955.     <xsl:template name="BibDisplayConfCityConfProc">
  6956.         <xsl:variable name="cCity">
  6957.             <xsl:value-of select="count(b:City)"/>
  6958.         </xsl:variable>
  6959.         <xsl:variable name="cYear">
  6960.             <xsl:value-of select="count(b:Year)"/>
  6961.         </xsl:variable>
  6962.         <xsl:choose>
  6963.             <xsl:when test ="$cCity!=0">
  6964.                 <xsl:value-of select="b:City"/>
  6965.                 <xsl:choose>
  6966.                     <xsl:when test="$cYear>0">
  6967.                         <xsl:call-template name ="templ_prop_ListSeparator"/>
  6968.                     </xsl:when>
  6969.                     <xsl:otherwise>
  6970.                         <xsl:call-template name ="templ_prop_Dot"/>
  6971.                     </xsl:otherwise>
  6972.                 </xsl:choose>
  6973.             </xsl:when>
  6974.         </xsl:choose>
  6975.     </xsl:template>
  6976.  
  6977.  
  6978.     <xsl:template name="BibDisplayPublisher">
  6979.         <xsl:variable name="cPublisher">
  6980.             <xsl:value-of select="count(b:Publisher)"/>
  6981.         </xsl:variable>
  6982.         <xsl:variable name="cCity">
  6983.             <xsl:value-of select="count(b:City)"/>
  6984.         </xsl:variable>
  6985.         <xsl:variable name="cYear">
  6986.             <xsl:value-of select="count(b:Year)"/>
  6987.         </xsl:variable>
  6988.         <xsl:choose>
  6989.             <xsl:when test ="$cPublisher!=0">
  6990.                 <xsl:value-of select="b:Publisher"/>
  6991.                 <xsl:choose>
  6992.                     <xsl:when test=" $cCity!=0 or $cYear!=0 ">
  6993.                         <xsl:call-template name ="templ_prop_ListSeparator"/>
  6994.                     </xsl:when>
  6995.                     <xsl:when test="$cCity=0 and $cYear=0">
  6996.                         <xsl:call-template name ="templ_prop_Dot"/>
  6997.                     </xsl:when>
  6998.                 </xsl:choose>
  6999.             </xsl:when>
  7000.         </xsl:choose>
  7001.     </xsl:template>
  7002.  
  7003.     <xsl:template name="BibDisplayPublisherBC">
  7004.         <xsl:variable name="cPublisher">
  7005.             <xsl:value-of select="count(b:Publisher)"/>
  7006.         </xsl:variable>
  7007.         <xsl:variable name="cYear">
  7008.             <xsl:value-of select="count(b:Year)"/>
  7009.         </xsl:variable>
  7010.         <xsl:variable name="cPages">
  7011.             <xsl:value-of select="count(b:Pages)"/>
  7012.         </xsl:variable>
  7013.         <xsl:choose>
  7014.             <xsl:when test ="$cPublisher!=0">
  7015.                 <xsl:value-of select="b:Publisher"/>
  7016.                 <xsl:choose>
  7017.                     <xsl:when test=" $cYear!=0 or $cPages!=0 " >
  7018.                         <xsl:call-template name ="templ_prop_ListSeparator"/>
  7019.                     </xsl:when>
  7020.                     <xsl:when test=" $cYear=0 and $cPages=0 " >
  7021.                         <xsl:call-template name ="templ_prop_Dot"/>
  7022.                     </xsl:when>
  7023.                 </xsl:choose>
  7024.             </xsl:when>
  7025.         </xsl:choose>
  7026.     </xsl:template>
  7027.  
  7028.     <xsl:template name="BibDisplayEdition">
  7029.         <xsl:variable name="cEdition">
  7030.             <xsl:value-of select="count(b:Edition)"/>
  7031.         </xsl:variable>
  7032.         <xsl:variable name="cVolume">
  7033.             <xsl:value-of select="count(b:Volume)"/>
  7034.         </xsl:variable>
  7035.         <xsl:variable name="cEditor">
  7036.             <xsl:value-of select="count(b:Author/b:Editor/b:NameList/b:Person)"/>
  7037.         </xsl:variable>
  7038.         <xsl:variable name ="cAuthors">
  7039.             <xsl:value-of select ="count(b:Author/b:Author/b:NameList/b:Person)"/>
  7040.         </xsl:variable>
  7041.         <xsl:variable name="cCity">
  7042.             <xsl:value-of select="count(b:City)"/>
  7043.         </xsl:variable>
  7044.         <xsl:variable name="cStateProvince">
  7045.             <xsl:value-of select="count(b:StateProvince)"/>
  7046.         </xsl:variable>
  7047.         <xsl:variable name="cPublisher">
  7048.             <xsl:value-of select="count(b:Publisher)"/>
  7049.         </xsl:variable>
  7050.         <xsl:variable name="cPages">
  7051.             <xsl:value-of select="count(b:Pages)"/>
  7052.         </xsl:variable>
  7053.         <xsl:variable name ="cYear">
  7054.             <xsl:value-of select="count(b:Year)"/>
  7055.         </xsl:variable>
  7056.  
  7057.         <xsl:choose>
  7058.             <xsl:when test ="$cEdition!=0">
  7059.                 <xsl:value-of select="b:Edition"/>
  7060.                 <xsl:call-template name ="templ_prop_Space"/>
  7061.                 <xsl:call-template name="templ_str_EditorShortUnCap"/>
  7062.                 <xsl:choose>
  7063.                     <xsl:when test="$cAuthors=0">
  7064.                         <xsl:choose>
  7065.                             <xsl:when test="$cVolume!=0 or $cCity!=0 or $cStateProvince!=0 or $cPublisher!=0 or $cYear!=0 or $cPages!=0">
  7066.                                 <xsl:call-template name ="templ_prop_ListSeparator"/>
  7067.                             </xsl:when>
  7068.                         </xsl:choose>
  7069.                     </xsl:when>
  7070.                     <xsl:otherwise>
  7071.                         <xsl:choose>
  7072.                             <xsl:when test="$cVolume!=0 or $cEditor!=0 or $cCity!=0 or $cStateProvince!=0 or $cPublisher!=0 or $cYear!=0 or $cPages!=0">
  7073.                                 <xsl:call-template name ="templ_prop_ListSeparator"/>
  7074.                             </xsl:when>
  7075.                         </xsl:choose>
  7076.                     </xsl:otherwise>
  7077.                 </xsl:choose>
  7078.             </xsl:when>
  7079.         </xsl:choose>
  7080.     </xsl:template>
  7081.  
  7082.  
  7083.     <xsl:template name="BibDisplayAccessedDates">
  7084.         <xsl:variable name="cYearAccessed">
  7085.             <xsl:value-of select="count(b:YearAccessed)"/>
  7086.         </xsl:variable>
  7087.         <xsl:variable name="cMonthAccessed">
  7088.             <xsl:value-of select="count(b:MonthAccessed)"/>
  7089.         </xsl:variable>
  7090.         <xsl:variable name="cDayAccessed">
  7091.             <xsl:value-of select="count(b:DayAccessed)"/>
  7092.         </xsl:variable>
  7093.  
  7094.         <xsl:if test ="$cYearAccessed!=0">
  7095.  
  7096.             <xsl:variable name ="str_AccessedCap">
  7097.                 <xsl:call-template name ="templ_str_AccessedCap"/>
  7098.             </xsl:variable>
  7099.             <xsl:variable name ="prop_Space">
  7100.                 <xsl:call-template name ="templ_prop_Space"/>
  7101.             </xsl:variable>
  7102.             <xsl:choose>
  7103.                 <xsl:when test="$cDayAccessed!=0">
  7104.                     <xsl:choose>
  7105.                         <xsl:when test="$cMonthAccessed!=0">
  7106.                             <xsl:if test="$cYearAccessed!=0">
  7107.                                 <xsl:call-template name ="templ_prop_Space"/>
  7108.                                 <xsl:call-template name ="templ_prop_SecondaryOpen"/>
  7109.                                 <xsl:call-template name ="FindReplaceString">
  7110.                                     <xsl:with-param name="originalString" select="string($str_AccessedCap)"/>
  7111.                                     <xsl:with-param name="stringToBeReplaced" select="' %1'"/>
  7112.                                     <xsl:with-param name="stringReplacement" select="$prop_Space"/>
  7113.                                 </xsl:call-template>
  7114.                                 <xsl:value-of select="b:DayAccessed"/>
  7115.                                 <xsl:call-template name ="templ_prop_Space"/>
  7116.                                 <xsl:value-of select="b:MonthAccessed"/>
  7117.                                 <xsl:call-template name ="templ_prop_Space"/>
  7118.                                 <xsl:value-of select="b:YearAccessed"/>
  7119.                                 <xsl:call-template name ="templ_prop_SecondaryClose"/>
  7120.                             </xsl:if>
  7121.                         </xsl:when>
  7122.                         <xsl:otherwise>
  7123.                             <xsl:call-template name ="templ_prop_Space"/>
  7124.                             <xsl:call-template name ="templ_prop_SecondaryOpen"/>
  7125.                             <xsl:call-template name ="FindReplaceString">
  7126.                                 <xsl:with-param name="originalString" select="string($str_AccessedCap)"/>
  7127.                                 <xsl:with-param name="stringToBeReplaced" select="' %1'"/>
  7128.                                 <xsl:with-param name="stringReplacement" select="$prop_Space"/>
  7129.                             </xsl:call-template>
  7130.                             <xsl:value-of select="b:YearAccessed"/>
  7131.                             <xsl:call-template name ="templ_prop_SecondaryClose"/>
  7132.                         </xsl:otherwise>
  7133.                     </xsl:choose>
  7134.                 </xsl:when>
  7135.                 <xsl:otherwise>
  7136.                     <xsl:choose>
  7137.                         <xsl:when test="$cMonthAccessed!=0">
  7138.                             <xsl:if test="$cYearAccessed!=0">
  7139.                                 <xsl:call-template name ="templ_prop_Space"/>
  7140.                                 <xsl:call-template name ="templ_prop_SecondaryOpen"/>
  7141.                                 <xsl:call-template name ="FindReplaceString">
  7142.                                     <xsl:with-param name="originalString" select="string($str_AccessedCap)"/>
  7143.                                     <xsl:with-param name="stringToBeReplaced" select="' %1'"/>
  7144.                                     <xsl:with-param name="stringReplacement" select="$prop_Space"/>
  7145.                                 </xsl:call-template>
  7146.                                 <xsl:value-of select="b:MonthAccessed"/>
  7147.                                 <xsl:call-template name ="templ_prop_Space"/>
  7148.                                 <xsl:value-of select="b:YearAccessed"/>
  7149.                                 <xsl:call-template name ="templ_prop_SecondaryClose"/>
  7150.                             </xsl:if>
  7151.                         </xsl:when>
  7152.                         <xsl:otherwise>
  7153.                             <xsl:call-template name ="templ_prop_Space"/>
  7154.                             <xsl:call-template name ="templ_prop_SecondaryOpen"/>
  7155.                             <xsl:call-template name ="FindReplaceString">
  7156.                                 <xsl:with-param name="originalString" select="string($str_AccessedCap)"/>
  7157.                                 <xsl:with-param name="stringToBeReplaced" select="' %1'"/>
  7158.                                 <xsl:with-param name="stringReplacement" select="$prop_Space"/>
  7159.                             </xsl:call-template>
  7160.                             <xsl:value-of select="b:YearAccessed"/>
  7161.                             <xsl:call-template name ="templ_prop_SecondaryClose"/>
  7162.                         </xsl:otherwise>
  7163.                     </xsl:choose>
  7164.                 </xsl:otherwise>
  7165.             </xsl:choose>
  7166.             <xsl:call-template name ="templ_prop_Dot"/>
  7167.         </xsl:if>
  7168.     </xsl:template>
  7169.  
  7170.  
  7171.     <xsl:template name="BibDisplayPatent">
  7172.         <xsl:variable name="cPatent">
  7173.             <xsl:value-of select="count(b:PatentNumber)"/>
  7174.         </xsl:variable>
  7175.         <xsl:variable name ="str_PatentCap">
  7176.             <xsl:call-template name ="templ_str_PatentCap"/>
  7177.         </xsl:variable>
  7178.         <xsl:variable name ="prop_Space">
  7179.             <xsl:call-template name ="templ_prop_Space"/>
  7180.         </xsl:variable>
  7181.  
  7182.         <xsl:variable name ="cMonth">
  7183.             <xsl:value-of select="count(b:Month)"/>
  7184.         </xsl:variable>
  7185.         <xsl:variable name ="cDay">
  7186.             <xsl:value-of select="count(b:Day)"/>
  7187.         </xsl:variable>
  7188.         <xsl:variable name ="cYear">
  7189.             <xsl:value-of select="count(b:Year)"/>
  7190.         </xsl:variable>
  7191.  
  7192.         <xsl:choose>
  7193.             <xsl:when test="$cPatent!=0">
  7194.                 <xsl:call-template name ="FindReplaceString">
  7195.                     <xsl:with-param name="originalString" select="string($str_PatentCap)"/>
  7196.                     <xsl:with-param name="stringToBeReplaced" select="' %1'"/>
  7197.                     <xsl:with-param name="stringReplacement" select="$prop_Space"/>
  7198.                 </xsl:call-template>
  7199.                 <xsl:value-of select="b:PatentNumber"/>
  7200.                 <xsl:choose>
  7201.                     <xsl:when test="$cYear=0">
  7202.                         <xsl:call-template name ="templ_prop_Dot"/>
  7203.                     </xsl:when>
  7204.                     <xsl:otherwise>
  7205.                         <xsl:call-template name ="templ_prop_ListSeparator"/>
  7206.                         <xsl:call-template name ="templ_prop_Space"/>
  7207.                     </xsl:otherwise>
  7208.                 </xsl:choose>
  7209.             </xsl:when>
  7210.         </xsl:choose>
  7211.     </xsl:template>
  7212.  
  7213.     <xsl:template name ="BibDisplayDayMonthYearInterview">
  7214.         <xsl:variable name ="cMonth">
  7215.             <xsl:value-of select="count(b:Month)"/>
  7216.         </xsl:variable>
  7217.         <xsl:variable name ="cDay">
  7218.             <xsl:value-of select="count(b:Day)"/>
  7219.         </xsl:variable>
  7220.         <xsl:variable name ="cYear">
  7221.             <xsl:value-of select="count(b:Year)"/>
  7222.         </xsl:variable>
  7223.         <xsl:choose>
  7224.             <xsl:when test ="$cDay!=0">
  7225.                 <xsl:choose>
  7226.                     <xsl:when test ="$cMonth!=0">
  7227.                         <xsl:choose>
  7228.                             <xsl:when test ="$cYear!=0">
  7229.                                 <xsl:value-of select="b:Day"/>
  7230.                                 <xsl:call-template name ="templ_prop_Space"/>
  7231.                                 <xsl:value-of select="b:Month"/>
  7232.                                 <xsl:call-template name ="templ_prop_Space"/>
  7233.                                 <xsl:value-of select="b:Year"/>
  7234.                                 <xsl:call-template name ="templ_prop_Dot"/>
  7235.                             </xsl:when>
  7236.                         </xsl:choose>
  7237.                     </xsl:when>
  7238.                     <xsl:otherwise>
  7239.                         <xsl:if test ="$cYear!=0">
  7240.                             <xsl:value-of select="b:Year"/>
  7241.                             <xsl:call-template name ="templ_prop_Dot"/>
  7242.                         </xsl:if>
  7243.                     </xsl:otherwise>
  7244.                 </xsl:choose>
  7245.             </xsl:when>
  7246.             <xsl:otherwise>
  7247.                 <xsl:choose>
  7248.                     <xsl:when test ="$cYear!=0">
  7249.                         <xsl:choose>
  7250.                             <xsl:when test ="$cMonth!=0">
  7251.                                 <xsl:value-of select="b:Month"/>
  7252.                                 <xsl:call-template name ="templ_prop_Space"/>
  7253.                                 <xsl:value-of select="b:Year"/>
  7254.                                 <xsl:call-template name ="templ_prop_Dot"/>
  7255.                             </xsl:when>
  7256.                             <xsl:when test="$cDay!=0 and $cYear!=0">
  7257.                                 <xsl:value-of select="b:Year"/>
  7258.                                 <xsl:call-template name ="templ_prop_Dot"/>
  7259.                             </xsl:when>
  7260.                             <xsl:otherwise>
  7261.                                 <xsl:value-of select="b:Year"/>
  7262.                                 <xsl:call-template name ="templ_prop_Dot"/>
  7263.                             </xsl:otherwise>
  7264.                         </xsl:choose>
  7265.                     </xsl:when>
  7266.  
  7267.                 </xsl:choose>
  7268.             </xsl:otherwise>
  7269.         </xsl:choose>
  7270.     </xsl:template>
  7271.  
  7272.     <xsl:template name="BibDisplayTitleWebSite">
  7273.         <xsl:variable name="cTitle">
  7274.             <xsl:value-of select="count(b:Title)"/>
  7275.         </xsl:variable>
  7276.         <xsl:if test ="$cTitle!=0">
  7277.             <xsl:call-template name="templ_prop_OpenQuote"/>
  7278.             <xsl:call-template name="right-trim">
  7279.                 <xsl:with-param name ="s" select="b:Title"/>
  7280.             </xsl:call-template>
  7281.             <xsl:call-template name ="List_Separator_NoSpace"/>
  7282.             <xsl:call-template name="templ_prop_CloseQuote"/>
  7283.             <xsl:call-template name ="templ_prop_Space"/>
  7284.         </xsl:if>
  7285.     </xsl:template>
  7286.  
  7287.     <xsl:template name ="BibDisplayDayMonthYearPatent">
  7288.         <xsl:variable name ="cMonth">
  7289.             <xsl:value-of select="count(b:Month)"/>
  7290.         </xsl:variable>
  7291.         <xsl:variable name ="cDay">
  7292.             <xsl:value-of select="count(b:Day)"/>
  7293.         </xsl:variable>
  7294.         <xsl:variable name ="cYear">
  7295.             <xsl:value-of select="count(b:Year)"/>
  7296.         </xsl:variable>
  7297.  
  7298.         <xsl:choose>
  7299.             <xsl:when test ="$cDay!=0">
  7300.                 <xsl:choose>
  7301.                     <xsl:when test ="$cMonth!=0">
  7302.                         <xsl:choose>
  7303.                             <xsl:when test ="$cYear!=0">
  7304.                                 <xsl:value-of select="b:Day"/>
  7305.                                 <xsl:call-template name ="templ_prop_Space"/>
  7306.                                 <xsl:value-of select="b:Month"/>
  7307.                                 <xsl:call-template name ="templ_prop_Space"/>
  7308.                                 <xsl:value-of select="b:Year"/>
  7309.                                 <xsl:call-template name ="templ_prop_Dot"/>
  7310.                             </xsl:when>
  7311.                         </xsl:choose>
  7312.                     </xsl:when>
  7313.                     <xsl:otherwise>
  7314.                         <xsl:if test ="$cYear!=0">
  7315.                             <xsl:value-of select="b:Year"/>
  7316.                             <xsl:call-template name ="templ_prop_Dot"/>
  7317.                         </xsl:if>
  7318.                     </xsl:otherwise>
  7319.  
  7320.                 </xsl:choose>
  7321.             </xsl:when>
  7322.  
  7323.             <xsl:when test="$cMonth!=0">
  7324.                 <xsl:choose>
  7325.                     <xsl:when test ="$cYear!=0">
  7326.                         <xsl:value-of select="b:Month"/>
  7327.                         <xsl:call-template name ="templ_prop_Space"/>
  7328.                         <xsl:value-of select="b:Year"/>
  7329.                         <xsl:call-template name ="templ_prop_Dot"/>
  7330.                     </xsl:when>
  7331.                 </xsl:choose>
  7332.             </xsl:when>
  7333.  
  7334.             <xsl:when test="$cDay!=0">
  7335.                 <xsl:choose>
  7336.                     <xsl:when test="$cYear!=0">
  7337.                         <xsl:value-of select="b:Year"/>
  7338.                         <xsl:call-template name ="templ_prop_Dot"/>
  7339.                     </xsl:when>
  7340.                 </xsl:choose>
  7341.             </xsl:when>
  7342.  
  7343.             <xsl:when test="$cYear!=0">
  7344.                 <xsl:value-of select="b:Year"/>
  7345.                 <xsl:call-template name ="templ_prop_Dot"/>
  7346.             </xsl:when>
  7347.         </xsl:choose>
  7348.     </xsl:template>
  7349.  
  7350.     <xsl:template name="BibDisplayURL">
  7351.         <xsl:variable name="cURL">
  7352.             <xsl:value-of select="count(b:URL)"/>
  7353.         </xsl:variable>
  7354.         <xsl:if test ="$cURL!=0">
  7355.             <xsl:text>Available:</xsl:text>
  7356.             <xsl:call-template name ="templ_prop_Space"/>
  7357.             <xsl:value-of select="b:URL"/>
  7358.             <xsl:call-template name ="templ_prop_Dot"/>
  7359.         </xsl:if>
  7360.     </xsl:template>
  7361.  
  7362.     <xsl:template name="BibDisplayYearReport">
  7363.         <xsl:variable name="cYear">
  7364.             <xsl:value-of select="count(b:Year)"/>
  7365.         </xsl:variable>
  7366.         <xsl:choose>
  7367.             <xsl:when test ="$cYear=1">
  7368.                 <xsl:value-of select = "b:Year"/>
  7369.                 <xsl:call-template name = "templ_prop_Dot"/>
  7370.             </xsl:when>
  7371.         </xsl:choose>
  7372.     </xsl:template>
  7373.  
  7374.     <xsl:template name="HandleHypenInAuthor">
  7375.         <xsl:param name="authour"/>
  7376.         <xsl:param name="RetVal"/>
  7377.         <xsl:variable name="prop_APA_FromToDash">
  7378.             <xsl:call-template name="templ_prop_FromToDash"/>
  7379.         </xsl:variable>
  7380.         <xsl:if test="not(starts-with($authour,$prop_APA_FromToDash)) and $RetVal=''">
  7381.             <xsl:value-of select="substring($authour,1,1)"/>
  7382.             <xsl:call-template name ="templ_prop_Dot"/>
  7383.         </xsl:if>
  7384.         <xsl:choose>
  7385.             <xsl:when test="contains($authour,$prop_APA_FromToDash)">
  7386.                 <xsl:call-template name="HandleHypenInAuthor">
  7387.                     <xsl:with-param name="authour" select="substring-after($authour,$prop_APA_FromToDash)"/>
  7388.                     <xsl:with-param name="RetVal">
  7389.                         <xsl:value-of select="$RetVal"/>
  7390.                         <xsl:value-of select="$prop_APA_FromToDash"/>
  7391.                         <xsl:value-of select="substring(substring-after($authour,$prop_APA_FromToDash),1,1)"/>
  7392.                         <xsl:call-template name ="templ_prop_Dot"/>
  7393.                     </xsl:with-param>
  7394.                 </xsl:call-template>
  7395.             </xsl:when>
  7396.             <xsl:otherwise>
  7397.                 <xsl:value-of select="$RetVal"/>
  7398.             </xsl:otherwise>
  7399.         </xsl:choose>
  7400.     </xsl:template>
  7401.  
  7402.     <xsl:template name="HandleSPaceHypenInAuthor">
  7403.         <xsl:param name ="author"/>
  7404.         <xsl:choose>
  7405.             <xsl:when test="contains($author,'&#32;')">
  7406.                 <xsl:call-template name ="HandleHypenInAuthor">
  7407.                     <xsl:with-param name ="authour">
  7408.                         <xsl:value-of select ="substring-before($author,'&#32;')"/>
  7409.                     </xsl:with-param>
  7410.                 </xsl:call-template>
  7411.                 <xsl:call-template name ="templ_prop_Space"/>
  7412.                 <xsl:variable name ="result">
  7413.                     <xsl:call-template name ="left-trim">
  7414.                         <xsl:with-param name ="s" select="substring-after($author,'&#32;')"/>
  7415.                     </xsl:call-template>
  7416.                 </xsl:variable>
  7417.                 <xsl:call-template name ="HandleSPaceHypenInAuthor">
  7418.                     <xsl:with-param name="author">
  7419.                         <xsl:value-of select ="$result"/>
  7420.                     </xsl:with-param>
  7421.                 </xsl:call-template>
  7422.             </xsl:when>
  7423.             <xsl:otherwise>
  7424.                 <xsl:call-template name ="HandleHypenInAuthor">
  7425.                     <xsl:with-param name ="authour">
  7426.                         <xsl:value-of select ="$author"/>
  7427.                     </xsl:with-param>
  7428.                 </xsl:call-template>
  7429.             </xsl:otherwise>
  7430.         </xsl:choose>
  7431.     </xsl:template>
  7432.  
  7433.  
  7434.     <xsl:template match ="b:Source">
  7435.         <xsl:variable name="LCID">
  7436.             <xsl:choose>
  7437.                 <xsl:when test="b:LCID='0' or b:LCID='' or not(b:LCID)">
  7438.                     <xsl:value-of select="/*/b:Locals/b:DefaultLCID"/>
  7439.                 </xsl:when>
  7440.                 <xsl:otherwise>
  7441.                     <xsl:value-of select="b:LCID"/>
  7442.                 </xsl:otherwise>
  7443.             </xsl:choose>
  7444.         </xsl:variable>
  7445.  
  7446.  
  7447.         <xsl:variable name="cAuthors" >
  7448.             <xsl:value-of select="count(b:Author/b:Author/b:NameList/b:Person)" />
  7449.         </xsl:variable>
  7450.         <xsl:variable name="cCorporateAuthors">
  7451.             <xsl:value-of select="count(b:Author/b:Author/b:Corporate)" />
  7452.         </xsl:variable>
  7453.         <xsl:variable name="cEditor">
  7454.             <xsl:value-of select="count(b:Author/b:Editor/b:NameList/b:Person)" />
  7455.         </xsl:variable>
  7456.         <xsl:variable name="cCity">
  7457.             <xsl:value-of select="count(b:City)"/>
  7458.         </xsl:variable>
  7459.         <xsl:variable name="cPublisher">
  7460.             <xsl:value-of select="count(b:Publisher)"/>
  7461.         </xsl:variable>
  7462.         <xsl:variable name="cYear">
  7463.             <xsl:value-of select="count(b:Year)"/>
  7464.         </xsl:variable>
  7465.         <xsl:variable name="cYearAccessed">
  7466.             <xsl:value-of select="count(b:YearAccessed)"/>
  7467.         </xsl:variable>
  7468.         <xsl:variable name="cURL">
  7469.             <xsl:value-of select="count(b:URL)"/>
  7470.         </xsl:variable>
  7471.  
  7472.         <xsl:variable name="SourceType">
  7473.             <xsl:value-of select="b:SourceType"/>
  7474.         </xsl:variable>
  7475.  
  7476.         <xsl:choose>
  7477.             <xsl:when test="$SourceType = 'Book'">
  7478.                 <xsl:element name="tr">
  7479.                     <xsl:element name="td">
  7480.                         <xsl:attribute name="valign">
  7481.                             <xsl:value-of select="'top'"/>
  7482.                         </xsl:attribute>
  7483.                         <xsl:attribute name="width">
  7484.                             <xsl:value-of select="'1%'"/>
  7485.                         </xsl:attribute>
  7486.                         <xsl:element name="p">
  7487.                             <xsl:call-template name = "BibAddParagraphAttributes"/>
  7488.                             <xsl:call-template name="BibRefOrder"/>
  7489.                         </xsl:element>
  7490.                     </xsl:element>
  7491.                     <xsl:element name="td">
  7492.                         <xsl:attribute name="style">
  7493.                             <xsl:value-of select="'text-align:left'"/>
  7494.                         </xsl:attribute>
  7495.                         <xsl:attribute name="valign">
  7496.                             <xsl:value-of select="'top'"/>
  7497.                         </xsl:attribute>
  7498.                         <xsl:element name="p">
  7499.                             <xsl:call-template name = "BibAddParagraphAttributes"/>
  7500.                             <xsl:call-template name ="BibDisplayAuthorBook">
  7501.                                 <xsl:with-param name ="DisplayEditorIfAuthorUnavailale" select="'true'" />
  7502.                             </xsl:call-template>
  7503.                             <xsl:call-template name = "BibDisplayTitleBook"/>
  7504.                             <xsl:call-template name = "BibDisplayEdition"/>
  7505.                             <xsl:call-template name="BibDisplayVolumeBook"/>
  7506.                             <xsl:call-template name="BibDisplayEditorBook"/>
  7507.  
  7508.                             <xsl:call-template name = "BibDisplayCity"/>
  7509.                             <xsl:call-template name = "BibDisplayStateProvinceBook"/>
  7510.  
  7511.                             <xsl:call-template name = "BibDisplayPublisherBC"/>
  7512.                             <xsl:call-template name = "BibDisplayYearBC"/>
  7513.                             <xsl:call-template name ="BibDisplayPages"/>
  7514.                         </xsl:element>
  7515.                     </xsl:element>
  7516.                 </xsl:element>
  7517.             </xsl:when>
  7518.             <xsl:when test="$SourceType = 'BookSection'">
  7519.                 <xsl:element name="tr">
  7520.                     <xsl:element name="td">
  7521.                         <xsl:attribute name="valign">
  7522.                             <xsl:value-of select="'top'"/>
  7523.                         </xsl:attribute>
  7524.                         <xsl:attribute name="width">
  7525.                             <xsl:value-of select="'1%'"/>
  7526.                         </xsl:attribute>
  7527.                         <xsl:element name="p">
  7528.                             <xsl:call-template name = "BibAddParagraphAttributes"/>
  7529.                             <xsl:call-template name="BibRefOrder"/>
  7530.                         </xsl:element>
  7531.                     </xsl:element>
  7532.                     <xsl:element name="td">
  7533.                         <xsl:attribute name="style">
  7534.                             <xsl:value-of select="'text-align:left'"/>
  7535.                         </xsl:attribute>
  7536.                         <xsl:attribute name="valign">
  7537.                             <xsl:value-of select="'top'"/>
  7538.                         </xsl:attribute>
  7539.                         <xsl:element name="p">
  7540.                             <xsl:call-template name = "BibAddParagraphAttributes"/>
  7541.                             <xsl:call-template name = "BibDisplayAuthorBookSection">
  7542.                                 <xsl:with-param name ="DisplayEditorIfAuthorUnavailale" select="'true'" />
  7543.                             </xsl:call-template>
  7544.                             <xsl:call-template name = "BibDisplayTitleBC"/>
  7545.                             <xsl:call-template name ="BibDisplayBookTitle"/>
  7546.                             <xsl:call-template name = "BibDisplayEdition"/>
  7547.                             <xsl:call-template name="BibDisplayVolumeBook"/>
  7548.                             <xsl:call-template name="BibDisplayEditor"/>
  7549.                             <xsl:call-template name = "BibDisplayCityBookSection"/>
  7550.                             <xsl:call-template name = "BibDisplayStateProvinceBC"/>
  7551.                             <xsl:call-template name = "BibDisplayPublisherBC"/>
  7552.                             <xsl:call-template name = "BibDisplayYearBC"/>
  7553.                             <xsl:call-template name ="BibDisplayPages"/>
  7554.                         </xsl:element>
  7555.                     </xsl:element>
  7556.                 </xsl:element>
  7557.             </xsl:when>
  7558.  
  7559.             <xsl:when test="$SourceType = 'DocumentFromInternetSite'">
  7560.                 <xsl:element name="tr">
  7561.                     <xsl:element name="td">
  7562.                         <xsl:attribute name="valign">
  7563.                             <xsl:value-of select="'top'"/>
  7564.                         </xsl:attribute>
  7565.                         <xsl:attribute name="width">
  7566.                             <xsl:value-of select="'1%'"/>
  7567.                         </xsl:attribute>
  7568.                         <xsl:element name="p">
  7569.                             <xsl:call-template name = "BibAddParagraphAttributes"/>
  7570.                             <xsl:call-template name="BibRefOrder"/>
  7571.                         </xsl:element>
  7572.                     </xsl:element>
  7573.                     <xsl:element name="td">
  7574.                         <xsl:attribute name="style">
  7575.                             <xsl:value-of select="'text-align:left'"/>
  7576.                         </xsl:attribute>
  7577.                         <xsl:attribute name="valign">
  7578.                             <xsl:value-of select="'top'"/>
  7579.                         </xsl:attribute>
  7580.                         <xsl:element name="p">
  7581.                             <xsl:call-template name = "BibAddParagraphAttributes"/>
  7582.                             <xsl:call-template name = "BibDisplayAuthorWebsite"/>
  7583.                             <xsl:call-template name ="BibDisplayTitleWebSite"/>
  7584.                             <xsl:call-template name ="BibDisplayProductionCompanywebsite"/>
  7585.                             <xsl:call-template name = "BibDisplayDayMonthYearWebSiteJournal"/>
  7586.                             <xsl:call-template name ="BibDisplayStrOnline"/>
  7587.                             <xsl:call-template name ="BibDisplayURL"/>
  7588.                             <xsl:call-template name ="BibDisplayAccessedDates"/>
  7589.                         </xsl:element>
  7590.                     </xsl:element>
  7591.                 </xsl:element>
  7592.             </xsl:when>
  7593.  
  7594.             <xsl:when test="$SourceType = 'JournalArticle'">
  7595.                 <xsl:element name="tr">
  7596.                     <xsl:element name="td">
  7597.                         <xsl:attribute name="valign">
  7598.                             <xsl:value-of select="'top'"/>
  7599.                         </xsl:attribute>
  7600.                         <xsl:attribute name="width">
  7601.                             <xsl:value-of select="'1%'"/>
  7602.                         </xsl:attribute>
  7603.                         <xsl:element name="p">
  7604.                             <xsl:call-template name = "BibAddParagraphAttributes"/>
  7605.                             <xsl:call-template name="BibRefOrder"/>
  7606.                         </xsl:element>
  7607.                     </xsl:element>
  7608.                     <xsl:element name="td">
  7609.                         <xsl:attribute name="style">
  7610.                             <xsl:value-of select="'text-align:left'"/>
  7611.                         </xsl:attribute>
  7612.                         <xsl:attribute name="valign">
  7613.                             <xsl:value-of select="'top'"/>
  7614.                         </xsl:attribute>
  7615.                         <xsl:element name="p">
  7616.                             <xsl:call-template name = "BibAddParagraphAttributes"/>
  7617.                             <xsl:call-template name = "BibDisplayAuthorJArtcicle">
  7618.                                 <xsl:with-param name ="DisplayEditorIfAuthorUnavailale" select="'true'" />
  7619.                             </xsl:call-template>
  7620.                             <xsl:call-template name = "BibDisplayTitleJournal"/>
  7621.                             <i>
  7622.                                 <xsl:call-template name ="BibDisplayJournalName"/>
  7623.                             </i>
  7624.                             <xsl:call-template name="BibDisplayVolumeJournal"/>
  7625.                             <xsl:call-template name ="BibDisplayIssueJournal"/>
  7626.                             <xsl:call-template name ="BibDisplayPagesJournal"/>
  7627.                             <xsl:call-template name = "BibDisplayDayMonthYearWebSiteJournal"/>
  7628.                         </xsl:element>
  7629.                     </xsl:element>
  7630.                 </xsl:element>
  7631.             </xsl:when>
  7632.  
  7633.             <xsl:when test="$SourceType = 'ArticleInAPeriodical'">
  7634.                 <xsl:element name="tr">
  7635.                     <xsl:element name="td">
  7636.                         <xsl:attribute name="valign">
  7637.                             <xsl:value-of select="'top'"/>
  7638.                         </xsl:attribute>
  7639.                         <xsl:attribute name="width">
  7640.                             <xsl:value-of select="'1%'"/>
  7641.                         </xsl:attribute>
  7642.                         <xsl:element name="p">
  7643.                             <xsl:call-template name = "BibAddParagraphAttributes"/>
  7644.                             <xsl:call-template name="BibRefOrder"/>
  7645.                         </xsl:element>
  7646.                     </xsl:element>
  7647.                     <xsl:element name="td">
  7648.                         <xsl:attribute name="style">
  7649.                             <xsl:value-of select="'text-align:left'"/>
  7650.                         </xsl:attribute>
  7651.                         <xsl:attribute name="valign">
  7652.                             <xsl:value-of select="'top'"/>
  7653.                         </xsl:attribute>
  7654.                         <xsl:element name="p">
  7655.                             <xsl:call-template name = "BibAddParagraphAttributes"/>
  7656.                             <xsl:call-template name = "BibDisplayAuthorJArtcicle">
  7657.                                 <xsl:with-param name ="DisplayEditorIfAuthorUnavailale" select="'true'" />
  7658.                             </xsl:call-template>
  7659.                             <xsl:call-template name = "BibDisplayTitleAP"/>
  7660.                             <i>
  7661.                                 <xsl:call-template name ="BibDisplayJournalNameAP"/>
  7662.                             </i>
  7663.                             <xsl:call-template name="BibDisplayVolumeJournal"/>
  7664.                             <xsl:call-template name ="BibDisplayIssueJournal"/>
  7665.                             <xsl:call-template name="BibDisplayPagesJournal"/>
  7666.                             <xsl:call-template name = "BibDisplayDayMonthYearWebSiteJournal"/>
  7667.                         </xsl:element>
  7668.                     </xsl:element>
  7669.                 </xsl:element>
  7670.             </xsl:when>
  7671.  
  7672.             <xsl:when test="$SourceType = 'ConferenceProceedings'">
  7673.                 <xsl:element name="tr">
  7674.                     <xsl:element name="td">
  7675.                         <xsl:attribute name="valign">
  7676.                             <xsl:value-of select="'top'"/>
  7677.                         </xsl:attribute>
  7678.                         <xsl:attribute name="width">
  7679.                             <xsl:value-of select="'1%'"/>
  7680.                         </xsl:attribute>
  7681.                         <xsl:element name="p">
  7682.                             <xsl:call-template name = "BibAddParagraphAttributes"/>
  7683.                             <xsl:call-template name="BibRefOrder"/>
  7684.                         </xsl:element>
  7685.                     </xsl:element>
  7686.                     <xsl:element name="td">
  7687.                         <xsl:attribute name="style">
  7688.                             <xsl:value-of select="'text-align:left'"/>
  7689.                         </xsl:attribute>
  7690.                         <xsl:attribute name="valign">
  7691.                             <xsl:value-of select="'top'"/>
  7692.                         </xsl:attribute>
  7693.                         <xsl:element name="p">
  7694.                             <xsl:call-template name = "BibAddParagraphAttributes"/>
  7695.                             <xsl:call-template name = "BibDisplayAuthorConPr"/>
  7696.                             <xsl:call-template name ="BibDisplayTitleConferenceProceedings"/>
  7697.                             <xsl:call-template name="BibDisplayConferenceName" />
  7698.                             <xsl:call-template name ="BibDisplayConfCityConfProc"/>
  7699.                             <xsl:call-template name ="BibDisplayYear"/>
  7700.                         </xsl:element>
  7701.                     </xsl:element>
  7702.                 </xsl:element>
  7703.             </xsl:when>
  7704.  
  7705.             <xsl:when test="$SourceType = 'Report'">
  7706.                 <xsl:element name="tr">
  7707.                     <xsl:element name="td">
  7708.                         <xsl:attribute name="valign">
  7709.                             <xsl:value-of select="'top'"/>
  7710.                         </xsl:attribute>
  7711.                         <xsl:attribute name="width">
  7712.                             <xsl:value-of select="'1%'"/>
  7713.                         </xsl:attribute>
  7714.                         <xsl:element name="p">
  7715.                             <xsl:call-template name = "BibAddParagraphAttributes"/>
  7716.                             <xsl:call-template name="BibRefOrder"/>
  7717.                         </xsl:element>
  7718.                     </xsl:element>
  7719.                     <xsl:element name="td">
  7720.                         <xsl:attribute name="style">
  7721.                             <xsl:value-of select="'text-align:left'"/>
  7722.                         </xsl:attribute>
  7723.                         <xsl:attribute name="valign">
  7724.                             <xsl:value-of select="'top'"/>
  7725.                         </xsl:attribute>
  7726.                         <xsl:element name="p">
  7727.                             <xsl:call-template name = "BibAddParagraphAttributes"/>
  7728.                             <xsl:call-template name ="BibDisplayAuthorReport"/>
  7729.                             <xsl:call-template name ="BibDisplayTitleReport"/>
  7730.                             <xsl:call-template name ="BibDisplayPublisher"/>
  7731.                             <xsl:call-template name ="BibDisplayCityReport"/>
  7732.                             <xsl:call-template name ="BibDisplayYearReport"/>
  7733.                         </xsl:element>
  7734.                     </xsl:element>
  7735.                 </xsl:element>
  7736.             </xsl:when>
  7737.  
  7738.             <xsl:when test="$SourceType = 'Art'">
  7739.                 <xsl:element name="tr">
  7740.                     <xsl:element name="td">
  7741.                         <xsl:attribute name="valign">
  7742.                             <xsl:value-of select="'top'"/>
  7743.                         </xsl:attribute>
  7744.                         <xsl:attribute name="width">
  7745.                             <xsl:value-of select="'1%'"/>
  7746.                         </xsl:attribute>
  7747.                         <xsl:element name="p">
  7748.                             <xsl:call-template name = "BibAddParagraphAttributes"/>
  7749.                             <xsl:call-template name="BibRefOrder"/>
  7750.                         </xsl:element>
  7751.                     </xsl:element>
  7752.                     <xsl:element name="td">
  7753.                         <xsl:attribute name="style">
  7754.                             <xsl:value-of select="'text-align:left'"/>
  7755.                         </xsl:attribute>
  7756.                         <xsl:attribute name="valign">
  7757.                             <xsl:value-of select="'top'"/>
  7758.                         </xsl:attribute>
  7759.                         <xsl:element name="p">
  7760.                             <xsl:call-template name = "BibAddParagraphAttributes"/>
  7761.                             <xsl:call-template name ="BibDisplayArtist"/>
  7762.                             <i>
  7763.                                 <xsl:call-template name ="BibDisplayTitle"/>
  7764.                             </i>
  7765.                             <xsl:call-template name ="strArt"/>
  7766.                             <xsl:call-template name ="BibDisplayInstitutionArt"/>
  7767.                             <xsl:call-template name ="BibDisplayYear"/>
  7768.                         </xsl:element>
  7769.                     </xsl:element>
  7770.                 </xsl:element>
  7771.             </xsl:when>
  7772.  
  7773.             <xsl:when test="$SourceType = 'SoundRecording'">
  7774.                 <xsl:element name="tr">
  7775.                     <xsl:element name="td">
  7776.                         <xsl:attribute name="valign">
  7777.                             <xsl:value-of select="'top'"/>
  7778.                         </xsl:attribute>
  7779.                         <xsl:attribute name="width">
  7780.                             <xsl:value-of select="'1%'"/>
  7781.                         </xsl:attribute>
  7782.                         <xsl:element name="p">
  7783.                             <xsl:call-template name = "BibAddParagraphAttributes"/>
  7784.                             <xsl:call-template name="BibRefOrder"/>
  7785.                         </xsl:element>
  7786.                     </xsl:element>
  7787.                     <xsl:element name="td">
  7788.                         <xsl:attribute name="style">
  7789.                             <xsl:value-of select="'text-align:left'"/>
  7790.                         </xsl:attribute>
  7791.                         <xsl:attribute name="valign">
  7792.                             <xsl:value-of select="'top'"/>
  7793.                         </xsl:attribute>
  7794.                         <xsl:element name="p">
  7795.                             <xsl:call-template name = "BibAddParagraphAttributes"/>
  7796.                             <xsl:call-template name ="BibDisplayAuthorSoundRec"/>
  7797.                             <i>
  7798.                                 <xsl:call-template name ="BibDisplayTitle"/>
  7799.                             </i>
  7800.                             <xsl:call-template name ="BibDisplayStrSoundRecording"/>
  7801.                             <xsl:call-template name ="BibDisplayProductionCompanySRec"/>
  7802.                             <xsl:call-template name ="BibDisplayYearSoundrecording"/>
  7803.                         </xsl:element>
  7804.                     </xsl:element>
  7805.                 </xsl:element>
  7806.             </xsl:when>
  7807.  
  7808.             <xsl:when test="$SourceType = 'Performance'">
  7809.                 <xsl:element name="tr">
  7810.                     <xsl:element name="td">
  7811.                         <xsl:attribute name="valign">
  7812.                             <xsl:value-of select="'top'"/>
  7813.                         </xsl:attribute>
  7814.                         <xsl:attribute name="width">
  7815.                             <xsl:value-of select="'1%'"/>
  7816.                         </xsl:attribute>
  7817.                         <xsl:element name="p">
  7818.                             <xsl:call-template name = "BibAddParagraphAttributes"/>
  7819.                             <xsl:call-template name="BibRefOrder"/>
  7820.                         </xsl:element>
  7821.                     </xsl:element>
  7822.                     <xsl:element name="td">
  7823.                         <xsl:attribute name="style">
  7824.                             <xsl:value-of select="'text-align:left'"/>
  7825.                         </xsl:attribute>
  7826.                         <xsl:attribute name="valign">
  7827.                             <xsl:value-of select="'top'"/>
  7828.                         </xsl:attribute>
  7829.                         <xsl:element name="p">
  7830.                             <xsl:call-template name = "BibAddParagraphAttributes"/>
  7831.                             <xsl:call-template name = "BibDisplayAuthorPerformance"/>
  7832.                             <i>
  7833.                                 <xsl:call-template name ="BibDisplayTitlePerformance"/>
  7834.                             </i>
  7835.                             <xsl:call-template name="strPerformance"/>
  7836.                             <xsl:call-template name ="BibDisplayProductionCompanyPerformance"/>
  7837.                             <xsl:call-template name ="BibDisplayYear"/>
  7838.                         </xsl:element>
  7839.                     </xsl:element>
  7840.                 </xsl:element>
  7841.             </xsl:when>
  7842.  
  7843.             <xsl:when test="$SourceType = 'InternetSite'">
  7844.                 <xsl:element name="tr">
  7845.                     <xsl:element name="td">
  7846.                         <xsl:attribute name="valign">
  7847.                             <xsl:value-of select="'top'"/>
  7848.                         </xsl:attribute>
  7849.                         <xsl:attribute name="width">
  7850.                             <xsl:value-of select="'1%'"/>
  7851.                         </xsl:attribute>
  7852.                         <xsl:element name="p">
  7853.                             <xsl:call-template name = "BibAddParagraphAttributes"/>
  7854.                             <xsl:call-template name="BibRefOrder"/>
  7855.                         </xsl:element>
  7856.                     </xsl:element>
  7857.                     <xsl:element name="td">
  7858.                         <xsl:attribute name="style">
  7859.                             <xsl:value-of select="'text-align:left'"/>
  7860.                         </xsl:attribute>
  7861.                         <xsl:attribute name="valign">
  7862.                             <xsl:value-of select="'top'"/>
  7863.                         </xsl:attribute>
  7864.                         <xsl:element name="p">
  7865.                             <xsl:call-template name = "BibAddParagraphAttributes"/>
  7866.                             <xsl:call-template name = "BibDisplayAuthorWebsite"/>
  7867.                             <xsl:call-template name ="BibDisplayTitleWebSite"/>
  7868.                             <xsl:call-template name ="BibDisplayProductionCompanywebsite"/>
  7869.                             <xsl:call-template name = "BibDisplayDayMonthYearWebSiteJournal"/>
  7870.                             <xsl:call-template name ="BibDisplayStrOnline"/>
  7871.                             <xsl:call-template name ="BibDisplayURL"/>
  7872.                             <xsl:call-template name ="BibDisplayAccessedDates"/>
  7873.                         </xsl:element>
  7874.                     </xsl:element>
  7875.                 </xsl:element>
  7876.             </xsl:when>
  7877.  
  7878.  
  7879.             <xsl:when test="$SourceType = 'Interview'">
  7880.                 <xsl:element name="tr">
  7881.                     <xsl:element name="td">
  7882.                         <xsl:attribute name="valign">
  7883.                             <xsl:value-of select="'top'"/>
  7884.                         </xsl:attribute>
  7885.                         <xsl:attribute name="width">
  7886.                             <xsl:value-of select="'1%'"/>
  7887.                         </xsl:attribute>
  7888.                         <xsl:element name="p">
  7889.                             <xsl:call-template name = "BibAddParagraphAttributes"/>
  7890.                             <xsl:call-template name="BibRefOrder"/>
  7891.                         </xsl:element>
  7892.                     </xsl:element>
  7893.                     <xsl:element name="td">
  7894.                         <xsl:attribute name="style">
  7895.                             <xsl:value-of select="'text-align:left'"/>
  7896.                         </xsl:attribute>
  7897.                         <xsl:attribute name="valign">
  7898.                             <xsl:value-of select="'top'"/>
  7899.                         </xsl:attribute>
  7900.                         <xsl:element name="p">
  7901.                             <xsl:call-template name = "BibAddParagraphAttributes"/>
  7902.                             <xsl:call-template name = "BibDisplayAuthorInterview"/>
  7903.                             <i>
  7904.                                 <xsl:call-template name ="BibDisplayTitleInt"/>
  7905.                             </i>
  7906.                             <xsl:call-template name="BibDisplayStrInterview"/>
  7907.                             <xsl:call-template name ="BibDisplayDayMonthYearInterview"/>
  7908.                         </xsl:element>
  7909.                     </xsl:element>
  7910.                 </xsl:element>
  7911.             </xsl:when>
  7912.  
  7913.             <xsl:when test="$SourceType = 'Patent'">
  7914.                 <xsl:element name="tr">
  7915.                     <xsl:element name="td">
  7916.                         <xsl:attribute name="valign">
  7917.                             <xsl:value-of select="'top'"/>
  7918.                         </xsl:attribute>
  7919.                         <xsl:attribute name="width">
  7920.                             <xsl:value-of select="'1%'"/>
  7921.                         </xsl:attribute>
  7922.                         <xsl:element name="p">
  7923.                             <xsl:call-template name = "BibAddParagraphAttributes"/>
  7924.                             <xsl:call-template name="BibRefOrder"/>
  7925.                         </xsl:element>
  7926.                     </xsl:element>
  7927.                     <xsl:element name="td">
  7928.                         <xsl:attribute name="style">
  7929.                             <xsl:value-of select="'text-align:left'"/>
  7930.                         </xsl:attribute>
  7931.                         <xsl:attribute name="valign">
  7932.                             <xsl:value-of select="'top'"/>
  7933.                         </xsl:attribute>
  7934.                         <xsl:element name="p">
  7935.                             <xsl:call-template name = "BibAddParagraphAttributes"/>
  7936.                             <xsl:call-template name = "BibDisplayAuthorPatent"/>
  7937.                             <xsl:call-template name ="BibDisplayTitlePatent"/>
  7938.                             <xsl:call-template name ="BibDisplayCountryRegionPatent"/>
  7939.                             <xsl:call-template name="BibDisplayPatent"/>
  7940.                             <xsl:call-template name ="BibDisplayDayMonthYearPatent"/>
  7941.                         </xsl:element>
  7942.                     </xsl:element>
  7943.                 </xsl:element>
  7944.             </xsl:when>
  7945.  
  7946.             <xsl:when test="$SourceType = 'Film'">
  7947.                 <xsl:element name="tr">
  7948.                     <xsl:element name="td">
  7949.                         <xsl:attribute name="valign">
  7950.                             <xsl:value-of select="'top'"/>
  7951.                         </xsl:attribute>
  7952.                         <xsl:attribute name="width">
  7953.                             <xsl:value-of select="'1%'"/>
  7954.                         </xsl:attribute>
  7955.                         <xsl:element name="p">
  7956.                             <xsl:call-template name = "BibAddParagraphAttributes"/>
  7957.                             <xsl:call-template name="BibRefOrder"/>
  7958.                         </xsl:element>
  7959.                     </xsl:element>
  7960.                     <xsl:element name="td">
  7961.                         <xsl:attribute name="style">
  7962.                             <xsl:value-of select="'text-align:left'"/>
  7963.                         </xsl:attribute>
  7964.                         <xsl:attribute name="valign">
  7965.                             <xsl:value-of select="'top'"/>
  7966.                         </xsl:attribute>
  7967.                         <xsl:element name="p">
  7968.                             <xsl:call-template name = "BibAddParagraphAttributes"/>
  7969.                             <xsl:call-template name ="BibDisplayDirector"/>
  7970.                             <i>
  7971.                                 <xsl:call-template name ="BibDisplayTitle"/>
  7972.                             </i>
  7973.                             <xsl:call-template name ="BibDisplayStrFilm"/>
  7974.                             <xsl:call-template name ="BibDisplayCountryRegionFilm"/>
  7975.                             <xsl:call-template name ="BibDisplayProductionCompany"/>
  7976.                             <xsl:call-template name ="BibDisplayYear"/>
  7977.                         </xsl:element>
  7978.                     </xsl:element>
  7979.                 </xsl:element>
  7980.             </xsl:when>
  7981.  
  7982.             <xsl:when test="$SourceType = 'Case'">
  7983.                 <xsl:element name="tr">
  7984.                     <xsl:element name="td">
  7985.                         <xsl:attribute name="valign">
  7986.                             <xsl:value-of select="'top'"/>
  7987.                         </xsl:attribute>
  7988.                         <xsl:attribute name="width">
  7989.                             <xsl:value-of select="'1%'"/>
  7990.                         </xsl:attribute>
  7991.                         <xsl:element name="p">
  7992.                             <xsl:call-template name = "BibAddParagraphAttributes"/>
  7993.                             <xsl:call-template name="BibRefOrder"/>
  7994.                         </xsl:element>
  7995.                     </xsl:element>
  7996.                     <xsl:element name="td">
  7997.                         <xsl:attribute name="style">
  7998.                             <xsl:value-of select="'text-align:left'"/>
  7999.                         </xsl:attribute>
  8000.                         <xsl:attribute name="valign">
  8001.                             <xsl:value-of select="'top'"/>
  8002.                         </xsl:attribute>
  8003.                         <xsl:element name="p">
  8004.                             <xsl:call-template name = "BibAddParagraphAttributes"/>
  8005.                             <i>
  8006.                                 <xsl:call-template name ="BibDisplayTitleCase"/>
  8007.                             </i>
  8008.                             <xsl:call-template name ="BibDisplayYearCase"/>
  8009.                         </xsl:element>
  8010.                     </xsl:element>
  8011.                 </xsl:element>
  8012.             </xsl:when>
  8013.  
  8014.             <xsl:when test="$SourceType = 'ElectronicSource'">
  8015.                 <xsl:element name="tr">
  8016.                     <xsl:element name="td">
  8017.                         <xsl:attribute name="valign">
  8018.                             <xsl:value-of select="'top'"/>
  8019.                         </xsl:attribute>
  8020.                         <xsl:attribute name="width">
  8021.                             <xsl:value-of select="'1%'"/>
  8022.                         </xsl:attribute>
  8023.                         <xsl:element name="p">
  8024.                             <xsl:call-template name = "BibAddParagraphAttributes"/>
  8025.                             <xsl:call-template name="BibRefOrder"/>
  8026.                         </xsl:element>
  8027.                     </xsl:element>
  8028.                     <xsl:element name="td">
  8029.                         <xsl:attribute name="style">
  8030.                             <xsl:value-of select="'text-align:left'"/>
  8031.                         </xsl:attribute>
  8032.                         <xsl:attribute name="valign">
  8033.                             <xsl:value-of select="'top'"/>
  8034.                         </xsl:attribute>
  8035.                         <xsl:element name="p">
  8036.                             <xsl:call-template name = "BibAddParagraphAttributes"/>
  8037.                             <xsl:call-template name ="BibDisplayAuthorReport"/>
  8038.                             <xsl:call-template name ="BibDisplayTitleReport"/>
  8039.                             <xsl:call-template name ="BibDisplayPublisher"/>
  8040.                             <xsl:call-template name ="BibDisplayCityReport"/>
  8041.                             <xsl:call-template name ="BibDisplayYearReport"/>
  8042.                         </xsl:element>
  8043.                     </xsl:element>
  8044.                 </xsl:element>
  8045.             </xsl:when>
  8046.  
  8047.             <xsl:when test="$SourceType = 'Misc'">
  8048.                 <xsl:element name="tr">
  8049.                     <xsl:element name="td">
  8050.                         <xsl:attribute name="valign">
  8051.                             <xsl:value-of select="'top'"/>
  8052.                         </xsl:attribute>
  8053.                         <xsl:attribute name="width">
  8054.                             <xsl:value-of select="'1%'"/>
  8055.                         </xsl:attribute>
  8056.                         <xsl:element name="p">
  8057.                             <xsl:call-template name = "BibAddParagraphAttributes"/>
  8058.                             <xsl:call-template name="BibRefOrder"/>
  8059.                         </xsl:element>
  8060.                     </xsl:element>
  8061.                     <xsl:element name="td">
  8062.                         <xsl:attribute name="style">
  8063.                             <xsl:value-of select="'text-align:left'"/>
  8064.                         </xsl:attribute>
  8065.                         <xsl:attribute name="valign">
  8066.                             <xsl:value-of select="'top'"/>
  8067.                         </xsl:attribute>
  8068.                         <xsl:element name="p">
  8069.                             <xsl:call-template name = "BibAddParagraphAttributes"/>
  8070.                             <xsl:call-template name = "BibDisplayAuthorBook">
  8071.                                 <xsl:with-param name ="DisplayEditorIfAuthorUnavailale" select="'true'" />
  8072.                             </xsl:call-template>
  8073.                             <i>
  8074.                                 <xsl:call-template name = "BibDisplayTitleBook"/>
  8075.                             </i>
  8076.                             <xsl:call-template name = "BibDisplayEdition"/>
  8077.                             <xsl:call-template name="BibDisplayVolumeBook"/>
  8078.                             <xsl:call-template name="BibDisplayEditor"/>
  8079.                             <xsl:call-template name = "BibDisplayCity"/>
  8080.                             <xsl:call-template name = "BibDisplayStateProvinceBook"/>
  8081.                             <xsl:call-template name = "BibDisplayPublisherBC"/>
  8082.                             <xsl:call-template name = "BibDisplayYearBC"/>
  8083.                             <xsl:call-template name ="BibDisplayPages"/>
  8084.                         </xsl:element>
  8085.                     </xsl:element>
  8086.                 </xsl:element>
  8087.             </xsl:when>
  8088.             <xsl:otherwise>
  8089.                 <xsl:element name="p">
  8090.                     <xsl:call-template name ="BibAddParagraphAttributes"/>
  8091.                 </xsl:element>
  8092.             </xsl:otherwise>
  8093.         </xsl:choose>
  8094.  
  8095.     </xsl:template>
  8096.  
  8097.     <xsl:template name="Bibliography">
  8098.         <html xmlns="http://www.w3.org/TR/REC-html40">
  8099.             <head>
  8100.                 <style>
  8101.                     p.MsoBibliography, li.MsoBibliography, div.MsoBibliography
  8102.                 </style>
  8103.             </head>
  8104.             <body>
  8105.                 <xsl:element name="table">
  8106.                     <xsl:attribute name="class">
  8107.                         <xsl:value-of select="'MsoBibliography'"/>
  8108.                     </xsl:attribute>
  8109.                     <xsl:attribute name="width">
  8110.                         <xsl:value-of select="'100%'"/>
  8111.                     </xsl:attribute>
  8112.                     <xsl:for-each select ="b:Bibliography">
  8113.                         <xsl:apply-templates select="b:Source">
  8114.                             <xsl:sort select="b:RefOrder" order="ascending" data-type="number"/>
  8115.                         </xsl:apply-templates>
  8116.                     </xsl:for-each>
  8117.                 </xsl:element>
  8118.             </body>
  8119.         </html>
  8120.     </xsl:template>
  8121.  
  8122.  
  8123.     <xsl:template name="RefOrder">
  8124.         <xsl:value-of select="b:Source/b:RefOrder"/>
  8125.     </xsl:template>
  8126.  
  8127.     <xsl:template name="BibRefOrder">
  8128.         <xsl:call-template name ="templ_prop_SecondaryOpen"/>
  8129.         <xsl:value-of select="b:RefOrder"/>
  8130.         <xsl:call-template name="templ_prop_SecondaryClose"/>
  8131.         <xsl:call-template name ="templ_prop_Space"/>
  8132.     </xsl:template>
  8133.  
  8134.     <xsl:template name ="displayPageOrPages">
  8135.         <xsl:param name ="pages"/>
  8136.         <xsl:if test="$pages">
  8137.             <xsl:call-template name="templ_prop_ListSeparator"/>
  8138.         </xsl:if>
  8139.         <xsl:value-of select="$pages"/>
  8140.     </xsl:template>
  8141.  
  8142.     <xsl:template name="Citation">
  8143.         <xsl:for-each select="b:Citation">
  8144.             <xsl:variable name="SourceType">
  8145.                 <xsl:value-of select="b:Source/b:SourceType"/>
  8146.             </xsl:variable>
  8147.             <xsl:choose>
  8148.                 <xsl:when test="$SourceType = 'Book' or
  8149.                $SourceType = 'BookSection' or
  8150.                $SourceType = 'Film' or
  8151.                 $SourceType = 'Case' or
  8152.                $SourceType = 'JournalArticle' or
  8153.                $SourceType = 'ArticleInAPeriodical' or
  8154.                 $SourceType = 'Misc' or
  8155.                 $SourceType = 'ElectronicSource' or
  8156.                 $SourceType = 'Report' or
  8157.                 $SourceType = 'DocumentFromInternetSite' or
  8158.                 $SourceType = 'Art' or
  8159.                 $SourceType = 'SoundRecording' or
  8160.                 $SourceType = 'Performance' or
  8161.                 $SourceType = 'Interview' or
  8162.                 $SourceType = 'InternetSite' or
  8163.                 $SourceType = 'Patent' or
  8164.                $SourceType = 'ConferenceProceedings' ">
  8165.                     <html xmlns="http://www.w3.org/TR/REC-html40">
  8166.                         <body>
  8167.  
  8168.                             <xsl:variable name ="cPages">
  8169.                                 <xsl:value-of select="count(b:Pages)" />
  8170.                             </xsl:variable>
  8171.  
  8172.                             <xsl:variable name ="initValueOfPages">
  8173.                                 <xsl:value-of select="b:Pages"/>
  8174.                             </xsl:variable>
  8175.  
  8176.                             <xsl:variable name ="pages">
  8177.                                 <xsl:choose>
  8178.                                     <xsl:when test="contains($initValueOfPages, '-')">
  8179.                                         <xsl:value-of select="concat('pp. ',$initValueOfPages)"/>
  8180.                                     </xsl:when>
  8181.                                     <xsl:when test="contains($initValueOfPages, ',')">
  8182.                                         <xsl:value-of select="concat('pp. ',$initValueOfPages)"/>
  8183.                                     </xsl:when>
  8184.                                     <xsl:otherwise>
  8185.                                         <xsl:value-of select="concat('p. ',$initValueOfPages)"/>
  8186.                                     </xsl:otherwise>
  8187.                                 </xsl:choose>
  8188.                             </xsl:variable>
  8189.  
  8190.  
  8191.                             <xsl:if test="b:FirstAuthor">
  8192.                                 <xsl:call-template name ="templ_prop_SecondaryOpen"/>
  8193.                             </xsl:if>
  8194.  
  8195.                             <xsl:call-template  name="RefOrder"/>
  8196.  
  8197.                             <xsl:if test="count(b:Pages)>0">
  8198.                                 <xsl:call-template name="displayPageOrPages" >
  8199.                                     <xsl:with-param name="pages" select ="$pages"/>
  8200.                                 </xsl:call-template>
  8201.                             </xsl:if>
  8202.  
  8203.                             <xsl:if test="b:LastAuthor">
  8204.                                 <xsl:call-template name="templ_prop_SecondaryClose"/>
  8205.                             </xsl:if>
  8206.  
  8207.                             <xsl:if test="not(b:LastAuthor)">
  8208.                                 <xsl:call-template name="templ_prop_ListSeparator"/>
  8209.                                 <xsl:call-template name ="templ_prop_Space"/>
  8210.                             </xsl:if>
  8211.                         </body>
  8212.                     </html>
  8213.                 </xsl:when>
  8214.             </xsl:choose>
  8215.         </xsl:for-each>
  8216.     </xsl:template>
  8217.  
  8218.     <xsl:template name="right-trim">
  8219.         <xsl:param name="s" />
  8220.         <xsl:choose>
  8221.             <xsl:when test="substring($s, 1, 1) = ''">
  8222.                 <xsl:value-of select="$s"/>
  8223.             </xsl:when>
  8224.             <xsl:when test="normalize-space(substring($s, string-length($s))) = ''">
  8225.                 <xsl:call-template name="right-trim">
  8226.                     <xsl:with-param name="s" select="substring($s, 1, string-length($s) - 1)" />
  8227.                 </xsl:call-template>
  8228.             </xsl:when>
  8229.             <xsl:otherwise>
  8230.                 <xsl:value-of select="$s" />
  8231.             </xsl:otherwise>
  8232.         </xsl:choose>
  8233.     </xsl:template>
  8234.  
  8235.     <xsl:template name="left-trim">
  8236.         <xsl:param name="s" />
  8237.         <xsl:choose>
  8238.             <xsl:when test="substring($s,1,1) = ' '">
  8239.                 <xsl:call-template name="left-trim">
  8240.                     <xsl:with-param name="s" select="substring($s, 2)" />
  8241.                 </xsl:call-template>
  8242.             </xsl:when>
  8243.             <xsl:otherwise>
  8244.                 <xsl:value-of select="$s" />
  8245.             </xsl:otherwise>
  8246.         </xsl:choose>
  8247.     </xsl:template>
  8248. </xsl:stylesheet>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement