Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2016
403
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 287.86 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:text>.</xsl:text>
  1817.     </xsl:template>
  1818.  
  1819.     <xsl:template name="templ_prop_Culture" >
  1820.         <xsl:param name="LCID" />
  1821.         <xsl:variable name="_LCID">
  1822.             <xsl:call-template name="localLCID">
  1823.                 <xsl:with-param name="LCID" select="$LCID"/>
  1824.             </xsl:call-template>
  1825.         </xsl:variable>
  1826.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/@Culture"/>
  1827.     </xsl:template>
  1828.  
  1829.     <xsl:template name="templ_prop_Direction" >
  1830.         <xsl:param name="LCID" />
  1831.         <xsl:variable name="_LCID">
  1832.             <xsl:call-template name="localLCID">
  1833.                 <xsl:with-param name="LCID" select="$LCID"/>
  1834.             </xsl:call-template>
  1835.         </xsl:variable>
  1836.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Properties/b:Direction"/>
  1837.     </xsl:template>
  1838.  
  1839.     <xsl:template name="templ_prop_NoItalics" >
  1840.         <xsl:param name="LCID" />
  1841.         <xsl:variable name="_LCID">
  1842.             <xsl:call-template name="localLCID">
  1843.                 <xsl:with-param name="LCID" select="$LCID"/>
  1844.             </xsl:call-template>
  1845.         </xsl:variable>
  1846.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:General/b:NoItalics"/>
  1847.     </xsl:template>
  1848.  
  1849.     <xsl:template name="templ_prop_TitleOpen" >
  1850.         <xsl:param name="LCID" />
  1851.         <xsl:variable name="_LCID">
  1852.             <xsl:call-template name="localLCID">
  1853.                 <xsl:with-param name="LCID" select="$LCID"/>
  1854.             </xsl:call-template>
  1855.         </xsl:variable>
  1856.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:General/b:TitleOpen"/>
  1857.     </xsl:template>
  1858.  
  1859.     <xsl:template name="templ_prop_TitleClose" >
  1860.         <xsl:param name="LCID" />
  1861.         <xsl:variable name="_LCID">
  1862.             <xsl:call-template name="localLCID">
  1863.                 <xsl:with-param name="LCID" select="$LCID"/>
  1864.             </xsl:call-template>
  1865.         </xsl:variable>
  1866.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:General/b:TitleClose"/>
  1867.     </xsl:template>
  1868.  
  1869.     <xsl:template name="templ_prop_EndChars" >
  1870.         <xsl:param name="LCID" />
  1871.         <xsl:variable name="_LCID">
  1872.             <xsl:call-template name="localLCID">
  1873.                 <xsl:with-param name="LCID" select="$LCID"/>
  1874.             </xsl:call-template>
  1875.         </xsl:variable>
  1876.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:General/b:EndChars"/>
  1877.     </xsl:template>
  1878.  
  1879.     <xsl:template name="templ_prop_Space" >
  1880.         <xsl:param name="LCID" />
  1881.         <xsl:variable name="_LCID">
  1882.             <xsl:call-template name="localLCID">
  1883.                 <xsl:with-param name="LCID" select="$LCID"/>
  1884.             </xsl:call-template>
  1885.         </xsl:variable>
  1886.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:General/b:Space"/>
  1887.     </xsl:template>
  1888.  
  1889.     <xsl:template name="templ_prop_NonBreakingSpace" >
  1890.         <xsl:param name="LCID" />
  1891.         <xsl:variable name="_LCID">
  1892.             <xsl:call-template name="localLCID">
  1893.                 <xsl:with-param name="LCID" select="$LCID"/>
  1894.             </xsl:call-template>
  1895.         </xsl:variable>
  1896.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:General/b:NonBreakingSpace"/>
  1897.     </xsl:template>
  1898.  
  1899.     <xsl:template name="templ_prop_ListSeparator" >
  1900.         <xsl:param name="LCID" />
  1901.         <xsl:variable name="_LCID">
  1902.             <xsl:call-template name="localLCID">
  1903.                 <xsl:with-param name="LCID" select="$LCID"/>
  1904.             </xsl:call-template>
  1905.         </xsl:variable>
  1906.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:General/b:ListSeparator"/>
  1907.     </xsl:template>
  1908.  
  1909.     <xsl:template name="templ_prop_Dot" >
  1910.         <xsl:param name="LCID" />
  1911.         <xsl:variable name="_LCID">
  1912.             <xsl:call-template name="localLCID">
  1913.                 <xsl:with-param name="LCID" select="$LCID"/>
  1914.             </xsl:call-template>
  1915.         </xsl:variable>
  1916.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:General/b:Dot"/>
  1917.     </xsl:template>
  1918.  
  1919.     <xsl:template name="templ_prop_DotInitial" >
  1920.         <xsl:param name="LCID" />
  1921.         <xsl:variable name="_LCID">
  1922.             <xsl:call-template name="localLCID">
  1923.                 <xsl:with-param name="LCID" select="$LCID"/>
  1924.             </xsl:call-template>
  1925.         </xsl:variable>
  1926.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:General/b:DotInitial"/>
  1927.     </xsl:template>
  1928.  
  1929.     <xsl:template name="templ_prop_GroupSeparator" >
  1930.         <xsl:param name="LCID" />
  1931.         <xsl:variable name="_LCID">
  1932.             <xsl:call-template name="localLCID">
  1933.                 <xsl:with-param name="LCID" select="$LCID"/>
  1934.             </xsl:call-template>
  1935.         </xsl:variable>
  1936.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:General/b:GroupSeparator"/>
  1937.     </xsl:template>
  1938.  
  1939.     <xsl:template name="templ_prop_EnumSeparator" >
  1940.         <xsl:param name="LCID" />
  1941.         <xsl:variable name="_LCID">
  1942.             <xsl:call-template name="localLCID">
  1943.                 <xsl:with-param name="LCID" select="$LCID"/>
  1944.             </xsl:call-template>
  1945.         </xsl:variable>
  1946.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:General/b:EnumSeparator"/>
  1947.     </xsl:template>
  1948.  
  1949.     <xsl:template name="templ_prop_Equal" >
  1950.         <xsl:param name="LCID" />
  1951.         <xsl:variable name="_LCID">
  1952.             <xsl:call-template name="localLCID">
  1953.                 <xsl:with-param name="LCID" select="$LCID"/>
  1954.             </xsl:call-template>
  1955.         </xsl:variable>
  1956.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:General/b:Equal"/>
  1957.     </xsl:template>
  1958.  
  1959.     <xsl:template name="templ_prop_Enum" >
  1960.         <xsl:param name="LCID" />
  1961.         <xsl:variable name="_LCID">
  1962.             <xsl:call-template name="localLCID">
  1963.                 <xsl:with-param name="LCID" select="$LCID"/>
  1964.             </xsl:call-template>
  1965.         </xsl:variable>
  1966.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:General/b:Enum"/>
  1967.     </xsl:template>
  1968.  
  1969.     <xsl:template name="templ_prop_OpenQuote" >
  1970.         <xsl:param name="LCID" />
  1971.         <xsl:variable name="_LCID">
  1972.             <xsl:call-template name="localLCID">
  1973.                 <xsl:with-param name="LCID" select="$LCID"/>
  1974.             </xsl:call-template>
  1975.         </xsl:variable>
  1976.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:General/b:OpenQuote"/>
  1977.     </xsl:template>
  1978.  
  1979.     <xsl:template name="templ_prop_CloseQuote" >
  1980.         <xsl:param name="LCID" />
  1981.         <xsl:variable name="_LCID">
  1982.             <xsl:call-template name="localLCID">
  1983.                 <xsl:with-param name="LCID" select="$LCID"/>
  1984.             </xsl:call-template>
  1985.         </xsl:variable>
  1986.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:General/b:CloseQuote"/>
  1987.     </xsl:template>
  1988.  
  1989.     <xsl:template name="templ_prop_OpenBracket" >
  1990.         <xsl:param name="LCID" />
  1991.         <xsl:variable name="_LCID">
  1992.             <xsl:call-template name="localLCID">
  1993.                 <xsl:with-param name="LCID" select="$LCID"/>
  1994.             </xsl:call-template>
  1995.         </xsl:variable>
  1996.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=INITIAL_CONTENTLCID]/b:General/b:OpenBracket"/>
  1997.         <xsl:text></xsl:text>
  1998.     </xsl:template>
  1999.  
  2000.     <xsl:template name="templ_prop_CloseBracket" >
  2001.         <xsl:param name="LCID" />
  2002.         <xsl:variable name="_LCID">
  2003.             <xsl:call-template name="localLCID">
  2004.                 <xsl:with-param name="LCID" select="$LCID"/>
  2005.             </xsl:call-template>
  2006.         </xsl:variable>
  2007.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=INITIAL_CONTENTLCID]/b:General/b:CloseBracket"/>
  2008.         <xsl:text>@@</xsl:text>
  2009.     </xsl:template>
  2010.  
  2011.     <xsl:template name="templ_prop_FromToDash" >
  2012.         <xsl:param name="LCID" />
  2013.         <xsl:variable name="_LCID">
  2014.             <xsl:call-template name="localLCID">
  2015.                 <xsl:with-param name="LCID" select="$LCID"/>
  2016.             </xsl:call-template>
  2017.         </xsl:variable>
  2018.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:General/b:FromToDash"/>
  2019.     </xsl:template>
  2020.  
  2021.     <xsl:template name="templ_prop_OpenLink" >
  2022.         <xsl:param name="LCID" />
  2023.         <xsl:variable name="_LCID">
  2024.             <xsl:call-template name="localLCID">
  2025.                 <xsl:with-param name="LCID" select="$LCID"/>
  2026.             </xsl:call-template>
  2027.         </xsl:variable>
  2028.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:General/b:OpenLink"/>
  2029.     </xsl:template>
  2030.  
  2031.     <xsl:template name="templ_prop_CloseLink" >
  2032.         <xsl:param name="LCID" />
  2033.         <xsl:variable name="_LCID">
  2034.             <xsl:call-template name="localLCID">
  2035.                 <xsl:with-param name="LCID" select="$LCID"/>
  2036.             </xsl:call-template>
  2037.         </xsl:variable>
  2038.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:General/b:CloseLink"/>
  2039.     </xsl:template>
  2040.  
  2041.     <xsl:template name="templ_prop_AuthorsSeparator" >
  2042.         <xsl:param name="LCID" />
  2043.         <xsl:variable name="_LCID">
  2044.             <xsl:call-template name="localLCID">
  2045.                 <xsl:with-param name="LCID" select="$LCID"/>
  2046.             </xsl:call-template>
  2047.         </xsl:variable>
  2048.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:General/b:AuthorsSeparator"/>
  2049.     </xsl:template>
  2050.  
  2051.     <xsl:template name="templ_prop_NoAndBeforeLastAuthor" >
  2052.         <xsl:param name="LCID" />
  2053.         <xsl:variable name="_LCID">
  2054.             <xsl:call-template name="localLCID">
  2055.                 <xsl:with-param name="LCID" select="$LCID"/>
  2056.             </xsl:call-template>
  2057.         </xsl:variable>
  2058.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:General/b:NoAndBeforeLastAuthor"/>
  2059.     </xsl:template>
  2060.  
  2061.     <xsl:template name="templ_prop_BeforeLastAuthor" >
  2062.         <xsl:param name="LCID" />
  2063.         <xsl:variable name="_LCID">
  2064.             <xsl:call-template name="localLCID">
  2065.                 <xsl:with-param name="LCID" select="$LCID"/>
  2066.             </xsl:call-template>
  2067.         </xsl:variable>
  2068.         <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:APA/b:BeforeLastAuthor"/>
  2069.     </xsl:template>
  2070.  
  2071.     <xsl:template name="List_Separator_NoSpace">
  2072.         <xsl:variable name ="str_AccessedCap">
  2073.             <xsl:call-template name ="templ_prop_ListSeparator"/>
  2074.         </xsl:variable>
  2075.  
  2076.         <xsl:call-template name ="FindReplaceString">
  2077.             <xsl:with-param name="originalString" select="string($str_AccessedCap)"/>
  2078.             <xsl:with-param name="stringToBeReplaced" select="' '"/>
  2079.             <xsl:with-param name="stringReplacement" select="''"/>
  2080.         </xsl:call-template>
  2081.  
  2082.     </xsl:template>
  2083.  
  2084.     <xsl:template name="FindReplaceString">
  2085.         <xsl:param name="originalString"/>
  2086.         <xsl:param name="stringToBeReplaced"/>
  2087.         <xsl:param name="stringReplacement"/>
  2088.         <xsl:choose>
  2089.             <xsl:when test="contains($originalString,$stringToBeReplaced)">
  2090.                 <xsl:value-of select="concat(substring-before($originalString,$stringToBeReplaced),$stringReplacement)"/>
  2091.                 <xsl:call-template name="FindReplaceString">
  2092.                     <xsl:with-param name="originalString" select="substring-after($originalString,$stringToBeReplaced)"/>
  2093.                     <xsl:with-param name="stringToBeReplaced" select="$stringToBeReplaced"/>
  2094.                     <xsl:with-param name="stringReplacement" select="$stringReplacement"/>
  2095.                 </xsl:call-template>
  2096.             </xsl:when>
  2097.             <xsl:otherwise>
  2098.                 <xsl:value-of select="$originalString"/>
  2099.             </xsl:otherwise>
  2100.         </xsl:choose>
  2101.     </xsl:template>
  2102.  
  2103.     <xsl:template name ="DisplayPageOrPages">
  2104.         <xsl:param name ="pages"/>
  2105.         <xsl:choose>
  2106.             <xsl:when test="contains($pages, '-')">
  2107.                 <xsl:value-of select="concat('pp. ', $pages)"/>
  2108.             </xsl:when>
  2109.             <xsl:when test="contains($pages, ',')">
  2110.                 <xsl:value-of select="concat('pp. ', $pages)"/>
  2111.             </xsl:when>
  2112.             <xsl:otherwise>
  2113.                 <xsl:value-of select="concat('p. ', $pages)"/>
  2114.             </xsl:otherwise>
  2115.         </xsl:choose>
  2116.     </xsl:template>
  2117.  
  2118.     <xsl:template name="BibAddParagraphAttributes">
  2119.         <xsl:variable name="LCID">
  2120.             <xsl:choose>
  2121.                 <xsl:when test="b:LCID='0' or b:LCID='' or not(b:LCID)">
  2122.                     <xsl:value-of select="/*/b:Locals/b:DefaultLCID"/>
  2123.                 </xsl:when>
  2124.                 <xsl:otherwise>
  2125.                     <xsl:value-of select="b:LCID"/>
  2126.                 </xsl:otherwise>
  2127.             </xsl:choose>
  2128.         </xsl:variable>
  2129.         <xsl:attribute name="lang">
  2130.             <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$LCID]/@Culture"/>
  2131.         </xsl:attribute>
  2132.         <xsl:attribute name="dir">
  2133.             <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$LCID]/b:Properties/b:Direction"/>
  2134.         </xsl:attribute>
  2135.         <xsl:attribute name="class">
  2136.             <xsl:value-of select="'MsoBibliography'"/>
  2137.         </xsl:attribute>
  2138.     </xsl:template>
  2139.  
  2140.     <xsl:template name ="BibDisplayStrOnline">
  2141.         <xsl:call-template name ="templ_prop_SecondaryOpen"/>
  2142.         <xsl:call-template name ="templ_str_OnlineCap"/>
  2143.         <xsl:call-template name ="templ_prop_SecondaryClose"/>
  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_Space"/>
  2152.     </xsl:template>
  2153.  
  2154.     <xsl:template name ="BibDisplayStrArt">
  2155.         <xsl:call-template name ="templ_prop_SecondaryOpen"/>
  2156.         <xsl:call-template name ="templ_str_ArtCap"/>
  2157.         <xsl:call-template name ="templ_prop_SecondaryClose"/>
  2158.         <xsl:call-template name ="templ_prop_Space"/>
  2159.     </xsl:template>
  2160.  
  2161.     <xsl:template name ="BibDisplayStrSoundRecording">
  2162.         <xsl:call-template name ="templ_prop_SecondaryOpen"/>
  2163.         <xsl:call-template name ="templ_str_SoundRecordingCap"/>
  2164.         <xsl:call-template name ="templ_prop_SecondaryClose"/>
  2165.         <xsl:call-template name ="templ_prop_Dot"/>
  2166.         <xsl:call-template name ="templ_prop_Space"/>
  2167.     </xsl:template>
  2168.  
  2169.     <xsl:template name ="BibDisplayStrInterview">
  2170.         <xsl:call-template name ="templ_prop_SecondaryOpen"/>
  2171.         <xsl:call-template name ="templ_str_InterviewCap"/>
  2172.         <xsl:call-template name ="templ_prop_SecondaryClose"/>
  2173.         <xsl:call-template name ="templ_prop_Dot"/>
  2174.         <xsl:call-template name ="templ_prop_Space"/>
  2175.     </xsl:template>
  2176.  
  2177.     <xsl:template name ="BibDisplayDayMonthYearWebSiteJournal">
  2178.         <xsl:variable name ="cMonth">
  2179.             <xsl:value-of select="count(b:Month)"/>
  2180.         </xsl:variable>
  2181.         <xsl:variable name ="cDay">
  2182.             <xsl:value-of select="count(b:Day)"/>
  2183.         </xsl:variable>
  2184.         <xsl:variable name ="cYear">
  2185.             <xsl:value-of select="count(b:Year)"/>
  2186.         </xsl:variable>
  2187.  
  2188.         <xsl:choose>
  2189.             <xsl:when test ="$cDay!=0">
  2190.                 <xsl:choose>
  2191.                     <xsl:when test ="$cMonth!=0">
  2192.                         <xsl:choose>
  2193.                             <xsl:when test ="$cYear!=0">
  2194.                                 <xsl:value-of select="b:Day"/>
  2195.                                 <xsl:call-template name ="templ_prop_Space"/>
  2196.                                 <xsl:value-of select="b:Month"/>
  2197.                                 <xsl:call-template name ="templ_prop_Space"/>
  2198.                                 <xsl:value-of select="b:Year"/>
  2199.                                 <xsl:call-template name ="templ_prop_Dot"/>
  2200.                             </xsl:when>
  2201.                         </xsl:choose>
  2202.                     </xsl:when>
  2203.                     <xsl:otherwise>
  2204.                         <xsl:if test ="$cYear!=0">
  2205.                             <xsl:value-of select="b:Year"/>
  2206.                             <xsl:call-template name ="templ_prop_Dot"/>
  2207.                         </xsl:if>
  2208.                     </xsl:otherwise>
  2209.  
  2210.                 </xsl:choose>
  2211.             </xsl:when>
  2212.  
  2213.             <xsl:when test="$cMonth!=0">
  2214.                 <xsl:choose>
  2215.                     <xsl:when test ="$cYear!=0">
  2216.                         <xsl:value-of select="b:Month"/>
  2217.                         <xsl:call-template name ="templ_prop_Space"/>
  2218.                         <xsl:value-of select="b:Year"/>
  2219.                         <xsl:call-template name ="templ_prop_Dot"/>
  2220.                     </xsl:when>
  2221.                 </xsl:choose>
  2222.             </xsl:when>
  2223.             <xsl:when test="$cDay!=0 and $cYear!=0 ">
  2224.                 <xsl:value-of select="b:Year"/>
  2225.                 <xsl:call-template name ="templ_prop_Dot"/>
  2226.             </xsl:when>
  2227.  
  2228.  
  2229.             <xsl:when test="$cYear!=0">
  2230.                 <xsl:value-of select="b:Year"/>
  2231.                 <xsl:call-template name ="templ_prop_Dot"/>
  2232.             </xsl:when>
  2233.         </xsl:choose>
  2234.         <xsl:call-template name ="templ_prop_Space"/>
  2235.     </xsl:template>
  2236.  
  2237.     <xsl:template name ="BibDisplayDirector">
  2238.         <xsl:variable name="cDirector">
  2239.             <xsl:value-of select="count(b:Author/b:Director/b:NameList/b:Person)" />
  2240.         </xsl:variable>
  2241.         <xsl:variable name="prop_APA_FromToDash">
  2242.             <xsl:call-template name="templ_prop_FromToDash"/>
  2243.         </xsl:variable>
  2244.         <xsl:choose>
  2245.  
  2246.             <xsl:when test="$cDirector = 1">
  2247.                 <xsl:variable name ="cDirectorFirstName">
  2248.                     <xsl:value-of select ="count(b:Author/b:Director/b:NameList/b:Person/b:First)"/>
  2249.                 </xsl:variable>
  2250.                 <xsl:variable name ="cDirectorLastName">
  2251.                     <xsl:value-of select ="count(b:Author/b:Director/b:NameList/b:Person/b:Last)"/>
  2252.                 </xsl:variable>
  2253.                 <xsl:variable name ="cDirectorMiddleName">
  2254.                     <xsl:value-of select ="count(b:Author/b:Director/b:NameList/b:Person/b:Middle)"/>
  2255.                 </xsl:variable>
  2256.  
  2257.                 <xsl:choose>
  2258.  
  2259.                     <xsl:when test="$cDirectorFirstName=1">
  2260.                         <xsl:choose>
  2261.                             <xsl:when test="contains(b:Author/b:Director/b:NameList/b:Person/b:First,$prop_APA_FromToDash)">
  2262.                                 <xsl:call-template name="HandleSPaceHypenInAuthor">
  2263.                                     <xsl:with-param name="author">
  2264.                                         <xsl:value-of select="b:Author/b:Director/b:NameList/b:Person/b:First"/>
  2265.                                     </xsl:with-param>
  2266.                                 </xsl:call-template>
  2267.                                 <xsl:call-template name ="templ_prop_Space"/>
  2268.                             </xsl:when>
  2269.                             <xsl:otherwise>
  2270.                                 <xsl:call-template name="splitAuthorSpace">
  2271.                                     <xsl:with-param name ="first">
  2272.                                         <xsl:call-template name="right-trim">
  2273.                                             <xsl:with-param name ="s" select="b:Author/b:Director/b:NameList/b:Person/b:First"/>
  2274.                                         </xsl:call-template>
  2275.                                     </xsl:with-param>
  2276.                                 </xsl:call-template>
  2277.                                 <xsl:call-template name ="templ_prop_Space"/>
  2278.                             </xsl:otherwise>
  2279.                         </xsl:choose>
  2280.                     </xsl:when>
  2281.                 </xsl:choose>
  2282.  
  2283.                 <xsl:choose>
  2284.                     <xsl:when test="$cDirectorMiddleName=1">
  2285.                         <xsl:choose>
  2286.                             <xsl:when test="contains(b:Author/b:Director/b:NameList/b:Person/b:Middle,$prop_APA_FromToDash)">
  2287.                                 <xsl:call-template name="HandleSPaceHypenInAuthor">
  2288.                                     <xsl:with-param name="author">
  2289.                                         <xsl:call-template name="right-trim">
  2290.                                             <xsl:with-param name ="s" select="b:Author/b:Director/b:NameList/b:Person/b:Middle"/>
  2291.                                         </xsl:call-template>
  2292.                                     </xsl:with-param>
  2293.                                 </xsl:call-template>
  2294.                                 <xsl:call-template name ="templ_prop_Space"/>
  2295.                             </xsl:when>
  2296.                             <xsl:otherwise>
  2297.                                 <xsl:call-template name="splitAuthorSpace">
  2298.                                     <xsl:with-param name ="first">
  2299.                                         <xsl:call-template name="right-trim">
  2300.                                             <xsl:with-param name ="s" select="b:Author/b:Director/b:NameList/b:Person/b:Middle"/>
  2301.                                         </xsl:call-template>
  2302.                                     </xsl:with-param>
  2303.                                 </xsl:call-template>
  2304.                                 <xsl:call-template name ="templ_prop_Space"/>
  2305.                             </xsl:otherwise>
  2306.                         </xsl:choose>
  2307.                     </xsl:when>
  2308.                 </xsl:choose>
  2309.  
  2310.                 <xsl:choose>
  2311.                     <xsl:when test="$cDirectorLastName=1">
  2312.                         <xsl:value-of select="b:Author/b:Director/b:NameList/b:Person/b:Last"/>
  2313.                         <xsl:call-template name ="templ_prop_ListSeparator"/>
  2314.                     </xsl:when>
  2315.                 </xsl:choose>
  2316.  
  2317.                 <xsl:if test="$cDirector=1">
  2318.                     <xsl:call-template name="templ_str_DirectorCap"/>
  2319.                     <xsl:call-template name ="templ_prop_ListSeparator"/>
  2320.                 </xsl:if>
  2321.             </xsl:when>
  2322.  
  2323.             <xsl:when test="$cDirector>1">
  2324.                 <xsl:for-each select="b:Author/b:Director/b:NameList/b:Person">
  2325.                     <xsl:variable name ="cDirectorFirstName">
  2326.                         <xsl:value-of select ="count(b:First)"/>
  2327.                     </xsl:variable>
  2328.                     <xsl:variable name ="cDirectorLastName">
  2329.                         <xsl:value-of select ="count(b:Last)"/>
  2330.                     </xsl:variable>
  2331.                     <xsl:variable name ="cDirectorMiddleName">
  2332.                         <xsl:value-of select ="count(b:Middle)"/>
  2333.                     </xsl:variable>
  2334.  
  2335.                     <xsl:choose>
  2336.  
  2337.                         <xsl:when test =" $cDirector>1 and (position())=$cDirector">
  2338.                             <xsl:call-template name ="templ_prop_Space"/>
  2339.                             <xsl:call-template name ="templ_str_AndUnCap"/>
  2340.                             <xsl:call-template name ="templ_prop_Space"/>
  2341.                         </xsl:when>
  2342.                     </xsl:choose>
  2343.  
  2344.                     <xsl:choose>
  2345.                         <xsl:when test="$cDirectorFirstName=1">
  2346.                             <xsl:choose>
  2347.                                 <xsl:when test="contains(b:First,$prop_APA_FromToDash)">
  2348.                                     <xsl:call-template name="HandleSPaceHypenInAuthor">
  2349.                                         <xsl:with-param name="author">
  2350.                                             <xsl:call-template name="right-trim">
  2351.                                                 <xsl:with-param name ="s" select="b:First"/>
  2352.                                             </xsl:call-template>
  2353.                                         </xsl:with-param>
  2354.                                     </xsl:call-template>
  2355.                                     <xsl:call-template name ="templ_prop_Space"/>
  2356.                                 </xsl:when>
  2357.                                 <xsl:otherwise>
  2358.                                     <xsl:call-template name="splitAuthorSpace">
  2359.                                         <xsl:with-param name ="first">
  2360.                                             <xsl:call-template name="right-trim">
  2361.                                                 <xsl:with-param name ="s" select="b:First"/>
  2362.                                             </xsl:call-template>
  2363.                                         </xsl:with-param>
  2364.                                     </xsl:call-template>
  2365.                                     <xsl:call-template name ="templ_prop_Space"/>
  2366.                                 </xsl:otherwise>
  2367.                             </xsl:choose>
  2368.                         </xsl:when>
  2369.                     </xsl:choose>
  2370.  
  2371.                     <xsl:choose>
  2372.                         <xsl:when test="$cDirectorMiddleName=1">
  2373.                             <xsl:choose>
  2374.                                 <xsl:when test="contains(b:Middle,$prop_APA_FromToDash)">
  2375.                                     <xsl:call-template name="HandleSPaceHypenInAuthor">
  2376.                                         <xsl:with-param name="author">
  2377.                                             <xsl:call-template name="right-trim">
  2378.                                                 <xsl:with-param name ="s" select="b:Middle"/>
  2379.                                             </xsl:call-template>
  2380.                                         </xsl:with-param>
  2381.                                     </xsl:call-template>
  2382.                                     <xsl:call-template name ="templ_prop_Space"/>
  2383.                                 </xsl:when>
  2384.                                 <xsl:otherwise>
  2385.                                     <xsl:call-template name="splitAuthorSpace">
  2386.                                         <xsl:with-param name ="first">
  2387.                                             <xsl:call-template name="right-trim">
  2388.                                                 <xsl:with-param name ="s" select="b:Middle"/>
  2389.                                             </xsl:call-template>
  2390.                                         </xsl:with-param>
  2391.                                     </xsl:call-template>
  2392.                                     <xsl:call-template name ="templ_prop_Space"/>
  2393.                                 </xsl:otherwise>
  2394.                             </xsl:choose>
  2395.                         </xsl:when>
  2396.                     </xsl:choose>
  2397.  
  2398.                     <xsl:choose>
  2399.                         <xsl:when test="$cDirectorLastName=1">
  2400.                             <xsl:value-of select="b:Last"/>
  2401.                             <xsl:if test="((position()+1)!=$cDirector) and (position()&lt;$cDirector)">
  2402.                                 <xsl:call-template name ="templ_prop_ListSeparator"/>
  2403.                             </xsl:if>
  2404.                         </xsl:when>
  2405.                     </xsl:choose>
  2406.                 </xsl:for-each>
  2407.                 <xsl:call-template name ="templ_prop_ListSeparator"/>
  2408.                 <xsl:if test="$cDirector>1">
  2409.                     <xsl:call-template name="templ_str_DirectorsCap"/>
  2410.                     <xsl:call-template name ="templ_prop_ListSeparator"/>
  2411.                 </xsl:if>
  2412.             </xsl:when>
  2413.         </xsl:choose>
  2414.     </xsl:template>
  2415.  
  2416.     <xsl:template name ="BibDisplayCountryRegionPatent">
  2417.         <xsl:variable name="cCountryRegion">
  2418.             <xsl:value-of select="count(b:CountryRegion)"/>
  2419.         </xsl:variable>
  2420.         <xsl:variable name="cPatent">
  2421.             <xsl:value-of select="count(b:PatentNumber)"/>
  2422.         </xsl:variable>
  2423.         <xsl:variable name ="cMonth">
  2424.             <xsl:value-of select="count(b:Month)"/>
  2425.         </xsl:variable>
  2426.         <xsl:variable name ="cDay">
  2427.             <xsl:value-of select="count(b:Day)"/>
  2428.         </xsl:variable>
  2429.         <xsl:variable name ="cYear">
  2430.             <xsl:value-of select="count(b:Year)"/>
  2431.         </xsl:variable>
  2432.         <xsl:choose>
  2433.             <xsl:when test ="$cCountryRegion!=0">
  2434.                 <xsl:value-of select="b:CountryRegion"/>
  2435.                 <xsl:choose>
  2436.                     <xsl:when test ="$cPatent=0 and $cYear=0">
  2437.                         <xsl:call-template name ="templ_prop_Dot"/>
  2438.                     </xsl:when>
  2439.                     <xsl:otherwise>
  2440.                         <xsl:call-template name ="templ_prop_Space"/>
  2441.                     </xsl:otherwise>
  2442.                 </xsl:choose>
  2443.             </xsl:when>
  2444.         </xsl:choose>
  2445.     </xsl:template>
  2446.  
  2447.     <xsl:template name="BibDisplayTitleJournal">
  2448.         <xsl:variable name="cTitle">
  2449.             <xsl:value-of select="count(b:Title)"/>
  2450.         </xsl:variable>
  2451.         <xsl:variable name ="cJournalName">
  2452.             <xsl:value-of select="count(b:JournalName)"/>
  2453.         </xsl:variable>
  2454.         <xsl:variable name="cVolume">
  2455.             <xsl:value-of select="count(b:Volume)"/>
  2456.         </xsl:variable>
  2457.         <xsl:variable name="cIssue">
  2458.             <xsl:value-of select="count(b:Issue)"/>
  2459.         </xsl:variable>
  2460.         <xsl:variable name="cPages">
  2461.             <xsl:value-of select="count(b:Pages)"/>
  2462.         </xsl:variable>
  2463.         <xsl:variable name ="cYear">
  2464.             <xsl:value-of select="count(b:Year)"/>
  2465.         </xsl:variable>
  2466.         <xsl:if test ="$cTitle!=0">
  2467.             <xsl:call-template name="templ_prop_OpenQuote"/>
  2468.             <xsl:call-template name="right-trim">
  2469.                 <xsl:with-param name ="s" select="b:Title"/>
  2470.             </xsl:call-template>
  2471.  
  2472.             <xsl:choose>
  2473.                 <xsl:when test="$cJournalName!=0 or $cVolume!=0 or $cIssue!=0 or $cPages!=0 or $cYear!=0 ">
  2474.                     <xsl:call-template name ="List_Separator_NoSpace"/>
  2475.                     <xsl:call-template name="templ_prop_CloseQuote"/>
  2476.                     <xsl:call-template name ="templ_prop_Space"/>
  2477.                 </xsl:when>
  2478.                 <xsl:otherwise>
  2479.                     <xsl:call-template name="templ_prop_CloseQuote"/>
  2480.                     <xsl:call-template name ="templ_prop_Dot"/>
  2481.                 </xsl:otherwise>
  2482.             </xsl:choose>
  2483.         </xsl:if>
  2484.     </xsl:template>
  2485.  
  2486.  
  2487.     <xsl:template name="BibDisplayTitleAP">
  2488.         <xsl:variable name="cTitle">
  2489.             <xsl:value-of select="count(b:Title)"/>
  2490.         </xsl:variable>
  2491.         <xsl:variable name="cVolume">
  2492.             <xsl:value-of select="count(b:Volume)"/>
  2493.         </xsl:variable>
  2494.         <xsl:variable name="cIssue">
  2495.             <xsl:value-of select="count(b:Issue)"/>
  2496.         </xsl:variable>
  2497.         <xsl:variable name="cPages">
  2498.             <xsl:value-of select="count(b:Pages)"/>
  2499.         </xsl:variable>
  2500.         <xsl:variable name ="cYear">
  2501.             <xsl:value-of select="count(b:Year)"/>
  2502.         </xsl:variable>
  2503.         <xsl:if test ="$cTitle!=0">
  2504.             <xsl:call-template name="templ_prop_OpenQuote"/>
  2505.             <xsl:call-template name="right-trim">
  2506.                 <xsl:with-param name ="s" select="b:Title"/>
  2507.             </xsl:call-template>
  2508.  
  2509.             <xsl:choose>
  2510.                 <xsl:when test="$cVolume!=0 or $cIssue!=0 or $cPages!=0 or $cYear!=0 ">
  2511.                     <xsl:call-template name ="List_Separator_NoSpace"/>
  2512.                     <xsl:call-template name="templ_prop_CloseQuote"/>
  2513.                     <xsl:call-template name ="templ_prop_Space"/>
  2514.                 </xsl:when>
  2515.                 <xsl:otherwise>
  2516.                     <xsl:call-template name="templ_prop_CloseQuote"/>
  2517.                     <xsl:call-template name ="templ_prop_Dot"/>
  2518.                 </xsl:otherwise>
  2519.             </xsl:choose>
  2520.         </xsl:if>
  2521.     </xsl:template>
  2522.  
  2523.     <xsl:template name ="BibDisplayProductionCompanySRec">
  2524.         <xsl:variable name="cProductionCompany">
  2525.             <xsl:value-of select="count(b:ProductionCompany)"/>
  2526.         </xsl:variable>
  2527.         <xsl:variable name="cYear">
  2528.             <xsl:value-of select="count(b:Year)"/>
  2529.         </xsl:variable>
  2530.         <xsl:choose>
  2531.             <xsl:when test ="$cProductionCompany!=0">
  2532.                 <xsl:value-of select="b:ProductionCompany"/>
  2533.                 <xsl:call-template name ="templ_prop_Dot"/>
  2534.                 <xsl:call-template name ="templ_prop_Space"/>
  2535.             </xsl:when>
  2536.         </xsl:choose>
  2537.     </xsl:template>
  2538.  
  2539.     <xsl:template name ="BibDisplayProductionCompanyPerformance">
  2540.         <xsl:variable name="cProductionCompany">
  2541.             <xsl:value-of select="count(b:ProductionCompany)"/>
  2542.         </xsl:variable>
  2543.         <xsl:variable name="cYear">
  2544.             <xsl:value-of select="count(b:Year)"/>
  2545.         </xsl:variable>
  2546.         <xsl:choose>
  2547.             <xsl:when test ="$cProductionCompany!=0">
  2548.                 <xsl:value-of select="b:ProductionCompany"/>
  2549.                 <xsl:choose >
  2550.                     <xsl:when test="$cYear>0">
  2551.                         <xsl:call-template name ="templ_prop_ListSeparator"/>
  2552.                         <xsl:call-template name ="templ_prop_Space"/>
  2553.                     </xsl:when>
  2554.                     <xsl:otherwise>
  2555.                         <xsl:call-template name ="templ_prop_Dot"/>
  2556.                     </xsl:otherwise>
  2557.                 </xsl:choose>
  2558.             </xsl:when>
  2559.         </xsl:choose>
  2560.     </xsl:template>
  2561.  
  2562.     <xsl:template name ="BibDisplayProductionCompany">
  2563.         <xsl:variable name="cProductionCompany">
  2564.             <xsl:value-of select="count(b:ProductionCompany)"/>
  2565.         </xsl:variable>
  2566.         <xsl:variable name="cYear">
  2567.             <xsl:value-of select="count(b:Year)"/>
  2568.         </xsl:variable>
  2569.         <xsl:choose>
  2570.             <xsl:when test ="$cProductionCompany!=0">
  2571.                 <xsl:value-of select="b:ProductionCompany"/>
  2572.                 <xsl:choose>
  2573.                     <xsl:when test="$cYear>0">
  2574.                         <xsl:call-template name ="templ_prop_ListSeparator"/>
  2575.                         <xsl:call-template name ="templ_prop_Space"/>
  2576.                     </xsl:when>
  2577.                     <xsl:otherwise>
  2578.                         <xsl:call-template name ="templ_prop_Dot"/>
  2579.                     </xsl:otherwise>
  2580.                 </xsl:choose>
  2581.             </xsl:when>
  2582.         </xsl:choose>
  2583.     </xsl:template>
  2584.  
  2585.     <xsl:template name ="BibDisplayProductionCompanywebsite">
  2586.         <xsl:variable name="cProductionCompany">
  2587.             <xsl:value-of select="count(b:ProductionCompany)"/>
  2588.         </xsl:variable>
  2589.         <xsl:variable name ="cMonth">
  2590.             <xsl:value-of select="count(b:Month)"/>
  2591.         </xsl:variable>
  2592.         <xsl:variable name ="cDay">
  2593.             <xsl:value-of select="count(b:Day)"/>
  2594.         </xsl:variable>
  2595.         <xsl:variable name ="cYear">
  2596.             <xsl:value-of select="count(b:Year)"/>
  2597.         </xsl:variable>
  2598.         <xsl:variable name="cURL">
  2599.             <xsl:value-of select="count(b:URL)"/>
  2600.         </xsl:variable>
  2601.         <xsl:choose>
  2602.             <xsl:when test ="$cProductionCompany!=0">
  2603.                 <xsl:value-of select="b:ProductionCompany"/>
  2604.                 <xsl:choose>
  2605.                     <xsl:when test="$cMonth!=0 or $cDay!=0 or $cYear!=0 or $cURL!=0  ">
  2606.                         <xsl:call-template name ="templ_prop_ListSeparator"/>
  2607.                     </xsl:when>
  2608.                     <xsl:when test="$cMonth=0 and $cDay=0 and $cYear=0 and $cURL=0" >
  2609.                         <xsl:call-template name ="templ_prop_Dot"/>
  2610.                     </xsl:when>
  2611.                 </xsl:choose>
  2612.             </xsl:when>
  2613.         </xsl:choose>
  2614.     </xsl:template>
  2615.  
  2616.     <xsl:template name ="BibDisplayEditor">
  2617.         <xsl:variable name="cEditor">
  2618.             <xsl:value-of select="count(b:Author/b:Editor/b:NameList/b:Person)" />
  2619.         </xsl:variable>
  2620.         <xsl:variable name="prop_APA_FromToDash">
  2621.             <xsl:call-template name="templ_prop_FromToDash"/>
  2622.         </xsl:variable>
  2623.         <xsl:variable name="cCity">
  2624.             <xsl:value-of select="count(b:City)"/>
  2625.         </xsl:variable>
  2626.         <xsl:variable name="cPublisher">
  2627.             <xsl:value-of select="count(b:Publisher)"/>
  2628.         </xsl:variable>
  2629.         <xsl:variable name="cStateProvince">
  2630.             <xsl:value-of select="count(b:StateProvince)"/>
  2631.         </xsl:variable>
  2632.         <xsl:variable name="cYear">
  2633.             <xsl:value-of select="count(b:Year)"/>
  2634.         </xsl:variable>
  2635.         <xsl:variable name="cPages">
  2636.             <xsl:value-of select="count(b:Pages)"/>
  2637.         </xsl:variable>
  2638.         <xsl:variable name ="cAuthors">
  2639.             <xsl:value-of select ="count(b:Author/b:Author/b:NameList/b:Person)"/>
  2640.         </xsl:variable>
  2641.         <xsl:variable name ="corpAuthor">
  2642.             <xsl:value-of select ="count(b:Author/b:Author/b:Corporate)"/>
  2643.         </xsl:variable>
  2644.  
  2645.         <xsl:if test ="$cAuthors>0 or $corpAuthor>0">
  2646.             <xsl:choose>
  2647.                 <xsl:when test="$cEditor = 1">
  2648.                     <xsl:variable name ="cEditorFirstName">
  2649.                         <xsl:value-of select ="count(b:Author/b:Editor/b:NameList/b:Person/b:First)"/>
  2650.                     </xsl:variable>
  2651.                     <xsl:variable name ="cEditorLastName">
  2652.                         <xsl:value-of select ="count(b:Author/b:Editor/b:NameList/b:Person/b:Last)"/>
  2653.                     </xsl:variable>
  2654.                     <xsl:variable name ="cEditorMiddleName">
  2655.                         <xsl:value-of select ="count(b:Author/b:Editor/b:NameList/b:Person/b:Middle)"/>
  2656.                     </xsl:variable>
  2657.                     <xsl:choose>
  2658.                         <xsl:when test="$cEditorFirstName=1">
  2659.                             <xsl:call-template name="splitAuthorSpace">
  2660.                                 <xsl:with-param name ="first">
  2661.                                     <xsl:call-template name="right-trim">
  2662.                                         <xsl:with-param name ="s" select="b:Author/b:Editor/b:NameList/b:Person/b:First"/>
  2663.                                     </xsl:call-template>
  2664.                                 </xsl:with-param>
  2665.                             </xsl:call-template>
  2666.                             <xsl:call-template name ="templ_prop_Space"/>
  2667.                         </xsl:when>
  2668.                     </xsl:choose>
  2669.                     <xsl:choose>
  2670.                         <xsl:when test="$cEditorMiddleName=1">
  2671.                             <xsl:call-template name="splitAuthorSpace">
  2672.                                 <xsl:with-param name ="first">
  2673.                                     <xsl:call-template name="right-trim">
  2674.                                         <xsl:with-param name ="s" select="b:Author/b:Editor/b:NameList/b:Person/b:Middle"/>
  2675.                                     </xsl:call-template>
  2676.                                 </xsl:with-param>
  2677.                             </xsl:call-template>
  2678.                             <xsl:call-template name ="templ_prop_Space"/>
  2679.                         </xsl:when>
  2680.                     </xsl:choose>
  2681.                     <xsl:choose>
  2682.                         <xsl:when test="$cEditorLastName=1">
  2683.                             <xsl:value-of select="b:Author/b:Editor/b:NameList/b:Person/b:Last"/>
  2684.                             <xsl:call-template name ="templ_prop_ListSeparator"/>
  2685.                         </xsl:when>
  2686.                     </xsl:choose>
  2687.                     <xsl:if test="$cEditor=1">
  2688.                         <xsl:call-template name="templ_str_EditorShortCap"/>
  2689.                         <xsl:choose>
  2690.                             <xsl:when test="$cCity!=0 or $cPublisher!=0 or $cStateProvince!=0 or $cYear!=0 or $cPages!=0 ">
  2691.                                 <xsl:call-template name ="templ_prop_ListSeparator"/>
  2692.                             </xsl:when>
  2693.                             <xsl:when test="$cCity=0 and $cPublisher=0 and $cStateProvince=0 and $cYear=0 and $cPages=0 ">
  2694.                                 <xsl:call-template name ="templ_prop_Space"/>
  2695.  
  2696.                             </xsl:when>
  2697.                         </xsl:choose>
  2698.                     </xsl:if>
  2699.                 </xsl:when>
  2700.                 <xsl:when test="$cEditor>1">
  2701.                     <xsl:for-each select="b:Author/b:Editor/b:NameList/b:Person">
  2702.                         <xsl:variable name ="cEditorFirstName">
  2703.                             <xsl:value-of select ="count(b:First)"/>
  2704.                         </xsl:variable>
  2705.                         <xsl:variable name ="cEditorLastName">
  2706.                             <xsl:value-of select ="count(b:Last)"/>
  2707.                         </xsl:variable>
  2708.                         <xsl:variable name ="cEditorMiddleName">
  2709.                             <xsl:value-of select ="count(b:Middle)"/>
  2710.                         </xsl:variable>
  2711.  
  2712.                         <xsl:choose>
  2713.  
  2714.                             <xsl:when test ="$cEditor>1 and (position())=$cEditor">
  2715.                                 <xsl:call-template name ="templ_prop_Space"/>
  2716.                                 <xsl:call-template name ="templ_str_AndUnCap"/>
  2717.                                 <xsl:call-template name ="templ_prop_Space"/>
  2718.                             </xsl:when>
  2719.                         </xsl:choose>
  2720.  
  2721.                         <xsl:choose>
  2722.                             <xsl:when test="$cEditorFirstName=1">
  2723.                                 <xsl:call-template name="splitAuthorSpace">
  2724.                                     <xsl:with-param name ="first">
  2725.                                         <xsl:call-template name="right-trim">
  2726.                                             <xsl:with-param name ="s" select="b:First"/>
  2727.                                         </xsl:call-template>
  2728.                                     </xsl:with-param>
  2729.                                 </xsl:call-template>
  2730.                                 <xsl:call-template name ="templ_prop_Space"/>
  2731.                             </xsl:when>
  2732.                         </xsl:choose>
  2733.                         <xsl:choose>
  2734.                             <xsl:when test="$cEditorMiddleName=1">
  2735.                                 <xsl:call-template name="splitAuthorSpace">
  2736.                                     <xsl:with-param name ="first">
  2737.                                         <xsl:call-template name="right-trim">
  2738.                                             <xsl:with-param name ="s" select="b:Middle"/>
  2739.                                         </xsl:call-template>
  2740.                                     </xsl:with-param>
  2741.                                 </xsl:call-template>
  2742.                                 <xsl:call-template name ="templ_prop_Space"/>
  2743.                             </xsl:when>
  2744.                         </xsl:choose>
  2745.  
  2746.                         <xsl:choose>
  2747.                             <xsl:when test="$cEditorLastName=1">
  2748.                                 <xsl:value-of select="b:Last"/>
  2749.                                 <xsl:if test="((position()+1)!=$cEditor) and (position()&lt;$cEditor)">
  2750.                                     <xsl:call-template name ="templ_prop_ListSeparator"/>
  2751.                                 </xsl:if>
  2752.  
  2753.                             </xsl:when>
  2754.                         </xsl:choose>
  2755.                     </xsl:for-each>
  2756.                     <xsl:call-template name ="templ_prop_ListSeparator"/>
  2757.                     <xsl:if test="$cEditor>1">
  2758.                         <xsl:call-template name="templ_str_EditorsShortCap"/>
  2759.                         <xsl:choose>
  2760.                             <xsl:when test="$cCity!=0 or $cPublisher!=0 or $cStateProvince!=0 or $cYear!=0 or $cPages!=0 ">
  2761.                                 <xsl:call-template name ="templ_prop_ListSeparator"/>
  2762.                             </xsl:when>
  2763.                             <xsl:when test="$cCity=0 and $cPublisher=0 and $cStateProvince=0 and $cYear=0 and $cPages=0 ">
  2764.                                 <xsl:call-template name ="templ_prop_Space"/>
  2765.                             </xsl:when>
  2766.                         </xsl:choose>
  2767.                     </xsl:if>
  2768.                 </xsl:when>
  2769.             </xsl:choose>
  2770.         </xsl:if>
  2771.     </xsl:template>
  2772.  
  2773.     <xsl:template name ="BibDisplayEditorBook">
  2774.         <xsl:variable name="cAuthor">
  2775.             <xsl:value-of select="count(b:Author/b:Author/b:NameList/b:Person)" />
  2776.         </xsl:variable>
  2777.         <xsl:variable name="cEditor">
  2778.             <xsl:value-of select="count(b:Author/b:Editor/b:NameList/b:Person)" />
  2779.         </xsl:variable>
  2780.         <xsl:variable name="prop_APA_FromToDash">
  2781.             <xsl:call-template name="templ_prop_FromToDash"/>
  2782.         </xsl:variable>
  2783.         <xsl:variable name="cCity">
  2784.             <xsl:value-of select="count(b:City)"/>
  2785.         </xsl:variable>
  2786.         <xsl:variable name="cPublisher">
  2787.             <xsl:value-of select="count(b:Publisher)"/>
  2788.         </xsl:variable>
  2789.         <xsl:variable name="cStateProvince">
  2790.             <xsl:value-of select="count(b:StateProvince)"/>
  2791.         </xsl:variable>
  2792.         <xsl:variable name="cYear">
  2793.             <xsl:value-of select="count(b:Year)"/>
  2794.         </xsl:variable>
  2795.         <xsl:variable name="cPages">
  2796.             <xsl:value-of select="count(b:Pages)"/>
  2797.         </xsl:variable>
  2798.         <xsl:variable name ="cAuthors">
  2799.             <xsl:value-of select ="count(b:Author/b:Author/b:NameList/b:Person)"/>
  2800.         </xsl:variable>
  2801.         <xsl:variable name ="corpAuthor">
  2802.             <xsl:value-of select ="count(b:Author/b:Author/b:Corporate)"/>
  2803.         </xsl:variable>
  2804.  
  2805.         <xsl:if test ="$cAuthors>0 or $corpAuthor>0">
  2806.             <xsl:choose>
  2807.                 <xsl:when test="$cEditor = 1">
  2808.                     <xsl:variable name ="cEditorFirstName">
  2809.                         <xsl:value-of select ="count(b:Author/b:Editor/b:NameList/b:Person/b:First)"/>
  2810.                     </xsl:variable>
  2811.                     <xsl:variable name ="cEditorLastName">
  2812.                         <xsl:value-of select ="count(b:Author/b:Editor/b:NameList/b:Person/b:Last)"/>
  2813.                     </xsl:variable>
  2814.                     <xsl:variable name ="cEditorMiddleName">
  2815.                         <xsl:value-of select ="count(b:Author/b:Editor/b:NameList/b:Person/b:Middle)"/>
  2816.                     </xsl:variable>
  2817.                     <xsl:choose>
  2818.                         <xsl:when test="$cEditorFirstName=1">
  2819.                             <xsl:call-template name="splitAuthorSpace">
  2820.                                 <xsl:with-param name ="first">
  2821.                                     <xsl:call-template name="right-trim">
  2822.                                         <xsl:with-param name ="s" select="b:Author/b:Editor/b:NameList/b:Person/b:First"/>
  2823.                                     </xsl:call-template>
  2824.                                 </xsl:with-param>
  2825.                             </xsl:call-template>
  2826.                             <xsl:call-template name ="templ_prop_Space"/>
  2827.                         </xsl:when>
  2828.                     </xsl:choose>
  2829.                     <xsl:choose>
  2830.                         <xsl:when test="$cEditorMiddleName=1">
  2831.                             <xsl:call-template name="splitAuthorSpace">
  2832.                                 <xsl:with-param name ="first">
  2833.                                     <xsl:call-template name="right-trim">
  2834.                                         <xsl:with-param name ="s" select="b:Author/b:Editor/b:NameList/b:Person/b:Middle"/>
  2835.                                     </xsl:call-template>
  2836.                                 </xsl:with-param>
  2837.                             </xsl:call-template>
  2838.                             <xsl:call-template name ="templ_prop_Space"/>
  2839.                         </xsl:when>
  2840.                     </xsl:choose>
  2841.                     <xsl:choose>
  2842.                         <xsl:when test="$cEditorLastName=1">
  2843.                             <xsl:value-of select="b:Author/b:Editor/b:NameList/b:Person/b:Last"/>
  2844.                             <xsl:call-template name ="templ_prop_ListSeparator"/>
  2845.                         </xsl:when>
  2846.                     </xsl:choose>
  2847.                     <xsl:if test="$cEditor=1">
  2848.                         <xsl:call-template name="templ_str_EditorShortCap"/>
  2849.                         <xsl:choose>
  2850.                             <xsl:when test="$cCity!=0 or $cPublisher!=0 or $cStateProvince!=0 or $cYear!=0 or $cPages!=0 ">
  2851.                                 <xsl:call-template name ="templ_prop_ListSeparator"/>
  2852.                             </xsl:when>
  2853.                             <xsl:when test="$cCity=0 and $cPublisher=0 and $cStateProvince=0 and $cYear=0 and $cPages=0 ">
  2854.                                 <xsl:call-template name ="templ_prop_Space"/>
  2855.                             </xsl:when>
  2856.                         </xsl:choose>
  2857.                     </xsl:if>
  2858.                 </xsl:when>
  2859.                 <xsl:when test="$cEditor>1">
  2860.                     <xsl:for-each select="b:Author/b:Editor/b:NameList/b:Person">
  2861.                         <xsl:variable name ="cEditorFirstName">
  2862.                             <xsl:value-of select ="count(b:First)"/>
  2863.                         </xsl:variable>
  2864.                         <xsl:variable name ="cEditorLastName">
  2865.                             <xsl:value-of select ="count(b:Last)"/>
  2866.                         </xsl:variable>
  2867.                         <xsl:variable name ="cEditorMiddleName">
  2868.                             <xsl:value-of select ="count(b:Middle)"/>
  2869.                         </xsl:variable>
  2870.  
  2871.                         <xsl:choose>
  2872.                             <xsl:when test ="$cEditor>1 and (position())=$cEditor">
  2873.                                 <xsl:call-template name ="templ_prop_Space"/>
  2874.                                 <xsl:call-template name ="templ_str_AndUnCap"/>
  2875.                                 <xsl:call-template name ="templ_prop_Space"/>
  2876.                             </xsl:when>
  2877.                         </xsl:choose>
  2878.  
  2879.                         <xsl:choose>
  2880.                             <xsl:when test="$cEditorFirstName=1">
  2881.                                 <xsl:call-template name="splitAuthorSpace">
  2882.                                     <xsl:with-param name ="first">
  2883.                                         <xsl:call-template name="right-trim">
  2884.                                             <xsl:with-param name ="s" select="b:First"/>
  2885.                                         </xsl:call-template>
  2886.                                     </xsl:with-param>
  2887.                                 </xsl:call-template>
  2888.                                 <xsl:call-template name ="templ_prop_Space"/>
  2889.                             </xsl:when>
  2890.                         </xsl:choose>
  2891.                         <xsl:choose>
  2892.                             <xsl:when test="$cEditorMiddleName=1">
  2893.                                 <xsl:call-template name="splitAuthorSpace">
  2894.                                     <xsl:with-param name ="first">
  2895.                                         <xsl:call-template name="right-trim">
  2896.                                             <xsl:with-param name ="s" select="b:Middle"/>
  2897.                                         </xsl:call-template>
  2898.                                     </xsl:with-param>
  2899.                                 </xsl:call-template>
  2900.                                 <xsl:call-template name ="templ_prop_Space"/>
  2901.                             </xsl:when>
  2902.                         </xsl:choose>
  2903.  
  2904.                         <xsl:choose>
  2905.                             <xsl:when test="$cEditorLastName=1">
  2906.                                 <xsl:value-of select="b:Last"/>
  2907.                                 <xsl:if test="((position()+1)!=$cEditor) and (position()&lt;$cEditor)">
  2908.                                     <xsl:call-template name ="templ_prop_ListSeparator"/>
  2909.                                 </xsl:if>
  2910.                             </xsl:when>
  2911.                         </xsl:choose>
  2912.                     </xsl:for-each>
  2913.                     <xsl:call-template name ="templ_prop_ListSeparator"/>
  2914.                     <xsl:if test="$cEditor>1">
  2915.                         <xsl:call-template name="templ_str_EditorsShortCap"/>
  2916.                         <xsl:choose>
  2917.                             <xsl:when test="$cCity!=0 or $cPublisher!=0 or $cStateProvince!=0 or $cYear!=0 or $cPages!=0 ">
  2918.                                 <xsl:call-template name ="templ_prop_ListSeparator"/>
  2919.                             </xsl:when>
  2920.                             <xsl:when test="$cCity=0 and $cPublisher=0 and $cStateProvince=0 and $cYear=0 and $cPages=0 ">
  2921.                                 <xsl:call-template name ="templ_prop_Space"/>
  2922.                             </xsl:when>
  2923.                         </xsl:choose>
  2924.                     </xsl:if>
  2925.                 </xsl:when>
  2926.             </xsl:choose>
  2927.         </xsl:if>
  2928.     </xsl:template>
  2929.  
  2930.     <xsl:template name ="BibDisplayEditorNL">
  2931.         <xsl:variable name="cEditor">
  2932.             <xsl:value-of select="count(b:Author/b:Editor/b:NameList/b:Person)" />
  2933.         </xsl:variable>
  2934.  
  2935.         <xsl:variable name="prop_APA_FromToDash">
  2936.             <xsl:call-template name="templ_prop_FromToDash"/>
  2937.         </xsl:variable>
  2938.  
  2939.         <xsl:choose>
  2940.             <xsl:when test="$cEditor = 1">
  2941.                 <xsl:variable name ="cEditorFirstName">
  2942.                     <xsl:value-of select ="count(b:Author/b:Editor/b:NameList/b:Person/b:First)"/>
  2943.                 </xsl:variable>
  2944.                 <xsl:variable name ="cEditorLastName">
  2945.                     <xsl:value-of select ="count(b:Author/b:Editor/b:NameList/b:Person/b:Last)"/>
  2946.                 </xsl:variable>
  2947.                 <xsl:variable name ="cEditorMiddleName">
  2948.                     <xsl:value-of select ="count(b:Author/b:Editor/b:NameList/b:Person/b:Middle)"/>
  2949.                 </xsl:variable>
  2950.                 <xsl:choose>
  2951.                     <xsl:when test="$cEditorFirstName=1">
  2952.                         <xsl:choose>
  2953.                             <xsl:when test="contains(b:Author/b:Editor/b:NameList/b:Person/b:First,$prop_APA_FromToDash)">
  2954.                                 <xsl:call-template name="HandleSPaceHypenInAuthor">
  2955.                                     <xsl:with-param name="author">
  2956.                                         <xsl:call-template name="right-trim">
  2957.                                             <xsl:with-param name ="s" select="b:Author/b:Editor/b:NameList/b:Person/b:First"/>
  2958.                                         </xsl:call-template>
  2959.                                     </xsl:with-param>
  2960.                                 </xsl:call-template>
  2961.                                 <xsl:call-template name ="templ_prop_Space"/>
  2962.                             </xsl:when>
  2963.                             <xsl:otherwise>
  2964.                                 <xsl:call-template name="splitAuthorSpace">
  2965.                                     <xsl:with-param name ="first">
  2966.                                         <xsl:call-template name="right-trim">
  2967.                                             <xsl:with-param name ="s" select="b:Author/b:Editor/b:NameList/b:Person/b:First"/>
  2968.                                         </xsl:call-template>
  2969.                                     </xsl:with-param>
  2970.                                 </xsl:call-template>
  2971.                                 <xsl:call-template name ="templ_prop_Space"/>
  2972.                             </xsl:otherwise>
  2973.                         </xsl:choose>
  2974.                     </xsl:when>
  2975.                 </xsl:choose>
  2976.                 <xsl:choose>
  2977.                     <xsl:when test="$cEditorMiddleName=1">
  2978.                         <xsl:choose>
  2979.                             <xsl:when test="contains(b:Author/b:Editor/b:NameList/b:Person/b:Middle,$prop_APA_FromToDash)">
  2980.                                 <xsl:call-template name="HandleSPaceHypenInAuthor">
  2981.                                     <xsl:with-param name="author">
  2982.                                         <xsl:call-template name="right-trim">
  2983.                                             <xsl:with-param name ="s"  select="b:Author/b:Editor/b:NameList/b:Person/b:Middle"/>
  2984.                                         </xsl:call-template>
  2985.                                     </xsl:with-param>
  2986.                                 </xsl:call-template>
  2987.                                 <xsl:call-template name ="templ_prop_Space"/>
  2988.                             </xsl:when>
  2989.                             <xsl:otherwise>
  2990.                                 <xsl:call-template name="splitAuthorSpace">
  2991.                                     <xsl:with-param name ="first">
  2992.                                         <xsl:call-template name="right-trim">
  2993.                                             <xsl:with-param name ="s" select="b:Author/b:Editor/b:NameList/b:Person/b:Middle"/>
  2994.                                         </xsl:call-template>
  2995.                                     </xsl:with-param>
  2996.                                 </xsl:call-template>
  2997.                                 <xsl:call-template name ="templ_prop_Space"/>
  2998.                             </xsl:otherwise>
  2999.                         </xsl:choose>
  3000.                     </xsl:when>
  3001.                 </xsl:choose>
  3002.                 <xsl:choose>
  3003.                     <xsl:when test="$cEditorLastName=1">
  3004.                         <xsl:value-of select="b:Author/b:Editor/b:NameList/b:Person/b:Last"/>
  3005.                         <xsl:call-template name="templ_prop_ListSeparator" />
  3006.                     </xsl:when>
  3007.                 </xsl:choose>
  3008.                 <xsl:if test="$cEditor=1">
  3009.                     <xsl:call-template name ="templ_str_EditorShortCap"/>
  3010.                     <xsl:call-template name="Seperator"/>
  3011.                 </xsl:if>
  3012.             </xsl:when>
  3013.             <xsl:when test="$cEditor>1">
  3014.                 <xsl:for-each select="b:Author/b:Editor/b:NameList/b:Person">
  3015.                     <xsl:variable name ="cEditorFirstName">
  3016.                         <xsl:value-of select ="count(b:First)"/>
  3017.                     </xsl:variable>
  3018.                     <xsl:variable name ="cEditorLastName">
  3019.                         <xsl:value-of select ="count(b:Last)"/>
  3020.                     </xsl:variable>
  3021.                     <xsl:variable name ="cEditorMiddleName">
  3022.                         <xsl:value-of select ="count(b:Middle)"/>
  3023.                     </xsl:variable>
  3024.  
  3025.                     <xsl:choose>
  3026.  
  3027.                         <xsl:when test ="$cEditor>1 and (position())=$cEditor">
  3028.                             <xsl:call-template name ="templ_prop_Space"/>
  3029.                             <xsl:call-template name ="templ_str_AndUnCap"/>
  3030.                             <xsl:call-template name ="templ_prop_Space"/>
  3031.                         </xsl:when>
  3032.                     </xsl:choose>
  3033.  
  3034.                     <xsl:choose>
  3035.                         <xsl:when test="$cEditorFirstName=1">
  3036.                             <xsl:choose>
  3037.                                 <xsl:when test="contains(b:First,$prop_APA_FromToDash)">
  3038.                                     <xsl:call-template name="HandleSPaceHypenInAuthor">
  3039.                                         <xsl:with-param name="author">
  3040.                                             <xsl:call-template name="right-trim">
  3041.                                                 <xsl:with-param name ="s" select="b:First"/>
  3042.                                             </xsl:call-template>
  3043.                                         </xsl:with-param>
  3044.                                     </xsl:call-template>
  3045.                                     <xsl:call-template name ="templ_prop_Space"/>
  3046.                                 </xsl:when>
  3047.                                 <xsl:otherwise>
  3048.                                     <xsl:call-template name="splitAuthorSpace">
  3049.                                         <xsl:with-param name ="first">
  3050.                                             <xsl:call-template name="right-trim">
  3051.                                                 <xsl:with-param name ="s" select="b:First"/>
  3052.                                             </xsl:call-template>
  3053.                                         </xsl:with-param>
  3054.                                     </xsl:call-template>
  3055.                                     <xsl:call-template name ="templ_prop_Space"/>
  3056.                                 </xsl:otherwise>
  3057.                             </xsl:choose>
  3058.                         </xsl:when>
  3059.                     </xsl:choose>
  3060.  
  3061.                     <xsl:choose>
  3062.                         <xsl:when test="$cEditorMiddleName=1">
  3063.                             <xsl:choose>
  3064.                                 <xsl:when test="contains(b:Middle,$prop_APA_FromToDash)">
  3065.                                     <xsl:call-template name="HandleSPaceHypenInAuthor">
  3066.                                         <xsl:with-param name="author">
  3067.                                             <xsl:call-template name="right-trim">
  3068.                                                 <xsl:with-param name ="s" select="b:Middle"/>
  3069.                                             </xsl:call-template>
  3070.                                         </xsl:with-param>
  3071.                                     </xsl:call-template>
  3072.                                     <xsl:call-template name ="templ_prop_Space"/>
  3073.                                 </xsl:when>
  3074.                                 <xsl:otherwise>
  3075.                                     <xsl:call-template name="splitAuthorSpace">
  3076.                                         <xsl:with-param name ="first">
  3077.                                             <xsl:call-template name="right-trim">
  3078.                                                 <xsl:with-param name ="s" select="b:Middle"/>
  3079.                                             </xsl:call-template>
  3080.                                         </xsl:with-param>
  3081.                                     </xsl:call-template>
  3082.                                     <xsl:call-template name ="templ_prop_Space"/>
  3083.                                 </xsl:otherwise>
  3084.                             </xsl:choose>
  3085.                         </xsl:when>
  3086.                     </xsl:choose>
  3087.                     <xsl:choose>
  3088.                         <xsl:when test="$cEditorLastName=1">
  3089.                             <xsl:value-of select="b:Last"/>
  3090.                             <xsl:if test="((position()+1)!=$cEditor) and (position()&lt;$cEditor)">
  3091.                                 <xsl:call-template name ="templ_prop_ListSeparator"/>
  3092.                             </xsl:if>
  3093.                         </xsl:when>
  3094.                     </xsl:choose>
  3095.                 </xsl:for-each>
  3096.                 <xsl:call-template name ="templ_prop_ListSeparator"/>
  3097.                 <xsl:if test="$cEditor>1">
  3098.                     <xsl:call-template name ="templ_str_EditorsShortCap"/>
  3099.                     <xsl:call-template name="Seperator"/>
  3100.                 </xsl:if>
  3101.             </xsl:when>
  3102.         </xsl:choose>
  3103.     </xsl:template>
  3104.  
  3105.  
  3106.     <xsl:template name ="Seperator">
  3107.         <xsl:variable name="cTitle">
  3108.             <xsl:value-of select ="count(b:Title)"/>
  3109.         </xsl:variable>
  3110.         <xsl:variable name="cEdition">
  3111.             <xsl:value-of select ="count(b:Edition)"/>
  3112.         </xsl:variable>
  3113.         <xsl:variable name="cBookTitle">
  3114.             <xsl:value-of select ="count(b:BookTitle)"/>
  3115.         </xsl:variable>
  3116.         <xsl:variable name="cJournalName">
  3117.             <xsl:value-of select ="count(b:JournalName)"/>
  3118.         </xsl:variable>
  3119.         <xsl:variable name="cVolume">
  3120.             <xsl:value-of select ="count(b:Volume)"/>
  3121.         </xsl:variable>
  3122.         <xsl:variable name="cIssue">
  3123.             <xsl:value-of select ="count(b:Issue)"/>
  3124.         </xsl:variable>
  3125.         <xsl:variable name="cEditor">
  3126.             <xsl:value-of select="count(b:Author/b:Editor/b:NameList/b:Person)" />
  3127.         </xsl:variable>
  3128.         <xsl:variable name="cCity">
  3129.             <xsl:value-of select ="count(b:City)"/>
  3130.         </xsl:variable>
  3131.         <xsl:variable name="cStateProvince">
  3132.             <xsl:value-of select ="count(b:StateProvince)"/>
  3133.         </xsl:variable>
  3134.         <xsl:variable name="cPublisher">
  3135.             <xsl:value-of select ="count(b:Publisher)"/>
  3136.         </xsl:variable>
  3137.         <xsl:variable name="cYear">
  3138.             <xsl:value-of select ="count(b:Year)"/>
  3139.         </xsl:variable>
  3140.         <xsl:variable name="cPages">
  3141.             <xsl:value-of select ="count(b:Pages)"/>
  3142.         </xsl:variable>
  3143.  
  3144.         <xsl:choose>
  3145.             <xsl:when test="b:SourceType='Book' or b:SourceType='Misc'">
  3146.                 <xsl:choose>
  3147.                     <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">
  3148.                         <xsl:call-template name ="templ_prop_ListSeparator"/>
  3149.                     </xsl:when>
  3150.                     <xsl:otherwise>
  3151.                         <xsl:call-template name ="templ_prop_Space"/>
  3152.                     </xsl:otherwise>
  3153.                 </xsl:choose>
  3154.             </xsl:when>
  3155.  
  3156.             <xsl:when test="b:SourceType='BookSection'">
  3157.                 <xsl:choose>
  3158.                     <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">
  3159.                         <xsl:call-template name ="templ_prop_ListSeparator"/>
  3160.                     </xsl:when>
  3161.                     <xsl:otherwise>
  3162.                         <xsl:call-template name ="templ_prop_Space"/>
  3163.                     </xsl:otherwise>
  3164.                 </xsl:choose>
  3165.             </xsl:when>
  3166.         </xsl:choose>
  3167.     </xsl:template>
  3168.  
  3169.     <xsl:template name ="BibDisplayAuthorSoundRec">
  3170.         <xsl:variable name="cComposer">
  3171.             <xsl:value-of select="count(b:Author/b:Composer/b:NameList/b:Person)" />
  3172.         </xsl:variable>
  3173.         <xsl:variable name="cConductor">
  3174.             <xsl:value-of select="count(b:Author/b:Conductor/b:NameList/b:Person)" />
  3175.         </xsl:variable>
  3176.         <xsl:variable name="cPerformer">
  3177.             <xsl:value-of select="count(b:Author/b:Performer/b:NameList/b:Person)" />
  3178.         </xsl:variable>
  3179.         <xsl:variable name="cCorporatePerformer">
  3180.             <xsl:value-of select="count(b:Author/b:Performer/b:Corporate)" />
  3181.         </xsl:variable>
  3182.         <xsl:variable name="prop_APA_FromToDash">
  3183.             <xsl:call-template name="templ_prop_FromToDash"/>
  3184.         </xsl:variable>
  3185.         <xsl:choose>
  3186.             <xsl:when test="$cComposer!=0">
  3187.                 <xsl:choose>
  3188.                     <xsl:when test="$cComposer = 1">
  3189.                         <xsl:variable name ="cComposerFirstName">
  3190.                             <xsl:value-of select ="count(b:Author/b:Composer/b:NameList/b:Person/b:First)"/>
  3191.                         </xsl:variable>
  3192.                         <xsl:variable name ="cComposerLastName">
  3193.                             <xsl:value-of select ="count(b:Author/b:Composer/b:NameList/b:Person/b:Last)"/>
  3194.                         </xsl:variable>
  3195.                         <xsl:variable name ="cComposerMiddleName">
  3196.                             <xsl:value-of select ="count(b:Author/b:Composer/b:NameList/b:Person/b:Middle)"/>
  3197.                         </xsl:variable>
  3198.  
  3199.                         <xsl:choose>
  3200.  
  3201.                             <xsl:when test="$cComposerFirstName=1">
  3202.                                 <xsl:choose>
  3203.                                     <xsl:when test="contains(b:Author/b:Composer/b:NameList/b:Person/b:First,$prop_APA_FromToDash)">
  3204.                                         <xsl:call-template name="HandleSPaceHypenInAuthor">
  3205.                                             <xsl:with-param name="author">
  3206.                                                 <xsl:call-template name="right-trim">
  3207.                                                     <xsl:with-param name ="s" select="b:Author/b:Composer/b:NameList/b:Person/b:First"/>
  3208.                                                 </xsl:call-template>
  3209.                                             </xsl:with-param>
  3210.                                         </xsl:call-template>
  3211.                                         <xsl:call-template name ="templ_prop_Space"/>
  3212.                                     </xsl:when>
  3213.                                     <xsl:otherwise>
  3214.                                         <xsl:call-template name="splitAuthorSpace">
  3215.                                             <xsl:with-param name ="first">
  3216.                                                 <xsl:call-template name="right-trim">
  3217.                                                     <xsl:with-param name ="s" select="b:Author/b:Composer/b:NameList/b:Person/b:First"/>
  3218.                                                 </xsl:call-template>
  3219.                                             </xsl:with-param>
  3220.                                         </xsl:call-template>
  3221.                                         <xsl:call-template name ="templ_prop_Space"/>
  3222.                                     </xsl:otherwise>
  3223.                                 </xsl:choose>
  3224.                             </xsl:when>
  3225.                         </xsl:choose>
  3226.  
  3227.                         <xsl:choose>
  3228.                             <xsl:when test="$cComposerMiddleName=1">
  3229.                                 <xsl:choose>
  3230.                                     <xsl:when test="contains(b:Author/b:Composer/b:NameList/b:Person/b:Middle,$prop_APA_FromToDash)">
  3231.                                         <xsl:call-template name="HandleSPaceHypenInAuthor">
  3232.                                             <xsl:with-param name="author">
  3233.                                                 <xsl:call-template name="right-trim">
  3234.                                                     <xsl:with-param name ="s" select="b:Author/b:Composer/b:NameList/b:Person/b:Middle"/>
  3235.                                                 </xsl:call-template>
  3236.                                             </xsl:with-param>
  3237.                                         </xsl:call-template>
  3238.                                         <xsl:call-template name ="templ_prop_Space"/>
  3239.                                     </xsl:when>
  3240.                                     <xsl:otherwise>
  3241.                                         <xsl:call-template name="splitAuthorSpace">
  3242.                                             <xsl:with-param name ="first">
  3243.                                                 <xsl:call-template name="right-trim">
  3244.                                                     <xsl:with-param name ="s" select="b:Author/b:Composer/b:NameList/b:Person/b:Middle"/>
  3245.                                                 </xsl:call-template>
  3246.                                             </xsl:with-param>
  3247.                                         </xsl:call-template>
  3248.                                         <xsl:call-template name ="templ_prop_Space"/>
  3249.                                     </xsl:otherwise>
  3250.                                 </xsl:choose>
  3251.                             </xsl:when>
  3252.                         </xsl:choose>
  3253.  
  3254.                         <xsl:choose>
  3255.                             <xsl:when test="$cComposerLastName=1">
  3256.                                 <xsl:value-of select="b:Author/b:Composer/b:NameList/b:Person/b:Last"/>
  3257.                                 <xsl:call-template name ="templ_prop_ListSeparator"/>
  3258.                             </xsl:when>
  3259.                         </xsl:choose>
  3260.  
  3261.                         <xsl:if test="$cComposer=1">
  3262.                             <xsl:call-template name="templ_str_ComposerCap"/>
  3263.                             <xsl:call-template name ="templ_prop_ListSeparator"/>
  3264.                         </xsl:if>
  3265.                     </xsl:when>
  3266.  
  3267.                     <xsl:when test="$cComposer>1">
  3268.                         <xsl:for-each select="b:Author/b:Composer/b:NameList/b:Person">
  3269.                             <xsl:variable name ="cComposerFirstName">
  3270.                                 <xsl:value-of select ="count(b:First)"/>
  3271.                             </xsl:variable>
  3272.                             <xsl:variable name ="cComposerLastName">
  3273.                                 <xsl:value-of select ="count(b:Last)"/>
  3274.                             </xsl:variable>
  3275.                             <xsl:variable name ="cComposerMiddleName">
  3276.                                 <xsl:value-of select ="count(b:Middle)"/>
  3277.                             </xsl:variable>
  3278.  
  3279.                             <xsl:choose>
  3280.  
  3281.                                 <xsl:when test =" $cComposer>1 and (position())=$cComposer">
  3282.                                     <xsl:call-template name ="templ_prop_Space"/>
  3283.                                     <xsl:call-template name ="templ_str_AndUnCap"/>
  3284.                                     <xsl:call-template name ="templ_prop_Space"/>
  3285.                                 </xsl:when>
  3286.                             </xsl:choose>
  3287.  
  3288.                             <xsl:choose>
  3289.                                 <xsl:when test="$cComposerFirstName=1">
  3290.                                     <xsl:choose>
  3291.                                         <xsl:when test="contains(b:First,$prop_APA_FromToDash)">
  3292.                                             <xsl:call-template name="HandleSPaceHypenInAuthor">
  3293.                                                 <xsl:with-param name="author">
  3294.                                                     <xsl:call-template name="right-trim">
  3295.                                                         <xsl:with-param name ="s" select="b:First"/>
  3296.                                                     </xsl:call-template>
  3297.                                                 </xsl:with-param>
  3298.                                             </xsl:call-template>
  3299.                                             <xsl:call-template name ="templ_prop_Space"/>
  3300.                                         </xsl:when>
  3301.                                         <xsl:otherwise>
  3302.                                             <xsl:call-template name="splitAuthorSpace">
  3303.                                                 <xsl:with-param name ="first">
  3304.                                                     <xsl:call-template name="right-trim">
  3305.                                                         <xsl:with-param name ="s" select="b:First"/>
  3306.                                                     </xsl:call-template>
  3307.                                                 </xsl:with-param>
  3308.                                             </xsl:call-template>
  3309.                                             <xsl:call-template name ="templ_prop_Space"/>
  3310.                                         </xsl:otherwise>
  3311.                                     </xsl:choose>
  3312.                                 </xsl:when>
  3313.                             </xsl:choose>
  3314.  
  3315.                             <xsl:choose>
  3316.                                 <xsl:when test="$cComposerMiddleName=1">
  3317.                                     <xsl:choose>
  3318.                                         <xsl:when test="contains(b:Middle,$prop_APA_FromToDash)">
  3319.                                             <xsl:call-template name="HandleSPaceHypenInAuthor">
  3320.                                                 <xsl:with-param name="author">
  3321.                                                     <xsl:call-template name="right-trim">
  3322.                                                         <xsl:with-param name ="s" select="b:Middle"/>
  3323.                                                     </xsl:call-template>
  3324.                                                 </xsl:with-param>
  3325.                                             </xsl:call-template>
  3326.                                             <xsl:call-template name ="templ_prop_Space"/>
  3327.                                         </xsl:when>
  3328.                                         <xsl:otherwise>
  3329.                                             <xsl:call-template name="splitAuthorSpace">
  3330.                                                 <xsl:with-param name ="first">
  3331.                                                     <xsl:call-template name="right-trim">
  3332.                                                         <xsl:with-param name ="s" select="b:Middle"/>
  3333.                                                     </xsl:call-template>
  3334.                                                 </xsl:with-param>
  3335.                                             </xsl:call-template>
  3336.                                             <xsl:call-template name ="templ_prop_Space"/>
  3337.                                         </xsl:otherwise>
  3338.                                     </xsl:choose>
  3339.                                 </xsl:when>
  3340.                             </xsl:choose>
  3341.  
  3342.                             <xsl:choose>
  3343.                                 <xsl:when test="$cComposerLastName=1">
  3344.                                     <xsl:value-of select="b:Last"/>
  3345.                                     <xsl:if test="((position()+1)!=$cComposer) and (position()&lt;$cComposer)">
  3346.                                         <xsl:call-template name ="templ_prop_ListSeparator"/>
  3347.                                     </xsl:if>
  3348.  
  3349.                                 </xsl:when>
  3350.                             </xsl:choose>
  3351.                         </xsl:for-each>
  3352.                         <xsl:call-template name ="templ_prop_ListSeparator"/>
  3353.  
  3354.                         <xsl:if test="$cComposer>1">
  3355.                             <xsl:call-template name="templ_str_ComposersCap"/>
  3356.                             <xsl:call-template name ="templ_prop_ListSeparator"/>
  3357.                         </xsl:if>
  3358.  
  3359.                     </xsl:when>
  3360.                 </xsl:choose>
  3361.             </xsl:when>
  3362.  
  3363.             <xsl:when test="$cConductor!=0">
  3364.                 <xsl:choose>
  3365.                     <xsl:when test="$cConductor = 1">
  3366.                         <xsl:variable name ="cConductorFirstName">
  3367.                             <xsl:value-of select ="count(b:Author/b:Conductor/b:NameList/b:Person/b:First)"/>
  3368.                         </xsl:variable>
  3369.                         <xsl:variable name ="cConductorLastName">
  3370.                             <xsl:value-of select ="count(b:Author/b:Conductor/b:NameList/b:Person/b:Last)"/>
  3371.                         </xsl:variable>
  3372.                         <xsl:variable name ="cConductorMiddleName">
  3373.                             <xsl:value-of select ="count(b:Author/b:Conductor/b:NameList/b:Person/b:Middle)"/>
  3374.                         </xsl:variable>
  3375.  
  3376.                         <xsl:choose>
  3377.  
  3378.                             <xsl:when test="$cConductorFirstName=1">
  3379.                                 <xsl:choose>
  3380.                                     <xsl:when test="contains(b:Author/b:Conductor/b:NameList/b:Person/b:First,$prop_APA_FromToDash)">
  3381.                                         <xsl:call-template name="HandleSPaceHypenInAuthor">
  3382.                                             <xsl:with-param name="author">
  3383.                                                 <xsl:call-template name="right-trim">
  3384.                                                     <xsl:with-param name ="s" select="b:Author/b:Conductor/b:NameList/b:Person/b:First"/>
  3385.                                                 </xsl:call-template>
  3386.                                             </xsl:with-param>
  3387.                                         </xsl:call-template>
  3388.                                         <xsl:call-template name ="templ_prop_Space"/>
  3389.                                     </xsl:when>
  3390.                                     <xsl:otherwise>
  3391.                                         <xsl:call-template name="splitAuthorSpace">
  3392.                                             <xsl:with-param name ="first">
  3393.                                                 <xsl:call-template name="right-trim">
  3394.                                                     <xsl:with-param name ="s" select="b:Author/b:Conductor/b:NameList/b:Person/b:First"/>
  3395.                                                 </xsl:call-template>
  3396.                                             </xsl:with-param>
  3397.                                         </xsl:call-template>
  3398.                                         <xsl:call-template name ="templ_prop_Space"/>
  3399.                                     </xsl:otherwise>
  3400.                                 </xsl:choose>
  3401.                             </xsl:when>
  3402.                         </xsl:choose>
  3403.  
  3404.                         <xsl:choose>
  3405.                             <xsl:when test="$cConductorMiddleName=1">
  3406.                                 <xsl:choose>
  3407.                                     <xsl:when test="contains(b:Author/b:Conductor/b:NameList/b:Person/b:Middle,$prop_APA_FromToDash)">
  3408.                                         <xsl:call-template name="HandleSPaceHypenInAuthor">
  3409.                                             <xsl:with-param name="author">
  3410.                                                 <xsl:call-template name="right-trim">
  3411.                                                     <xsl:with-param name ="s" select="b:Author/b:Conductor/b:NameList/b:Person/b:Middle"/>
  3412.                                                 </xsl:call-template>
  3413.                                             </xsl:with-param>
  3414.                                         </xsl:call-template>
  3415.                                         <xsl:call-template name ="templ_prop_Space"/>
  3416.                                     </xsl:when>
  3417.                                     <xsl:otherwise>
  3418.                                         <xsl:call-template name="splitAuthorSpace">
  3419.                                             <xsl:with-param name ="first">
  3420.                                                 <xsl:call-template name="right-trim">
  3421.                                                     <xsl:with-param name ="s" select="b:Author/b:Conductor/b:NameList/b:Person/b:Middle"/>
  3422.                                                 </xsl:call-template>
  3423.                                             </xsl:with-param>
  3424.                                         </xsl:call-template>
  3425.                                         <xsl:call-template name ="templ_prop_Space"/>
  3426.                                     </xsl:otherwise>
  3427.                                 </xsl:choose>
  3428.                             </xsl:when>
  3429.                         </xsl:choose>
  3430.  
  3431.                         <xsl:choose>
  3432.                             <xsl:when test="$cConductorLastName=1">
  3433.                                 <xsl:value-of select="b:Author/b:Conductor/b:NameList/b:Person/b:Last"/>
  3434.                                 <xsl:call-template name ="templ_prop_ListSeparator"/>
  3435.                             </xsl:when>
  3436.                         </xsl:choose>
  3437.  
  3438.                         <xsl:if test="$cConductor=1">
  3439.                             <xsl:call-template name="templ_str_ConductorCap"/>
  3440.                             <xsl:call-template name ="templ_prop_ListSeparator"/>
  3441.                         </xsl:if>
  3442.                     </xsl:when>
  3443.  
  3444.                     <xsl:when test="$cConductor>1">
  3445.                         <xsl:for-each select="b:Author/b:Conductor/b:NameList/b:Person">
  3446.                             <xsl:variable name ="cConductorFirstName">
  3447.                                 <xsl:value-of select ="count(b:First)"/>
  3448.                             </xsl:variable>
  3449.                             <xsl:variable name ="cConductorLastName">
  3450.                                 <xsl:value-of select ="count(b:Last)"/>
  3451.                             </xsl:variable>
  3452.                             <xsl:variable name ="cConductorMiddleName">
  3453.                                 <xsl:value-of select ="count(b:Middle)"/>
  3454.                             </xsl:variable>
  3455.  
  3456.                             <xsl:choose>
  3457.  
  3458.                                 <xsl:when test =" $cConductor>1 and (position())=$cConductor">
  3459.                                     <xsl:call-template name ="templ_prop_Space"/>
  3460.                                     <xsl:call-template name ="templ_str_AndUnCap"/>
  3461.                                     <xsl:call-template name ="templ_prop_Space"/>
  3462.                                 </xsl:when>
  3463.                             </xsl:choose>
  3464.  
  3465.                             <xsl:choose>
  3466.                                 <xsl:when test="$cConductorFirstName=1">
  3467.                                     <xsl:choose>
  3468.                                         <xsl:when test="contains(b:First,$prop_APA_FromToDash)">
  3469.                                             <xsl:call-template name="HandleSPaceHypenInAuthor">
  3470.                                                 <xsl:with-param name="author">
  3471.                                                     <xsl:call-template name="right-trim">
  3472.                                                         <xsl:with-param name ="s" select="b:First"/>
  3473.                                                     </xsl:call-template>
  3474.                                                 </xsl:with-param>
  3475.                                             </xsl:call-template>
  3476.                                             <xsl:call-template name ="templ_prop_Space"/>
  3477.                                         </xsl:when>
  3478.                                         <xsl:otherwise>
  3479.                                             <xsl:call-template name="splitAuthorSpace">
  3480.                                                 <xsl:with-param name ="first">
  3481.                                                     <xsl:call-template name="right-trim">
  3482.                                                         <xsl:with-param name ="s" select="b:First"/>
  3483.                                                     </xsl:call-template>
  3484.                                                 </xsl:with-param>
  3485.                                             </xsl:call-template>
  3486.                                             <xsl:call-template name ="templ_prop_Space"/>
  3487.                                         </xsl:otherwise>
  3488.                                     </xsl:choose>
  3489.                                 </xsl:when>
  3490.                             </xsl:choose>
  3491.  
  3492.                             <xsl:choose>
  3493.                                 <xsl:when test="$cConductorMiddleName=1">
  3494.                                     <xsl:choose>
  3495.                                         <xsl:when test="contains(b:Middle,$prop_APA_FromToDash)">
  3496.                                             <xsl:call-template name="HandleSPaceHypenInAuthor">
  3497.                                                 <xsl:with-param name="author">
  3498.                                                     <xsl:call-template name="right-trim">
  3499.                                                         <xsl:with-param name ="s" select="b:Middle"/>
  3500.                                                     </xsl:call-template>
  3501.                                                 </xsl:with-param>
  3502.                                             </xsl:call-template>
  3503.                                             <xsl:call-template name ="templ_prop_Space"/>
  3504.                                         </xsl:when>
  3505.                                         <xsl:otherwise>
  3506.                                             <xsl:call-template name="splitAuthorSpace">
  3507.                                                 <xsl:with-param name ="first">
  3508.                                                     <xsl:call-template name="right-trim">
  3509.                                                         <xsl:with-param name ="s" select="b:Middle"/>
  3510.                                                     </xsl:call-template>
  3511.                                                 </xsl:with-param>
  3512.                                             </xsl:call-template>
  3513.                                             <xsl:call-template name ="templ_prop_Space"/>
  3514.                                         </xsl:otherwise>
  3515.                                     </xsl:choose>
  3516.                                 </xsl:when>
  3517.                             </xsl:choose>
  3518.  
  3519.                             <xsl:choose>
  3520.                                 <xsl:when test="$cConductorLastName=1">
  3521.                                     <xsl:value-of select="b:Last"/>
  3522.                                     <xsl:if test="((position()+1)!=$cConductor) and (position()&lt;$cConductor)">
  3523.                                         <xsl:call-template name ="templ_prop_ListSeparator"/>
  3524.                                     </xsl:if>
  3525.                                 </xsl:when>
  3526.                             </xsl:choose>
  3527.                         </xsl:for-each>
  3528.                         <xsl:call-template name ="templ_prop_ListSeparator"/>
  3529.  
  3530.                         <xsl:if test="$cConductor>1">
  3531.                             <xsl:call-template name="templ_str_ConductorsCap"/>
  3532.                             <xsl:call-template name ="templ_prop_ListSeparator"/>
  3533.                         </xsl:if>
  3534.  
  3535.                     </xsl:when>
  3536.                 </xsl:choose>
  3537.             </xsl:when>
  3538.  
  3539.             <xsl:when test="$cPerformer!=0">
  3540.                 <xsl:choose>
  3541.                     <xsl:when test="$cPerformer = 1">
  3542.                         <xsl:variable name ="cPerformerFirstName">
  3543.                             <xsl:value-of select ="count(b:Author/b:Performer/b:NameList/b:Person/b:First)"/>
  3544.                         </xsl:variable>
  3545.                         <xsl:variable name ="cPerformerLastName">
  3546.                             <xsl:value-of select ="count(b:Author/b:Performer/b:NameList/b:Person/b:Last)"/>
  3547.                         </xsl:variable>
  3548.                         <xsl:variable name ="cPerformerMiddleName">
  3549.                             <xsl:value-of select ="count(b:Author/b:Performer/b:NameList/b:Person/b:Middle)"/>
  3550.                         </xsl:variable>
  3551.  
  3552.                         <xsl:choose>
  3553.  
  3554.                             <xsl:when test="$cPerformerFirstName=1">
  3555.                                 <xsl:choose>
  3556.                                     <xsl:when test="contains(b:Author/b:Performer/b:NameList/b:Person/b:First,$prop_APA_FromToDash)">
  3557.                                         <xsl:call-template name="HandleSPaceHypenInAuthor">
  3558.                                             <xsl:with-param name="author">
  3559.                                                 <xsl:call-template name="right-trim">
  3560.                                                     <xsl:with-param name ="s" select="b:Author/b:Performer/b:NameList/b:Person/b:First"/>
  3561.                                                 </xsl:call-template>
  3562.                                             </xsl:with-param>
  3563.                                         </xsl:call-template>
  3564.                                         <xsl:call-template name ="templ_prop_Space"/>
  3565.                                     </xsl:when>
  3566.                                     <xsl:otherwise>
  3567.                                         <xsl:call-template name="splitAuthorSpace">
  3568.                                             <xsl:with-param name ="first">
  3569.                                                 <xsl:call-template name="right-trim">
  3570.                                                     <xsl:with-param name ="s" select="b:Author/b:Performer/b:NameList/b:Person/b:First"/>
  3571.                                                 </xsl:call-template>
  3572.                                             </xsl:with-param>
  3573.                                         </xsl:call-template>
  3574.                                         <xsl:call-template name ="templ_prop_Space"/>
  3575.                                     </xsl:otherwise>
  3576.                                 </xsl:choose>
  3577.                             </xsl:when>
  3578.                         </xsl:choose>
  3579.  
  3580.                         <xsl:choose>
  3581.                             <xsl:when test="$cPerformerMiddleName=1">
  3582.                                 <xsl:choose>
  3583.                                     <xsl:when test="contains(b:Author/b:Performer/b:NameList/b:Person/b:Middle,$prop_APA_FromToDash)">
  3584.                                         <xsl:call-template name="HandleSPaceHypenInAuthor">
  3585.                                             <xsl:with-param name="author">
  3586.                                                 <xsl:call-template name="right-trim">
  3587.                                                     <xsl:with-param name ="s" select="b:Author/b:Performer/b:NameList/b:Person/b:Middle"/>
  3588.                                                 </xsl:call-template>
  3589.                                             </xsl:with-param>
  3590.                                         </xsl:call-template>
  3591.                                         <xsl:call-template name ="templ_prop_Space"/>
  3592.                                     </xsl:when>
  3593.                                     <xsl:otherwise>
  3594.                                         <xsl:call-template name="splitAuthorSpace">
  3595.                                             <xsl:with-param name ="first">
  3596.                                                 <xsl:call-template name="right-trim">
  3597.                                                     <xsl:with-param name ="s" select="b:Author/b:Performer/b:NameList/b:Person/b:Middle"/>
  3598.                                                 </xsl:call-template>
  3599.                                             </xsl:with-param>
  3600.                                         </xsl:call-template>
  3601.                                         <xsl:call-template name ="templ_prop_Space"/>
  3602.                                     </xsl:otherwise>
  3603.                                 </xsl:choose>
  3604.                             </xsl:when>
  3605.                         </xsl:choose>
  3606.  
  3607.                         <xsl:choose>
  3608.                             <xsl:when test="$cPerformerLastName=1">
  3609.                                 <xsl:value-of select="b:Author/b:Performer/b:NameList/b:Person/b:Last"/>
  3610.                                 <xsl:call-template name ="templ_prop_ListSeparator"/>
  3611.                             </xsl:when>
  3612.                         </xsl:choose>
  3613.  
  3614.                         <xsl:if test="$cPerformer=1">
  3615.                             <xsl:call-template name="templ_str_PerformerCap"/>
  3616.                             <xsl:call-template name ="templ_prop_ListSeparator"/>
  3617.                         </xsl:if>
  3618.                     </xsl:when>
  3619.  
  3620.                     <xsl:when test="$cPerformer>1">
  3621.                         <xsl:for-each select="b:Author/b:Performer/b:NameList/b:Person">
  3622.                             <xsl:variable name ="cPerformerFirstName">
  3623.                                 <xsl:value-of select ="count(b:First)"/>
  3624.                             </xsl:variable>
  3625.                             <xsl:variable name ="cPerformerLastName">
  3626.                                 <xsl:value-of select ="count(b:Last)"/>
  3627.                             </xsl:variable>
  3628.                             <xsl:variable name ="cPerformerMiddleName">
  3629.                                 <xsl:value-of select ="count(b:Middle)"/>
  3630.                             </xsl:variable>
  3631.  
  3632.                             <xsl:choose>
  3633.                                 <xsl:when test =" $cPerformer>1 and (position())=$cPerformer">
  3634.                                     <xsl:call-template name ="templ_prop_Space"/>
  3635.                                     <xsl:call-template name ="templ_str_AndUnCap"/>
  3636.                                     <xsl:call-template name ="templ_prop_Space"/>
  3637.                                 </xsl:when>
  3638.                             </xsl:choose>
  3639.  
  3640.                             <xsl:choose>
  3641.                                 <xsl:when test="$cPerformerFirstName=1">
  3642.                                     <xsl:choose>
  3643.                                         <xsl:when test="contains(b:First,$prop_APA_FromToDash)">
  3644.                                             <xsl:call-template name="HandleSPaceHypenInAuthor">
  3645.                                                 <xsl:with-param name="author">
  3646.                                                     <xsl:call-template name="right-trim">
  3647.                                                         <xsl:with-param name ="s" select="b:First"/>
  3648.                                                     </xsl:call-template>
  3649.                                                 </xsl:with-param>
  3650.                                             </xsl:call-template>
  3651.                                             <xsl:call-template name ="templ_prop_Space"/>
  3652.                                         </xsl:when>
  3653.                                         <xsl:otherwise>
  3654.                                             <xsl:call-template name="splitAuthorSpace">
  3655.                                                 <xsl:with-param name ="first">
  3656.                                                     <xsl:call-template name="right-trim">
  3657.                                                         <xsl:with-param name ="s" select="b:First"/>
  3658.                                                     </xsl:call-template>
  3659.                                                 </xsl:with-param>
  3660.                                             </xsl:call-template>
  3661.                                             <xsl:call-template name ="templ_prop_Space"/>
  3662.                                         </xsl:otherwise>
  3663.                                     </xsl:choose>
  3664.                                 </xsl:when>
  3665.                             </xsl:choose>
  3666.  
  3667.                             <xsl:choose>
  3668.                                 <xsl:when test="$cPerformerMiddleName=1">
  3669.                                     <xsl:choose>
  3670.                                         <xsl:when test="contains(b:Middle,$prop_APA_FromToDash)">
  3671.                                             <xsl:call-template name="HandleSPaceHypenInAuthor">
  3672.                                                 <xsl:with-param name="author">
  3673.                                                     <xsl:call-template name="right-trim">
  3674.                                                         <xsl:with-param name ="s" select="b:Middle"/>
  3675.                                                     </xsl:call-template>
  3676.                                                 </xsl:with-param>
  3677.                                             </xsl:call-template>
  3678.                                             <xsl:call-template name ="templ_prop_Space"/>
  3679.                                         </xsl:when>
  3680.                                         <xsl:otherwise>
  3681.                                             <xsl:call-template name="splitAuthorSpace">
  3682.                                                 <xsl:with-param name ="first">
  3683.                                                     <xsl:call-template name="right-trim">
  3684.                                                         <xsl:with-param name ="s" select="b:Middle"/>
  3685.                                                     </xsl:call-template>
  3686.                                                 </xsl:with-param>
  3687.                                             </xsl:call-template>
  3688.                                             <xsl:call-template name ="templ_prop_Space"/>
  3689.                                         </xsl:otherwise>
  3690.                                     </xsl:choose>
  3691.                                 </xsl:when>
  3692.                             </xsl:choose>
  3693.  
  3694.                             <xsl:choose>
  3695.                                 <xsl:when test="$cPerformerLastName=1">
  3696.                                     <xsl:value-of select="b:Last"/>
  3697.                                     <xsl:if test="((position()+1)!=$cPerformer) and (position()&lt;$cPerformer)">
  3698.                                         <xsl:call-template name ="templ_prop_ListSeparator"/>
  3699.                                     </xsl:if>
  3700.                                 </xsl:when>
  3701.                             </xsl:choose>
  3702.                         </xsl:for-each>
  3703.                         <xsl:call-template name ="templ_prop_ListSeparator"/>
  3704.  
  3705.                         <xsl:if test="$cPerformer>1">
  3706.                             <xsl:call-template name="templ_str_PerformersCap"/>
  3707.                             <xsl:call-template name ="templ_prop_ListSeparator"/>
  3708.                         </xsl:if>
  3709.                     </xsl:when>
  3710.                 </xsl:choose>
  3711.             </xsl:when>
  3712.             <xsl:otherwise>
  3713.                 <xsl:if test="$cCorporatePerformer>0">
  3714.                     <xsl:value-of select="b:Author/b:Performer/b:Corporate"/>
  3715.                     <xsl:call-template name ="templ_prop_ListSeparator"/>
  3716.                     <xsl:call-template name="templ_str_PerformerCap"/>
  3717.                     <xsl:call-template name ="templ_prop_ListSeparator"/>
  3718.                 </xsl:if>
  3719.             </xsl:otherwise>
  3720.         </xsl:choose>
  3721.     </xsl:template>
  3722.  
  3723.     <xsl:template name="BibDisplayTitlePerformance">
  3724.         <xsl:variable name="cTitle">
  3725.             <xsl:value-of select="count(b:Title)"/>
  3726.         </xsl:variable>
  3727.         <xsl:if test ="$cTitle!=0">
  3728.             <xsl:call-template name="right-trim">
  3729.                 <xsl:with-param name ="s" select="b:Title"/>
  3730.             </xsl:call-template>
  3731.             <xsl:call-template name ="templ_prop_Dot"/>
  3732.             <xsl:call-template name ="templ_prop_Space"/>
  3733.         </xsl:if>
  3734.     </xsl:template>
  3735.  
  3736.  
  3737.     <xsl:template name="strinventorPatent">
  3738.         <xsl:text>Inventor</xsl:text>
  3739.         <xsl:call-template name ="templ_prop_Dot"/>
  3740.         <xsl:call-template name ="templ_prop_Space"/>
  3741.     </xsl:template>
  3742.  
  3743.     <xsl:template name="strinventorsPatent">
  3744.         <xsl:text>Inventors</xsl:text>
  3745.         <xsl:call-template name ="templ_prop_Dot"/>
  3746.         <xsl:call-template name ="templ_prop_Space"/>
  3747.     </xsl:template>
  3748.     <xsl:template name="strintervieweeInterview">
  3749.         <xsl:text>Interviewee</xsl:text>
  3750.         <xsl:call-template name ="templ_prop_ListSeparator"/>
  3751.         <xsl:call-template name ="templ_prop_Space"/>
  3752.     </xsl:template>
  3753.  
  3754.     <xsl:template name="strintervieweesInterview">
  3755.         <xsl:text>Interviewees</xsl:text>
  3756.         <xsl:call-template name ="templ_prop_ListSeparator"/>
  3757.         <xsl:call-template name ="templ_prop_Space"/>
  3758.     </xsl:template>
  3759.  
  3760.     <xsl:template name="strPerformance">
  3761.         <xsl:call-template name ="templ_prop_SecondaryOpen"/>
  3762.         <xsl:text>Performance</xsl:text>
  3763.         <xsl:call-template name="templ_prop_SecondaryClose"/>
  3764.         <xsl:call-template name ="templ_prop_Dot"/>
  3765.         <xsl:call-template name ="templ_prop_Space"/>
  3766.     </xsl:template>
  3767.  
  3768.     <xsl:template name="strArtist">
  3769.  
  3770.         <xsl:text >Artist</xsl:text>
  3771.         <xsl:call-template name ="templ_prop_ListSeparator"/>
  3772.         <xsl:call-template name ="templ_prop_Space"/>
  3773.     </xsl:template>
  3774.     <xsl:template name="strArtists">
  3775.  
  3776.         <xsl:text >Artists</xsl:text>
  3777.         <xsl:call-template name ="templ_prop_ListSeparator"/>
  3778.         <xsl:call-template name ="templ_prop_Space"/>
  3779.     </xsl:template>
  3780.     <xsl:template name="strArt">
  3781.         <xsl:call-template name ="templ_prop_SecondaryOpen"/>
  3782.         <xsl:text >Art</xsl:text>
  3783.         <xsl:call-template name="templ_prop_SecondaryClose"/>
  3784.         <xsl:call-template name ="templ_prop_Dot"/>
  3785.         <xsl:call-template name ="templ_prop_Space"/>
  3786.     </xsl:template>
  3787.  
  3788.     <xsl:template name ="BibDisplayAuthorPatent">
  3789.         <xsl:variable name="cInventor">
  3790.             <xsl:value-of select="count(b:Author/b:Inventor/b:NameList/b:Person)" />
  3791.         </xsl:variable>
  3792.         <xsl:variable name="cTitle">
  3793.             <xsl:value-of select="count(b:Title)" />
  3794.         </xsl:variable>
  3795.         <xsl:variable name="prop_APA_FromToDash">
  3796.             <xsl:call-template name="templ_prop_FromToDash"/>
  3797.         </xsl:variable>
  3798.         <xsl:choose>
  3799.  
  3800.             <xsl:when test="$cInventor = 1">
  3801.                 <xsl:variable name ="cInventorFirstName">
  3802.                     <xsl:value-of select ="count(b:Author/b:Inventor/b:NameList/b:Person/b:First)"/>
  3803.                 </xsl:variable>
  3804.                 <xsl:variable name ="cInventorLastName">
  3805.                     <xsl:value-of select ="count(b:Author/b:Inventor/b:NameList/b:Person/b:Last)"/>
  3806.                 </xsl:variable>
  3807.                 <xsl:variable name ="cInventorMiddleName">
  3808.                     <xsl:value-of select ="count(b:Author/b:Inventor/b:NameList/b:Person/b:Middle)"/>
  3809.                 </xsl:variable>
  3810.  
  3811.                 <xsl:choose>
  3812.                     <xsl:when test="$cInventorFirstName=1">
  3813.                         <xsl:choose>
  3814.                             <xsl:when test="contains(b:Author/b:Inventor/b:NameList/b:Person/b:First,$prop_APA_FromToDash)">
  3815.                                 <xsl:call-template name="HandleSPaceHypenInAuthor">
  3816.                                     <xsl:with-param name="author">
  3817.                                         <xsl:call-template name="right-trim">
  3818.                                             <xsl:with-param name ="s" select="b:Author/b:Inventor/b:NameList/b:Person/b:First"/>
  3819.                                         </xsl:call-template>
  3820.                                     </xsl:with-param>
  3821.                                 </xsl:call-template>
  3822.                                 <xsl:call-template name ="templ_prop_Space"/>
  3823.                             </xsl:when>
  3824.                             <xsl:otherwise>
  3825.                                 <xsl:call-template name="splitAuthorSpace">
  3826.                                     <xsl:with-param name ="first">
  3827.                                         <xsl:call-template name="right-trim">
  3828.                                             <xsl:with-param name ="s" select="b:Author/b:Inventor/b:NameList/b:Person/b:First"/>
  3829.                                         </xsl:call-template>
  3830.                                     </xsl:with-param>
  3831.                                 </xsl:call-template>
  3832.                                 <xsl:call-template name ="templ_prop_Space"/>
  3833.                             </xsl:otherwise>
  3834.                         </xsl:choose>
  3835.                     </xsl:when>
  3836.                 </xsl:choose>
  3837.  
  3838.                 <xsl:choose>
  3839.                     <xsl:when test="$cInventorMiddleName=1">
  3840.                         <xsl:choose>
  3841.                             <xsl:when test="contains(b:Author/b:Inventor/b:NameList/b:Person/b:Middle,$prop_APA_FromToDash)">
  3842.                                 <xsl:call-template name="HandleSPaceHypenInAuthor">
  3843.                                     <xsl:with-param name="author">
  3844.                                         <xsl:call-template name="right-trim">
  3845.                                             <xsl:with-param name ="s" select="b:Author/b:Inventor/b:NameList/b:Person/b:Middle"/>
  3846.                                         </xsl:call-template>
  3847.                                     </xsl:with-param>
  3848.                                 </xsl:call-template>
  3849.                                 <xsl:call-template name ="templ_prop_Space"/>
  3850.                             </xsl:when>
  3851.                             <xsl:otherwise>
  3852.                                 <xsl:call-template name="splitAuthorSpace">
  3853.                                     <xsl:with-param name ="first">
  3854.                                         <xsl:call-template name="right-trim">
  3855.                                             <xsl:with-param name ="s" select="b:Author/b:Inventor/b:NameList/b:Person/b:Middle"/>
  3856.                                         </xsl:call-template>
  3857.                                     </xsl:with-param>
  3858.                                 </xsl:call-template>
  3859.                                 <xsl:call-template name ="templ_prop_Space"/>
  3860.                             </xsl:otherwise>
  3861.                         </xsl:choose>
  3862.                     </xsl:when>
  3863.                 </xsl:choose>
  3864.  
  3865.                 <xsl:choose>
  3866.                     <xsl:when test="$cInventorLastName=1">
  3867.                         <xsl:value-of select="b:Author/b:Inventor/b:NameList/b:Person/b:Last"/>
  3868.                         <xsl:choose>
  3869.                             <xsl:when test="$cTitle!=0">
  3870.                                 <xsl:call-template name ="templ_prop_ListSeparator"/>
  3871.                             </xsl:when>
  3872.                             <xsl:otherwise>
  3873.                                 <xsl:call-template name ="templ_prop_Dot"/>
  3874.                             </xsl:otherwise>
  3875.                         </xsl:choose>
  3876.                     </xsl:when>
  3877.                 </xsl:choose>
  3878.             </xsl:when>
  3879.  
  3880.             <xsl:when test="$cInventor>1">
  3881.                 <xsl:for-each select="b:Author/b:Inventor/b:NameList/b:Person">
  3882.                     <xsl:variable name ="cInventorFirstName">
  3883.                         <xsl:value-of select ="count(b:First)"/>
  3884.                     </xsl:variable>
  3885.                     <xsl:variable name ="cInventorLastName">
  3886.                         <xsl:value-of select ="count(b:Last)"/>
  3887.                     </xsl:variable>
  3888.                     <xsl:variable name ="cInventorMiddleName">
  3889.                         <xsl:value-of select ="count(b:Middle)"/>
  3890.                     </xsl:variable>
  3891.  
  3892.                     <xsl:choose>
  3893.  
  3894.                         <xsl:when test =" $cInventor>1 and (position())=$cInventor">
  3895.                             <xsl:call-template name ="templ_prop_Space"/>
  3896.                             <xsl:call-template name ="templ_str_AndUnCap"/>
  3897.                             <xsl:call-template name ="templ_prop_Space"/>
  3898.                         </xsl:when>
  3899.                     </xsl:choose>
  3900.  
  3901.                     <xsl:choose>
  3902.                         <xsl:when test="$cInventorFirstName=1">
  3903.                             <xsl:choose>
  3904.                                 <xsl:when test="contains(b:First,$prop_APA_FromToDash)">
  3905.                                     <xsl:call-template name="HandleSPaceHypenInAuthor">
  3906.                                         <xsl:with-param name="author">
  3907.                                             <xsl:call-template name="right-trim">
  3908.                                                 <xsl:with-param name ="s" select="b:First"/>
  3909.                                             </xsl:call-template>
  3910.                                         </xsl:with-param>
  3911.                                     </xsl:call-template>
  3912.                                     <xsl:call-template name ="templ_prop_Space"/>
  3913.                                 </xsl:when>
  3914.                                 <xsl:otherwise>
  3915.                                     <xsl:call-template name="splitAuthorSpace">
  3916.                                         <xsl:with-param name ="first">
  3917.                                             <xsl:call-template name="right-trim">
  3918.                                                 <xsl:with-param name ="s" select="b:First"/>
  3919.                                             </xsl:call-template>
  3920.                                         </xsl:with-param>
  3921.                                     </xsl:call-template>
  3922.                                     <xsl:call-template name ="templ_prop_Space"/>
  3923.                                 </xsl:otherwise>
  3924.                             </xsl:choose>
  3925.                         </xsl:when>
  3926.                     </xsl:choose>
  3927.  
  3928.                     <xsl:choose>
  3929.                         <xsl:when test="$cInventorMiddleName=1">
  3930.                             <xsl:choose>
  3931.                                 <xsl:when test="contains(b:Middle,$prop_APA_FromToDash)">
  3932.                                     <xsl:call-template name="HandleSPaceHypenInAuthor">
  3933.                                         <xsl:with-param name="author">
  3934.                                             <xsl:call-template name="right-trim">
  3935.                                                 <xsl:with-param name ="s" select="b:Middle"/>
  3936.                                             </xsl:call-template>
  3937.                                         </xsl:with-param>
  3938.                                     </xsl:call-template>
  3939.                                     <xsl:call-template name ="templ_prop_Space"/>
  3940.                                 </xsl:when>
  3941.                                 <xsl:otherwise>
  3942.                                     <xsl:call-template name="splitAuthorSpace">
  3943.                                         <xsl:with-param name ="first">
  3944.                                             <xsl:call-template name="right-trim">
  3945.                                                 <xsl:with-param name ="s" select="b:Middle"/>
  3946.                                             </xsl:call-template>
  3947.                                         </xsl:with-param>
  3948.                                     </xsl:call-template>
  3949.                                     <xsl:call-template name ="templ_prop_Space"/>
  3950.                                 </xsl:otherwise>
  3951.                             </xsl:choose>
  3952.                         </xsl:when>
  3953.                     </xsl:choose>
  3954.  
  3955.                     <xsl:choose>
  3956.                         <xsl:when test="$cInventorLastName=1">
  3957.                             <xsl:value-of select="b:Last"/>
  3958.                             <xsl:if test="((position()+1)!=$cInventor) and (position()&lt;$cInventor)">
  3959.                                 <xsl:call-template name ="templ_prop_ListSeparator"/>
  3960.                             </xsl:if>
  3961.                         </xsl:when>
  3962.                     </xsl:choose>
  3963.                 </xsl:for-each>
  3964.                 <xsl:choose>
  3965.                     <xsl:when test="$cTitle!=0">
  3966.                         <xsl:call-template name ="templ_prop_ListSeparator"/>
  3967.                     </xsl:when>
  3968.                     <xsl:otherwise>
  3969.                         <xsl:call-template name ="templ_prop_Dot"/>
  3970.                     </xsl:otherwise>
  3971.                 </xsl:choose>
  3972.             </xsl:when>
  3973.         </xsl:choose>
  3974.     </xsl:template>
  3975.  
  3976.     <xsl:template name ="BibDisplayAuthorPerformance">
  3977.         <xsl:variable name="cWriter">
  3978.             <xsl:value-of select="count(b:Author/b:Writer/b:NameList/b:Person)" />
  3979.         </xsl:variable>
  3980.         <xsl:variable name="prop_APA_FromToDash">
  3981.             <xsl:call-template name="templ_prop_FromToDash"/>
  3982.         </xsl:variable>
  3983.         <xsl:choose>
  3984.             <xsl:when test="$cWriter = 1">
  3985.                 <xsl:variable name ="cWriterFirstName">
  3986.                     <xsl:value-of select ="count(b:Author/b:Writer/b:NameList/b:Person/b:First)"/>
  3987.                 </xsl:variable>
  3988.                 <xsl:variable name ="cWriterLastName">
  3989.                     <xsl:value-of select ="count(b:Author/b:Writer/b:NameList/b:Person/b:Last)"/>
  3990.                 </xsl:variable>
  3991.                 <xsl:variable name ="cWriterMiddleName">
  3992.                     <xsl:value-of select ="count(b:Author/b:Writer/b:NameList/b:Person/b:Middle)"/>
  3993.                 </xsl:variable>
  3994.  
  3995.                 <xsl:choose>
  3996.  
  3997.                     <xsl:when test="$cWriterFirstName=1">
  3998.                         <xsl:choose>
  3999.                             <xsl:when test="contains(b:Author/b:Writer/b:NameList/b:Person/b:First,$prop_APA_FromToDash)">
  4000.                                 <xsl:call-template name="HandleSPaceHypenInAuthor">
  4001.                                     <xsl:with-param name="author">
  4002.                                         <xsl:call-template name="right-trim">
  4003.                                             <xsl:with-param name ="s" select="b:Author/b:Writer/b:NameList/b:Person/b:First"/>
  4004.                                         </xsl:call-template>
  4005.                                     </xsl:with-param>
  4006.                                 </xsl:call-template>
  4007.                                 <xsl:call-template name ="templ_prop_Space"/>
  4008.                             </xsl:when>
  4009.                             <xsl:otherwise>
  4010.                                 <xsl:call-template name="splitAuthorSpace">
  4011.                                     <xsl:with-param name ="first">
  4012.                                         <xsl:call-template name="right-trim">
  4013.                                             <xsl:with-param name ="s" select="b:Author/b:Writer/b:NameList/b:Person/b:First"/>
  4014.                                         </xsl:call-template>
  4015.                                     </xsl:with-param>
  4016.                                 </xsl:call-template>
  4017.                                 <xsl:call-template name ="templ_prop_Space"/>
  4018.                             </xsl:otherwise>
  4019.                         </xsl:choose>
  4020.                     </xsl:when>
  4021.                 </xsl:choose>
  4022.  
  4023.                 <xsl:choose>
  4024.                     <xsl:when test="$cWriterMiddleName=1">
  4025.                         <xsl:choose>
  4026.                             <xsl:when test="contains(b:Author/b:Writer/b:NameList/b:Person/b:Middle,$prop_APA_FromToDash)">
  4027.                                 <xsl:call-template name="HandleSPaceHypenInAuthor">
  4028.                                     <xsl:with-param name="author">
  4029.                                         <xsl:call-template name="right-trim">
  4030.                                             <xsl:with-param name ="s" select="b:Author/b:Writer/b:NameList/b:Person/b:Middle"/>
  4031.                                         </xsl:call-template>
  4032.                                     </xsl:with-param>
  4033.                                 </xsl:call-template>
  4034.                                 <xsl:call-template name ="templ_prop_Space"/>
  4035.                             </xsl:when>
  4036.                             <xsl:otherwise>
  4037.                                 <xsl:call-template name="splitAuthorSpace">
  4038.                                     <xsl:with-param name ="first">
  4039.                                         <xsl:call-template name="right-trim">
  4040.                                             <xsl:with-param name ="s" select="b:Author/b:Writer/b:NameList/b:Person/b:Middle"/>
  4041.                                         </xsl:call-template>
  4042.                                     </xsl:with-param>
  4043.                                 </xsl:call-template>
  4044.                                 <xsl:call-template name ="templ_prop_Space"/>
  4045.                             </xsl:otherwise>
  4046.                         </xsl:choose>
  4047.                     </xsl:when>
  4048.                 </xsl:choose>
  4049.  
  4050.                 <xsl:choose>
  4051.                     <xsl:when test="$cWriterLastName=1">
  4052.                         <xsl:value-of select="b:Author/b:Writer/b:NameList/b:Person/b:Last"/>
  4053.                         <xsl:call-template name ="templ_prop_ListSeparator"/>
  4054.                     </xsl:when>
  4055.                 </xsl:choose>
  4056.  
  4057.                 <xsl:if test="$cWriter=1">
  4058.                     <xsl:call-template name="templ_str_WriterCap"/>
  4059.                     <xsl:call-template name ="templ_prop_ListSeparator"/>
  4060.                 </xsl:if>
  4061.             </xsl:when>
  4062.  
  4063.             <xsl:when test="$cWriter>1">
  4064.                 <xsl:for-each select="b:Author/b:Writer/b:NameList/b:Person">
  4065.                     <xsl:variable name ="cWriterFirstName">
  4066.                         <xsl:value-of select ="count(b:First)"/>
  4067.                     </xsl:variable>
  4068.                     <xsl:variable name ="cWriterLastName">
  4069.                         <xsl:value-of select ="count(b:Last)"/>
  4070.                     </xsl:variable>
  4071.                     <xsl:variable name ="cWriterMiddleName">
  4072.                         <xsl:value-of select ="count(b:Middle)"/>
  4073.                     </xsl:variable>
  4074.  
  4075.                     <xsl:choose>
  4076.  
  4077.                         <xsl:when test =" $cWriter>1 and (position())=$cWriter">
  4078.                             <xsl:call-template name ="templ_prop_Space"/>
  4079.                             <xsl:call-template name ="templ_str_AndUnCap"/>
  4080.                             <xsl:call-template name ="templ_prop_Space"/>
  4081.                         </xsl:when>
  4082.                     </xsl:choose>
  4083.  
  4084.                     <xsl:choose>
  4085.                         <xsl:when test="$cWriterFirstName=1">
  4086.                             <xsl:choose>
  4087.                                 <xsl:when test="contains(b:First,$prop_APA_FromToDash)">
  4088.                                     <xsl:call-template name="HandleSPaceHypenInAuthor">
  4089.                                         <xsl:with-param name="author">
  4090.                                             <xsl:call-template name="right-trim">
  4091.                                                 <xsl:with-param name ="s" select="b:First"/>
  4092.                                             </xsl:call-template>
  4093.                                         </xsl:with-param>
  4094.                                     </xsl:call-template>
  4095.                                     <xsl:call-template name ="templ_prop_Space"/>
  4096.                                 </xsl:when>
  4097.                                 <xsl:otherwise>
  4098.                                     <xsl:call-template name="splitAuthorSpace">
  4099.                                         <xsl:with-param name ="first">
  4100.                                             <xsl:call-template name="right-trim">
  4101.                                                 <xsl:with-param name ="s" select="b:First"/>
  4102.                                             </xsl:call-template>
  4103.                                         </xsl:with-param>
  4104.                                     </xsl:call-template>
  4105.                                     <xsl:call-template name ="templ_prop_Space"/>
  4106.                                 </xsl:otherwise>
  4107.                             </xsl:choose>
  4108.                         </xsl:when>
  4109.                     </xsl:choose>
  4110.  
  4111.                     <xsl:choose>
  4112.                         <xsl:when test="$cWriterMiddleName=1">
  4113.                             <xsl:choose>
  4114.                                 <xsl:when test="contains(b:Middle,$prop_APA_FromToDash)">
  4115.                                     <xsl:call-template name="HandleSPaceHypenInAuthor">
  4116.                                         <xsl:with-param name="author">
  4117.                                             <xsl:call-template name="right-trim">
  4118.                                                 <xsl:with-param name ="s" select="b:Middle"/>
  4119.                                             </xsl:call-template>
  4120.                                         </xsl:with-param>
  4121.                                     </xsl:call-template>
  4122.                                     <xsl:call-template name ="templ_prop_Space"/>
  4123.                                 </xsl:when>
  4124.                                 <xsl:otherwise>
  4125.                                     <xsl:call-template name="splitAuthorSpace">
  4126.                                         <xsl:with-param name ="first">
  4127.                                             <xsl:call-template name="right-trim">
  4128.                                                 <xsl:with-param name ="s" select="b:Middle"/>
  4129.                                             </xsl:call-template>
  4130.                                         </xsl:with-param>
  4131.                                     </xsl:call-template>
  4132.                                     <xsl:call-template name ="templ_prop_Space"/>
  4133.                                 </xsl:otherwise>
  4134.                             </xsl:choose>
  4135.                         </xsl:when>
  4136.                     </xsl:choose>
  4137.  
  4138.                     <xsl:choose>
  4139.                         <xsl:when test="$cWriterLastName=1">
  4140.                             <xsl:value-of select="b:Last"/>
  4141.                             <xsl:if test="((position()+1)!=$cWriter) and (position()&lt;$cWriter)">
  4142.                                 <xsl:call-template name ="templ_prop_ListSeparator"/>
  4143.                             </xsl:if>
  4144.                         </xsl:when>
  4145.                     </xsl:choose>
  4146.                 </xsl:for-each>
  4147.                 <xsl:call-template name ="templ_prop_ListSeparator"/>
  4148.  
  4149.                 <xsl:if test="$cWriter>1">
  4150.                     <xsl:call-template name="templ_str_WritersCap"/>
  4151.                     <xsl:call-template name ="templ_prop_ListSeparator"/>
  4152.                 </xsl:if>
  4153.  
  4154.             </xsl:when>
  4155.         </xsl:choose>
  4156.     </xsl:template>
  4157.  
  4158.     <xsl:template name ="BibDisplayAuthorInterview">
  4159.         <xsl:variable name="cInterviewee">
  4160.             <xsl:value-of select="count(b:Author/b:Interviewee/b:NameList/b:Person)" />
  4161.         </xsl:variable>
  4162.         <xsl:variable name="prop_APA_FromToDash">
  4163.             <xsl:call-template name="templ_prop_FromToDash"/>
  4164.         </xsl:variable>
  4165.         <xsl:choose>
  4166.             <xsl:when test="$cInterviewee = 1">
  4167.                 <xsl:variable name ="cIntervieweeFirstName">
  4168.                     <xsl:value-of select ="count(b:Author/b:Interviewee/b:NameList/b:Person/b:First)"/>
  4169.                 </xsl:variable>
  4170.                 <xsl:variable name ="cIntervieweeLastName">
  4171.                     <xsl:value-of select ="count(b:Author/b:Interviewee/b:NameList/b:Person/b:Last)"/>
  4172.                 </xsl:variable>
  4173.                 <xsl:variable name ="cIntervieweeMiddleName">
  4174.                     <xsl:value-of select ="count(b:Author/b:Interviewee/b:NameList/b:Person/b:Middle)"/>
  4175.                 </xsl:variable>
  4176.  
  4177.                 <xsl:choose>
  4178.  
  4179.                     <xsl:when test="$cIntervieweeFirstName=1">
  4180.                         <xsl:choose>
  4181.                             <xsl:when test="contains(b:Author/b:Interviewee/b:NameList/b:Person/b:First,$prop_APA_FromToDash)">
  4182.                                 <xsl:call-template name="HandleSPaceHypenInAuthor">
  4183.                                     <xsl:with-param name="author">
  4184.                                         <xsl:call-template name="right-trim">
  4185.                                             <xsl:with-param name ="s" select="b:Author/b:Interviewee/b:NameList/b:Person/b:First"/>
  4186.                                         </xsl:call-template>
  4187.                                     </xsl:with-param>
  4188.                                 </xsl:call-template>
  4189.                                 <xsl:call-template name ="templ_prop_Space"/>
  4190.                             </xsl:when>
  4191.                             <xsl:otherwise>
  4192.                                 <xsl:call-template name="splitAuthorSpace">
  4193.                                     <xsl:with-param name ="first">
  4194.                                         <xsl:call-template name="right-trim">
  4195.                                             <xsl:with-param name ="s" select="b:Author/b:Interviewee/b:NameList/b:Person/b:First"/>
  4196.                                         </xsl:call-template>
  4197.                                     </xsl:with-param>
  4198.                                 </xsl:call-template>
  4199.                                 <xsl:call-template name ="templ_prop_Space"/>
  4200.                             </xsl:otherwise>
  4201.                         </xsl:choose>
  4202.                     </xsl:when>
  4203.                 </xsl:choose>
  4204.  
  4205.                 <xsl:choose>
  4206.                     <xsl:when test="$cIntervieweeMiddleName=1">
  4207.                         <xsl:choose>
  4208.                             <xsl:when test="contains(b:Author/b:Interviewee/b:NameList/b:Person/b:Middle,$prop_APA_FromToDash)">
  4209.                                 <xsl:call-template name="HandleSPaceHypenInAuthor">
  4210.                                     <xsl:with-param name="author">
  4211.                                         <xsl:call-template name="right-trim">
  4212.                                             <xsl:with-param name ="s" select="b:Author/b:Interviewee/b:NameList/b:Person/b:Middle"/>
  4213.                                         </xsl:call-template>
  4214.                                     </xsl:with-param>
  4215.                                 </xsl:call-template>
  4216.                                 <xsl:call-template name ="templ_prop_Space"/>
  4217.                             </xsl:when>
  4218.                             <xsl:otherwise>
  4219.                                 <xsl:call-template name="splitAuthorSpace">
  4220.                                     <xsl:with-param name ="first">
  4221.                                         <xsl:call-template name="right-trim">
  4222.                                             <xsl:with-param name ="s" select="b:Author/b:Interviewee/b:NameList/b:Person/b:Middle"/>
  4223.                                         </xsl:call-template>
  4224.                                     </xsl:with-param>
  4225.                                 </xsl:call-template>
  4226.                                 <xsl:call-template name ="templ_prop_Space"/>
  4227.                             </xsl:otherwise>
  4228.                         </xsl:choose>
  4229.                     </xsl:when>
  4230.                 </xsl:choose>
  4231.  
  4232.                 <xsl:choose>
  4233.                     <xsl:when test="$cIntervieweeLastName=1">
  4234.                         <xsl:value-of select="b:Author/b:Interviewee/b:NameList/b:Person/b:Last"/>
  4235.                         <xsl:call-template name ="templ_prop_ListSeparator"/>
  4236.                     </xsl:when>
  4237.                 </xsl:choose>
  4238.  
  4239.                 <xsl:if test="$cInterviewee=1">
  4240.                     <xsl:call-template name="strintervieweeInterview"/>
  4241.                 </xsl:if>
  4242.             </xsl:when>
  4243.  
  4244.             <xsl:when test="$cInterviewee>1">
  4245.                 <xsl:for-each select="b:Author/b:Interviewee/b:NameList/b:Person">
  4246.                     <xsl:variable name ="cIntervieweeFirstName">
  4247.                         <xsl:value-of select ="count(b:First)"/>
  4248.                     </xsl:variable>
  4249.                     <xsl:variable name ="cIntervieweeLastName">
  4250.                         <xsl:value-of select ="count(b:Last)"/>
  4251.                     </xsl:variable>
  4252.                     <xsl:variable name ="cIntervieweeMiddleName">
  4253.                         <xsl:value-of select ="count(b:Middle)"/>
  4254.                     </xsl:variable>
  4255.  
  4256.                     <xsl:choose>
  4257.  
  4258.                         <xsl:when test =" $cInterviewee>1 and (position())=$cInterviewee">
  4259.                             <xsl:call-template name ="templ_prop_Space"/>
  4260.                             <xsl:call-template name ="templ_str_AndUnCap"/>
  4261.                             <xsl:call-template name ="templ_prop_Space"/>
  4262.                         </xsl:when>
  4263.                     </xsl:choose>
  4264.  
  4265.                     <xsl:choose>
  4266.                         <xsl:when test="$cIntervieweeFirstName=1">
  4267.                             <xsl:choose>
  4268.                                 <xsl:when test="contains(b:First,$prop_APA_FromToDash)">
  4269.                                     <xsl:call-template name="HandleSPaceHypenInAuthor">
  4270.                                         <xsl:with-param name="author">
  4271.                                             <xsl:call-template name="right-trim">
  4272.                                                 <xsl:with-param name ="s" select="b:First"/>
  4273.                                             </xsl:call-template>
  4274.                                         </xsl:with-param>
  4275.                                     </xsl:call-template>
  4276.                                     <xsl:call-template name ="templ_prop_Space"/>
  4277.                                 </xsl:when>
  4278.                                 <xsl:otherwise>
  4279.                                     <xsl:call-template name="splitAuthorSpace">
  4280.                                         <xsl:with-param name ="first">
  4281.                                             <xsl:call-template name="right-trim">
  4282.                                                 <xsl:with-param name ="s" select="b:First"/>
  4283.                                             </xsl:call-template>
  4284.                                         </xsl:with-param>
  4285.                                     </xsl:call-template>
  4286.                                     <xsl:call-template name ="templ_prop_Space"/>
  4287.                                 </xsl:otherwise>
  4288.                             </xsl:choose>
  4289.                         </xsl:when>
  4290.                     </xsl:choose>
  4291.  
  4292.                     <xsl:choose>
  4293.                         <xsl:when test="$cIntervieweeMiddleName=1">
  4294.                             <xsl:choose>
  4295.                                 <xsl:when test="contains(b:Middle,$prop_APA_FromToDash)">
  4296.                                     <xsl:call-template name="HandleSPaceHypenInAuthor">
  4297.                                         <xsl:with-param name="author">
  4298.                                             <xsl:call-template name="right-trim">
  4299.                                                 <xsl:with-param name ="s" select="b:Middle"/>
  4300.                                             </xsl:call-template>
  4301.                                         </xsl:with-param>
  4302.                                     </xsl:call-template>
  4303.                                     <xsl:call-template name ="templ_prop_Space"/>
  4304.                                 </xsl:when>
  4305.                                 <xsl:otherwise>
  4306.                                     <xsl:call-template name="splitAuthorSpace">
  4307.                                         <xsl:with-param name ="first">
  4308.                                             <xsl:call-template name="right-trim">
  4309.                                                 <xsl:with-param name ="s" select="b:Middle"/>
  4310.                                             </xsl:call-template>
  4311.                                         </xsl:with-param>
  4312.                                     </xsl:call-template>
  4313.                                     <xsl:call-template name ="templ_prop_Space"/>
  4314.                                 </xsl:otherwise>
  4315.                             </xsl:choose>
  4316.                         </xsl:when>
  4317.                     </xsl:choose>
  4318.  
  4319.                     <xsl:choose>
  4320.                         <xsl:when test="$cIntervieweeLastName=1">
  4321.                             <xsl:value-of select="b:Last"/>
  4322.                             <xsl:if test="((position()+1)!=$cInterviewee) and (position()&lt;$cInterviewee)">
  4323.                                 <xsl:call-template name ="templ_prop_ListSeparator"/>
  4324.                             </xsl:if>
  4325.                         </xsl:when>
  4326.                     </xsl:choose>
  4327.                 </xsl:for-each>
  4328.                 <xsl:call-template name ="templ_prop_ListSeparator"/>
  4329.  
  4330.                 <xsl:if test="$cInterviewee>1">
  4331.                     <xsl:call-template name="strintervieweesInterview"/>
  4332.                 </xsl:if>
  4333.             </xsl:when>
  4334.         </xsl:choose>
  4335.     </xsl:template>
  4336.  
  4337.     <xsl:template name ="BibDisplayArtist">
  4338.         <xsl:variable name="cArtist">
  4339.             <xsl:value-of select="count(b:Author/b:Artist/b:NameList/b:Person)" />
  4340.         </xsl:variable>
  4341.         <xsl:variable name="prop_APA_FromToDash">
  4342.             <xsl:call-template name="templ_prop_FromToDash"/>
  4343.         </xsl:variable>
  4344.         <xsl:choose>
  4345.             <xsl:when test="$cArtist = 1">
  4346.                 <xsl:variable name ="cArtistFirstName">
  4347.                     <xsl:value-of select ="count(b:Author/b:Artist/b:NameList/b:Person/b:First)"/>
  4348.                 </xsl:variable>
  4349.                 <xsl:variable name ="cArtistLastName">
  4350.                     <xsl:value-of select ="count(b:Author/b:Artist/b:NameList/b:Person/b:Last)"/>
  4351.                 </xsl:variable>
  4352.                 <xsl:variable name ="cArtistMiddleName">
  4353.                     <xsl:value-of select ="count(b:Author/b:Artist/b:NameList/b:Person/b:Middle)"/>
  4354.                 </xsl:variable>
  4355.  
  4356.                 <xsl:choose>
  4357.                     <xsl:when test="$cArtistFirstName=1">
  4358.                         <xsl:choose>
  4359.                             <xsl:when test="contains(b:Author/b:Artist/b:NameList/b:Person/b:First,$prop_APA_FromToDash)">
  4360.                                 <xsl:call-template name="HandleSPaceHypenInAuthor">
  4361.                                     <xsl:with-param name="author">
  4362.                                         <xsl:call-template name="right-trim">
  4363.                                             <xsl:with-param name ="s" select="b:Author/b:Artist/b:NameList/b:Person/b:First"/>
  4364.                                         </xsl:call-template>
  4365.                                     </xsl:with-param>
  4366.                                 </xsl:call-template>
  4367.                                 <xsl:call-template name ="templ_prop_Space"/>
  4368.                             </xsl:when>
  4369.                             <xsl:otherwise>
  4370.                                 <xsl:call-template name="splitAuthorSpace">
  4371.                                     <xsl:with-param name ="first">
  4372.                                         <xsl:call-template name="right-trim">
  4373.                                             <xsl:with-param name ="s" select="b:Author/b:Artist/b:NameList/b:Person/b:First"/>
  4374.                                         </xsl:call-template>
  4375.                                     </xsl:with-param>
  4376.                                 </xsl:call-template>
  4377.                                 <xsl:call-template name ="templ_prop_Space"/>
  4378.                             </xsl:otherwise>
  4379.                         </xsl:choose>
  4380.                     </xsl:when>
  4381.                 </xsl:choose>
  4382.  
  4383.                 <xsl:choose>
  4384.                     <xsl:when test="$cArtistMiddleName=1">
  4385.                         <xsl:choose>
  4386.                             <xsl:when test="contains(b:Author/b:Artist/b:NameList/b:Person/b:Middle,$prop_APA_FromToDash)">
  4387.                                 <xsl:call-template name="HandleSPaceHypenInAuthor">
  4388.                                     <xsl:with-param name="author">
  4389.                                         <xsl:call-template name="right-trim">
  4390.                                             <xsl:with-param name ="s" select="b:Author/b:Artist/b:NameList/b:Person/b:Middle"/>
  4391.                                         </xsl:call-template>
  4392.                                     </xsl:with-param>
  4393.                                 </xsl:call-template>
  4394.                                 <xsl:call-template name ="templ_prop_Space"/>
  4395.                             </xsl:when>
  4396.                             <xsl:otherwise>
  4397.                                 <xsl:call-template name="splitAuthorSpace">
  4398.                                     <xsl:with-param name ="first">
  4399.                                         <xsl:call-template name="right-trim">
  4400.                                             <xsl:with-param name ="s" select="b:Author/b:Artist/b:NameList/b:Person/b:Middle"/>
  4401.                                         </xsl:call-template>
  4402.                                     </xsl:with-param>
  4403.                                 </xsl:call-template>
  4404.                                 <xsl:call-template name ="templ_prop_Space"/>
  4405.                             </xsl:otherwise>
  4406.                         </xsl:choose>
  4407.                     </xsl:when>
  4408.                 </xsl:choose>
  4409.  
  4410.                 <xsl:choose>
  4411.                     <xsl:when test="$cArtistLastName=1">
  4412.                         <xsl:value-of select="b:Author/b:Artist/b:NameList/b:Person/b:Last"/>
  4413.                         <xsl:call-template name ="templ_prop_ListSeparator"/>
  4414.                     </xsl:when>
  4415.                 </xsl:choose>
  4416.  
  4417.                 <xsl:if test="$cArtist=1">
  4418.                     <xsl:call-template name="strArtist"/>
  4419.                 </xsl:if>
  4420.             </xsl:when>
  4421.  
  4422.             <xsl:when test="$cArtist>1">
  4423.                 <xsl:for-each select="b:Author/b:Artist/b:NameList/b:Person">
  4424.                     <xsl:variable name ="cArtistFirstName">
  4425.                         <xsl:value-of select ="count(b:First)"/>
  4426.                     </xsl:variable>
  4427.                     <xsl:variable name ="cArtistLastName">
  4428.                         <xsl:value-of select ="count(b:Last)"/>
  4429.                     </xsl:variable>
  4430.                     <xsl:variable name ="cArtistMiddleName">
  4431.                         <xsl:value-of select ="count(b:Middle)"/>
  4432.                     </xsl:variable>
  4433.  
  4434.                     <xsl:choose>
  4435.  
  4436.                         <xsl:when test =" $cArtist>1 and (position())=$cArtist">
  4437.                             <xsl:call-template name ="templ_prop_Space"/>
  4438.                             <xsl:call-template name ="templ_str_AndUnCap"/>
  4439.                             <xsl:call-template name ="templ_prop_Space"/>
  4440.                         </xsl:when>
  4441.                     </xsl:choose>
  4442.  
  4443.                     <xsl:choose>
  4444.                         <xsl:when test="$cArtistFirstName=1">
  4445.                             <xsl:choose>
  4446.                                 <xsl:when test="contains(b:First,$prop_APA_FromToDash)">
  4447.                                     <xsl:call-template name="HandleSPaceHypenInAuthor">
  4448.                                         <xsl:with-param name="author">
  4449.                                             <xsl:call-template name="right-trim">
  4450.                                                 <xsl:with-param name ="s" select="b:First"/>
  4451.                                             </xsl:call-template>
  4452.                                         </xsl:with-param>
  4453.                                     </xsl:call-template>
  4454.                                     <xsl:call-template name ="templ_prop_Space"/>
  4455.                                 </xsl:when>
  4456.                                 <xsl:otherwise>
  4457.                                     <xsl:call-template name="splitAuthorSpace">
  4458.                                         <xsl:with-param name ="first">
  4459.                                             <xsl:call-template name="right-trim">
  4460.                                                 <xsl:with-param name ="s" select="b:First"/>
  4461.                                             </xsl:call-template>
  4462.                                         </xsl:with-param>
  4463.                                     </xsl:call-template>
  4464.                                     <xsl:call-template name ="templ_prop_Space"/>
  4465.                                 </xsl:otherwise>
  4466.                             </xsl:choose>
  4467.                         </xsl:when>
  4468.                     </xsl:choose>
  4469.  
  4470.                     <xsl:choose>
  4471.                         <xsl:when test="$cArtistMiddleName=1">
  4472.                             <xsl:choose>
  4473.                                 <xsl:when test="contains(b:Middle,$prop_APA_FromToDash)">
  4474.                                     <xsl:call-template name="HandleSPaceHypenInAuthor">
  4475.                                         <xsl:with-param name="author">
  4476.                                             <xsl:call-template name="right-trim">
  4477.                                                 <xsl:with-param name ="s" select="b:Middle"/>
  4478.                                             </xsl:call-template>
  4479.                                         </xsl:with-param>
  4480.                                     </xsl:call-template>
  4481.                                     <xsl:call-template name ="templ_prop_Space"/>
  4482.                                 </xsl:when>
  4483.                                 <xsl:otherwise>
  4484.                                     <xsl:call-template name="splitAuthorSpace">
  4485.                                         <xsl:with-param name ="first">
  4486.                                             <xsl:call-template name="right-trim">
  4487.                                                 <xsl:with-param name ="s" select="b:Middle"/>
  4488.                                             </xsl:call-template>
  4489.                                         </xsl:with-param>
  4490.                                     </xsl:call-template>
  4491.                                     <xsl:call-template name ="templ_prop_Space"/>
  4492.                                 </xsl:otherwise>
  4493.                             </xsl:choose>
  4494.                         </xsl:when>
  4495.                     </xsl:choose>
  4496.  
  4497.                     <xsl:choose>
  4498.                         <xsl:when test="$cArtistLastName=1">
  4499.                             <xsl:value-of select="b:Last"/>
  4500.                             <xsl:if test="((position()+1)!=$cArtist) and (position()&lt;$cArtist)">
  4501.                                 <xsl:call-template name ="templ_prop_ListSeparator"/>
  4502.                             </xsl:if>
  4503.  
  4504.                         </xsl:when>
  4505.                     </xsl:choose>
  4506.                 </xsl:for-each>
  4507.                 <xsl:call-template name ="templ_prop_ListSeparator"/>
  4508.  
  4509.                 <xsl:if test="$cArtist>1">
  4510.                     <xsl:call-template name="strArtists"/>
  4511.                 </xsl:if>
  4512.             </xsl:when>
  4513.         </xsl:choose>
  4514.     </xsl:template>
  4515.  
  4516.     <xsl:template name ="splitAuthorSpace">
  4517.         <xsl:param name ="first"/>
  4518.         <xsl:param name ="end"/>
  4519.         <xsl:choose>
  4520.             <xsl:when test="contains($first, '&#32;')">
  4521.                 <xsl:value-of select="substring(substring-before($first, '&#32;'),1,1)" />
  4522.                 <xsl:call-template name ="templ_prop_Dot"/>
  4523.                 <xsl:call-template name ="templ_prop_Space"/>
  4524.                 <xsl:variable name ="result">
  4525.                     <xsl:call-template name ="left-trim">
  4526.                         <xsl:with-param name ="s" select="substring-after($first,'&#32;')"/>
  4527.                     </xsl:call-template>
  4528.                 </xsl:variable>
  4529.                 <xsl:call-template name="splitAuthorSpace">
  4530.                     <xsl:with-param name="first" select="$result" />
  4531.                 </xsl:call-template>
  4532.             </xsl:when>
  4533.             <xsl:otherwise>
  4534.                 <xsl:value-of select="substring($first,1,1)"/>
  4535.                 <xsl:call-template name ="templ_prop_Dot"/>
  4536.             </xsl:otherwise>
  4537.         </xsl:choose>
  4538.     </xsl:template>
  4539.  
  4540.  
  4541.  
  4542.     <xsl:template name="BibDisplayAuthorBook">
  4543.         <xsl:param name ="DisplayEditorIfAuthorUnavailale"/>
  4544.         <xsl:variable name ="cAuthors">
  4545.             <xsl:value-of select ="count(b:Author/b:Author/b:NameList/b:Person)"/>
  4546.         </xsl:variable>
  4547.         <xsl:variable name="cCorporateAuthors">
  4548.             <xsl:value-of select="count(b:Author/b:Author/b:Corporate)" />
  4549.         </xsl:variable>
  4550.         <xsl:variable name="prop_APA_FromToDash">
  4551.             <xsl:call-template name="templ_prop_FromToDash"/>
  4552.         </xsl:variable>
  4553.  
  4554.         <xsl:variable name="cTitle">
  4555.             <xsl:value-of select ="count(b:Title)"/>
  4556.         </xsl:variable>
  4557.         <xsl:variable name="cEdition">
  4558.             <xsl:value-of select ="count(b:Edition)"/>
  4559.         </xsl:variable>
  4560.         <xsl:variable name="cVolume">
  4561.             <xsl:value-of select ="count(b:Volume)"/>
  4562.         </xsl:variable>
  4563.         <xsl:variable name="cEditor">
  4564.             <xsl:value-of select="count(b:Author/b:Editor/b:NameList/b:Person)" />
  4565.         </xsl:variable>
  4566.         <xsl:variable name="cCity">
  4567.             <xsl:value-of select ="count(b:City)"/>
  4568.         </xsl:variable>
  4569.         <xsl:variable name="cStateProvince">
  4570.             <xsl:value-of select ="count(b:StateProvince)"/>
  4571.         </xsl:variable>
  4572.         <xsl:variable name="cPublisher">
  4573.             <xsl:value-of select ="count(b:Publisher)"/>
  4574.         </xsl:variable>
  4575.         <xsl:variable name="cYear">
  4576.             <xsl:value-of select ="count(b:Year)"/>
  4577.         </xsl:variable>
  4578.         <xsl:variable name="cPages">
  4579.             <xsl:value-of select ="count(b:Pages)"/>
  4580.         </xsl:variable>
  4581.  
  4582.         <xsl:choose>
  4583.             <xsl:when test ="$cAuthors=0">
  4584.                 <xsl:choose>
  4585.                     <xsl:when test="$cCorporateAuthors=0">
  4586.                         <xsl:choose>
  4587.                             <xsl:when test ="$cEditor=0 or $DisplayEditorIfAuthorUnavailale!='true'">
  4588.                             </xsl:when>
  4589.                             <xsl:otherwise>
  4590.                                 <xsl:call-template name="BibDisplayEditorNL"/>
  4591.                             </xsl:otherwise>
  4592.                         </xsl:choose>
  4593.                     </xsl:when>
  4594.                     <xsl:otherwise>
  4595.                         <xsl:value-of select="b:Author/b:Author/b:Corporate"/>
  4596.                         <xsl:choose>
  4597.                             <xsl:when test="$cAuthors=0">
  4598.                                 <xsl:choose>
  4599.                                     <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">
  4600.                                         <xsl:call-template name ="templ_prop_ListSeparator"/>
  4601.                                     </xsl:when>
  4602.                                     <xsl:otherwise>
  4603.                                         <xsl:call-template name ="templ_prop_Dot"/>
  4604.                                     </xsl:otherwise>
  4605.                                 </xsl:choose>
  4606.                             </xsl:when>
  4607.                             <xsl:otherwise>
  4608.                                 <xsl:choose>
  4609.                                     <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">
  4610.                                         <xsl:call-template name ="templ_prop_ListSeparator"/>
  4611.                                     </xsl:when>
  4612.                                     <xsl:otherwise>
  4613.                                         <xsl:call-template name ="templ_prop_Dot"/>
  4614.                                     </xsl:otherwise>
  4615.                                 </xsl:choose>
  4616.                             </xsl:otherwise>
  4617.                         </xsl:choose>
  4618.                     </xsl:otherwise>
  4619.                 </xsl:choose>
  4620.             </xsl:when>
  4621.  
  4622.             <xsl:when test="$cAuthors=1">
  4623.                 <xsl:for-each select="b:Author/b:Author/b:NameList/b:Person">
  4624.                     <xsl:variable name ="cAuthorFirstName">
  4625.                         <xsl:value-of select ="count(b:First)"/>
  4626.                     </xsl:variable>
  4627.                     <xsl:variable name ="cAuthorLastName">
  4628.                         <xsl:value-of select ="count(b:Last)"/>
  4629.                     </xsl:variable>
  4630.                     <xsl:variable name ="cAuthorMiddleName">
  4631.                         <xsl:value-of select ="count(b:Middle)"/>
  4632.                     </xsl:variable>
  4633.                     <xsl:choose>
  4634.                         <xsl:when test="$cAuthorFirstName=1">
  4635.                             <xsl:choose>
  4636.                                 <xsl:when test="contains(b:First,$prop_APA_FromToDash)">
  4637.                                     <xsl:call-template name="HandleSPaceHypenInAuthor">
  4638.                                         <xsl:with-param name="author">
  4639.                                             <xsl:call-template name="right-trim">
  4640.                                                 <xsl:with-param name ="s" select="b:First"/>
  4641.                                             </xsl:call-template>
  4642.                                         </xsl:with-param>
  4643.                                     </xsl:call-template>
  4644.                                     <xsl:call-template name ="templ_prop_Space"/>
  4645.                                 </xsl:when>
  4646.                                 <xsl:otherwise>
  4647.                                     <xsl:call-template name="splitAuthorSpace">
  4648.                                         <xsl:with-param name ="first">
  4649.                                             <xsl:call-template name="right-trim">
  4650.                                                 <xsl:with-param name ="s" select="b:First"/>
  4651.                                             </xsl:call-template>
  4652.                                         </xsl:with-param>
  4653.                                     </xsl:call-template>
  4654.                                     <xsl:call-template name ="templ_prop_Space"/>
  4655.                                 </xsl:otherwise>
  4656.                             </xsl:choose>
  4657.                         </xsl:when>
  4658.                     </xsl:choose>
  4659.  
  4660.                     <xsl:choose>
  4661.                         <xsl:when test="$cAuthorMiddleName=1">
  4662.                             <xsl:choose>
  4663.                                 <xsl:when test="contains(b:Middle,$prop_APA_FromToDash)">
  4664.                                     <xsl:call-template name="HandleSPaceHypenInAuthor">
  4665.                                         <xsl:with-param name="author">
  4666.                                             <xsl:call-template name="right-trim">
  4667.                                                 <xsl:with-param name ="s" select="b:Middle"/>
  4668.                                             </xsl:call-template>
  4669.                                         </xsl:with-param>
  4670.                                     </xsl:call-template>
  4671.                                     <xsl:call-template name ="templ_prop_Space"/>
  4672.                                 </xsl:when>
  4673.                                 <xsl:otherwise>
  4674.                                     <xsl:call-template name="splitAuthorSpace">
  4675.                                         <xsl:with-param name ="first">
  4676.                                             <xsl:call-template name="right-trim">
  4677.                                                 <xsl:with-param name ="s" select="b:Middle"/>
  4678.                                             </xsl:call-template>
  4679.                                         </xsl:with-param>
  4680.                                     </xsl:call-template>
  4681.                                     <xsl:call-template name ="templ_prop_Space"/>
  4682.                                 </xsl:otherwise>
  4683.                             </xsl:choose>
  4684.                         </xsl:when>
  4685.                     </xsl:choose>
  4686.                     <xsl:choose>
  4687.                         <xsl:when test="$cAuthorLastName=1">
  4688.                             <xsl:value-of select="b:Last"/>
  4689.                             <xsl:choose>
  4690.                                 <xsl:when test="$cAuthors=0">
  4691.                                     <xsl:choose>
  4692.                                         <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">
  4693.                                             <xsl:call-template name ="templ_prop_ListSeparator"/>
  4694.                                         </xsl:when>
  4695.                                         <xsl:otherwise>
  4696.                                             <xsl:call-template name ="templ_prop_Dot"/>
  4697.                                         </xsl:otherwise>
  4698.                                     </xsl:choose>
  4699.                                 </xsl:when>
  4700.                                 <xsl:otherwise>
  4701.                                     <xsl:choose>
  4702.                                         <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">
  4703.                                             <xsl:call-template name ="templ_prop_ListSeparator"/>
  4704.                                         </xsl:when>
  4705.                                         <xsl:otherwise>
  4706.                                             <xsl:call-template name ="templ_prop_Dot"/>
  4707.                                         </xsl:otherwise>
  4708.                                     </xsl:choose>
  4709.                                 </xsl:otherwise>
  4710.                             </xsl:choose>
  4711.                         </xsl:when>
  4712.                     </xsl:choose>
  4713.                 </xsl:for-each>
  4714.  
  4715.             </xsl:when>
  4716.  
  4717.             <xsl:when test="$cAuthors>1">
  4718.                 <xsl:for-each select="b:Author/b:Author/b:NameList/b:Person">
  4719.                     <xsl:variable name ="cAuthorFirstName">
  4720.                         <xsl:value-of select ="count(b:First)"/>
  4721.                     </xsl:variable>
  4722.                     <xsl:variable name ="cAuthorLastName">
  4723.                         <xsl:value-of select ="count(b:Last)"/>
  4724.                     </xsl:variable>
  4725.                     <xsl:variable name ="cAuthorMiddleName">
  4726.                         <xsl:value-of select ="count(b:Middle)"/>
  4727.                     </xsl:variable>
  4728.  
  4729.                     <xsl:choose>
  4730.                         <xsl:when test ="(position())=$cAuthors">
  4731.                             <xsl:call-template name ="templ_prop_Space"/>
  4732.                             <xsl:call-template name ="templ_str_AndUnCap"/>
  4733.                             <xsl:call-template name ="templ_prop_Space"/>
  4734.                         </xsl:when>
  4735.                     </xsl:choose>
  4736.  
  4737.                     <xsl:choose>
  4738.                         <xsl:when test="$cAuthorFirstName=1">
  4739.                             <xsl:choose>
  4740.                                 <xsl:when test="contains(b:First,$prop_APA_FromToDash)">
  4741.                                     <xsl:call-template name="HandleSPaceHypenInAuthor">
  4742.                                         <xsl:with-param name="author">
  4743.                                             <xsl:call-template name="right-trim">
  4744.                                                 <xsl:with-param name ="s" select="b:First"/>
  4745.                                             </xsl:call-template>
  4746.                                         </xsl:with-param>
  4747.                                     </xsl:call-template>
  4748.                                     <xsl:call-template name ="templ_prop_Space"/>
  4749.                                 </xsl:when>
  4750.                                 <xsl:otherwise>
  4751.                                     <xsl:call-template name="splitAuthorSpace">
  4752.                                         <xsl:with-param name ="first">
  4753.                                             <xsl:call-template name="right-trim">
  4754.                                                 <xsl:with-param name ="s" select="b:First"/>
  4755.                                             </xsl:call-template>
  4756.                                         </xsl:with-param>
  4757.                                     </xsl:call-template>
  4758.                                     <xsl:call-template name ="templ_prop_Space"/>
  4759.                                 </xsl:otherwise>
  4760.                             </xsl:choose>
  4761.                         </xsl:when>
  4762.                     </xsl:choose>
  4763.                     <xsl:choose>
  4764.                         <xsl:when test="$cAuthorMiddleName=1">
  4765.                             <xsl:choose>
  4766.                                 <xsl:when test="contains(b:Middle,$prop_APA_FromToDash)">
  4767.                                     <xsl:call-template name="HandleSPaceHypenInAuthor">
  4768.                                         <xsl:with-param name="author">
  4769.                                             <xsl:call-template name="right-trim">
  4770.                                                 <xsl:with-param name ="s" select="b:Middle"/>
  4771.                                             </xsl:call-template>
  4772.                                         </xsl:with-param>
  4773.                                     </xsl:call-template>
  4774.                                     <xsl:call-template name ="templ_prop_Space"/>
  4775.                                 </xsl:when>
  4776.                                 <xsl:otherwise>
  4777.                                     <xsl:call-template name="splitAuthorSpace">
  4778.                                         <xsl:with-param name ="first">
  4779.                                             <xsl:call-template name="right-trim">
  4780.                                                 <xsl:with-param name ="s" select="b:Middle"/>
  4781.                                             </xsl:call-template>
  4782.                                         </xsl:with-param>
  4783.                                     </xsl:call-template>
  4784.                                     <xsl:call-template name ="templ_prop_Space"/>
  4785.                                 </xsl:otherwise>
  4786.                             </xsl:choose>
  4787.                         </xsl:when>
  4788.                     </xsl:choose>
  4789.                     <xsl:choose>
  4790.                         <xsl:when test="$cAuthorLastName=1">
  4791.                             <xsl:value-of select="b:Last"/>
  4792.                             <xsl:if test="((position()+1)!=$cAuthors) and (position()&lt;$cAuthors)">
  4793.                                 <xsl:call-template name ="templ_prop_ListSeparator"/>
  4794.                             </xsl:if>
  4795.                         </xsl:when>
  4796.                     </xsl:choose>
  4797.                 </xsl:for-each>
  4798.                 <xsl:choose>
  4799.                     <xsl:when test="$cAuthors=0">
  4800.                         <xsl:choose>
  4801.                             <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">
  4802.                                 <xsl:call-template name ="templ_prop_ListSeparator"/>
  4803.                             </xsl:when>
  4804.                             <xsl:otherwise>
  4805.                                 <xsl:call-template name ="templ_prop_Dot"/>
  4806.                             </xsl:otherwise>
  4807.                         </xsl:choose>
  4808.                     </xsl:when>
  4809.                     <xsl:otherwise>
  4810.                         <xsl:choose>
  4811.                             <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">
  4812.                                 <xsl:call-template name ="templ_prop_ListSeparator"/>
  4813.                             </xsl:when>
  4814.                             <xsl:otherwise>
  4815.                                 <xsl:call-template name ="templ_prop_Dot"/>
  4816.                             </xsl:otherwise>
  4817.                         </xsl:choose>
  4818.                     </xsl:otherwise>
  4819.                 </xsl:choose>
  4820.             </xsl:when>
  4821.         </xsl:choose>
  4822.     </xsl:template>
  4823.  
  4824.     <xsl:template name="BibDisplayAuthorBookSection">
  4825.         <xsl:param name ="DisplayEditorIfAuthorUnavailale"/>
  4826.         <xsl:variable name ="cAuthors">
  4827.             <xsl:value-of select ="count(b:Author/b:Author/b:NameList/b:Person)"/>
  4828.         </xsl:variable>
  4829.         <xsl:variable name="cCorporateAuthors">
  4830.             <xsl:value-of select="count(b:Author/b:Author/b:Corporate)" />
  4831.         </xsl:variable>
  4832.         <xsl:variable name="prop_APA_FromToDash">
  4833.             <xsl:call-template name="templ_prop_FromToDash"/>
  4834.         </xsl:variable>
  4835.  
  4836.         <xsl:variable name="cTitle">
  4837.             <xsl:value-of select ="count(b:Title)"/>
  4838.         </xsl:variable>
  4839.         <xsl:variable name="cBookTitle">
  4840.             <xsl:value-of select ="count(b:BookTitle)"/>
  4841.         </xsl:variable>
  4842.         <xsl:variable name="cEdition">
  4843.             <xsl:value-of select ="count(b:Edition)"/>
  4844.         </xsl:variable>
  4845.         <xsl:variable name="cVolume">
  4846.             <xsl:value-of select ="count(b:Volume)"/>
  4847.         </xsl:variable>
  4848.         <xsl:variable name="cEditor">
  4849.             <xsl:value-of select="count(b:Author/b:Editor/b:NameList/b:Person)" />
  4850.         </xsl:variable>
  4851.         <xsl:variable name="cCity">
  4852.             <xsl:value-of select ="count(b:City)"/>
  4853.         </xsl:variable>
  4854.         <xsl:variable name="cStateProvince">
  4855.             <xsl:value-of select ="count(b:StateProvince)"/>
  4856.         </xsl:variable>
  4857.         <xsl:variable name="cPublisher">
  4858.             <xsl:value-of select ="count(b:Publisher)"/>
  4859.         </xsl:variable>
  4860.         <xsl:variable name="cYear">
  4861.             <xsl:value-of select ="count(b:Year)"/>
  4862.         </xsl:variable>
  4863.         <xsl:variable name="cPages">
  4864.             <xsl:value-of select ="count(b:Pages)"/>
  4865.         </xsl:variable>
  4866.  
  4867.         <xsl:choose>
  4868.             <xsl:when test ="$cAuthors=0">
  4869.                 <xsl:choose>
  4870.                     <xsl:when test="$cCorporateAuthors=0">
  4871.                         <xsl:choose>
  4872.                             <xsl:when test ="$cEditor=0 or $DisplayEditorIfAuthorUnavailale!='true'">
  4873.                             </xsl:when>
  4874.                             <xsl:otherwise>
  4875.                                 <xsl:call-template name="BibDisplayEditorNL"/>
  4876.                             </xsl:otherwise>
  4877.                         </xsl:choose>
  4878.                     </xsl:when>
  4879.                     <xsl:otherwise>
  4880.                         <xsl:value-of select="b:Author/b:Author/b:Corporate"/>
  4881.                         <xsl:choose>
  4882.                             <xsl:when test="$cAuthors=0">
  4883.                                 <xsl:choose>
  4884.                                     <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">
  4885.                                         <xsl:call-template name ="templ_prop_ListSeparator"/>
  4886.                                     </xsl:when>
  4887.                                     <xsl:otherwise>
  4888.                                         <xsl:call-template name ="templ_prop_Dot"/>
  4889.                                     </xsl:otherwise>
  4890.                                 </xsl:choose>
  4891.                             </xsl:when>
  4892.                             <xsl:otherwise>
  4893.                                 <xsl:choose>
  4894.                                     <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">
  4895.                                         <xsl:call-template name ="templ_prop_ListSeparator"/>
  4896.                                     </xsl:when>
  4897.                                     <xsl:otherwise>
  4898.                                         <xsl:call-template name ="templ_prop_Dot"/>
  4899.                                     </xsl:otherwise>
  4900.                                 </xsl:choose>
  4901.                             </xsl:otherwise>
  4902.                         </xsl:choose>
  4903.                     </xsl:otherwise>
  4904.                 </xsl:choose>
  4905.             </xsl:when>
  4906.  
  4907.             <xsl:when test="$cAuthors=1">
  4908.                 <xsl:for-each select="b:Author/b:Author/b:NameList/b:Person">
  4909.                     <xsl:variable name ="cAuthorFirstName">
  4910.                         <xsl:value-of select ="count(b:First)"/>
  4911.                     </xsl:variable>
  4912.                     <xsl:variable name ="cAuthorLastName">
  4913.                         <xsl:value-of select ="count(b:Last)"/>
  4914.                     </xsl:variable>
  4915.                     <xsl:variable name ="cAuthorMiddleName">
  4916.                         <xsl:value-of select ="count(b:Middle)"/>
  4917.                     </xsl:variable>
  4918.                     <xsl:choose>
  4919.                         <xsl:when test="$cAuthorFirstName=1">
  4920.                             <xsl:choose>
  4921.                                 <xsl:when test="contains(b:First,$prop_APA_FromToDash)">
  4922.                                     <xsl:call-template name="HandleSPaceHypenInAuthor">
  4923.                                         <xsl:with-param name="author">
  4924.                                             <xsl:call-template name="right-trim">
  4925.                                                 <xsl:with-param name ="s" select="b:First"/>
  4926.                                             </xsl:call-template>
  4927.                                         </xsl:with-param>
  4928.                                     </xsl:call-template>
  4929.                                     <xsl:call-template name ="templ_prop_Space"/>
  4930.                                 </xsl:when>
  4931.                                 <xsl:otherwise>
  4932.                                     <xsl:call-template name="splitAuthorSpace">
  4933.                                         <xsl:with-param name ="first">
  4934.                                             <xsl:call-template name="right-trim">
  4935.                                                 <xsl:with-param name ="s" select="b:First"/>
  4936.                                             </xsl:call-template>
  4937.                                         </xsl:with-param>
  4938.                                     </xsl:call-template>
  4939.                                     <xsl:call-template name ="templ_prop_Space"/>
  4940.                                 </xsl:otherwise>
  4941.                             </xsl:choose>
  4942.                         </xsl:when>
  4943.                     </xsl:choose>
  4944.  
  4945.                     <xsl:choose>
  4946.                         <xsl:when test="$cAuthorMiddleName=1">
  4947.                             <xsl:choose>
  4948.                                 <xsl:when test="contains(b:Middle,$prop_APA_FromToDash)">
  4949.                                     <xsl:call-template name="HandleSPaceHypenInAuthor">
  4950.                                         <xsl:with-param name="author">
  4951.                                             <xsl:call-template name="right-trim">
  4952.                                                 <xsl:with-param name ="s" select="b:Middle"/>
  4953.                                             </xsl:call-template>
  4954.                                         </xsl:with-param>
  4955.                                     </xsl:call-template>
  4956.                                     <xsl:call-template name ="templ_prop_Space"/>
  4957.                                 </xsl:when>
  4958.                                 <xsl:otherwise>
  4959.                                     <xsl:call-template name="splitAuthorSpace">
  4960.                                         <xsl:with-param name ="first">
  4961.                                             <xsl:call-template name="right-trim">
  4962.                                                 <xsl:with-param name ="s" select="b:Middle"/>
  4963.                                             </xsl:call-template>
  4964.                                         </xsl:with-param>
  4965.                                     </xsl:call-template>
  4966.                                     <xsl:call-template name ="templ_prop_Space"/>
  4967.                                 </xsl:otherwise>
  4968.                             </xsl:choose>
  4969.                         </xsl:when>
  4970.                     </xsl:choose>
  4971.                     <xsl:choose>
  4972.                         <xsl:when test="$cAuthorLastName=1">
  4973.                             <xsl:value-of select="b:Last"/>
  4974.                             <xsl:choose>
  4975.                                 <xsl:when test="$cAuthors=0">
  4976.                                     <xsl:choose>
  4977.                                         <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">
  4978.                                             <xsl:call-template name ="templ_prop_ListSeparator"/>
  4979.                                         </xsl:when>
  4980.                                         <xsl:otherwise>
  4981.                                             <xsl:call-template name ="templ_prop_Dot"/>
  4982.                                         </xsl:otherwise>
  4983.                                     </xsl:choose>
  4984.                                 </xsl:when>
  4985.                                 <xsl:otherwise>
  4986.                                     <xsl:choose>
  4987.                                         <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">
  4988.                                             <xsl:call-template name ="templ_prop_ListSeparator"/>
  4989.                                         </xsl:when>
  4990.                                         <xsl:otherwise>
  4991.                                             <xsl:call-template name ="templ_prop_Dot"/>
  4992.                                         </xsl:otherwise>
  4993.                                     </xsl:choose>
  4994.                                 </xsl:otherwise>
  4995.                             </xsl:choose>
  4996.                         </xsl:when>
  4997.                     </xsl:choose>
  4998.                 </xsl:for-each>
  4999.  
  5000.             </xsl:when>
  5001.  
  5002.             <xsl:when test="$cAuthors>1">
  5003.                 <xsl:for-each select="b:Author/b:Author/b:NameList/b:Person">
  5004.                     <xsl:variable name ="cAuthorFirstName">
  5005.                         <xsl:value-of select ="count(b:First)"/>
  5006.                     </xsl:variable>
  5007.                     <xsl:variable name ="cAuthorLastName">
  5008.                         <xsl:value-of select ="count(b:Last)"/>
  5009.                     </xsl:variable>
  5010.                     <xsl:variable name ="cAuthorMiddleName">
  5011.                         <xsl:value-of select ="count(b:Middle)"/>
  5012.                     </xsl:variable>
  5013.  
  5014.                     <xsl:choose>
  5015.                         <xsl:when test ="(position())=$cAuthors">
  5016.                             <xsl:call-template name ="templ_prop_Space"/>
  5017.                             <xsl:call-template name ="templ_str_AndUnCap"/>
  5018.                             <xsl:call-template name ="templ_prop_Space"/>
  5019.                         </xsl:when>
  5020.                     </xsl:choose>
  5021.  
  5022.                     <xsl:choose>
  5023.                         <xsl:when test="$cAuthorFirstName=1">
  5024.                             <xsl:choose>
  5025.                                 <xsl:when test="contains(b:First,$prop_APA_FromToDash)">
  5026.                                     <xsl:call-template name="HandleSPaceHypenInAuthor">
  5027.                                         <xsl:with-param name="author">
  5028.                                             <xsl:call-template name="right-trim">
  5029.                                                 <xsl:with-param name ="s" select="b:First"/>
  5030.                                             </xsl:call-template>
  5031.                                         </xsl:with-param>
  5032.                                     </xsl:call-template>
  5033.                                     <xsl:call-template name ="templ_prop_Space"/>
  5034.                                 </xsl:when>
  5035.                                 <xsl:otherwise>
  5036.                                     <xsl:call-template name="splitAuthorSpace">
  5037.                                         <xsl:with-param name ="first">
  5038.                                             <xsl:call-template name="right-trim">
  5039.                                                 <xsl:with-param name ="s" select="b:First"/>
  5040.                                             </xsl:call-template>
  5041.                                         </xsl:with-param>
  5042.                                     </xsl:call-template>
  5043.                                     <xsl:call-template name ="templ_prop_Space"/>
  5044.                                 </xsl:otherwise>
  5045.                             </xsl:choose>
  5046.                         </xsl:when>
  5047.                     </xsl:choose>
  5048.                     <xsl:choose>
  5049.                         <xsl:when test="$cAuthorMiddleName=1">
  5050.                             <xsl:choose>
  5051.                                 <xsl:when test="contains(b:Middle,$prop_APA_FromToDash)">
  5052.                                     <xsl:call-template name="HandleSPaceHypenInAuthor">
  5053.                                         <xsl:with-param name="author">
  5054.                                             <xsl:call-template name="right-trim">
  5055.                                                 <xsl:with-param name ="s" select="b:Middle"/>
  5056.                                             </xsl:call-template>
  5057.                                         </xsl:with-param>
  5058.                                     </xsl:call-template>
  5059.                                     <xsl:call-template name ="templ_prop_Space"/>
  5060.                                 </xsl:when>
  5061.                                 <xsl:otherwise>
  5062.                                     <xsl:call-template name="splitAuthorSpace">
  5063.                                         <xsl:with-param name ="first">
  5064.                                             <xsl:call-template name="right-trim">
  5065.                                                 <xsl:with-param name ="s" select="b:Middle"/>
  5066.                                             </xsl:call-template>
  5067.                                         </xsl:with-param>
  5068.                                     </xsl:call-template>
  5069.                                     <xsl:call-template name ="templ_prop_Space"/>
  5070.                                 </xsl:otherwise>
  5071.                             </xsl:choose>
  5072.                         </xsl:when>
  5073.                     </xsl:choose>
  5074.                     <xsl:choose>
  5075.                         <xsl:when test="$cAuthorLastName=1">
  5076.                             <xsl:value-of select="b:Last"/>
  5077.                             <xsl:if test="((position()+1)!=$cAuthors) and (position()&lt;$cAuthors)">
  5078.                                 <xsl:call-template name ="templ_prop_ListSeparator"/>
  5079.                             </xsl:if>
  5080.                         </xsl:when>
  5081.                     </xsl:choose>
  5082.                 </xsl:for-each>
  5083.                 <xsl:choose>
  5084.                     <xsl:when test="$cAuthors=0">
  5085.                         <xsl:choose>
  5086.                             <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">
  5087.                                 <xsl:call-template name ="templ_prop_ListSeparator"/>
  5088.                             </xsl:when>
  5089.                             <xsl:otherwise>
  5090.                                 <xsl:call-template name ="templ_prop_Dot"/>
  5091.                             </xsl:otherwise>
  5092.                         </xsl:choose>
  5093.                     </xsl:when>
  5094.                     <xsl:otherwise>
  5095.                         <xsl:choose>
  5096.                             <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">
  5097.                                 <xsl:call-template name ="templ_prop_ListSeparator"/>
  5098.                             </xsl:when>
  5099.                             <xsl:otherwise>
  5100.                                 <xsl:call-template name ="templ_prop_Dot"/>
  5101.                             </xsl:otherwise>
  5102.                         </xsl:choose>
  5103.                     </xsl:otherwise>
  5104.                 </xsl:choose>
  5105.             </xsl:when>
  5106.         </xsl:choose>
  5107.     </xsl:template>
  5108.  
  5109.     <xsl:template name="BibDisplayAuthorWebsite">
  5110.         <xsl:param name ="DisplayEditorIfAuthorUnavailale"/>
  5111.         <xsl:variable name ="cAuthors">
  5112.             <xsl:value-of select ="count(b:Author/b:Author/b:NameList/b:Person)"/>
  5113.         </xsl:variable>
  5114.         <xsl:variable name ="cEditor">
  5115.             <xsl:value-of select ="count(b:Author/b:Editor/b:NameList/b:Person)"/>
  5116.         </xsl:variable>
  5117.         <xsl:variable name="cCorporateAuthors">
  5118.             <xsl:value-of select="count(b:Author/b:Author/b:Corporate)" />
  5119.         </xsl:variable>
  5120.         <xsl:variable name="prop_APA_FromToDash">
  5121.             <xsl:call-template name="templ_prop_FromToDash"/>
  5122.         </xsl:variable>
  5123.  
  5124.         <xsl:variable name="cTitle">
  5125.             <xsl:value-of select ="count(b:Title)"/>
  5126.         </xsl:variable>
  5127.         <xsl:variable name="cProductionCompany">
  5128.             <xsl:value-of select ="count(b:ProductionCompany)"/>
  5129.         </xsl:variable>
  5130.         <xsl:variable name="cYear">
  5131.             <xsl:value-of select ="count(b:Year)"/>
  5132.         </xsl:variable>
  5133.  
  5134.         <xsl:choose>
  5135.             <xsl:when test ="$cAuthors=0">
  5136.                 <xsl:choose>
  5137.                     <xsl:when test="$cCorporateAuthors!=0">
  5138.                         <xsl:value-of select="b:Author/b:Author/b:Corporate"/>
  5139.                         <xsl:call-template name ="templ_prop_ListSeparator"/>
  5140.                     </xsl:when>
  5141.                 </xsl:choose>
  5142.             </xsl:when>
  5143.  
  5144.             <xsl:when test="$cAuthors=1">
  5145.                 <xsl:for-each select="b:Author/b:Author/b:NameList/b:Person">
  5146.                     <xsl:variable name ="cAuthorFirstName">
  5147.                         <xsl:value-of select ="count(b:First)"/>
  5148.                     </xsl:variable>
  5149.                     <xsl:variable name ="cAuthorLastName">
  5150.                         <xsl:value-of select ="count(b:Last)"/>
  5151.                     </xsl:variable>
  5152.                     <xsl:variable name ="cAuthorMiddleName">
  5153.                         <xsl:value-of select ="count(b:Middle)"/>
  5154.                     </xsl:variable>
  5155.                     <xsl:choose>
  5156.                         <xsl:when test="$cAuthorFirstName=1">
  5157.                             <xsl:choose>
  5158.                                 <xsl:when test="contains(b:First,$prop_APA_FromToDash)">
  5159.                                     <xsl:call-template name="HandleSPaceHypenInAuthor">
  5160.                                         <xsl:with-param name="author">
  5161.                                             <xsl:call-template name="right-trim">
  5162.                                                 <xsl:with-param name ="s" select="b:First"/>
  5163.                                             </xsl:call-template>
  5164.                                         </xsl:with-param>
  5165.                                     </xsl:call-template>
  5166.                                     <xsl:call-template name ="templ_prop_Space"/>
  5167.                                 </xsl:when>
  5168.                                 <xsl:otherwise>
  5169.                                     <xsl:call-template name="splitAuthorSpace">
  5170.                                         <xsl:with-param name ="first">
  5171.                                             <xsl:call-template name="right-trim">
  5172.                                                 <xsl:with-param name ="s" select="b:First"/>
  5173.                                             </xsl:call-template>
  5174.                                         </xsl:with-param>
  5175.                                     </xsl:call-template>
  5176.                                     <xsl:call-template name ="templ_prop_Space"/>
  5177.                                 </xsl:otherwise>
  5178.                             </xsl:choose>
  5179.                         </xsl:when>
  5180.                     </xsl:choose>
  5181.  
  5182.                     <xsl:choose>
  5183.                         <xsl:when test="$cAuthorMiddleName=1">
  5184.                             <xsl:choose>
  5185.                                 <xsl:when test="contains(b:Middle,$prop_APA_FromToDash)">
  5186.                                     <xsl:call-template name="HandleSPaceHypenInAuthor">
  5187.                                         <xsl:with-param name="author">
  5188.                                             <xsl:call-template name="right-trim">
  5189.                                                 <xsl:with-param name ="s" select="b:Middle"/>
  5190.                                             </xsl:call-template>
  5191.                                         </xsl:with-param>
  5192.                                     </xsl:call-template>
  5193.                                     <xsl:call-template name ="templ_prop_Space"/>
  5194.                                 </xsl:when>
  5195.                                 <xsl:otherwise>
  5196.                                     <xsl:call-template name="splitAuthorSpace">
  5197.                                         <xsl:with-param name ="first">
  5198.                                             <xsl:call-template name="right-trim">
  5199.                                                 <xsl:with-param name ="s" select="b:Middle"/>
  5200.                                             </xsl:call-template>
  5201.                                         </xsl:with-param>
  5202.                                     </xsl:call-template>
  5203.                                     <xsl:call-template name ="templ_prop_Space"/>
  5204.                                 </xsl:otherwise>
  5205.                             </xsl:choose>
  5206.                         </xsl:when>
  5207.                     </xsl:choose>
  5208.                     <xsl:choose>
  5209.                         <xsl:when test="$cAuthorLastName=1">
  5210.                             <xsl:value-of select="b:Last"/>
  5211.                             <xsl:choose>
  5212.                                 <xsl:when test="$cTitle!=0 or $cProductionCompany!=0 or $cYear!=0">
  5213.                                     <xsl:call-template name ="templ_prop_ListSeparator"/>
  5214.                                 </xsl:when>
  5215.                                 <xsl:otherwise>
  5216.                                     <xsl:call-template name ="templ_prop_Dot"/>
  5217.                                 </xsl:otherwise>
  5218.                             </xsl:choose>
  5219.                         </xsl:when>
  5220.                     </xsl:choose>
  5221.                 </xsl:for-each>
  5222.  
  5223.             </xsl:when>
  5224.  
  5225.             <xsl:when test="$cAuthors>1">
  5226.                 <xsl:for-each select="b:Author/b:Author/b:NameList/b:Person">
  5227.                     <xsl:variable name ="cAuthorFirstName">
  5228.                         <xsl:value-of select ="count(b:First)"/>
  5229.                     </xsl:variable>
  5230.                     <xsl:variable name ="cAuthorLastName">
  5231.                         <xsl:value-of select ="count(b:Last)"/>
  5232.                     </xsl:variable>
  5233.                     <xsl:variable name ="cAuthorMiddleName">
  5234.                         <xsl:value-of select ="count(b:Middle)"/>
  5235.                     </xsl:variable>
  5236.  
  5237.                     <xsl:choose>
  5238.                         <xsl:when test ="(position())=$cAuthors">
  5239.                             <xsl:call-template name ="templ_prop_Space"/>
  5240.                             <xsl:call-template name ="templ_str_AndUnCap"/>
  5241.                             <xsl:call-template name ="templ_prop_Space"/>
  5242.                         </xsl:when>
  5243.                     </xsl:choose>
  5244.  
  5245.                     <xsl:choose>
  5246.                         <xsl:when test="$cAuthorFirstName=1">
  5247.                             <xsl:choose>
  5248.                                 <xsl:when test="contains(b:First,$prop_APA_FromToDash)">
  5249.                                     <xsl:call-template name="HandleSPaceHypenInAuthor">
  5250.                                         <xsl:with-param name="author">
  5251.                                             <xsl:call-template name="right-trim">
  5252.                                                 <xsl:with-param name ="s" select="b:First"/>
  5253.                                             </xsl:call-template>
  5254.                                         </xsl:with-param>
  5255.                                     </xsl:call-template>
  5256.                                     <xsl:call-template name ="templ_prop_Space"/>
  5257.                                 </xsl:when>
  5258.                                 <xsl:otherwise>
  5259.                                     <xsl:call-template name="splitAuthorSpace">
  5260.                                         <xsl:with-param name ="first">
  5261.                                             <xsl:call-template name="right-trim">
  5262.                                                 <xsl:with-param name ="s" select="b:First"/>
  5263.                                             </xsl:call-template>
  5264.                                         </xsl:with-param>
  5265.                                     </xsl:call-template>
  5266.                                     <xsl:call-template name ="templ_prop_Space"/>
  5267.                                 </xsl:otherwise>
  5268.                             </xsl:choose>
  5269.                         </xsl:when>
  5270.                     </xsl:choose>
  5271.                     <xsl:choose>
  5272.                         <xsl:when test="$cAuthorMiddleName=1">
  5273.                             <xsl:choose>
  5274.                                 <xsl:when test="contains(b:Middle,$prop_APA_FromToDash)">
  5275.                                     <xsl:call-template name="HandleSPaceHypenInAuthor">
  5276.                                         <xsl:with-param name="author">
  5277.                                             <xsl:call-template name="right-trim">
  5278.                                                 <xsl:with-param name ="s" select="b:Middle"/>
  5279.                                             </xsl:call-template>
  5280.                                         </xsl:with-param>
  5281.                                     </xsl:call-template>
  5282.                                     <xsl:call-template name ="templ_prop_Space"/>
  5283.                                 </xsl:when>
  5284.                                 <xsl:otherwise>
  5285.                                     <xsl:call-template name="splitAuthorSpace">
  5286.                                         <xsl:with-param name ="first">
  5287.                                             <xsl:call-template name="right-trim">
  5288.                                                 <xsl:with-param name ="s" select="b:Middle"/>
  5289.                                             </xsl:call-template>
  5290.                                         </xsl:with-param>
  5291.                                     </xsl:call-template>
  5292.                                     <xsl:call-template name ="templ_prop_Space"/>
  5293.                                 </xsl:otherwise>
  5294.                             </xsl:choose>
  5295.                         </xsl:when>
  5296.                     </xsl:choose>
  5297.                     <xsl:choose>
  5298.                         <xsl:when test="$cAuthorLastName=1">
  5299.                             <xsl:value-of select="b:Last"/>
  5300.                             <xsl:if test="((position()+1)!=$cAuthors) and (position()&lt;$cAuthors)">
  5301.                                 <xsl:call-template name ="templ_prop_ListSeparator"/>
  5302.                             </xsl:if>
  5303.                         </xsl:when>
  5304.                     </xsl:choose>
  5305.                 </xsl:for-each>
  5306.                 <xsl:choose>
  5307.                     <xsl:when test="$cTitle!=0 or $cProductionCompany!=0 or $cYear!=0">
  5308.                         <xsl:call-template name ="templ_prop_ListSeparator"/>
  5309.                     </xsl:when>
  5310.                     <xsl:otherwise>
  5311.                         <xsl:call-template name ="templ_prop_Dot"/>
  5312.                     </xsl:otherwise>
  5313.                 </xsl:choose>
  5314.             </xsl:when>
  5315.         </xsl:choose>
  5316.     </xsl:template>
  5317.  
  5318.     <xsl:template name="BibDisplayAuthorJArtcicle">
  5319.         <xsl:param name ="DisplayEditorIfAuthorUnavailale"/>
  5320.         <xsl:variable name ="cAuthors">
  5321.             <xsl:value-of select ="count(b:Author/b:Author/b:NameList/b:Person)"/>
  5322.         </xsl:variable>
  5323.         <xsl:variable name="cCorporateAuthors">
  5324.             <xsl:value-of select="count(b:Author/b:Author/b:Corporate)" />
  5325.         </xsl:variable>
  5326.         <xsl:variable name="prop_APA_FromToDash">
  5327.             <xsl:call-template name="templ_prop_FromToDash"/>
  5328.         </xsl:variable>
  5329.  
  5330.         <xsl:variable name="cTitle">
  5331.             <xsl:value-of select ="count(b:Title)"/>
  5332.         </xsl:variable>
  5333.         <xsl:variable name="cJournalName">
  5334.             <xsl:value-of select ="count(b:JournalName)"/>
  5335.         </xsl:variable>
  5336.         <xsl:variable name="cVolume">
  5337.             <xsl:value-of select ="count(b:Volume)"/>
  5338.         </xsl:variable>
  5339.         <xsl:variable name="cEditor">
  5340.             <xsl:value-of select="count(b:Author/b:Editor/b:NameList/b:Person)" />
  5341.         </xsl:variable>
  5342.         <xsl:variable name="cIssue">
  5343.             <xsl:value-of select ="count(b:Issue)"/>
  5344.         </xsl:variable>
  5345.         <xsl:variable name="cYear">
  5346.             <xsl:value-of select ="count(b:Year)"/>
  5347.         </xsl:variable>
  5348.         <xsl:variable name="cPages">
  5349.             <xsl:value-of select ="count(b:Pages)"/>
  5350.         </xsl:variable>
  5351.  
  5352.         <xsl:choose>
  5353.             <xsl:when test ="$cAuthors=0">
  5354.                 <xsl:choose>
  5355.                     <xsl:when test="$cCorporateAuthors!=0">
  5356.                         <xsl:value-of select="b:Author/b:Author/b:Corporate"/>
  5357.                         <xsl:choose>
  5358.                             <xsl:when test="$cTitle!=0 or $cJournalName!=0 or $cVolume!=0 or $cIssue!=0 or $cYear!=0 or $cPages!=0">
  5359.                                 <xsl:call-template name ="templ_prop_ListSeparator"/>
  5360.                             </xsl:when>
  5361.                             <xsl:otherwise>
  5362.                                 <xsl:call-template name ="templ_prop_Dot"/>
  5363.                             </xsl:otherwise>
  5364.                         </xsl:choose>
  5365.                     </xsl:when>
  5366.                     <xsl:otherwise>
  5367.                         <xsl:choose>
  5368.                             <xsl:when test ="$cEditor=0 or $DisplayEditorIfAuthorUnavailale!='true'">
  5369.                             </xsl:when>
  5370.                             <xsl:otherwise>
  5371.                                 <xsl:call-template name="BibDisplayEditorNL"/>
  5372.                             </xsl:otherwise>
  5373.                         </xsl:choose>
  5374.                     </xsl:otherwise>
  5375.                 </xsl:choose>
  5376.             </xsl:when>
  5377.  
  5378.             <xsl:when test="$cAuthors=1">
  5379.                 <xsl:for-each select="b:Author/b:Author/b:NameList/b:Person">
  5380.                     <xsl:variable name ="cAuthorFirstName">
  5381.                         <xsl:value-of select ="count(b:First)"/>
  5382.                     </xsl:variable>
  5383.                     <xsl:variable name ="cAuthorLastName">
  5384.                         <xsl:value-of select ="count(b:Last)"/>
  5385.                     </xsl:variable>
  5386.                     <xsl:variable name ="cAuthorMiddleName">
  5387.                         <xsl:value-of select ="count(b:Middle)"/>
  5388.                     </xsl:variable>
  5389.                     <xsl:choose>
  5390.                         <xsl:when test="$cAuthorFirstName=1">
  5391.                             <xsl:choose>
  5392.                                 <xsl:when test="contains(b:First,$prop_APA_FromToDash)">
  5393.                                     <xsl:call-template name="HandleSPaceHypenInAuthor">
  5394.                                         <xsl:with-param name="author">
  5395.                                             <xsl:call-template name="right-trim">
  5396.                                                 <xsl:with-param name ="s" select="b:First"/>
  5397.                                             </xsl:call-template>
  5398.                                         </xsl:with-param>
  5399.                                     </xsl:call-template>
  5400.                                     <xsl:call-template name ="templ_prop_Space"/>
  5401.                                 </xsl:when>
  5402.                                 <xsl:otherwise>
  5403.                                     <xsl:call-template name="splitAuthorSpace">
  5404.                                         <xsl:with-param name ="first">
  5405.                                             <xsl:call-template name="right-trim">
  5406.                                                 <xsl:with-param name ="s" select="b:First"/>
  5407.                                             </xsl:call-template>
  5408.                                         </xsl:with-param>
  5409.                                     </xsl:call-template>
  5410.                                     <xsl:call-template name ="templ_prop_Space"/>
  5411.                                 </xsl:otherwise>
  5412.                             </xsl:choose>
  5413.                         </xsl:when>
  5414.                     </xsl:choose>
  5415.  
  5416.                     <xsl:choose>
  5417.                         <xsl:when test="$cAuthorMiddleName=1">
  5418.                             <xsl:choose>
  5419.                                 <xsl:when test="contains(b:Middle,$prop_APA_FromToDash)">
  5420.                                     <xsl:call-template name="HandleSPaceHypenInAuthor">
  5421.                                         <xsl:with-param name="author">
  5422.                                             <xsl:call-template name="right-trim">
  5423.                                                 <xsl:with-param name ="s" select="b:Middle"/>
  5424.                                             </xsl:call-template>
  5425.                                         </xsl:with-param>
  5426.                                     </xsl:call-template>
  5427.                                     <xsl:call-template name ="templ_prop_Space"/>
  5428.                                 </xsl:when>
  5429.                                 <xsl:otherwise>
  5430.                                     <xsl:call-template name="splitAuthorSpace">
  5431.                                         <xsl:with-param name ="first">
  5432.                                             <xsl:call-template name="right-trim">
  5433.                                                 <xsl:with-param name ="s" select="b:Middle"/>
  5434.                                             </xsl:call-template>
  5435.                                         </xsl:with-param>
  5436.                                     </xsl:call-template>
  5437.                                     <xsl:call-template name ="templ_prop_Space"/>
  5438.                                 </xsl:otherwise>
  5439.                             </xsl:choose>
  5440.                         </xsl:when>
  5441.                     </xsl:choose>
  5442.                     <xsl:choose>
  5443.                         <xsl:when test="$cAuthorLastName=1">
  5444.                             <xsl:value-of select="b:Last"/>
  5445.                             <xsl:choose>
  5446.                                 <xsl:when test="$cTitle!=0 or $cJournalName!=0 or $cVolume!=0 or $cIssue!=0 or $cYear!=0 or $cPages!=0">
  5447.                                     <xsl:call-template name ="templ_prop_ListSeparator"/>
  5448.                                 </xsl:when>
  5449.                                 <xsl:otherwise>
  5450.                                     <xsl:call-template name ="templ_prop_Dot"/>
  5451.                                 </xsl:otherwise>
  5452.                             </xsl:choose>
  5453.                         </xsl:when>
  5454.                     </xsl:choose>
  5455.                 </xsl:for-each>
  5456.             </xsl:when>
  5457.  
  5458.             <xsl:when test="$cAuthors>1">
  5459.                 <xsl:for-each select="b:Author/b:Author/b:NameList/b:Person">
  5460.                     <xsl:variable name ="cAuthorFirstName">
  5461.                         <xsl:value-of select ="count(b:First)"/>
  5462.                     </xsl:variable>
  5463.                     <xsl:variable name ="cAuthorLastName">
  5464.                         <xsl:value-of select ="count(b:Last)"/>
  5465.                     </xsl:variable>
  5466.                     <xsl:variable name ="cAuthorMiddleName">
  5467.                         <xsl:value-of select ="count(b:Middle)"/>
  5468.                     </xsl:variable>
  5469.  
  5470.                     <xsl:choose>
  5471.                         <xsl:when test ="(position())=$cAuthors">
  5472.                             <xsl:call-template name ="templ_prop_Space"/>
  5473.                             <xsl:call-template name ="templ_str_AndUnCap"/>
  5474.                             <xsl:call-template name ="templ_prop_Space"/>
  5475.                         </xsl:when>
  5476.                     </xsl:choose>
  5477.  
  5478.                     <xsl:choose>
  5479.                         <xsl:when test="$cAuthorFirstName=1">
  5480.                             <xsl:choose>
  5481.                                 <xsl:when test="contains(b:First,$prop_APA_FromToDash)">
  5482.                                     <xsl:call-template name="HandleSPaceHypenInAuthor">
  5483.                                         <xsl:with-param name="author">
  5484.                                             <xsl:call-template name="right-trim">
  5485.                                                 <xsl:with-param name ="s" select="b:First"/>
  5486.                                             </xsl:call-template>
  5487.                                         </xsl:with-param>
  5488.                                     </xsl:call-template>
  5489.                                     <xsl:call-template name ="templ_prop_Space"/>
  5490.                                 </xsl:when>
  5491.                                 <xsl:otherwise>
  5492.                                     <xsl:call-template name="splitAuthorSpace">
  5493.                                         <xsl:with-param name ="first">
  5494.                                             <xsl:call-template name="right-trim">
  5495.                                                 <xsl:with-param name ="s" select="b:First"/>
  5496.                                             </xsl:call-template>
  5497.                                         </xsl:with-param>
  5498.                                     </xsl:call-template>
  5499.                                     <xsl:call-template name ="templ_prop_Space"/>
  5500.                                 </xsl:otherwise>
  5501.                             </xsl:choose>
  5502.                         </xsl:when>
  5503.                     </xsl:choose>
  5504.                     <xsl:choose>
  5505.                         <xsl:when test="$cAuthorMiddleName=1">
  5506.                             <xsl:choose>
  5507.                                 <xsl:when test="contains(b:Middle,$prop_APA_FromToDash)">
  5508.                                     <xsl:call-template name="HandleSPaceHypenInAuthor">
  5509.                                         <xsl:with-param name="author">
  5510.                                             <xsl:call-template name="right-trim">
  5511.                                                 <xsl:with-param name ="s" select="b:Middle"/>
  5512.                                             </xsl:call-template>
  5513.                                         </xsl:with-param>
  5514.                                     </xsl:call-template>
  5515.                                     <xsl:call-template name ="templ_prop_Space"/>
  5516.                                 </xsl:when>
  5517.                                 <xsl:otherwise>
  5518.                                     <xsl:call-template name="splitAuthorSpace">
  5519.                                         <xsl:with-param name ="first">
  5520.                                             <xsl:call-template name="right-trim">
  5521.                                                 <xsl:with-param name ="s" select="b:Middle"/>
  5522.                                             </xsl:call-template>
  5523.                                         </xsl:with-param>
  5524.                                     </xsl:call-template>
  5525.                                     <xsl:call-template name ="templ_prop_Space"/>
  5526.                                 </xsl:otherwise>
  5527.                             </xsl:choose>
  5528.                         </xsl:when>
  5529.                     </xsl:choose>
  5530.                     <xsl:choose>
  5531.                         <xsl:when test="$cAuthorLastName=1">
  5532.                             <xsl:value-of select="b:Last"/>
  5533.                             <xsl:if test="((position()+1)!=$cAuthors) and (position()&lt;$cAuthors)">
  5534.                                 <xsl:call-template name ="templ_prop_ListSeparator"/>
  5535.                             </xsl:if>
  5536.                         </xsl:when>
  5537.                     </xsl:choose>
  5538.                 </xsl:for-each>
  5539.                 <xsl:choose>
  5540.                     <xsl:when test="$cTitle!=0 or $cJournalName!=0 or $cVolume!=0 or $cIssue!=0 or $cYear!=0 or $cPages!=0">
  5541.                         <xsl:call-template name ="templ_prop_ListSeparator"/>
  5542.                     </xsl:when>
  5543.                     <xsl:otherwise>
  5544.                         <xsl:call-template name ="templ_prop_Dot"/>
  5545.                     </xsl:otherwise>
  5546.                 </xsl:choose>
  5547.             </xsl:when>
  5548.         </xsl:choose>
  5549.     </xsl:template>
  5550.  
  5551.     <xsl:template name="BibDisplayAuthorConPr">
  5552.         <xsl:param name ="DisplayEditorIfAuthorUnavailale"/>
  5553.         <xsl:variable name ="cAuthors">
  5554.             <xsl:value-of select ="count(b:Author/b:Author/b:NameList/b:Person)"/>
  5555.         </xsl:variable>
  5556.         <xsl:variable name="cCorporateAuthors">
  5557.             <xsl:value-of select="count(b:Author/b:Author/b:Corporate)" />
  5558.         </xsl:variable>
  5559.         <xsl:variable name="prop_APA_FromToDash">
  5560.             <xsl:call-template name="templ_prop_FromToDash"/>
  5561.         </xsl:variable>
  5562.  
  5563.         <xsl:variable name="cTitle">
  5564.             <xsl:value-of select ="count(b:Title)"/>
  5565.         </xsl:variable>
  5566.         <xsl:variable name="cConferenceName">
  5567.             <xsl:value-of select ="count(b:ConferenceName)"/>
  5568.         </xsl:variable>
  5569.         <xsl:variable name="cEditor">
  5570.             <xsl:value-of select="count(b:Author/b:Editor/b:NameList/b:Person)" />
  5571.         </xsl:variable>
  5572.         <xsl:variable name="cCity">
  5573.             <xsl:value-of select ="count(b:City)"/>
  5574.         </xsl:variable>
  5575.         <xsl:variable name="cYear">
  5576.             <xsl:value-of select ="count(b:Year)"/>
  5577.         </xsl:variable>
  5578.  
  5579.         <xsl:choose>
  5580.             <xsl:when test ="$cAuthors=0">
  5581.                 <xsl:choose>
  5582.                     <xsl:when test="$cCorporateAuthors!=0">
  5583.                         <xsl:value-of select="b:Author/b:Author/b:Corporate"/>
  5584.                         <xsl:choose>
  5585.                             <xsl:when test="$cTitle!=0 or $cConferenceName!=0 or $cCity!=0 or $cYear!=0">
  5586.                                 <xsl:call-template name ="templ_prop_ListSeparator"/>
  5587.                             </xsl:when>
  5588.                             <xsl:otherwise>
  5589.                                 <xsl:call-template name ="templ_prop_Dot"/>
  5590.                             </xsl:otherwise>
  5591.                         </xsl:choose>
  5592.                     </xsl:when>
  5593.                 </xsl:choose>
  5594.             </xsl:when>
  5595.  
  5596.             <xsl:when test="$cAuthors=1">
  5597.                 <xsl:for-each select="b:Author/b:Author/b:NameList/b:Person">
  5598.                     <xsl:variable name ="cAuthorFirstName">
  5599.                         <xsl:value-of select ="count(b:First)"/>
  5600.                     </xsl:variable>
  5601.                     <xsl:variable name ="cAuthorLastName">
  5602.                         <xsl:value-of select ="count(b:Last)"/>
  5603.                     </xsl:variable>
  5604.                     <xsl:variable name ="cAuthorMiddleName">
  5605.                         <xsl:value-of select ="count(b:Middle)"/>
  5606.                     </xsl:variable>
  5607.                     <xsl:choose>
  5608.                         <xsl:when test="$cAuthorFirstName=1">
  5609.                             <xsl:choose>
  5610.                                 <xsl:when test="contains(b:First,$prop_APA_FromToDash)">
  5611.                                     <xsl:call-template name="HandleSPaceHypenInAuthor">
  5612.                                         <xsl:with-param name="author">
  5613.                                             <xsl:call-template name="right-trim">
  5614.                                                 <xsl:with-param name ="s" select="b:First"/>
  5615.                                             </xsl:call-template>
  5616.                                         </xsl:with-param>
  5617.                                     </xsl:call-template>
  5618.                                     <xsl:call-template name ="templ_prop_Space"/>
  5619.                                 </xsl:when>
  5620.                                 <xsl:otherwise>
  5621.                                     <xsl:call-template name="splitAuthorSpace">
  5622.                                         <xsl:with-param name ="first">
  5623.                                             <xsl:call-template name="right-trim">
  5624.                                                 <xsl:with-param name ="s" select="b:First"/>
  5625.                                             </xsl:call-template>
  5626.                                         </xsl:with-param>
  5627.                                     </xsl:call-template>
  5628.                                     <xsl:call-template name ="templ_prop_Space"/>
  5629.                                 </xsl:otherwise>
  5630.                             </xsl:choose>
  5631.                         </xsl:when>
  5632.                     </xsl:choose>
  5633.  
  5634.                     <xsl:choose>
  5635.                         <xsl:when test="$cAuthorMiddleName=1">
  5636.                             <xsl:choose>
  5637.                                 <xsl:when test="contains(b:Middle,$prop_APA_FromToDash)">
  5638.                                     <xsl:call-template name="HandleSPaceHypenInAuthor">
  5639.                                         <xsl:with-param name="author">
  5640.                                             <xsl:call-template name="right-trim">
  5641.                                                 <xsl:with-param name ="s" select="b:Middle"/>
  5642.                                             </xsl:call-template>
  5643.                                         </xsl:with-param>
  5644.                                     </xsl:call-template>
  5645.                                     <xsl:call-template name ="templ_prop_Space"/>
  5646.                                 </xsl:when>
  5647.                                 <xsl:otherwise>
  5648.                                     <xsl:call-template name="splitAuthorSpace">
  5649.                                         <xsl:with-param name ="first">
  5650.                                             <xsl:call-template name="right-trim">
  5651.                                                 <xsl:with-param name ="s" select="b:Middle"/>
  5652.                                             </xsl:call-template>
  5653.                                         </xsl:with-param>
  5654.                                     </xsl:call-template>
  5655.                                     <xsl:call-template name ="templ_prop_Space"/>
  5656.                                 </xsl:otherwise>
  5657.                             </xsl:choose>
  5658.                         </xsl:when>
  5659.                     </xsl:choose>
  5660.                     <xsl:choose>
  5661.                         <xsl:when test="$cAuthorLastName=1">
  5662.                             <xsl:value-of select="b:Last"/>
  5663.                             <xsl:choose>
  5664.                                 <xsl:when test="$cTitle!=0 or $cConferenceName!=0 or $cCity!=0 or $cYear!=0">
  5665.                                     <xsl:call-template name ="templ_prop_ListSeparator"/>
  5666.                                 </xsl:when>
  5667.                                 <xsl:otherwise>
  5668.                                     <xsl:call-template name ="templ_prop_Dot"/>
  5669.                                 </xsl:otherwise>
  5670.                             </xsl:choose>
  5671.                         </xsl:when>
  5672.                     </xsl:choose>
  5673.                 </xsl:for-each>
  5674.  
  5675.             </xsl:when>
  5676.  
  5677.             <xsl:when test="$cAuthors>1">
  5678.                 <xsl:for-each select="b:Author/b:Author/b:NameList/b:Person">
  5679.                     <xsl:variable name ="cAuthorFirstName">
  5680.                         <xsl:value-of select ="count(b:First)"/>
  5681.                     </xsl:variable>
  5682.                     <xsl:variable name ="cAuthorLastName">
  5683.                         <xsl:value-of select ="count(b:Last)"/>
  5684.                     </xsl:variable>
  5685.                     <xsl:variable name ="cAuthorMiddleName">
  5686.                         <xsl:value-of select ="count(b:Middle)"/>
  5687.                     </xsl:variable>
  5688.  
  5689.                     <xsl:choose>
  5690.                         <xsl:when test ="(position())=$cAuthors">
  5691.                             <xsl:call-template name ="templ_prop_Space"/>
  5692.                             <xsl:call-template name ="templ_str_AndUnCap"/>
  5693.                             <xsl:call-template name ="templ_prop_Space"/>
  5694.                         </xsl:when>
  5695.                     </xsl:choose>
  5696.  
  5697.                     <xsl:choose>
  5698.                         <xsl:when test="$cAuthorFirstName=1">
  5699.                             <xsl:choose>
  5700.                                 <xsl:when test="contains(b:First,$prop_APA_FromToDash)">
  5701.                                     <xsl:call-template name="HandleSPaceHypenInAuthor">
  5702.                                         <xsl:with-param name="author">
  5703.                                             <xsl:call-template name="right-trim">
  5704.                                                 <xsl:with-param name ="s" select="b:First"/>
  5705.                                             </xsl:call-template>
  5706.                                         </xsl:with-param>
  5707.                                     </xsl:call-template>
  5708.                                     <xsl:call-template name ="templ_prop_Space"/>
  5709.                                 </xsl:when>
  5710.                                 <xsl:otherwise>
  5711.                                     <xsl:call-template name="splitAuthorSpace">
  5712.                                         <xsl:with-param name ="first">
  5713.                                             <xsl:call-template name="right-trim">
  5714.                                                 <xsl:with-param name ="s" select="b:First"/>
  5715.                                             </xsl:call-template>
  5716.                                         </xsl:with-param>
  5717.                                     </xsl:call-template>
  5718.                                     <xsl:call-template name ="templ_prop_Space"/>
  5719.                                 </xsl:otherwise>
  5720.                             </xsl:choose>
  5721.                         </xsl:when>
  5722.                     </xsl:choose>
  5723.                     <xsl:choose>
  5724.                         <xsl:when test="$cAuthorMiddleName=1">
  5725.                             <xsl:choose>
  5726.                                 <xsl:when test="contains(b:Middle,$prop_APA_FromToDash)">
  5727.                                     <xsl:call-template name="HandleSPaceHypenInAuthor">
  5728.                                         <xsl:with-param name="author">
  5729.                                             <xsl:call-template name="right-trim">
  5730.                                                 <xsl:with-param name ="s" select="b:Middle"/>
  5731.                                             </xsl:call-template>
  5732.                                         </xsl:with-param>
  5733.                                     </xsl:call-template>
  5734.                                     <xsl:call-template name ="templ_prop_Space"/>
  5735.                                 </xsl:when>
  5736.                                 <xsl:otherwise>
  5737.                                     <xsl:call-template name="splitAuthorSpace">
  5738.                                         <xsl:with-param name ="first">
  5739.                                             <xsl:call-template name="right-trim">
  5740.                                                 <xsl:with-param name ="s" select="b:Middle"/>
  5741.                                             </xsl:call-template>
  5742.                                         </xsl:with-param>
  5743.                                     </xsl:call-template>
  5744.                                     <xsl:call-template name ="templ_prop_Space"/>
  5745.                                 </xsl:otherwise>
  5746.                             </xsl:choose>
  5747.                         </xsl:when>
  5748.                     </xsl:choose>
  5749.                     <xsl:choose>
  5750.                         <xsl:when test="$cAuthorLastName=1">
  5751.                             <xsl:value-of select="b:Last"/>
  5752.                             <xsl:if test="((position()+1)!=$cAuthors) and (position()&lt;$cAuthors)">
  5753.                                 <xsl:call-template name ="templ_prop_ListSeparator"/>
  5754.                             </xsl:if>
  5755.                         </xsl:when>
  5756.                     </xsl:choose>
  5757.                 </xsl:for-each>
  5758.                 <xsl:choose>
  5759.                     <xsl:when test="$cTitle!=0 or $cConferenceName!=0 or $cCity!=0 or $cYear!=0">
  5760.                         <xsl:call-template name ="templ_prop_ListSeparator"/>
  5761.                     </xsl:when>
  5762.                     <xsl:otherwise>
  5763.                         <xsl:call-template name ="templ_prop_Dot"/>
  5764.                     </xsl:otherwise>
  5765.                 </xsl:choose>
  5766.             </xsl:when>
  5767.         </xsl:choose>
  5768.     </xsl:template>
  5769.  
  5770.     <xsl:template name="BibDisplayAuthorReport">
  5771.         <xsl:param name ="DisplayEditorIfAuthorUnavailale"/>
  5772.         <xsl:variable name ="cAuthors">
  5773.             <xsl:value-of select ="count(b:Author/b:Author/b:NameList/b:Person)"/>
  5774.         </xsl:variable>
  5775.         <xsl:variable name="cCorporateAuthors">
  5776.             <xsl:value-of select="count(b:Author/b:Author/b:Corporate)" />
  5777.         </xsl:variable>
  5778.         <xsl:variable name="prop_APA_FromToDash">
  5779.             <xsl:call-template name="templ_prop_FromToDash"/>
  5780.         </xsl:variable>
  5781.  
  5782.         <xsl:variable name="cTitle">
  5783.             <xsl:value-of select ="count(b:Title)"/>
  5784.         </xsl:variable>
  5785.         <xsl:variable name="cEditor">
  5786.             <xsl:value-of select="count(b:Author/b:Editor/b:NameList/b:Person)" />
  5787.         </xsl:variable>
  5788.         <xsl:variable name="cCity">
  5789.             <xsl:value-of select ="count(b:City)"/>
  5790.         </xsl:variable>
  5791.         <xsl:variable name="cPublisher">
  5792.             <xsl:value-of select ="count(b:Publisher)"/>
  5793.         </xsl:variable>
  5794.         <xsl:variable name="cYear">
  5795.             <xsl:value-of select ="count(b:Year)"/>
  5796.         </xsl:variable>
  5797.  
  5798.         <xsl:choose>
  5799.             <xsl:when test ="$cAuthors=0">
  5800.                 <xsl:choose>
  5801.                     <xsl:when test="$cCorporateAuthors!=0">
  5802.                         <xsl:value-of select="b:Author/b:Author/b:Corporate"/>
  5803.                         <xsl:choose>
  5804.                             <xsl:when test="$cTitle!=0 or $cCity!=0 or $cPublisher!=0 or $cYear!=0">
  5805.                                 <xsl:call-template name ="templ_prop_ListSeparator"/>
  5806.                             </xsl:when>
  5807.                             <xsl:otherwise>
  5808.                                 <xsl:call-template name ="templ_prop_Dot"/>
  5809.                             </xsl:otherwise>
  5810.                         </xsl:choose>
  5811.                     </xsl:when>
  5812.                 </xsl:choose>
  5813.             </xsl:when>
  5814.  
  5815.             <xsl:when test="$cAuthors=1">
  5816.                 <xsl:for-each select="b:Author/b:Author/b:NameList/b:Person">
  5817.                     <xsl:variable name ="cAuthorFirstName">
  5818.                         <xsl:value-of select ="count(b:First)"/>
  5819.                     </xsl:variable>
  5820.                     <xsl:variable name ="cAuthorLastName">
  5821.                         <xsl:value-of select ="count(b:Last)"/>
  5822.                     </xsl:variable>
  5823.                     <xsl:variable name ="cAuthorMiddleName">
  5824.                         <xsl:value-of select ="count(b:Middle)"/>
  5825.                     </xsl:variable>
  5826.                     <xsl:choose>
  5827.                         <xsl:when test="$cAuthorFirstName=1">
  5828.                             <xsl:choose>
  5829.                                 <xsl:when test="contains(b:First,$prop_APA_FromToDash)">
  5830.                                     <xsl:call-template name="HandleSPaceHypenInAuthor">
  5831.                                         <xsl:with-param name="author">
  5832.                                             <xsl:call-template name="right-trim">
  5833.                                                 <xsl:with-param name ="s" select="b:First"/>
  5834.                                             </xsl:call-template>
  5835.                                         </xsl:with-param>
  5836.                                     </xsl:call-template>
  5837.                                     <xsl:call-template name ="templ_prop_Space"/>
  5838.                                 </xsl:when>
  5839.                                 <xsl:otherwise>
  5840.                                     <xsl:call-template name="splitAuthorSpace">
  5841.                                         <xsl:with-param name ="first">
  5842.                                             <xsl:call-template name="right-trim">
  5843.                                                 <xsl:with-param name ="s" select="b:First"/>
  5844.                                             </xsl:call-template>
  5845.                                         </xsl:with-param>
  5846.                                     </xsl:call-template>
  5847.                                     <xsl:call-template name ="templ_prop_Space"/>
  5848.                                 </xsl:otherwise>
  5849.                             </xsl:choose>
  5850.                         </xsl:when>
  5851.                     </xsl:choose>
  5852.  
  5853.                     <xsl:choose>
  5854.                         <xsl:when test="$cAuthorMiddleName=1">
  5855.                             <xsl:choose>
  5856.                                 <xsl:when test="contains(b:Middle,$prop_APA_FromToDash)">
  5857.                                     <xsl:call-template name="HandleSPaceHypenInAuthor">
  5858.                                         <xsl:with-param name="author">
  5859.                                             <xsl:call-template name="right-trim">
  5860.                                                 <xsl:with-param name ="s" select="b:Middle"/>
  5861.                                             </xsl:call-template>
  5862.                                         </xsl:with-param>
  5863.                                     </xsl:call-template>
  5864.                                     <xsl:call-template name ="templ_prop_Space"/>
  5865.                                 </xsl:when>
  5866.                                 <xsl:otherwise>
  5867.                                     <xsl:call-template name="splitAuthorSpace">
  5868.                                         <xsl:with-param name ="first">
  5869.                                             <xsl:call-template name="right-trim">
  5870.                                                 <xsl:with-param name ="s" select="b:Middle"/>
  5871.                                             </xsl:call-template>
  5872.                                         </xsl:with-param>
  5873.                                     </xsl:call-template>
  5874.                                     <xsl:call-template name ="templ_prop_Space"/>
  5875.                                 </xsl:otherwise>
  5876.                             </xsl:choose>
  5877.                         </xsl:when>
  5878.                     </xsl:choose>
  5879.                     <xsl:choose>
  5880.                         <xsl:when test="$cAuthorLastName=1">
  5881.                             <xsl:value-of select="b:Last"/>
  5882.                             <xsl:choose>
  5883.                                 <xsl:when test="$cTitle!=0 or $cCity!=0 or $cPublisher!=0 or $cYear!=0">
  5884.                                     <xsl:call-template name ="templ_prop_ListSeparator"/>
  5885.                                 </xsl:when>
  5886.                                 <xsl:otherwise>
  5887.                                     <xsl:call-template name ="templ_prop_Dot"/>
  5888.                                 </xsl:otherwise>
  5889.                             </xsl:choose>
  5890.                         </xsl:when>
  5891.                     </xsl:choose>
  5892.                 </xsl:for-each>
  5893.  
  5894.             </xsl:when>
  5895.  
  5896.             <xsl:when test="$cAuthors>1">
  5897.                 <xsl:for-each select="b:Author/b:Author/b:NameList/b:Person">
  5898.                     <xsl:variable name ="cAuthorFirstName">
  5899.                         <xsl:value-of select ="count(b:First)"/>
  5900.                     </xsl:variable>
  5901.                     <xsl:variable name ="cAuthorLastName">
  5902.                         <xsl:value-of select ="count(b:Last)"/>
  5903.                     </xsl:variable>
  5904.                     <xsl:variable name ="cAuthorMiddleName">
  5905.                         <xsl:value-of select ="count(b:Middle)"/>
  5906.                     </xsl:variable>
  5907.  
  5908.                     <xsl:choose>
  5909.                         <xsl:when test ="(position())=$cAuthors">
  5910.                             <xsl:call-template name ="templ_prop_Space"/>
  5911.                             <xsl:call-template name ="templ_str_AndUnCap"/>
  5912.                             <xsl:call-template name ="templ_prop_Space"/>
  5913.                         </xsl:when>
  5914.                     </xsl:choose>
  5915.  
  5916.                     <xsl:choose>
  5917.                         <xsl:when test="$cAuthorFirstName=1">
  5918.                             <xsl:choose>
  5919.                                 <xsl:when test="contains(b:First,$prop_APA_FromToDash)">
  5920.                                     <xsl:call-template name="HandleSPaceHypenInAuthor">
  5921.                                         <xsl:with-param name="author">
  5922.                                             <xsl:call-template name="right-trim">
  5923.                                                 <xsl:with-param name ="s" select="b:First"/>
  5924.                                             </xsl:call-template>
  5925.                                         </xsl:with-param>
  5926.                                     </xsl:call-template>
  5927.                                     <xsl:call-template name ="templ_prop_Space"/>
  5928.                                 </xsl:when>
  5929.                                 <xsl:otherwise>
  5930.                                     <xsl:call-template name="splitAuthorSpace">
  5931.                                         <xsl:with-param name ="first">
  5932.                                             <xsl:call-template name="right-trim">
  5933.                                                 <xsl:with-param name ="s" select="b:First"/>
  5934.                                             </xsl:call-template>
  5935.                                         </xsl:with-param>
  5936.                                     </xsl:call-template>
  5937.                                     <xsl:call-template name ="templ_prop_Space"/>
  5938.                                 </xsl:otherwise>
  5939.                             </xsl:choose>
  5940.                         </xsl:when>
  5941.                     </xsl:choose>
  5942.                     <xsl:choose>
  5943.                         <xsl:when test="$cAuthorMiddleName=1">
  5944.                             <xsl:choose>
  5945.                                 <xsl:when test="contains(b:Middle,$prop_APA_FromToDash)">
  5946.                                     <xsl:call-template name="HandleSPaceHypenInAuthor">
  5947.                                         <xsl:with-param name="author">
  5948.                                             <xsl:call-template name="right-trim">
  5949.                                                 <xsl:with-param name ="s" select="b:Middle"/>
  5950.                                             </xsl:call-template>
  5951.                                         </xsl:with-param>
  5952.                                     </xsl:call-template>
  5953.                                     <xsl:call-template name ="templ_prop_Space"/>
  5954.                                 </xsl:when>
  5955.                                 <xsl:otherwise>
  5956.                                     <xsl:call-template name="splitAuthorSpace">
  5957.                                         <xsl:with-param name ="first">
  5958.                                             <xsl:call-template name="right-trim">
  5959.                                                 <xsl:with-param name ="s" select="b:Middle"/>
  5960.                                             </xsl:call-template>
  5961.                                         </xsl:with-param>
  5962.                                     </xsl:call-template>
  5963.                                     <xsl:call-template name ="templ_prop_Space"/>
  5964.                                 </xsl:otherwise>
  5965.                             </xsl:choose>
  5966.                         </xsl:when>
  5967.                     </xsl:choose>
  5968.                     <xsl:choose>
  5969.                         <xsl:when test="$cAuthorLastName=1">
  5970.                             <xsl:value-of select="b:Last"/>
  5971.                             <xsl:if test="((position()+1)!=$cAuthors) and (position()&lt;$cAuthors)">
  5972.                                 <xsl:call-template name ="templ_prop_ListSeparator"/>
  5973.                             </xsl:if>
  5974.                         </xsl:when>
  5975.                     </xsl:choose>
  5976.                 </xsl:for-each>
  5977.                 <xsl:choose>
  5978.                     <xsl:when test="$cTitle!=0 or $cCity!=0 or $cPublisher!=0 or $cYear!=0">
  5979.                         <xsl:call-template name ="templ_prop_ListSeparator"/>
  5980.                     </xsl:when>
  5981.                     <xsl:otherwise>
  5982.                         <xsl:call-template name ="templ_prop_Dot"/>
  5983.                     </xsl:otherwise>
  5984.                 </xsl:choose>
  5985.             </xsl:when>
  5986.         </xsl:choose>
  5987.     </xsl:template>
  5988.  
  5989.  
  5990.     <xsl:template name="BibDisplayYear">
  5991.         <xsl:variable name="cYear">
  5992.             <xsl:value-of select="count(b:Year)"/>
  5993.         </xsl:variable>
  5994.         <xsl:choose>
  5995.             <xsl:when test ="$cYear=1">
  5996.                 <xsl:value-of select = "b:Year"/>
  5997.                 <xsl:call-template name = "templ_prop_Dot"/>
  5998.             </xsl:when>
  5999.         </xsl:choose>
  6000.         <xsl:call-template name="templ_prop_Space"/>
  6001.     </xsl:template>
  6002.  
  6003.     <xsl:template name="BibDisplayTitleReport">
  6004.         <xsl:variable name="cTitle">
  6005.             <xsl:value-of select="count(b:Title)"/>
  6006.         </xsl:variable>
  6007.         <xsl:variable name="cCity">
  6008.             <xsl:value-of select="count(b:City)"/>
  6009.         </xsl:variable>
  6010.         <xsl:variable name="cYear">
  6011.             <xsl:value-of select="count(b:Year)"/>
  6012.         </xsl:variable>
  6013.         <xsl:variable name="cPublisher">
  6014.             <xsl:value-of select="count(b:Publisher)"/>
  6015.         </xsl:variable>
  6016.         <xsl:if test ="$cTitle!=0">
  6017.             <xsl:call-template name="templ_prop_OpenQuote"/>
  6018.             <xsl:call-template name="right-trim">
  6019.                 <xsl:with-param name ="s" select="b:Title"/>
  6020.             </xsl:call-template>
  6021.             <xsl:choose>
  6022.                 <xsl:when test=" $cCity!=0 or $cYear!=0 or  $cPublisher!=0  ">
  6023.                     <xsl:call-template name ="List_Separator_NoSpace"/>
  6024.                     <xsl:call-template name="templ_prop_CloseQuote"/>
  6025.                     <xsl:call-template name ="templ_prop_Space"/>
  6026.                 </xsl:when>
  6027.                 <xsl:when test="$cCity=0 and $cYear=0 and $cPublisher=0 ">
  6028.                     <xsl:call-template name="templ_prop_CloseQuote"/>
  6029.                     <xsl:call-template name = "templ_prop_Dot"/>
  6030.                 </xsl:when>
  6031.             </xsl:choose>
  6032.         </xsl:if>
  6033.     </xsl:template>
  6034.  
  6035.     <xsl:template name="BibDisplayYearCase">
  6036.         <xsl:variable name="cYear">
  6037.             <xsl:value-of select="count(b:Year)"/>
  6038.         </xsl:variable>
  6039.         <xsl:choose>
  6040.             <xsl:when test ="$cYear=1">
  6041.                 <xsl:value-of select = "b:Year"/>
  6042.                 <xsl:call-template name = "templ_prop_Dot"/>
  6043.             </xsl:when>
  6044.         </xsl:choose>
  6045.     </xsl:template>
  6046.  
  6047.     <xsl:template name="BibDisplayInstitutionArt">
  6048.         <xsl:variable name="cInstitution">
  6049.             <xsl:value-of select="count(b:Institution)"/>
  6050.         </xsl:variable>
  6051.         <xsl:variable name="cYear">
  6052.             <xsl:value-of select="count(b:Year)"/>
  6053.         </xsl:variable>
  6054.  
  6055.         <xsl:choose>
  6056.             <xsl:when test ="$cInstitution!=0">
  6057.  
  6058.                 <xsl:value-of select = "b:Institution"/>
  6059.                 <xsl:choose>
  6060.                     <xsl:when test="$cYear>0">
  6061.                         <xsl:call-template name ="templ_prop_ListSeparator"/>
  6062.                         <xsl:call-template name ="templ_prop_Space"/>
  6063.                     </xsl:when>
  6064.                     <xsl:otherwise>
  6065.                         <xsl:call-template name = "templ_prop_Dot"/>
  6066.                     </xsl:otherwise>
  6067.                 </xsl:choose>
  6068.             </xsl:when>
  6069.         </xsl:choose>
  6070.     </xsl:template>
  6071.  
  6072.  
  6073.  
  6074.     <xsl:template name="BibDisplayTitleBook">
  6075.         <xsl:variable name="cTitle">
  6076.             <xsl:value-of select="count(b:Title)"/>
  6077.         </xsl:variable>
  6078.         <xsl:variable name="cEdition">
  6079.             <xsl:value-of select ="count(b:Edition)"/>
  6080.         </xsl:variable>
  6081.         <xsl:variable name="cVolume">
  6082.             <xsl:value-of select ="count(b:Volume)"/>
  6083.         </xsl:variable>
  6084.         <xsl:variable name="cEditor">
  6085.             <xsl:value-of select="count(b:Author/b:Editor/b:NameList/b:Person)" />
  6086.         </xsl:variable>
  6087.         <xsl:variable name="cAuthor">
  6088.             <xsl:value-of select="count(b:Author/b:Author/b:NameList/b:Person)" />
  6089.         </xsl:variable>
  6090.         <xsl:variable name="cCity">
  6091.             <xsl:value-of select ="count(b:City)"/>
  6092.         </xsl:variable>
  6093.         <xsl:variable name="cStateProvince">
  6094.             <xsl:value-of select ="count(b:StateProvince)"/>
  6095.         </xsl:variable>
  6096.         <xsl:variable name="cPublisher">
  6097.             <xsl:value-of select ="count(b:Publisher)"/>
  6098.         </xsl:variable>
  6099.         <xsl:variable name="cYear">
  6100.             <xsl:value-of select ="count(b:Year)"/>
  6101.         </xsl:variable>
  6102.         <xsl:variable name="cPages">
  6103.             <xsl:value-of select ="count(b:Pages)"/>
  6104.         </xsl:variable>
  6105.  
  6106.         <xsl:if test ="$cTitle!=0">
  6107.             <xsl:call-template name="right-trim">
  6108.                 <xsl:with-param name ="s" select="b:Title"/>
  6109.             </xsl:call-template>
  6110.             <xsl:choose>
  6111.                 <xsl:when test="$cAuthor=0">
  6112.                     <xsl:choose>
  6113.                         <xsl:when test="$cEdition!=0 or $cVolume!=0 or $cCity!=0 or $cStateProvince!=0 or $cPublisher!=0 or $cYear!=0 or $cPages!=0">
  6114.                             <xsl:call-template name ="templ_prop_ListSeparator"/>
  6115.                         </xsl:when>
  6116.                         <xsl:otherwise>
  6117.                             <xsl:call-template name ="templ_prop_Dot"/>
  6118.                         </xsl:otherwise>
  6119.                     </xsl:choose>
  6120.                 </xsl:when>
  6121.                 <xsl:otherwise>
  6122.                     <xsl:choose>
  6123.                         <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">
  6124.                             <xsl:call-template name ="templ_prop_ListSeparator"/>
  6125.                         </xsl:when>
  6126.                         <xsl:otherwise>
  6127.                             <xsl:call-template name ="templ_prop_Dot"/>
  6128.                         </xsl:otherwise>
  6129.                     </xsl:choose>
  6130.                 </xsl:otherwise>
  6131.             </xsl:choose>
  6132.         </xsl:if>
  6133.     </xsl:template>
  6134.  
  6135.     <xsl:template name="BibDisplayTitle">
  6136.         <xsl:variable name="cTitle">
  6137.             <xsl:value-of select="count(b:Title)"/>
  6138.         </xsl:variable>
  6139.         <xsl:if test ="$cTitle!=0">
  6140.             <xsl:call-template name="right-trim">
  6141.                 <xsl:with-param name ="s" select="b:Title"/>
  6142.             </xsl:call-template>
  6143.             <xsl:call-template name ="templ_prop_Dot"/>
  6144.             <xsl:call-template name ="templ_prop_Space"/>
  6145.         </xsl:if>
  6146.     </xsl:template>
  6147.  
  6148.     <xsl:template name="BibDisplayTitleInt">
  6149.         <xsl:variable name="cTitle">
  6150.             <xsl:value-of select="count(b:Title)"/>
  6151.         </xsl:variable>
  6152.         <xsl:if test ="$cTitle!=0">
  6153.             <xsl:call-template name="right-trim">
  6154.                 <xsl:with-param name ="s" select="b:Title"/>
  6155.             </xsl:call-template>
  6156.             <xsl:call-template name ="templ_prop_Dot"/>
  6157.             <xsl:call-template name ="templ_prop_Space"/>
  6158.         </xsl:if>
  6159.     </xsl:template>
  6160.  
  6161.  
  6162.     <xsl:template name="BibDisplayYearSoundrecording">
  6163.         <xsl:variable name="cYear">
  6164.             <xsl:value-of select="count(b:Year)"/>
  6165.         </xsl:variable>
  6166.         <xsl:choose>
  6167.             <xsl:when test ="$cYear=1">
  6168.                 <xsl:value-of select = "b:Year"/>
  6169.                 <xsl:call-template name = "templ_prop_Dot"/>
  6170.             </xsl:when>
  6171.         </xsl:choose>
  6172.     </xsl:template>
  6173.  
  6174.     <xsl:template name="BibDisplayTitleCase">
  6175.         <xsl:variable name="cTitle">
  6176.             <xsl:value-of select="count(b:Title)"/>
  6177.         </xsl:variable>
  6178.         <xsl:variable name="cYear">
  6179.             <xsl:value-of select="count(b:Year)"/>
  6180.         </xsl:variable>
  6181.         <xsl:if test ="$cTitle!=0">
  6182.             <xsl:call-template name="right-trim">
  6183.                 <xsl:with-param name ="s" select="b:Title"/>
  6184.             </xsl:call-template>
  6185.             <xsl:if test="$cYear=1">
  6186.                 <xsl:call-template name ="templ_prop_ListSeparator"/>
  6187.             </xsl:if >
  6188.             <xsl:if test="not($cYear=1)">
  6189.                 <xsl:call-template name = "templ_prop_Dot"/>
  6190.             </xsl:if >
  6191.         </xsl:if>
  6192.     </xsl:template>
  6193.  
  6194.     <xsl:template name="BibDisplayTitleBC">
  6195.         <xsl:variable name="cTitle">
  6196.             <xsl:value-of select="count(b:Title)"/>
  6197.         </xsl:variable>
  6198.         <xsl:variable name="cAuthor">
  6199.             <xsl:value-of select="count(b:Author/b:Author/b:NameList/b:Person)" />
  6200.         </xsl:variable>
  6201.         <xsl:variable name="cBookTitle">
  6202.             <xsl:value-of select ="count(b:BookTitle)"/>
  6203.         </xsl:variable>
  6204.         <xsl:variable name="cEdition">
  6205.             <xsl:value-of select ="count(b:Edition)"/>
  6206.         </xsl:variable>
  6207.         <xsl:variable name="cVolume">
  6208.             <xsl:value-of select ="count(b:Volume)"/>
  6209.         </xsl:variable>
  6210.         <xsl:variable name="cEditor">
  6211.             <xsl:value-of select="count(b:Author/b:Editor/b:NameList/b:Person)" />
  6212.         </xsl:variable>
  6213.         <xsl:variable name="cCity">
  6214.             <xsl:value-of select ="count(b:City)"/>
  6215.         </xsl:variable>
  6216.         <xsl:variable name="cStateProvince">
  6217.             <xsl:value-of select ="count(b:StateProvince)"/>
  6218.         </xsl:variable>
  6219.         <xsl:variable name="cPublisher">
  6220.             <xsl:value-of select ="count(b:Publisher)"/>
  6221.         </xsl:variable>
  6222.         <xsl:variable name="cYear">
  6223.             <xsl:value-of select ="count(b:Year)"/>
  6224.         </xsl:variable>
  6225.         <xsl:variable name="cPages">
  6226.             <xsl:value-of select ="count(b:Pages)"/>
  6227.         </xsl:variable>
  6228.  
  6229.         <xsl:if test ="$cTitle!=0">
  6230.             <xsl:call-template name="templ_prop_OpenQuote"/>
  6231.             <xsl:call-template name="right-trim">
  6232.                 <xsl:with-param name ="s" select="b:Title"/>
  6233.             </xsl:call-template>
  6234.             <xsl:choose>
  6235.                 <xsl:when test="$cAuthor=0">
  6236.                     <xsl:choose>
  6237.                         <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">
  6238.                             <xsl:call-template name ="List_Separator_NoSpace"/>
  6239.                             <xsl:call-template name="templ_prop_CloseQuote"/>
  6240.                             <xsl:call-template name ="templ_prop_Space"/>
  6241.                         </xsl:when>
  6242.                         <xsl:otherwise>
  6243.                             <xsl:call-template name="templ_prop_CloseQuote"/>
  6244.                             <xsl:call-template name ="templ_prop_Dot"/>
  6245.                         </xsl:otherwise>
  6246.                     </xsl:choose>
  6247.                 </xsl:when>
  6248.                 <xsl:otherwise>
  6249.                     <xsl:choose>
  6250.                         <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">
  6251.                             <xsl:call-template name ="List_Separator_NoSpace"/>
  6252.                             <xsl:call-template name="templ_prop_CloseQuote"/>
  6253.                             <xsl:call-template name ="templ_prop_Space"/>
  6254.                         </xsl:when>
  6255.                         <xsl:otherwise>
  6256.                             <xsl:call-template name="templ_prop_CloseQuote"/>
  6257.                             <xsl:call-template name ="templ_prop_Dot"/>
  6258.                         </xsl:otherwise>
  6259.                     </xsl:choose>
  6260.                 </xsl:otherwise>
  6261.             </xsl:choose>
  6262.         </xsl:if>
  6263.     </xsl:template>
  6264.  
  6265.     <xsl:template name ="BibDisplayJournalName">
  6266.         <xsl:variable name ="cJournalName">
  6267.             <xsl:value-of select="count(b:JournalName)"/>
  6268.         </xsl:variable>
  6269.         <xsl:variable name="cVolume">
  6270.             <xsl:value-of select="count(b:Volume)"/>
  6271.         </xsl:variable>
  6272.         <xsl:variable name="cIssue">
  6273.             <xsl:value-of select="count(b:Issue)"/>
  6274.         </xsl:variable>
  6275.         <xsl:variable name="cPages">
  6276.             <xsl:value-of select="count(b:Pages)"/>
  6277.         </xsl:variable>
  6278.         <xsl:variable name ="cYear">
  6279.             <xsl:value-of select="count(b:Year)"/>
  6280.         </xsl:variable>
  6281.  
  6282.         <xsl:if test ="$cJournalName!=0">
  6283.             <xsl:value-of select="b:JournalName"/>
  6284.             <xsl:choose>
  6285.                 <xsl:when test="$cVolume!=0 or $cIssue!=0 or $cPages!=0 or $cYear!=0">
  6286.                     <xsl:call-template name ="templ_prop_ListSeparator"/>
  6287.                 </xsl:when>
  6288.                 <xsl:otherwise>
  6289.                     <xsl:call-template name ="templ_prop_Dot"/>
  6290.                 </xsl:otherwise>
  6291.             </xsl:choose>
  6292.         </xsl:if>
  6293.     </xsl:template>
  6294.  
  6295.     <xsl:template name ="BibDisplayJournalNameAP">
  6296.         <xsl:variable name ="cJournalName">
  6297.             <xsl:value-of select="count(b:PeriodicalTitle)"/>
  6298.         </xsl:variable>
  6299.         <xsl:variable name="cVolume">
  6300.             <xsl:value-of select="count(b:Volume)"/>
  6301.         </xsl:variable>
  6302.         <xsl:variable name="cIssue">
  6303.             <xsl:value-of select="count(b:Issue)"/>
  6304.         </xsl:variable>
  6305.         <xsl:variable name="cPages">
  6306.             <xsl:value-of select="count(b:Pages)"/>
  6307.         </xsl:variable>
  6308.         <xsl:variable name ="cYear">
  6309.             <xsl:value-of select="count(b:Year)"/>
  6310.         </xsl:variable>
  6311.  
  6312.         <xsl:if test ="$cJournalName!=0">
  6313.             <xsl:value-of select="b:PeriodicalTitle"/>
  6314.             <xsl:choose>
  6315.                 <xsl:when test="$cVolume!=0 or $cIssue!=0 or $cPages!=0 or $cYear!=0">
  6316.                     <xsl:call-template name ="templ_prop_ListSeparator"/>
  6317.                 </xsl:when>
  6318.                 <xsl:otherwise>
  6319.                     <xsl:call-template name ="templ_prop_Dot"/>
  6320.                 </xsl:otherwise>
  6321.             </xsl:choose>
  6322.         </xsl:if>
  6323.     </xsl:template>
  6324.  
  6325.     <xsl:template name="BibDisplayVolumeJournal">
  6326.         <xsl:variable name="cVolume">
  6327.             <xsl:value-of select="count(b:Volume)"/>
  6328.         </xsl:variable>
  6329.         <xsl:variable name ="initValueOfVolume">
  6330.             <xsl:value-of select="b:Volume"/>
  6331.         </xsl:variable>
  6332.         <xsl:variable name="cIssue">
  6333.             <xsl:value-of select="count(b:Issue)"/>
  6334.         </xsl:variable>
  6335.         <xsl:variable name="cPages">
  6336.             <xsl:value-of select="count(b:Pages)"/>
  6337.         </xsl:variable>
  6338.         <xsl:variable name ="cYear">
  6339.             <xsl:value-of select="count(b:Year)"/>
  6340.         </xsl:variable>
  6341.  
  6342.         <xsl:choose>
  6343.             <xsl:when test ="$cVolume!=0">
  6344.                 <xsl:choose>
  6345.                     <xsl:when test="contains($initValueOfVolume,'-') or contains($initValueOfVolume,',') ">
  6346.                         <xsl:variable name="str_VolumesOfShortCap">
  6347.                             <xsl:call-template name="templ_str_VolumesOfShortCap"/>
  6348.                         </xsl:variable>
  6349.                         <xsl:variable name="prop_EnumSeaparator">
  6350.                             <xsl:call-template name="templ_prop_Space"/>
  6351.                         </xsl:variable>
  6352.                         <xsl:call-template name ="FindReplaceString">
  6353.                             <xsl:with-param name="originalString" select="string($str_VolumesOfShortCap)"/>
  6354.                             <xsl:with-param name="stringToBeReplaced" select="'%1 of %2'"/>
  6355.                             <xsl:with-param name="stringReplacement" select="$prop_EnumSeaparator"/>
  6356.                         </xsl:call-template>
  6357.  
  6358.                         <xsl:value-of select="b:Volume"/>
  6359.                     </xsl:when>
  6360.  
  6361.                     <xsl:when test="not(contains($initValueOfVolume,'-')) or not(contains($initValueOfVolume,','))">
  6362.                         <xsl:call-template name ="templ_prop_Space"/>
  6363.                         <xsl:variable name="str_VolumeShortUnCap">
  6364.                             <xsl:call-template name="templ_str_VolumeShortUnCap"/>
  6365.                         </xsl:variable>
  6366.                         <xsl:variable name="prop_EnumSeaparator">
  6367.                             <xsl:call-template name="templ_prop_Space"/>
  6368.                         </xsl:variable>
  6369.                         <xsl:call-template name ="FindReplaceString">
  6370.                             <xsl:with-param name="originalString" select="string($str_VolumeShortUnCap)"/>
  6371.                             <xsl:with-param name="stringToBeReplaced" select="' %1'"/>
  6372.                             <xsl:with-param name="stringReplacement" select="$prop_EnumSeaparator"/>
  6373.                         </xsl:call-template>
  6374.                         <xsl:value-of select="b:Volume"/>
  6375.                     </xsl:when>
  6376.                 </xsl:choose>
  6377.                 <xsl:choose>
  6378.                     <xsl:when test="$cPages!=0 or $cYear!=0 or $cIssue!=0">
  6379.                         <xsl:call-template name ="templ_prop_ListSeparator"/>
  6380.                     </xsl:when>
  6381.                     <xsl:otherwise>
  6382.                         <xsl:call-template name ="templ_prop_Dot"/>
  6383.                     </xsl:otherwise>
  6384.                 </xsl:choose>
  6385.             </xsl:when>
  6386.         </xsl:choose>
  6387.     </xsl:template>
  6388.  
  6389.     <xsl:template name="BibDisplayVolumeBook">
  6390.         <xsl:variable name="cVolume">
  6391.             <xsl:value-of select="count(b:Volume)"/>
  6392.         </xsl:variable>
  6393.         <xsl:variable name ="initValueOfVolume">
  6394.             <xsl:value-of select="b:Volume"/>
  6395.         </xsl:variable>
  6396.         <xsl:variable name="cEditor">
  6397.             <xsl:value-of select="count(b:Author/b:Editor/b:NameList/b:Person)" />
  6398.         </xsl:variable>
  6399.         <xsl:variable name="cAuthors">
  6400.             <xsl:value-of select="count(b:Author/b:Author/b:NameList/b:Person)" />
  6401.         </xsl:variable>
  6402.         <xsl:variable name="cCity">
  6403.             <xsl:value-of select="count(b:City)"/>
  6404.         </xsl:variable>
  6405.         <xsl:variable name="cStateProvince">
  6406.             <xsl:value-of select="count(b:StateProvince)"/>
  6407.         </xsl:variable>
  6408.         <xsl:variable name="cPublisher">
  6409.             <xsl:value-of select="count(b:Publisher)"/>
  6410.         </xsl:variable>
  6411.         <xsl:variable name="cPages">
  6412.             <xsl:value-of select="count(b:Pages)"/>
  6413.         </xsl:variable>
  6414.         <xsl:variable name ="cYear">
  6415.             <xsl:value-of select="count(b:Year)"/>
  6416.         </xsl:variable>
  6417.  
  6418.         <xsl:choose>
  6419.             <xsl:when test ="$cVolume!=0">
  6420.                 <xsl:choose>
  6421.                     <xsl:when test="contains($initValueOfVolume,'-') or contains($initValueOfVolume,',') ">
  6422.                         <xsl:variable name="str_VolumesOfShortCap">
  6423.                             <xsl:call-template name="templ_str_VolumesOfShortCap"/>
  6424.                         </xsl:variable>
  6425.                         <xsl:variable name="prop_EnumSeaparator">
  6426.                             <xsl:call-template name="templ_prop_Space"/>
  6427.                         </xsl:variable>
  6428.                         <xsl:call-template name ="FindReplaceString">
  6429.                             <xsl:with-param name="originalString" select="string($str_VolumesOfShortCap)"/>
  6430.                             <xsl:with-param name="stringToBeReplaced" select="'%1 of %2'"/>
  6431.                             <xsl:with-param name="stringReplacement" select="$prop_EnumSeaparator"/>
  6432.                         </xsl:call-template>
  6433.  
  6434.                         <xsl:value-of select="b:Volume"/>
  6435.                     </xsl:when>
  6436.  
  6437.                     <xsl:when test="not(contains($initValueOfVolume,'-')) or not(contains($initValueOfVolume,','))">
  6438.                         <xsl:call-template name ="templ_prop_Space"/>
  6439.                         <xsl:variable name="str_VolumeShortUnCap">
  6440.                             <xsl:call-template name="templ_str_VolumeShortUnCap"/>
  6441.                         </xsl:variable>
  6442.                         <xsl:variable name="prop_EnumSeaparator">
  6443.                             <xsl:call-template name="templ_prop_Space"/>
  6444.                         </xsl:variable>
  6445.                         <xsl:call-template name ="FindReplaceString">
  6446.                             <xsl:with-param name="originalString" select="string($str_VolumeShortUnCap)"/>
  6447.                             <xsl:with-param name="stringToBeReplaced" select="' %1'"/>
  6448.                             <xsl:with-param name="stringReplacement" select="$prop_EnumSeaparator"/>
  6449.                         </xsl:call-template>
  6450.                         <xsl:value-of select="b:Volume"/>
  6451.                     </xsl:when>
  6452.                 </xsl:choose>
  6453.                 <xsl:choose>
  6454.                     <xsl:when test="$cAuthors=0">
  6455.                         <xsl:choose>
  6456.                             <xsl:when test="$cCity!=0 or $cStateProvince!=0 or $cPublisher!=0 or $cYear!=0 or $cPages!=0">
  6457.                                 <xsl:call-template name ="templ_prop_ListSeparator"/>
  6458.                             </xsl:when>
  6459.                             <xsl:otherwise>
  6460.                                 <xsl:call-template name ="templ_prop_Dot"/>
  6461.                             </xsl:otherwise>
  6462.                         </xsl:choose>
  6463.                     </xsl:when>
  6464.                     <xsl:otherwise>
  6465.                         <xsl:choose>
  6466.                             <xsl:when test="$cEditor!=0 or $cCity!=0 or $cStateProvince!=0 or $cPublisher!=0 or $cYear!=0 or $cPages!=0">
  6467.                                 <xsl:call-template name ="templ_prop_ListSeparator"/>
  6468.                             </xsl:when>
  6469.                             <xsl:otherwise>
  6470.                                 <xsl:call-template name ="templ_prop_Dot"/>
  6471.                             </xsl:otherwise>
  6472.                         </xsl:choose>
  6473.                     </xsl:otherwise>
  6474.                 </xsl:choose>
  6475.             </xsl:when>
  6476.         </xsl:choose>
  6477.     </xsl:template>
  6478.  
  6479.     <xsl:template name="BibDisplayIssueJournal">
  6480.         <xsl:variable name="cIssue">
  6481.             <xsl:value-of select="count(b:Issue)"/>
  6482.         </xsl:variable>
  6483.         <xsl:variable name="cPages">
  6484.             <xsl:value-of select="count(b:Pages)"/>
  6485.         </xsl:variable>
  6486.         <xsl:variable name ="cYear">
  6487.             <xsl:value-of select="count(b:Year)"/>
  6488.         </xsl:variable>
  6489.         <xsl:choose>
  6490.             <xsl:when test ="$cIssue!=0">
  6491.                 <xsl:call-template name ="templ_prop_Space"/>
  6492.  
  6493.                 <xsl:variable name="str_NumberShortUnCap">
  6494.                     <xsl:call-template name="templ_str_NumberShortUnCap"/>
  6495.                 </xsl:variable>
  6496.                 <xsl:variable name="prop_EnumSeaparator">
  6497.                     <xsl:call-template name="templ_prop_Space"/>
  6498.                 </xsl:variable>
  6499.                 <xsl:call-template name ="FindReplaceString">
  6500.                     <xsl:with-param name="originalString" select="string($str_NumberShortUnCap)"/>
  6501.                     <xsl:with-param name="stringToBeReplaced" select="' %1'"/>
  6502.                     <xsl:with-param name="stringReplacement" select="$prop_EnumSeaparator"/>
  6503.                 </xsl:call-template>
  6504.                 <xsl:value-of select="b:Issue"/>
  6505.                 <xsl:choose>
  6506.                     <xsl:when test="$cPages!=0 or $cYear!=0">
  6507.                         <xsl:call-template name ="templ_prop_ListSeparator"/>
  6508.                     </xsl:when>
  6509.                     <xsl:otherwise>
  6510.                         <xsl:call-template name ="templ_prop_Dot"/>
  6511.                     </xsl:otherwise>
  6512.                 </xsl:choose>
  6513.             </xsl:when>
  6514.         </xsl:choose>
  6515.     </xsl:template>
  6516.  
  6517.     <xsl:variable name ="initValueOfPages">
  6518.         <xsl:value-of select="b:Pages"/>
  6519.     </xsl:variable>
  6520.  
  6521.     <xsl:variable name ="pages">
  6522.         <xsl:choose>
  6523.             <xsl:when test="contains($initValueOfPages, '-')">
  6524.                 <xsl:value-of select="concat('pp. ',$initValueOfPages)"/>
  6525.             </xsl:when>
  6526.             <xsl:when test="contains($initValueOfPages, ',')">
  6527.                 <xsl:value-of select="concat('pp. ',$initValueOfPages)"/>
  6528.             </xsl:when>
  6529.             <xsl:otherwise>
  6530.                 <xsl:value-of select="concat('p. ',$initValueOfPages)"/>
  6531.             </xsl:otherwise>
  6532.         </xsl:choose>
  6533.     </xsl:variable>
  6534.  
  6535.     <xsl:template name="BibDisplayPagesJournal">
  6536.         <xsl:variable name="cPages">
  6537.             <xsl:value-of select="count(b:Pages)"/>
  6538.         </xsl:variable>
  6539.         <xsl:variable name ="cMonth">
  6540.             <xsl:value-of select="count(b:Month)"/>
  6541.         </xsl:variable>
  6542.         <xsl:variable name ="cDay">
  6543.             <xsl:value-of select="count(b:Day)"/>
  6544.         </xsl:variable>
  6545.         <xsl:variable name ="cYear">
  6546.             <xsl:value-of select="count(b:Year)"/>
  6547.         </xsl:variable>
  6548.         <xsl:variable name ="pages">
  6549.             <xsl:value-of select="b:Pages"/>
  6550.         </xsl:variable>
  6551.         <xsl:if test ="$cPages!=0">
  6552.             <xsl:call-template name ="DisplayPageOrPages">
  6553.                 <xsl:with-param name="pages" select ="$pages"/>
  6554.             </xsl:call-template>
  6555.             <xsl:choose>
  6556.                 <xsl:when test="$cYear=0">
  6557.                     <xsl:call-template name ="templ_prop_Dot"/>
  6558.                 </xsl:when>
  6559.                 <xsl:otherwise>
  6560.                     <xsl:call-template name ="templ_prop_ListSeparator"/>
  6561.                 </xsl:otherwise>
  6562.             </xsl:choose>
  6563.         </xsl:if>
  6564.     </xsl:template>
  6565.  
  6566.     <xsl:template name="BibDisplayTitleConferenceProceedings">
  6567.         <xsl:variable name="cTitle">
  6568.             <xsl:value-of select="count(b:Title)"/>
  6569.         </xsl:variable>
  6570.         <xsl:variable name="cConferenceName">
  6571.             <xsl:value-of select="count(b:ConferenceName)"/>
  6572.         </xsl:variable>
  6573.         <xsl:variable name="cCity">
  6574.             <xsl:value-of select="count(b:City)"/>
  6575.         </xsl:variable>
  6576.         <xsl:variable name="cYear">
  6577.             <xsl:value-of select="count(b:Year)"/>
  6578.         </xsl:variable>
  6579.  
  6580.         <xsl:if test ="$cTitle!=0">
  6581.             <xsl:call-template name="templ_prop_OpenQuote"/>
  6582.             <xsl:call-template name="right-trim">
  6583.                 <xsl:with-param name ="s" select="b:Title"/>
  6584.             </xsl:call-template>
  6585.             <xsl:choose>
  6586.                 <xsl:when test ="$cConferenceName!=0 or $cCity!=0 or $cYear!=0">
  6587.                     <xsl:call-template name ="List_Separator_NoSpace"/>
  6588.                     <xsl:call-template name="templ_prop_CloseQuote"/>
  6589.                     <xsl:call-template name ="templ_prop_Space"/>
  6590.                 </xsl:when>
  6591.                 <xsl:otherwise>
  6592.                     <xsl:call-template name="templ_prop_CloseQuote"/>
  6593.                     <xsl:call-template name ="templ_prop_Dot"/>
  6594.                 </xsl:otherwise>
  6595.             </xsl:choose>
  6596.         </xsl:if>
  6597.     </xsl:template>
  6598.  
  6599.     <xsl:template name="BibDisplayConferenceName">
  6600.         <xsl:variable name="cConferenceName">
  6601.             <xsl:value-of select="count(b:ConferenceName)"/>
  6602.         </xsl:variable>
  6603.         <xsl:variable name="cCity">
  6604.             <xsl:value-of select="count(b:City)"/>
  6605.         </xsl:variable>
  6606.         <xsl:variable name="cYear">
  6607.             <xsl:value-of select="count(b:Year)"/>
  6608.         </xsl:variable>
  6609.  
  6610.         <xsl:variable name="str_InNameCap">
  6611.             <xsl:call-template name="templ_str_InUnCap"/>
  6612.         </xsl:variable>
  6613.         <xsl:variable name="prop_EnumSeaparator">
  6614.             <xsl:call-template name ="templ_prop_Space"/>
  6615.         </xsl:variable>
  6616.  
  6617.  
  6618.         <xsl:if test ="$cConferenceName!=0">
  6619.             <xsl:call-template name ="FindReplaceString">
  6620.                 <xsl:with-param name="originalString" select="string($str_InNameCap)"/>
  6621.                 <xsl:with-param name="stringToBeReplaced" select="' %1'"/>
  6622.                 <xsl:with-param name="stringReplacement" select="$prop_EnumSeaparator"/>
  6623.             </xsl:call-template>
  6624.             <xsl:call-template name ="templ_prop_Space"/>
  6625.             <i>
  6626.                 <xsl:value-of select="b:ConferenceName"/>
  6627.             </i>
  6628.             <xsl:choose>
  6629.                 <xsl:when test=" $cCity!=0 or $cYear!=0 ">
  6630.  
  6631.                     <xsl:call-template name ="templ_prop_ListSeparator"/>
  6632.                 </xsl:when>
  6633.                 <xsl:when test=" $cCity=0 and $cYear=0">
  6634.                     <xsl:call-template name ="templ_prop_Dot"/>
  6635.                 </xsl:when>
  6636.             </xsl:choose>
  6637.         </xsl:if>
  6638.     </xsl:template>
  6639.  
  6640.     <xsl:template name="BibDisplayBookTitle">
  6641.         <xsl:variable name="cBookTitle">
  6642.             <xsl:value-of select="count(b:BookTitle)"/>
  6643.         </xsl:variable>
  6644.         <xsl:variable name="cEdition">
  6645.             <xsl:value-of select="count(b:Edition)"/>
  6646.         </xsl:variable>
  6647.         <xsl:variable name="cVolume">
  6648.             <xsl:value-of select="count(b:Volume)"/>
  6649.         </xsl:variable>
  6650.         <xsl:variable name="cEditor">
  6651.             <xsl:value-of select="count(b:Author/b:Editor/b:NameList/b:Person)"/>
  6652.         </xsl:variable>
  6653.         <xsl:variable name ="cAuthor">
  6654.             <xsl:value-of select ="count(b:Author/b:Author/b:NameList/b:Person)"/>
  6655.         </xsl:variable>
  6656.         <xsl:variable name="cCity">
  6657.             <xsl:value-of select="count(b:City)"/>
  6658.         </xsl:variable>
  6659.         <xsl:variable name="cStateProvince">
  6660.             <xsl:value-of select="count(b:StateProvince)"/>
  6661.         </xsl:variable>
  6662.         <xsl:variable name="cPublisher">
  6663.             <xsl:value-of select="count(b:Publisher)"/>
  6664.         </xsl:variable>
  6665.         <xsl:variable name="cPages">
  6666.             <xsl:value-of select="count(b:Pages)"/>
  6667.         </xsl:variable>
  6668.         <xsl:variable name ="cYear">
  6669.             <xsl:value-of select="count(b:Year)"/>
  6670.         </xsl:variable>
  6671.  
  6672.         <xsl:variable name="str_InNameCap">
  6673.             <xsl:call-template name="templ_str_InUnCap"/>
  6674.         </xsl:variable>
  6675.         <xsl:variable name="prop_EnumSeaparator">
  6676.             <xsl:call-template name ="templ_prop_Space"/>
  6677.         </xsl:variable>
  6678.  
  6679.  
  6680.         <xsl:if test ="$cBookTitle!=0">
  6681.             <xsl:call-template name ="FindReplaceString">
  6682.                 <xsl:with-param name="originalString" select="string($str_InNameCap)"/>
  6683.                 <xsl:with-param name="stringToBeReplaced" select="' %1'"/>
  6684.                 <xsl:with-param name="stringReplacement" select="$prop_EnumSeaparator"/>
  6685.             </xsl:call-template>
  6686.             <xsl:call-template name ="templ_prop_Space"/>
  6687.             <i>
  6688.                 <xsl:value-of select="b:BookTitle"/>
  6689.             </i>
  6690.             <xsl:choose>
  6691.                 <xsl:when test="$cAuthor=0">
  6692.                     <xsl:choose>
  6693.                         <xsl:when test="$cEdition!=0 or $cVolume!=0 or $cCity!=0 or $cStateProvince!=0 or $cPublisher!=0 or $cYear!=0 or $cPages!=0">
  6694.                             <xsl:call-template name ="templ_prop_ListSeparator"/>
  6695.                         </xsl:when>
  6696.                         <xsl:otherwise>
  6697.                             <xsl:call-template name ="templ_prop_Dot"/>
  6698.                         </xsl:otherwise>
  6699.                     </xsl:choose>
  6700.                 </xsl:when>
  6701.                 <xsl:otherwise>
  6702.                     <xsl:choose>
  6703.                         <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">
  6704.                             <xsl:call-template name ="templ_prop_ListSeparator"/>
  6705.                         </xsl:when>
  6706.                         <xsl:otherwise>
  6707.                             <xsl:call-template name ="templ_prop_Dot"/>
  6708.                         </xsl:otherwise>
  6709.                     </xsl:choose>
  6710.                 </xsl:otherwise>
  6711.             </xsl:choose>
  6712.         </xsl:if>
  6713.     </xsl:template>
  6714.  
  6715.     <xsl:template name="BibDisplayStateProvinceBook">
  6716.         <xsl:variable name="cStateProvince">
  6717.             <xsl:value-of select="count(b:StateProvince)"/>
  6718.         </xsl:variable>
  6719.         <xsl:variable name="cPublisher">
  6720.             <xsl:value-of select="count(b:Publisher)"/>
  6721.         </xsl:variable>
  6722.         <xsl:variable name="cYear">
  6723.             <xsl:value-of select="count(b:Year)"/>
  6724.         </xsl:variable>
  6725.         <xsl:variable name="cPages">
  6726.             <xsl:value-of select="count(b:Pages)"/>
  6727.         </xsl:variable>
  6728.         <xsl:choose>
  6729.             <xsl:when test ="$cStateProvince!=0">
  6730.                 <xsl:value-of select="b:StateProvince"/>
  6731.                 <xsl:choose>
  6732.                     <xsl:when test="$cPublisher>0">
  6733.                         <xsl:call-template name ="templ_prop_EnumSeparator"/>
  6734.                         <xsl:call-template name ="templ_prop_Space"/>
  6735.                     </xsl:when>
  6736.                     <xsl:when test="$cPublisher=0 and ($cYear!=0 or $cPages!=0)">
  6737.                         <xsl:call-template name ="templ_prop_ListSeparator"/>
  6738.                     </xsl:when>
  6739.                     <xsl:when test="$cPublisher=0 and $cYear=0 and $cPages=0 " >
  6740.                         <xsl:call-template name ="templ_prop_Dot"/>
  6741.                     </xsl:when>
  6742.                 </xsl:choose>
  6743.             </xsl:when>
  6744.         </xsl:choose>
  6745.     </xsl:template>
  6746.  
  6747.     <xsl:template name="BibDisplayStateProvinceBC">
  6748.         <xsl:variable name="cStateProvince">
  6749.             <xsl:value-of select="count(b:StateProvince)"/>
  6750.         </xsl:variable>
  6751.         <xsl:variable name="cPublisher">
  6752.             <xsl:value-of select="count(b:Publisher)"/>
  6753.         </xsl:variable>
  6754.         <xsl:variable name="cYear">
  6755.             <xsl:value-of select="count(b:Year)"/>
  6756.         </xsl:variable>
  6757.         <xsl:variable name="cPages">
  6758.             <xsl:value-of select="count(b:Pages)"/>
  6759.         </xsl:variable>
  6760.         <xsl:choose>
  6761.             <xsl:when test ="$cStateProvince!=0">
  6762.                 <xsl:value-of select="b:StateProvince"/>
  6763.                 <xsl:choose>
  6764.                     <xsl:when test="$cPublisher>0">
  6765.                         <xsl:call-template name ="templ_prop_EnumSeparator"/>
  6766.                         <xsl:call-template name ="templ_prop_Space"/>
  6767.                     </xsl:when>
  6768.                     <xsl:when test="$cPublisher=0 and ($cYear!=0 or $cPages!=0)">
  6769.                         <xsl:call-template name ="templ_prop_ListSeparator"/>
  6770.                     </xsl:when>
  6771.                     <xsl:when test="$cPublisher=0 and $cYear=0 and $cPages=0 " >
  6772.                         <xsl:call-template name ="templ_prop_Dot"/>
  6773.                     </xsl:when>
  6774.                 </xsl:choose>
  6775.             </xsl:when>
  6776.         </xsl:choose>
  6777.     </xsl:template>
  6778.  
  6779.     <xsl:template name="BibDisplayYearBC">
  6780.         <xsl:variable name="cYear">
  6781.             <xsl:value-of select="count(b:Year)"/>
  6782.         </xsl:variable>
  6783.         <xsl:variable name="cPages">
  6784.             <xsl:value-of select="count(b:Pages)"/>
  6785.         </xsl:variable>
  6786.         <xsl:choose>
  6787.             <xsl:when test ="$cYear=1">
  6788.                 <xsl:value-of select = "b:Year"/>
  6789.  
  6790.                 <xsl:choose>
  6791.  
  6792.                     <xsl:when test="$cPages>0">
  6793.                         <xsl:call-template name ="templ_prop_ListSeparator"/>
  6794.                     </xsl:when>
  6795.                     <xsl:otherwise>
  6796.  
  6797.                         <xsl:call-template name ="templ_prop_Dot"/>
  6798.                     </xsl:otherwise>
  6799.  
  6800.                 </xsl:choose>
  6801.  
  6802.  
  6803.             </xsl:when>
  6804.         </xsl:choose>
  6805.         <xsl:call-template name="templ_prop_Space"/>
  6806.     </xsl:template>
  6807.  
  6808.     <xsl:template name="BibDisplayCityBookSection">
  6809.         <xsl:variable name="cCity">
  6810.             <xsl:value-of select="count(b:City)"/>
  6811.         </xsl:variable>
  6812.         <xsl:variable name="cPublisher">
  6813.             <xsl:value-of select="count(b:Publisher)"/>
  6814.         </xsl:variable>
  6815.         <xsl:variable name="cStateProvince">
  6816.             <xsl:value-of select="count(b:StateProvince)"/>
  6817.         </xsl:variable>
  6818.         <xsl:variable name="cYear">
  6819.             <xsl:value-of select="count(b:Year)"/>
  6820.         </xsl:variable>
  6821.         <xsl:variable name="cPages">
  6822.             <xsl:value-of select="count(b:Pages)"/>
  6823.         </xsl:variable>
  6824.         <xsl:choose>
  6825.             <xsl:when test ="$cCity!=0">
  6826.                 <xsl:value-of select="b:City"/>
  6827.                 <xsl:choose>
  6828.                     <xsl:when test="$cPublisher!=0 or $cStateProvince!=0 or $cYear!=0 or $cPages!=0 " >
  6829.                         <xsl:call-template name ="templ_prop_ListSeparator"/>
  6830.                     </xsl:when>
  6831.                     <xsl:when test="$cPublisher=0 and $cStateProvince=0 and $cYear=0 and $cPages=0 " >
  6832.                         <xsl:call-template name ="templ_prop_Dot"/>
  6833.                     </xsl:when>
  6834.  
  6835.                 </xsl:choose>
  6836.             </xsl:when>
  6837.         </xsl:choose>
  6838.  
  6839.     </xsl:template>
  6840.  
  6841.     <xsl:template name="BibDisplayCity">
  6842.         <xsl:variable name="cCity">
  6843.             <xsl:value-of select="count(b:City)"/>
  6844.         </xsl:variable>
  6845.         <xsl:variable name="cPublisher">
  6846.             <xsl:value-of select="count(b:Publisher)"/>
  6847.         </xsl:variable>
  6848.         <xsl:variable name="cStateProvince">
  6849.             <xsl:value-of select="count(b:StateProvince)"/>
  6850.         </xsl:variable>
  6851.         <xsl:variable name="cYear">
  6852.             <xsl:value-of select="count(b:Year)"/>
  6853.         </xsl:variable>
  6854.         <xsl:variable name="cPages">
  6855.             <xsl:value-of select="count(b:Pages)"/>
  6856.         </xsl:variable>
  6857.         <xsl:choose>
  6858.             <xsl:when test ="$cCity!=0 ">
  6859.                 <xsl:value-of select="b:City"/>
  6860.                 <xsl:choose>
  6861.                     <xsl:when test="$cPublisher!=0 and $cStateProvince=0">
  6862.                         <xsl:call-template name ="templ_prop_EnumSeparator"/>
  6863.                     </xsl:when>
  6864.                     <xsl:when test="$cStateProvince!=0 or $cYear!=0 or $cPages!=0">
  6865.                         <xsl:call-template name ="templ_prop_ListSeparator"/>
  6866.                     </xsl:when>
  6867.                     <xsl:when test="$cStateProvince=0 and $cYear=0 and $cPages=0 " >
  6868.                         <xsl:call-template name ="templ_prop_Dot"/>
  6869.                     </xsl:when>
  6870.                 </xsl:choose>
  6871.             </xsl:when>
  6872.         </xsl:choose>
  6873.     </xsl:template>
  6874.  
  6875.     <xsl:template name="BibDisplayTitlePatent">
  6876.         <xsl:variable name="cTitle">
  6877.             <xsl:value-of select="count(b:Title)"/>
  6878.         </xsl:variable>
  6879.         <xsl:if test ="$cTitle!=0">
  6880.             <xsl:call-template name="templ_prop_OpenQuote"/>
  6881.             <xsl:call-template name="right-trim">
  6882.                 <xsl:with-param name ="s" select="b:Title"/>
  6883.             </xsl:call-template>
  6884.             <xsl:call-template name="templ_prop_CloseQuote"/>
  6885.             <xsl:call-template name ="templ_prop_Dot"/>
  6886.             <xsl:call-template name="templ_prop_Space"/>
  6887.         </xsl:if>
  6888.     </xsl:template>
  6889.  
  6890.  
  6891.  
  6892.     <xsl:template name ="BibDisplayPages">
  6893.         <xsl:variable name="cPages">
  6894.             <xsl:value-of select="count(b:Pages)"/>
  6895.         </xsl:variable>
  6896.         <xsl:variable name ="pages">
  6897.             <xsl:value-of select="b:Pages"/>
  6898.         </xsl:variable>
  6899.         <xsl:if test ="$cPages!=0">
  6900.             <xsl:call-template name ="DisplayPageOrPages">
  6901.                 <xsl:with-param name="pages" select ="$pages"/>
  6902.             </xsl:call-template>
  6903.             <xsl:call-template name ="templ_prop_Dot"/>
  6904.         </xsl:if>
  6905.     </xsl:template>
  6906.  
  6907.     <xsl:template name="BibDisplayCityReport">
  6908.         <xsl:variable name="cCity">
  6909.             <xsl:value-of select="count(b:City)"/>
  6910.         </xsl:variable>
  6911.         <xsl:variable name="cYear">
  6912.             <xsl:value-of select="count(b:Year)"/>
  6913.         </xsl:variable>
  6914.         <xsl:choose>
  6915.             <xsl:when test ="$cCity!=0">
  6916.                 <xsl:value-of select="b:City"/>
  6917.                 <xsl:choose>
  6918.                     <xsl:when test ="$cYear=0">
  6919.                         <xsl:call-template name = "templ_prop_Dot"/>
  6920.                     </xsl:when>
  6921.                     <xsl:otherwise>
  6922.                         <xsl:call-template name ="templ_prop_ListSeparator"/>
  6923.                     </xsl:otherwise>
  6924.                 </xsl:choose>
  6925.             </xsl:when>
  6926.         </xsl:choose>
  6927.     </xsl:template>
  6928.  
  6929.     <xsl:template name ="BibDisplayCountryRegionFilm">
  6930.         <xsl:variable name="cCountryRegion">
  6931.             <xsl:value-of select="count(b:CountryRegion)"/>
  6932.         </xsl:variable>
  6933.         <xsl:variable name="cProductionCompany">
  6934.             <xsl:value-of select="count(b:ProductionCompany)"/>
  6935.         </xsl:variable>
  6936.         <xsl:variable name="cYear">
  6937.             <xsl:value-of select="count(b:Year)"/>
  6938.         </xsl:variable>
  6939.         <xsl:choose>
  6940.             <xsl:when test ="$cCountryRegion!=0">
  6941.                 <xsl:value-of select="b:CountryRegion"/>
  6942.                 <xsl:choose>
  6943.                     <xsl:when test ="$cProductionCompany=0">
  6944.                         <xsl:call-template name = "templ_prop_Dot"/>
  6945.                     </xsl:when>
  6946.                     <xsl:otherwise>
  6947.                         <xsl:call-template name ="templ_prop_EnumSeparator"/>
  6948.                     </xsl:otherwise>
  6949.                 </xsl:choose>
  6950.             </xsl:when>
  6951.         </xsl:choose>
  6952.     </xsl:template>
  6953.  
  6954.     <xsl:template name="BibDisplayConfCityConfProc">
  6955.         <xsl:variable name="cCity">
  6956.             <xsl:value-of select="count(b:City)"/>
  6957.         </xsl:variable>
  6958.         <xsl:variable name="cYear">
  6959.             <xsl:value-of select="count(b:Year)"/>
  6960.         </xsl:variable>
  6961.         <xsl:choose>
  6962.             <xsl:when test ="$cCity!=0">
  6963.                 <xsl:value-of select="b:City"/>
  6964.                 <xsl:choose>
  6965.                     <xsl:when test="$cYear>0">
  6966.                         <xsl:call-template name ="templ_prop_ListSeparator"/>
  6967.                     </xsl:when>
  6968.                     <xsl:otherwise>
  6969.                         <xsl:call-template name ="templ_prop_Dot"/>
  6970.                     </xsl:otherwise>
  6971.                 </xsl:choose>
  6972.             </xsl:when>
  6973.         </xsl:choose>
  6974.     </xsl:template>
  6975.  
  6976.  
  6977.     <xsl:template name="BibDisplayPublisher">
  6978.         <xsl:variable name="cPublisher">
  6979.             <xsl:value-of select="count(b:Publisher)"/>
  6980.         </xsl:variable>
  6981.         <xsl:variable name="cCity">
  6982.             <xsl:value-of select="count(b:City)"/>
  6983.         </xsl:variable>
  6984.         <xsl:variable name="cYear">
  6985.             <xsl:value-of select="count(b:Year)"/>
  6986.         </xsl:variable>
  6987.         <xsl:choose>
  6988.             <xsl:when test ="$cPublisher!=0">
  6989.                 <xsl:value-of select="b:Publisher"/>
  6990.                 <xsl:choose>
  6991.                     <xsl:when test=" $cCity!=0 or $cYear!=0 ">
  6992.                         <xsl:call-template name ="templ_prop_ListSeparator"/>
  6993.                     </xsl:when>
  6994.                     <xsl:when test="$cCity=0 and $cYear=0">
  6995.                         <xsl:call-template name ="templ_prop_Dot"/>
  6996.                     </xsl:when>
  6997.                 </xsl:choose>
  6998.             </xsl:when>
  6999.         </xsl:choose>
  7000.     </xsl:template>
  7001.  
  7002.     <xsl:template name="BibDisplayPublisherBC">
  7003.         <xsl:variable name="cPublisher">
  7004.             <xsl:value-of select="count(b:Publisher)"/>
  7005.         </xsl:variable>
  7006.         <xsl:variable name="cYear">
  7007.             <xsl:value-of select="count(b:Year)"/>
  7008.         </xsl:variable>
  7009.         <xsl:variable name="cPages">
  7010.             <xsl:value-of select="count(b:Pages)"/>
  7011.         </xsl:variable>
  7012.         <xsl:choose>
  7013.             <xsl:when test ="$cPublisher!=0">
  7014.                 <xsl:value-of select="b:Publisher"/>
  7015.                 <xsl:choose>
  7016.                     <xsl:when test=" $cYear!=0 or $cPages!=0 " >
  7017.                         <xsl:call-template name ="templ_prop_ListSeparator"/>
  7018.                     </xsl:when>
  7019.                     <xsl:when test=" $cYear=0 and $cPages=0 " >
  7020.                         <xsl:call-template name ="templ_prop_Dot"/>
  7021.                     </xsl:when>
  7022.                 </xsl:choose>
  7023.             </xsl:when>
  7024.         </xsl:choose>
  7025.     </xsl:template>
  7026.  
  7027.     <xsl:template name="BibDisplayEdition">
  7028.         <xsl:variable name="cEdition">
  7029.             <xsl:value-of select="count(b:Edition)"/>
  7030.         </xsl:variable>
  7031.         <xsl:variable name="cVolume">
  7032.             <xsl:value-of select="count(b:Volume)"/>
  7033.         </xsl:variable>
  7034.         <xsl:variable name="cEditor">
  7035.             <xsl:value-of select="count(b:Author/b:Editor/b:NameList/b:Person)"/>
  7036.         </xsl:variable>
  7037.         <xsl:variable name ="cAuthors">
  7038.             <xsl:value-of select ="count(b:Author/b:Author/b:NameList/b:Person)"/>
  7039.         </xsl:variable>
  7040.         <xsl:variable name="cCity">
  7041.             <xsl:value-of select="count(b:City)"/>
  7042.         </xsl:variable>
  7043.         <xsl:variable name="cStateProvince">
  7044.             <xsl:value-of select="count(b:StateProvince)"/>
  7045.         </xsl:variable>
  7046.         <xsl:variable name="cPublisher">
  7047.             <xsl:value-of select="count(b:Publisher)"/>
  7048.         </xsl:variable>
  7049.         <xsl:variable name="cPages">
  7050.             <xsl:value-of select="count(b:Pages)"/>
  7051.         </xsl:variable>
  7052.         <xsl:variable name ="cYear">
  7053.             <xsl:value-of select="count(b:Year)"/>
  7054.         </xsl:variable>
  7055.  
  7056.         <xsl:choose>
  7057.             <xsl:when test ="$cEdition!=0">
  7058.                 <xsl:value-of select="b:Edition"/>
  7059.                 <xsl:call-template name ="templ_prop_Space"/>
  7060.                 <xsl:call-template name="templ_str_EditorShortUnCap"/>
  7061.                 <xsl:choose>
  7062.                     <xsl:when test="$cAuthors=0">
  7063.                         <xsl:choose>
  7064.                             <xsl:when test="$cVolume!=0 or $cCity!=0 or $cStateProvince!=0 or $cPublisher!=0 or $cYear!=0 or $cPages!=0">
  7065.                                 <xsl:call-template name ="templ_prop_ListSeparator"/>
  7066.                             </xsl:when>
  7067.                         </xsl:choose>
  7068.                     </xsl:when>
  7069.                     <xsl:otherwise>
  7070.                         <xsl:choose>
  7071.                             <xsl:when test="$cVolume!=0 or $cEditor!=0 or $cCity!=0 or $cStateProvince!=0 or $cPublisher!=0 or $cYear!=0 or $cPages!=0">
  7072.                                 <xsl:call-template name ="templ_prop_ListSeparator"/>
  7073.                             </xsl:when>
  7074.                         </xsl:choose>
  7075.                     </xsl:otherwise>
  7076.                 </xsl:choose>
  7077.             </xsl:when>
  7078.         </xsl:choose>
  7079.     </xsl:template>
  7080.  
  7081.  
  7082.     <xsl:template name="BibDisplayAccessedDates">
  7083.         <xsl:variable name="cYearAccessed">
  7084.             <xsl:value-of select="count(b:YearAccessed)"/>
  7085.         </xsl:variable>
  7086.         <xsl:variable name="cMonthAccessed">
  7087.             <xsl:value-of select="count(b:MonthAccessed)"/>
  7088.         </xsl:variable>
  7089.         <xsl:variable name="cDayAccessed">
  7090.             <xsl:value-of select="count(b:DayAccessed)"/>
  7091.         </xsl:variable>
  7092.  
  7093.         <xsl:if test ="$cYearAccessed!=0">
  7094.  
  7095.             <xsl:variable name ="str_AccessedCap">
  7096.                 <xsl:call-template name ="templ_str_AccessedCap"/>
  7097.             </xsl:variable>
  7098.             <xsl:variable name ="prop_Space">
  7099.                 <xsl:call-template name ="templ_prop_Space"/>
  7100.             </xsl:variable>
  7101.             <xsl:choose>
  7102.                 <xsl:when test="$cDayAccessed!=0">
  7103.                     <xsl:choose>
  7104.                         <xsl:when test="$cMonthAccessed!=0">
  7105.                             <xsl:if test="$cYearAccessed!=0">
  7106.                                 <xsl:call-template name ="templ_prop_Space"/>
  7107.                                 <xsl:call-template name ="templ_prop_SecondaryOpen"/>
  7108.                                 <xsl:call-template name ="FindReplaceString">
  7109.                                     <xsl:with-param name="originalString" select="string($str_AccessedCap)"/>
  7110.                                     <xsl:with-param name="stringToBeReplaced" select="' %1'"/>
  7111.                                     <xsl:with-param name="stringReplacement" select="$prop_Space"/>
  7112.                                 </xsl:call-template>
  7113.                                 <xsl:value-of select="b:DayAccessed"/>
  7114.                                 <xsl:call-template name ="templ_prop_Space"/>
  7115.                                 <xsl:value-of select="b:MonthAccessed"/>
  7116.                                 <xsl:call-template name ="templ_prop_Space"/>
  7117.                                 <xsl:value-of select="b:YearAccessed"/>
  7118.                                 <xsl:call-template name ="templ_prop_SecondaryClose"/>
  7119.                             </xsl:if>
  7120.                         </xsl:when>
  7121.                         <xsl:otherwise>
  7122.                             <xsl:call-template name ="templ_prop_Space"/>
  7123.                             <xsl:call-template name ="templ_prop_SecondaryOpen"/>
  7124.                             <xsl:call-template name ="FindReplaceString">
  7125.                                 <xsl:with-param name="originalString" select="string($str_AccessedCap)"/>
  7126.                                 <xsl:with-param name="stringToBeReplaced" select="' %1'"/>
  7127.                                 <xsl:with-param name="stringReplacement" select="$prop_Space"/>
  7128.                             </xsl:call-template>
  7129.                             <xsl:value-of select="b:YearAccessed"/>
  7130.                             <xsl:call-template name ="templ_prop_SecondaryClose"/>
  7131.                         </xsl:otherwise>
  7132.                     </xsl:choose>
  7133.                 </xsl:when>
  7134.                 <xsl:otherwise>
  7135.                     <xsl:choose>
  7136.                         <xsl:when test="$cMonthAccessed!=0">
  7137.                             <xsl:if test="$cYearAccessed!=0">
  7138.                                 <xsl:call-template name ="templ_prop_Space"/>
  7139.                                 <xsl:call-template name ="templ_prop_SecondaryOpen"/>
  7140.                                 <xsl:call-template name ="FindReplaceString">
  7141.                                     <xsl:with-param name="originalString" select="string($str_AccessedCap)"/>
  7142.                                     <xsl:with-param name="stringToBeReplaced" select="' %1'"/>
  7143.                                     <xsl:with-param name="stringReplacement" select="$prop_Space"/>
  7144.                                 </xsl:call-template>
  7145.                                 <xsl:value-of select="b:MonthAccessed"/>
  7146.                                 <xsl:call-template name ="templ_prop_Space"/>
  7147.                                 <xsl:value-of select="b:YearAccessed"/>
  7148.                                 <xsl:call-template name ="templ_prop_SecondaryClose"/>
  7149.                             </xsl:if>
  7150.                         </xsl:when>
  7151.                         <xsl:otherwise>
  7152.                             <xsl:call-template name ="templ_prop_Space"/>
  7153.                             <xsl:call-template name ="templ_prop_SecondaryOpen"/>
  7154.                             <xsl:call-template name ="FindReplaceString">
  7155.                                 <xsl:with-param name="originalString" select="string($str_AccessedCap)"/>
  7156.                                 <xsl:with-param name="stringToBeReplaced" select="' %1'"/>
  7157.                                 <xsl:with-param name="stringReplacement" select="$prop_Space"/>
  7158.                             </xsl:call-template>
  7159.                             <xsl:value-of select="b:YearAccessed"/>
  7160.                             <xsl:call-template name ="templ_prop_SecondaryClose"/>
  7161.                         </xsl:otherwise>
  7162.                     </xsl:choose>
  7163.                 </xsl:otherwise>
  7164.             </xsl:choose>
  7165.             <xsl:call-template name ="templ_prop_Dot"/>
  7166.         </xsl:if>
  7167.     </xsl:template>
  7168.  
  7169.  
  7170.     <xsl:template name="BibDisplayPatent">
  7171.         <xsl:variable name="cPatent">
  7172.             <xsl:value-of select="count(b:PatentNumber)"/>
  7173.         </xsl:variable>
  7174.         <xsl:variable name ="str_PatentCap">
  7175.             <xsl:call-template name ="templ_str_PatentCap"/>
  7176.         </xsl:variable>
  7177.         <xsl:variable name ="prop_Space">
  7178.             <xsl:call-template name ="templ_prop_Space"/>
  7179.         </xsl:variable>
  7180.  
  7181.         <xsl:variable name ="cMonth">
  7182.             <xsl:value-of select="count(b:Month)"/>
  7183.         </xsl:variable>
  7184.         <xsl:variable name ="cDay">
  7185.             <xsl:value-of select="count(b:Day)"/>
  7186.         </xsl:variable>
  7187.         <xsl:variable name ="cYear">
  7188.             <xsl:value-of select="count(b:Year)"/>
  7189.         </xsl:variable>
  7190.  
  7191.         <xsl:choose>
  7192.             <xsl:when test="$cPatent!=0">
  7193.                 <xsl:call-template name ="FindReplaceString">
  7194.                     <xsl:with-param name="originalString" select="string($str_PatentCap)"/>
  7195.                     <xsl:with-param name="stringToBeReplaced" select="' %1'"/>
  7196.                     <xsl:with-param name="stringReplacement" select="$prop_Space"/>
  7197.                 </xsl:call-template>
  7198.                 <xsl:value-of select="b:PatentNumber"/>
  7199.                 <xsl:choose>
  7200.                     <xsl:when test="$cYear=0">
  7201.                         <xsl:call-template name ="templ_prop_Dot"/>
  7202.                     </xsl:when>
  7203.                     <xsl:otherwise>
  7204.                         <xsl:call-template name ="templ_prop_ListSeparator"/>
  7205.                         <xsl:call-template name ="templ_prop_Space"/>
  7206.                     </xsl:otherwise>
  7207.                 </xsl:choose>
  7208.             </xsl:when>
  7209.         </xsl:choose>
  7210.     </xsl:template>
  7211.  
  7212.     <xsl:template name ="BibDisplayDayMonthYearInterview">
  7213.         <xsl:variable name ="cMonth">
  7214.             <xsl:value-of select="count(b:Month)"/>
  7215.         </xsl:variable>
  7216.         <xsl:variable name ="cDay">
  7217.             <xsl:value-of select="count(b:Day)"/>
  7218.         </xsl:variable>
  7219.         <xsl:variable name ="cYear">
  7220.             <xsl:value-of select="count(b:Year)"/>
  7221.         </xsl:variable>
  7222.         <xsl:choose>
  7223.             <xsl:when test ="$cDay!=0">
  7224.                 <xsl:choose>
  7225.                     <xsl:when test ="$cMonth!=0">
  7226.                         <xsl:choose>
  7227.                             <xsl:when test ="$cYear!=0">
  7228.                                 <xsl:value-of select="b:Day"/>
  7229.                                 <xsl:call-template name ="templ_prop_Space"/>
  7230.                                 <xsl:value-of select="b:Month"/>
  7231.                                 <xsl:call-template name ="templ_prop_Space"/>
  7232.                                 <xsl:value-of select="b:Year"/>
  7233.                                 <xsl:call-template name ="templ_prop_Dot"/>
  7234.                             </xsl:when>
  7235.                         </xsl:choose>
  7236.                     </xsl:when>
  7237.                     <xsl:otherwise>
  7238.                         <xsl:if test ="$cYear!=0">
  7239.                             <xsl:value-of select="b:Year"/>
  7240.                             <xsl:call-template name ="templ_prop_Dot"/>
  7241.                         </xsl:if>
  7242.                     </xsl:otherwise>
  7243.                 </xsl:choose>
  7244.             </xsl:when>
  7245.             <xsl:otherwise>
  7246.                 <xsl:choose>
  7247.                     <xsl:when test ="$cYear!=0">
  7248.                         <xsl:choose>
  7249.                             <xsl:when test ="$cMonth!=0">
  7250.                                 <xsl:value-of select="b:Month"/>
  7251.                                 <xsl:call-template name ="templ_prop_Space"/>
  7252.                                 <xsl:value-of select="b:Year"/>
  7253.                                 <xsl:call-template name ="templ_prop_Dot"/>
  7254.                             </xsl:when>
  7255.                             <xsl:when test="$cDay!=0 and $cYear!=0">
  7256.                                 <xsl:value-of select="b:Year"/>
  7257.                                 <xsl:call-template name ="templ_prop_Dot"/>
  7258.                             </xsl:when>
  7259.                             <xsl:otherwise>
  7260.                                 <xsl:value-of select="b:Year"/>
  7261.                                 <xsl:call-template name ="templ_prop_Dot"/>
  7262.                             </xsl:otherwise>
  7263.                         </xsl:choose>
  7264.                     </xsl:when>
  7265.  
  7266.                 </xsl:choose>
  7267.             </xsl:otherwise>
  7268.         </xsl:choose>
  7269.     </xsl:template>
  7270.  
  7271.     <xsl:template name="BibDisplayTitleWebSite">
  7272.         <xsl:variable name="cTitle">
  7273.             <xsl:value-of select="count(b:Title)"/>
  7274.         </xsl:variable>
  7275.         <xsl:if test ="$cTitle!=0">
  7276.             <xsl:call-template name="templ_prop_OpenQuote"/>
  7277.             <xsl:call-template name="right-trim">
  7278.                 <xsl:with-param name ="s" select="b:Title"/>
  7279.             </xsl:call-template>
  7280.             <xsl:call-template name ="List_Separator_NoSpace"/>
  7281.             <xsl:call-template name="templ_prop_CloseQuote"/>
  7282.             <xsl:call-template name ="templ_prop_Space"/>
  7283.         </xsl:if>
  7284.     </xsl:template>
  7285.  
  7286.     <xsl:template name ="BibDisplayDayMonthYearPatent">
  7287.         <xsl:variable name ="cMonth">
  7288.             <xsl:value-of select="count(b:Month)"/>
  7289.         </xsl:variable>
  7290.         <xsl:variable name ="cDay">
  7291.             <xsl:value-of select="count(b:Day)"/>
  7292.         </xsl:variable>
  7293.         <xsl:variable name ="cYear">
  7294.             <xsl:value-of select="count(b:Year)"/>
  7295.         </xsl:variable>
  7296.  
  7297.         <xsl:choose>
  7298.             <xsl:when test ="$cDay!=0">
  7299.                 <xsl:choose>
  7300.                     <xsl:when test ="$cMonth!=0">
  7301.                         <xsl:choose>
  7302.                             <xsl:when test ="$cYear!=0">
  7303.                                 <xsl:value-of select="b:Day"/>
  7304.                                 <xsl:call-template name ="templ_prop_Space"/>
  7305.                                 <xsl:value-of select="b:Month"/>
  7306.                                 <xsl:call-template name ="templ_prop_Space"/>
  7307.                                 <xsl:value-of select="b:Year"/>
  7308.                                 <xsl:call-template name ="templ_prop_Dot"/>
  7309.                             </xsl:when>
  7310.                         </xsl:choose>
  7311.                     </xsl:when>
  7312.                     <xsl:otherwise>
  7313.                         <xsl:if test ="$cYear!=0">
  7314.                             <xsl:value-of select="b:Year"/>
  7315.                             <xsl:call-template name ="templ_prop_Dot"/>
  7316.                         </xsl:if>
  7317.                     </xsl:otherwise>
  7318.  
  7319.                 </xsl:choose>
  7320.             </xsl:when>
  7321.  
  7322.             <xsl:when test="$cMonth!=0">
  7323.                 <xsl:choose>
  7324.                     <xsl:when test ="$cYear!=0">
  7325.                         <xsl:value-of select="b:Month"/>
  7326.                         <xsl:call-template name ="templ_prop_Space"/>
  7327.                         <xsl:value-of select="b:Year"/>
  7328.                         <xsl:call-template name ="templ_prop_Dot"/>
  7329.                     </xsl:when>
  7330.                 </xsl:choose>
  7331.             </xsl:when>
  7332.  
  7333.             <xsl:when test="$cDay!=0">
  7334.                 <xsl:choose>
  7335.                     <xsl:when test="$cYear!=0">
  7336.                         <xsl:value-of select="b:Year"/>
  7337.                         <xsl:call-template name ="templ_prop_Dot"/>
  7338.                     </xsl:when>
  7339.                 </xsl:choose>
  7340.             </xsl:when>
  7341.  
  7342.             <xsl:when test="$cYear!=0">
  7343.                 <xsl:value-of select="b:Year"/>
  7344.                 <xsl:call-template name ="templ_prop_Dot"/>
  7345.             </xsl:when>
  7346.         </xsl:choose>
  7347.     </xsl:template>
  7348.  
  7349.     <xsl:template name="BibDisplayURL">
  7350.         <xsl:variable name="cURL">
  7351.             <xsl:value-of select="count(b:URL)"/>
  7352.         </xsl:variable>
  7353.         <xsl:if test ="$cURL!=0">
  7354.             <xsl:text>Available:</xsl:text>
  7355.             <xsl:call-template name ="templ_prop_Space"/>
  7356.             <xsl:value-of select="b:URL"/>
  7357.             <xsl:call-template name ="templ_prop_Dot"/>
  7358.         </xsl:if>
  7359.     </xsl:template>
  7360.  
  7361.     <xsl:template name="BibDisplayYearReport">
  7362.         <xsl:variable name="cYear">
  7363.             <xsl:value-of select="count(b:Year)"/>
  7364.         </xsl:variable>
  7365.         <xsl:choose>
  7366.             <xsl:when test ="$cYear=1">
  7367.                 <xsl:value-of select = "b:Year"/>
  7368.                 <xsl:call-template name = "templ_prop_Dot"/>
  7369.             </xsl:when>
  7370.         </xsl:choose>
  7371.     </xsl:template>
  7372.  
  7373.     <xsl:template name="HandleHypenInAuthor">
  7374.         <xsl:param name="authour"/>
  7375.         <xsl:param name="RetVal"/>
  7376.         <xsl:variable name="prop_APA_FromToDash">
  7377.             <xsl:call-template name="templ_prop_FromToDash"/>
  7378.         </xsl:variable>
  7379.         <xsl:if test="not(starts-with($authour,$prop_APA_FromToDash)) and $RetVal=''">
  7380.             <xsl:value-of select="substring($authour,1,1)"/>
  7381.             <xsl:call-template name ="templ_prop_Dot"/>
  7382.         </xsl:if>
  7383.         <xsl:choose>
  7384.             <xsl:when test="contains($authour,$prop_APA_FromToDash)">
  7385.                 <xsl:call-template name="HandleHypenInAuthor">
  7386.                     <xsl:with-param name="authour" select="substring-after($authour,$prop_APA_FromToDash)"/>
  7387.                     <xsl:with-param name="RetVal">
  7388.                         <xsl:value-of select="$RetVal"/>
  7389.                         <xsl:value-of select="$prop_APA_FromToDash"/>
  7390.                         <xsl:value-of select="substring(substring-after($authour,$prop_APA_FromToDash),1,1)"/>
  7391.                         <xsl:call-template name ="templ_prop_Dot"/>
  7392.                     </xsl:with-param>
  7393.                 </xsl:call-template>
  7394.             </xsl:when>
  7395.             <xsl:otherwise>
  7396.                 <xsl:value-of select="$RetVal"/>
  7397.             </xsl:otherwise>
  7398.         </xsl:choose>
  7399.     </xsl:template>
  7400.  
  7401.     <xsl:template name="HandleSPaceHypenInAuthor">
  7402.         <xsl:param name ="author"/>
  7403.         <xsl:choose>
  7404.             <xsl:when test="contains($author,'&#32;')">
  7405.                 <xsl:call-template name ="HandleHypenInAuthor">
  7406.                     <xsl:with-param name ="authour">
  7407.                         <xsl:value-of select ="substring-before($author,'&#32;')"/>
  7408.                     </xsl:with-param>
  7409.                 </xsl:call-template>
  7410.                 <xsl:call-template name ="templ_prop_Space"/>
  7411.                 <xsl:variable name ="result">
  7412.                     <xsl:call-template name ="left-trim">
  7413.                         <xsl:with-param name ="s" select="substring-after($author,'&#32;')"/>
  7414.                     </xsl:call-template>
  7415.                 </xsl:variable>
  7416.                 <xsl:call-template name ="HandleSPaceHypenInAuthor">
  7417.                     <xsl:with-param name="author">
  7418.                         <xsl:value-of select ="$result"/>
  7419.                     </xsl:with-param>
  7420.                 </xsl:call-template>
  7421.             </xsl:when>
  7422.             <xsl:otherwise>
  7423.                 <xsl:call-template name ="HandleHypenInAuthor">
  7424.                     <xsl:with-param name ="authour">
  7425.                         <xsl:value-of select ="$author"/>
  7426.                     </xsl:with-param>
  7427.                 </xsl:call-template>
  7428.             </xsl:otherwise>
  7429.         </xsl:choose>
  7430.     </xsl:template>
  7431.  
  7432.  
  7433.     <xsl:template match ="b:Source">
  7434.         <xsl:variable name="LCID">
  7435.             <xsl:choose>
  7436.                 <xsl:when test="b:LCID='0' or b:LCID='' or not(b:LCID)">
  7437.                     <xsl:value-of select="/*/b:Locals/b:DefaultLCID"/>
  7438.                 </xsl:when>
  7439.                 <xsl:otherwise>
  7440.                     <xsl:value-of select="b:LCID"/>
  7441.                 </xsl:otherwise>
  7442.             </xsl:choose>
  7443.         </xsl:variable>
  7444.  
  7445.  
  7446.         <xsl:variable name="cAuthors" >
  7447.             <xsl:value-of select="count(b:Author/b:Author/b:NameList/b:Person)" />
  7448.         </xsl:variable>
  7449.         <xsl:variable name="cCorporateAuthors">
  7450.             <xsl:value-of select="count(b:Author/b:Author/b:Corporate)" />
  7451.         </xsl:variable>
  7452.         <xsl:variable name="cEditor">
  7453.             <xsl:value-of select="count(b:Author/b:Editor/b:NameList/b:Person)" />
  7454.         </xsl:variable>
  7455.         <xsl:variable name="cCity">
  7456.             <xsl:value-of select="count(b:City)"/>
  7457.         </xsl:variable>
  7458.         <xsl:variable name="cPublisher">
  7459.             <xsl:value-of select="count(b:Publisher)"/>
  7460.         </xsl:variable>
  7461.         <xsl:variable name="cYear">
  7462.             <xsl:value-of select="count(b:Year)"/>
  7463.         </xsl:variable>
  7464.         <xsl:variable name="cYearAccessed">
  7465.             <xsl:value-of select="count(b:YearAccessed)"/>
  7466.         </xsl:variable>
  7467.         <xsl:variable name="cURL">
  7468.             <xsl:value-of select="count(b:URL)"/>
  7469.         </xsl:variable>
  7470.  
  7471.         <xsl:variable name="SourceType">
  7472.             <xsl:value-of select="b:SourceType"/>
  7473.         </xsl:variable>
  7474.  
  7475.         <xsl:choose>
  7476.             <xsl:when test="$SourceType = 'Book'">
  7477.                 <xsl:element name="tr">
  7478.                     <xsl:element name="td">
  7479.                         <xsl:attribute name="valign">
  7480.                             <xsl:value-of select="'top'"/>
  7481.                         </xsl:attribute>
  7482.                         <xsl:attribute name="width">
  7483.                             <xsl:value-of select="'1%'"/>
  7484.                         </xsl:attribute>
  7485.                         <xsl:element name="p">
  7486.                             <xsl:call-template name = "BibAddParagraphAttributes"/>
  7487.                             <xsl:call-template name="BibRefOrder"/>
  7488.                         </xsl:element>
  7489.                     </xsl:element>
  7490.                     <xsl:element name="td">
  7491.                         <xsl:attribute name="style">
  7492.                             <xsl:value-of select="'text-align:left'"/>
  7493.                         </xsl:attribute>
  7494.                         <xsl:attribute name="valign">
  7495.                             <xsl:value-of select="'top'"/>
  7496.                         </xsl:attribute>
  7497.                         <xsl:element name="p">
  7498.                             <xsl:call-template name = "BibAddParagraphAttributes"/>
  7499.                             <xsl:call-template name ="BibDisplayAuthorBook">
  7500.                                 <xsl:with-param name ="DisplayEditorIfAuthorUnavailale" select="'true'" />
  7501.                             </xsl:call-template>
  7502.                             <xsl:call-template name = "BibDisplayTitleBook"/>
  7503.                             <xsl:call-template name = "BibDisplayEdition"/>
  7504.                             <xsl:call-template name="BibDisplayVolumeBook"/>
  7505.                             <xsl:call-template name="BibDisplayEditorBook"/>
  7506.  
  7507.                             <xsl:call-template name = "BibDisplayCity"/>
  7508.                             <xsl:call-template name = "BibDisplayStateProvinceBook"/>
  7509.  
  7510.                             <xsl:call-template name = "BibDisplayPublisherBC"/>
  7511.                             <xsl:call-template name = "BibDisplayYearBC"/>
  7512.                             <xsl:call-template name ="BibDisplayPages"/>
  7513.                         </xsl:element>
  7514.                     </xsl:element>
  7515.                 </xsl:element>
  7516.             </xsl:when>
  7517.             <xsl:when test="$SourceType = 'BookSection'">
  7518.                 <xsl:element name="tr">
  7519.                     <xsl:element name="td">
  7520.                         <xsl:attribute name="valign">
  7521.                             <xsl:value-of select="'top'"/>
  7522.                         </xsl:attribute>
  7523.                         <xsl:attribute name="width">
  7524.                             <xsl:value-of select="'1%'"/>
  7525.                         </xsl:attribute>
  7526.                         <xsl:element name="p">
  7527.                             <xsl:call-template name = "BibAddParagraphAttributes"/>
  7528.                             <xsl:call-template name="BibRefOrder"/>
  7529.                         </xsl:element>
  7530.                     </xsl:element>
  7531.                     <xsl:element name="td">
  7532.                         <xsl:attribute name="style">
  7533.                             <xsl:value-of select="'text-align:left'"/>
  7534.                         </xsl:attribute>
  7535.                         <xsl:attribute name="valign">
  7536.                             <xsl:value-of select="'top'"/>
  7537.                         </xsl:attribute>
  7538.                         <xsl:element name="p">
  7539.                             <xsl:call-template name = "BibAddParagraphAttributes"/>
  7540.                             <xsl:call-template name = "BibDisplayAuthorBookSection">
  7541.                                 <xsl:with-param name ="DisplayEditorIfAuthorUnavailale" select="'true'" />
  7542.                             </xsl:call-template>
  7543.                             <xsl:call-template name = "BibDisplayTitleBC"/>
  7544.                             <xsl:call-template name ="BibDisplayBookTitle"/>
  7545.                             <xsl:call-template name = "BibDisplayEdition"/>
  7546.                             <xsl:call-template name="BibDisplayVolumeBook"/>
  7547.                             <xsl:call-template name="BibDisplayEditor"/>
  7548.                             <xsl:call-template name = "BibDisplayCityBookSection"/>
  7549.                             <xsl:call-template name = "BibDisplayStateProvinceBC"/>
  7550.                             <xsl:call-template name = "BibDisplayPublisherBC"/>
  7551.                             <xsl:call-template name = "BibDisplayYearBC"/>
  7552.                             <xsl:call-template name ="BibDisplayPages"/>
  7553.                         </xsl:element>
  7554.                     </xsl:element>
  7555.                 </xsl:element>
  7556.             </xsl:when>
  7557.  
  7558.             <xsl:when test="$SourceType = 'DocumentFromInternetSite'">
  7559.                 <xsl:element name="tr">
  7560.                     <xsl:element name="td">
  7561.                         <xsl:attribute name="valign">
  7562.                             <xsl:value-of select="'top'"/>
  7563.                         </xsl:attribute>
  7564.                         <xsl:attribute name="width">
  7565.                             <xsl:value-of select="'1%'"/>
  7566.                         </xsl:attribute>
  7567.                         <xsl:element name="p">
  7568.                             <xsl:call-template name = "BibAddParagraphAttributes"/>
  7569.                             <xsl:call-template name="BibRefOrder"/>
  7570.                         </xsl:element>
  7571.                     </xsl:element>
  7572.                     <xsl:element name="td">
  7573.                         <xsl:attribute name="style">
  7574.                             <xsl:value-of select="'text-align:left'"/>
  7575.                         </xsl:attribute>
  7576.                         <xsl:attribute name="valign">
  7577.                             <xsl:value-of select="'top'"/>
  7578.                         </xsl:attribute>
  7579.                         <xsl:element name="p">
  7580.                             <xsl:call-template name = "BibAddParagraphAttributes"/>
  7581.                             <xsl:call-template name = "BibDisplayAuthorWebsite"/>
  7582.                             <xsl:call-template name ="BibDisplayTitleWebSite"/>
  7583.                             <xsl:call-template name ="BibDisplayProductionCompanywebsite"/>
  7584.                             <xsl:call-template name = "BibDisplayDayMonthYearWebSiteJournal"/>
  7585.                             <xsl:call-template name ="BibDisplayStrOnline"/>
  7586.                             <xsl:call-template name ="BibDisplayURL"/>
  7587.                             <xsl:call-template name ="BibDisplayAccessedDates"/>
  7588.                         </xsl:element>
  7589.                     </xsl:element>
  7590.                 </xsl:element>
  7591.             </xsl:when>
  7592.  
  7593.             <xsl:when test="$SourceType = 'JournalArticle'">
  7594.                 <xsl:element name="tr">
  7595.                     <xsl:element name="td">
  7596.                         <xsl:attribute name="valign">
  7597.                             <xsl:value-of select="'top'"/>
  7598.                         </xsl:attribute>
  7599.                         <xsl:attribute name="width">
  7600.                             <xsl:value-of select="'1%'"/>
  7601.                         </xsl:attribute>
  7602.                         <xsl:element name="p">
  7603.                             <xsl:call-template name = "BibAddParagraphAttributes"/>
  7604.                             <xsl:call-template name="BibRefOrder"/>
  7605.                         </xsl:element>
  7606.                     </xsl:element>
  7607.                     <xsl:element name="td">
  7608.                         <xsl:attribute name="style">
  7609.                             <xsl:value-of select="'text-align:left'"/>
  7610.                         </xsl:attribute>
  7611.                         <xsl:attribute name="valign">
  7612.                             <xsl:value-of select="'top'"/>
  7613.                         </xsl:attribute>
  7614.                         <xsl:element name="p">
  7615.                             <xsl:call-template name = "BibAddParagraphAttributes"/>
  7616.                             <xsl:call-template name = "BibDisplayAuthorJArtcicle">
  7617.                                 <xsl:with-param name ="DisplayEditorIfAuthorUnavailale" select="'true'" />
  7618.                             </xsl:call-template>
  7619.                             <xsl:call-template name = "BibDisplayTitleJournal"/>
  7620.                             <i>
  7621.                                 <xsl:call-template name ="BibDisplayJournalName"/>
  7622.                             </i>
  7623.                             <xsl:call-template name="BibDisplayVolumeJournal"/>
  7624.                             <xsl:call-template name ="BibDisplayIssueJournal"/>
  7625.                             <xsl:call-template name ="BibDisplayPagesJournal"/>
  7626.                             <xsl:call-template name = "BibDisplayDayMonthYearWebSiteJournal"/>
  7627.                         </xsl:element>
  7628.                     </xsl:element>
  7629.                 </xsl:element>
  7630.             </xsl:when>
  7631.  
  7632.             <xsl:when test="$SourceType = 'ArticleInAPeriodical'">
  7633.                 <xsl:element name="tr">
  7634.                     <xsl:element name="td">
  7635.                         <xsl:attribute name="valign">
  7636.                             <xsl:value-of select="'top'"/>
  7637.                         </xsl:attribute>
  7638.                         <xsl:attribute name="width">
  7639.                             <xsl:value-of select="'1%'"/>
  7640.                         </xsl:attribute>
  7641.                         <xsl:element name="p">
  7642.                             <xsl:call-template name = "BibAddParagraphAttributes"/>
  7643.                             <xsl:call-template name="BibRefOrder"/>
  7644.                         </xsl:element>
  7645.                     </xsl:element>
  7646.                     <xsl:element name="td">
  7647.                         <xsl:attribute name="style">
  7648.                             <xsl:value-of select="'text-align:left'"/>
  7649.                         </xsl:attribute>
  7650.                         <xsl:attribute name="valign">
  7651.                             <xsl:value-of select="'top'"/>
  7652.                         </xsl:attribute>
  7653.                         <xsl:element name="p">
  7654.                             <xsl:call-template name = "BibAddParagraphAttributes"/>
  7655.                             <xsl:call-template name = "BibDisplayAuthorJArtcicle">
  7656.                                 <xsl:with-param name ="DisplayEditorIfAuthorUnavailale" select="'true'" />
  7657.                             </xsl:call-template>
  7658.                             <xsl:call-template name = "BibDisplayTitleAP"/>
  7659.                             <i>
  7660.                                 <xsl:call-template name ="BibDisplayJournalNameAP"/>
  7661.                             </i>
  7662.                             <xsl:call-template name="BibDisplayVolumeJournal"/>
  7663.                             <xsl:call-template name ="BibDisplayIssueJournal"/>
  7664.                             <xsl:call-template name="BibDisplayPagesJournal"/>
  7665.                             <xsl:call-template name = "BibDisplayDayMonthYearWebSiteJournal"/>
  7666.                         </xsl:element>
  7667.                     </xsl:element>
  7668.                 </xsl:element>
  7669.             </xsl:when>
  7670.  
  7671.             <xsl:when test="$SourceType = 'ConferenceProceedings'">
  7672.                 <xsl:element name="tr">
  7673.                     <xsl:element name="td">
  7674.                         <xsl:attribute name="valign">
  7675.                             <xsl:value-of select="'top'"/>
  7676.                         </xsl:attribute>
  7677.                         <xsl:attribute name="width">
  7678.                             <xsl:value-of select="'1%'"/>
  7679.                         </xsl:attribute>
  7680.                         <xsl:element name="p">
  7681.                             <xsl:call-template name = "BibAddParagraphAttributes"/>
  7682.                             <xsl:call-template name="BibRefOrder"/>
  7683.                         </xsl:element>
  7684.                     </xsl:element>
  7685.                     <xsl:element name="td">
  7686.                         <xsl:attribute name="style">
  7687.                             <xsl:value-of select="'text-align:left'"/>
  7688.                         </xsl:attribute>
  7689.                         <xsl:attribute name="valign">
  7690.                             <xsl:value-of select="'top'"/>
  7691.                         </xsl:attribute>
  7692.                         <xsl:element name="p">
  7693.                             <xsl:call-template name = "BibAddParagraphAttributes"/>
  7694.                             <xsl:call-template name = "BibDisplayAuthorConPr"/>
  7695.                             <xsl:call-template name ="BibDisplayTitleConferenceProceedings"/>
  7696.                             <xsl:call-template name="BibDisplayConferenceName" />
  7697.                             <xsl:call-template name ="BibDisplayConfCityConfProc"/>
  7698.                             <xsl:call-template name ="BibDisplayYear"/>
  7699.                         </xsl:element>
  7700.                     </xsl:element>
  7701.                 </xsl:element>
  7702.             </xsl:when>
  7703.  
  7704.             <xsl:when test="$SourceType = 'Report'">
  7705.                 <xsl:element name="tr">
  7706.                     <xsl:element name="td">
  7707.                         <xsl:attribute name="valign">
  7708.                             <xsl:value-of select="'top'"/>
  7709.                         </xsl:attribute>
  7710.                         <xsl:attribute name="width">
  7711.                             <xsl:value-of select="'1%'"/>
  7712.                         </xsl:attribute>
  7713.                         <xsl:element name="p">
  7714.                             <xsl:call-template name = "BibAddParagraphAttributes"/>
  7715.                             <xsl:call-template name="BibRefOrder"/>
  7716.                         </xsl:element>
  7717.                     </xsl:element>
  7718.                     <xsl:element name="td">
  7719.                         <xsl:attribute name="style">
  7720.                             <xsl:value-of select="'text-align:left'"/>
  7721.                         </xsl:attribute>
  7722.                         <xsl:attribute name="valign">
  7723.                             <xsl:value-of select="'top'"/>
  7724.                         </xsl:attribute>
  7725.                         <xsl:element name="p">
  7726.                             <xsl:call-template name = "BibAddParagraphAttributes"/>
  7727.                             <xsl:call-template name ="BibDisplayAuthorReport"/>
  7728.                             <xsl:call-template name ="BibDisplayTitleReport"/>
  7729.                             <xsl:call-template name ="BibDisplayPublisher"/>
  7730.                             <xsl:call-template name ="BibDisplayCityReport"/>
  7731.                             <xsl:call-template name ="BibDisplayYearReport"/>
  7732.                         </xsl:element>
  7733.                     </xsl:element>
  7734.                 </xsl:element>
  7735.             </xsl:when>
  7736.  
  7737.             <xsl:when test="$SourceType = 'Art'">
  7738.                 <xsl:element name="tr">
  7739.                     <xsl:element name="td">
  7740.                         <xsl:attribute name="valign">
  7741.                             <xsl:value-of select="'top'"/>
  7742.                         </xsl:attribute>
  7743.                         <xsl:attribute name="width">
  7744.                             <xsl:value-of select="'1%'"/>
  7745.                         </xsl:attribute>
  7746.                         <xsl:element name="p">
  7747.                             <xsl:call-template name = "BibAddParagraphAttributes"/>
  7748.                             <xsl:call-template name="BibRefOrder"/>
  7749.                         </xsl:element>
  7750.                     </xsl:element>
  7751.                     <xsl:element name="td">
  7752.                         <xsl:attribute name="style">
  7753.                             <xsl:value-of select="'text-align:left'"/>
  7754.                         </xsl:attribute>
  7755.                         <xsl:attribute name="valign">
  7756.                             <xsl:value-of select="'top'"/>
  7757.                         </xsl:attribute>
  7758.                         <xsl:element name="p">
  7759.                             <xsl:call-template name = "BibAddParagraphAttributes"/>
  7760.                             <xsl:call-template name ="BibDisplayArtist"/>
  7761.                             <i>
  7762.                                 <xsl:call-template name ="BibDisplayTitle"/>
  7763.                             </i>
  7764.                             <xsl:call-template name ="strArt"/>
  7765.                             <xsl:call-template name ="BibDisplayInstitutionArt"/>
  7766.                             <xsl:call-template name ="BibDisplayYear"/>
  7767.                         </xsl:element>
  7768.                     </xsl:element>
  7769.                 </xsl:element>
  7770.             </xsl:when>
  7771.  
  7772.             <xsl:when test="$SourceType = 'SoundRecording'">
  7773.                 <xsl:element name="tr">
  7774.                     <xsl:element name="td">
  7775.                         <xsl:attribute name="valign">
  7776.                             <xsl:value-of select="'top'"/>
  7777.                         </xsl:attribute>
  7778.                         <xsl:attribute name="width">
  7779.                             <xsl:value-of select="'1%'"/>
  7780.                         </xsl:attribute>
  7781.                         <xsl:element name="p">
  7782.                             <xsl:call-template name = "BibAddParagraphAttributes"/>
  7783.                             <xsl:call-template name="BibRefOrder"/>
  7784.                         </xsl:element>
  7785.                     </xsl:element>
  7786.                     <xsl:element name="td">
  7787.                         <xsl:attribute name="style">
  7788.                             <xsl:value-of select="'text-align:left'"/>
  7789.                         </xsl:attribute>
  7790.                         <xsl:attribute name="valign">
  7791.                             <xsl:value-of select="'top'"/>
  7792.                         </xsl:attribute>
  7793.                         <xsl:element name="p">
  7794.                             <xsl:call-template name = "BibAddParagraphAttributes"/>
  7795.                             <xsl:call-template name ="BibDisplayAuthorSoundRec"/>
  7796.                             <i>
  7797.                                 <xsl:call-template name ="BibDisplayTitle"/>
  7798.                             </i>
  7799.                             <xsl:call-template name ="BibDisplayStrSoundRecording"/>
  7800.                             <xsl:call-template name ="BibDisplayProductionCompanySRec"/>
  7801.                             <xsl:call-template name ="BibDisplayYearSoundrecording"/>
  7802.                         </xsl:element>
  7803.                     </xsl:element>
  7804.                 </xsl:element>
  7805.             </xsl:when>
  7806.  
  7807.             <xsl:when test="$SourceType = 'Performance'">
  7808.                 <xsl:element name="tr">
  7809.                     <xsl:element name="td">
  7810.                         <xsl:attribute name="valign">
  7811.                             <xsl:value-of select="'top'"/>
  7812.                         </xsl:attribute>
  7813.                         <xsl:attribute name="width">
  7814.                             <xsl:value-of select="'1%'"/>
  7815.                         </xsl:attribute>
  7816.                         <xsl:element name="p">
  7817.                             <xsl:call-template name = "BibAddParagraphAttributes"/>
  7818.                             <xsl:call-template name="BibRefOrder"/>
  7819.                         </xsl:element>
  7820.                     </xsl:element>
  7821.                     <xsl:element name="td">
  7822.                         <xsl:attribute name="style">
  7823.                             <xsl:value-of select="'text-align:left'"/>
  7824.                         </xsl:attribute>
  7825.                         <xsl:attribute name="valign">
  7826.                             <xsl:value-of select="'top'"/>
  7827.                         </xsl:attribute>
  7828.                         <xsl:element name="p">
  7829.                             <xsl:call-template name = "BibAddParagraphAttributes"/>
  7830.                             <xsl:call-template name = "BibDisplayAuthorPerformance"/>
  7831.                             <i>
  7832.                                 <xsl:call-template name ="BibDisplayTitlePerformance"/>
  7833.                             </i>
  7834.                             <xsl:call-template name="strPerformance"/>
  7835.                             <xsl:call-template name ="BibDisplayProductionCompanyPerformance"/>
  7836.                             <xsl:call-template name ="BibDisplayYear"/>
  7837.                         </xsl:element>
  7838.                     </xsl:element>
  7839.                 </xsl:element>
  7840.             </xsl:when>
  7841.  
  7842.             <xsl:when test="$SourceType = 'InternetSite'">
  7843.                 <xsl:element name="tr">
  7844.                     <xsl:element name="td">
  7845.                         <xsl:attribute name="valign">
  7846.                             <xsl:value-of select="'top'"/>
  7847.                         </xsl:attribute>
  7848.                         <xsl:attribute name="width">
  7849.                             <xsl:value-of select="'1%'"/>
  7850.                         </xsl:attribute>
  7851.                         <xsl:element name="p">
  7852.                             <xsl:call-template name = "BibAddParagraphAttributes"/>
  7853.                             <xsl:call-template name="BibRefOrder"/>
  7854.                         </xsl:element>
  7855.                     </xsl:element>
  7856.                     <xsl:element name="td">
  7857.                         <xsl:attribute name="style">
  7858.                             <xsl:value-of select="'text-align:left'"/>
  7859.                         </xsl:attribute>
  7860.                         <xsl:attribute name="valign">
  7861.                             <xsl:value-of select="'top'"/>
  7862.                         </xsl:attribute>
  7863.                         <xsl:element name="p">
  7864.                             <xsl:call-template name = "BibAddParagraphAttributes"/>
  7865.                             <xsl:call-template name = "BibDisplayAuthorWebsite"/>
  7866.                             <xsl:call-template name ="BibDisplayTitleWebSite"/>
  7867.                             <xsl:call-template name ="BibDisplayProductionCompanywebsite"/>
  7868.                             <xsl:call-template name = "BibDisplayDayMonthYearWebSiteJournal"/>
  7869.                             <xsl:call-template name ="BibDisplayStrOnline"/>
  7870.                             <xsl:call-template name ="BibDisplayURL"/>
  7871.                             <xsl:call-template name ="BibDisplayAccessedDates"/>
  7872.                         </xsl:element>
  7873.                     </xsl:element>
  7874.                 </xsl:element>
  7875.             </xsl:when>
  7876.  
  7877.  
  7878.             <xsl:when test="$SourceType = 'Interview'">
  7879.                 <xsl:element name="tr">
  7880.                     <xsl:element name="td">
  7881.                         <xsl:attribute name="valign">
  7882.                             <xsl:value-of select="'top'"/>
  7883.                         </xsl:attribute>
  7884.                         <xsl:attribute name="width">
  7885.                             <xsl:value-of select="'1%'"/>
  7886.                         </xsl:attribute>
  7887.                         <xsl:element name="p">
  7888.                             <xsl:call-template name = "BibAddParagraphAttributes"/>
  7889.                             <xsl:call-template name="BibRefOrder"/>
  7890.                         </xsl:element>
  7891.                     </xsl:element>
  7892.                     <xsl:element name="td">
  7893.                         <xsl:attribute name="style">
  7894.                             <xsl:value-of select="'text-align:left'"/>
  7895.                         </xsl:attribute>
  7896.                         <xsl:attribute name="valign">
  7897.                             <xsl:value-of select="'top'"/>
  7898.                         </xsl:attribute>
  7899.                         <xsl:element name="p">
  7900.                             <xsl:call-template name = "BibAddParagraphAttributes"/>
  7901.                             <xsl:call-template name = "BibDisplayAuthorInterview"/>
  7902.                             <i>
  7903.                                 <xsl:call-template name ="BibDisplayTitleInt"/>
  7904.                             </i>
  7905.                             <xsl:call-template name="BibDisplayStrInterview"/>
  7906.                             <xsl:call-template name ="BibDisplayDayMonthYearInterview"/>
  7907.                         </xsl:element>
  7908.                     </xsl:element>
  7909.                 </xsl:element>
  7910.             </xsl:when>
  7911.  
  7912.             <xsl:when test="$SourceType = 'Patent'">
  7913.                 <xsl:element name="tr">
  7914.                     <xsl:element name="td">
  7915.                         <xsl:attribute name="valign">
  7916.                             <xsl:value-of select="'top'"/>
  7917.                         </xsl:attribute>
  7918.                         <xsl:attribute name="width">
  7919.                             <xsl:value-of select="'1%'"/>
  7920.                         </xsl:attribute>
  7921.                         <xsl:element name="p">
  7922.                             <xsl:call-template name = "BibAddParagraphAttributes"/>
  7923.                             <xsl:call-template name="BibRefOrder"/>
  7924.                         </xsl:element>
  7925.                     </xsl:element>
  7926.                     <xsl:element name="td">
  7927.                         <xsl:attribute name="style">
  7928.                             <xsl:value-of select="'text-align:left'"/>
  7929.                         </xsl:attribute>
  7930.                         <xsl:attribute name="valign">
  7931.                             <xsl:value-of select="'top'"/>
  7932.                         </xsl:attribute>
  7933.                         <xsl:element name="p">
  7934.                             <xsl:call-template name = "BibAddParagraphAttributes"/>
  7935.                             <xsl:call-template name = "BibDisplayAuthorPatent"/>
  7936.                             <xsl:call-template name ="BibDisplayTitlePatent"/>
  7937.                             <xsl:call-template name ="BibDisplayCountryRegionPatent"/>
  7938.                             <xsl:call-template name="BibDisplayPatent"/>
  7939.                             <xsl:call-template name ="BibDisplayDayMonthYearPatent"/>
  7940.                         </xsl:element>
  7941.                     </xsl:element>
  7942.                 </xsl:element>
  7943.             </xsl:when>
  7944.  
  7945.             <xsl:when test="$SourceType = 'Film'">
  7946.                 <xsl:element name="tr">
  7947.                     <xsl:element name="td">
  7948.                         <xsl:attribute name="valign">
  7949.                             <xsl:value-of select="'top'"/>
  7950.                         </xsl:attribute>
  7951.                         <xsl:attribute name="width">
  7952.                             <xsl:value-of select="'1%'"/>
  7953.                         </xsl:attribute>
  7954.                         <xsl:element name="p">
  7955.                             <xsl:call-template name = "BibAddParagraphAttributes"/>
  7956.                             <xsl:call-template name="BibRefOrder"/>
  7957.                         </xsl:element>
  7958.                     </xsl:element>
  7959.                     <xsl:element name="td">
  7960.                         <xsl:attribute name="style">
  7961.                             <xsl:value-of select="'text-align:left'"/>
  7962.                         </xsl:attribute>
  7963.                         <xsl:attribute name="valign">
  7964.                             <xsl:value-of select="'top'"/>
  7965.                         </xsl:attribute>
  7966.                         <xsl:element name="p">
  7967.                             <xsl:call-template name = "BibAddParagraphAttributes"/>
  7968.                             <xsl:call-template name ="BibDisplayDirector"/>
  7969.                             <i>
  7970.                                 <xsl:call-template name ="BibDisplayTitle"/>
  7971.                             </i>
  7972.                             <xsl:call-template name ="BibDisplayStrFilm"/>
  7973.                             <xsl:call-template name ="BibDisplayCountryRegionFilm"/>
  7974.                             <xsl:call-template name ="BibDisplayProductionCompany"/>
  7975.                             <xsl:call-template name ="BibDisplayYear"/>
  7976.                         </xsl:element>
  7977.                     </xsl:element>
  7978.                 </xsl:element>
  7979.             </xsl:when>
  7980.  
  7981.             <xsl:when test="$SourceType = 'Case'">
  7982.                 <xsl:element name="tr">
  7983.                     <xsl:element name="td">
  7984.                         <xsl:attribute name="valign">
  7985.                             <xsl:value-of select="'top'"/>
  7986.                         </xsl:attribute>
  7987.                         <xsl:attribute name="width">
  7988.                             <xsl:value-of select="'1%'"/>
  7989.                         </xsl:attribute>
  7990.                         <xsl:element name="p">
  7991.                             <xsl:call-template name = "BibAddParagraphAttributes"/>
  7992.                             <xsl:call-template name="BibRefOrder"/>
  7993.                         </xsl:element>
  7994.                     </xsl:element>
  7995.                     <xsl:element name="td">
  7996.                         <xsl:attribute name="style">
  7997.                             <xsl:value-of select="'text-align:left'"/>
  7998.                         </xsl:attribute>
  7999.                         <xsl:attribute name="valign">
  8000.                             <xsl:value-of select="'top'"/>
  8001.                         </xsl:attribute>
  8002.                         <xsl:element name="p">
  8003.                             <xsl:call-template name = "BibAddParagraphAttributes"/>
  8004.                             <i>
  8005.                                 <xsl:call-template name ="BibDisplayTitleCase"/>
  8006.                             </i>
  8007.                             <xsl:call-template name ="BibDisplayYearCase"/>
  8008.                         </xsl:element>
  8009.                     </xsl:element>
  8010.                 </xsl:element>
  8011.             </xsl:when>
  8012.  
  8013.             <xsl:when test="$SourceType = 'ElectronicSource'">
  8014.                 <xsl:element name="tr">
  8015.                     <xsl:element name="td">
  8016.                         <xsl:attribute name="valign">
  8017.                             <xsl:value-of select="'top'"/>
  8018.                         </xsl:attribute>
  8019.                         <xsl:attribute name="width">
  8020.                             <xsl:value-of select="'1%'"/>
  8021.                         </xsl:attribute>
  8022.                         <xsl:element name="p">
  8023.                             <xsl:call-template name = "BibAddParagraphAttributes"/>
  8024.                             <xsl:call-template name="BibRefOrder"/>
  8025.                         </xsl:element>
  8026.                     </xsl:element>
  8027.                     <xsl:element name="td">
  8028.                         <xsl:attribute name="style">
  8029.                             <xsl:value-of select="'text-align:left'"/>
  8030.                         </xsl:attribute>
  8031.                         <xsl:attribute name="valign">
  8032.                             <xsl:value-of select="'top'"/>
  8033.                         </xsl:attribute>
  8034.                         <xsl:element name="p">
  8035.                             <xsl:call-template name = "BibAddParagraphAttributes"/>
  8036.                             <xsl:call-template name ="BibDisplayAuthorReport"/>
  8037.                             <xsl:call-template name ="BibDisplayTitleReport"/>
  8038.                             <xsl:call-template name ="BibDisplayPublisher"/>
  8039.                             <xsl:call-template name ="BibDisplayCityReport"/>
  8040.                             <xsl:call-template name ="BibDisplayYearReport"/>
  8041.                         </xsl:element>
  8042.                     </xsl:element>
  8043.                 </xsl:element>
  8044.             </xsl:when>
  8045.  
  8046.             <xsl:when test="$SourceType = 'Misc'">
  8047.                 <xsl:element name="tr">
  8048.                     <xsl:element name="td">
  8049.                         <xsl:attribute name="valign">
  8050.                             <xsl:value-of select="'top'"/>
  8051.                         </xsl:attribute>
  8052.                         <xsl:attribute name="width">
  8053.                             <xsl:value-of select="'1%'"/>
  8054.                         </xsl:attribute>
  8055.                         <xsl:element name="p">
  8056.                             <xsl:call-template name = "BibAddParagraphAttributes"/>
  8057.                             <xsl:call-template name="BibRefOrder"/>
  8058.                         </xsl:element>
  8059.                     </xsl:element>
  8060.                     <xsl:element name="td">
  8061.                         <xsl:attribute name="style">
  8062.                             <xsl:value-of select="'text-align:left'"/>
  8063.                         </xsl:attribute>
  8064.                         <xsl:attribute name="valign">
  8065.                             <xsl:value-of select="'top'"/>
  8066.                         </xsl:attribute>
  8067.                         <xsl:element name="p">
  8068.                             <xsl:call-template name = "BibAddParagraphAttributes"/>
  8069.                             <xsl:call-template name = "BibDisplayAuthorBook">
  8070.                                 <xsl:with-param name ="DisplayEditorIfAuthorUnavailale" select="'true'" />
  8071.                             </xsl:call-template>
  8072.                             <i>
  8073.                                 <xsl:call-template name = "BibDisplayTitleBook"/>
  8074.                             </i>
  8075.                             <xsl:call-template name = "BibDisplayEdition"/>
  8076.                             <xsl:call-template name="BibDisplayVolumeBook"/>
  8077.                             <xsl:call-template name="BibDisplayEditor"/>
  8078.                             <xsl:call-template name = "BibDisplayCity"/>
  8079.                             <xsl:call-template name = "BibDisplayStateProvinceBook"/>
  8080.                             <xsl:call-template name = "BibDisplayPublisherBC"/>
  8081.                             <xsl:call-template name = "BibDisplayYearBC"/>
  8082.                             <xsl:call-template name ="BibDisplayPages"/>
  8083.                         </xsl:element>
  8084.                     </xsl:element>
  8085.                 </xsl:element>
  8086.             </xsl:when>
  8087.             <xsl:otherwise>
  8088.                 <xsl:element name="p">
  8089.                     <xsl:call-template name ="BibAddParagraphAttributes"/>
  8090.                 </xsl:element>
  8091.             </xsl:otherwise>
  8092.         </xsl:choose>
  8093.  
  8094.     </xsl:template>
  8095.  
  8096.     <xsl:template name="Bibliography">
  8097.         <html xmlns="http://www.w3.org/TR/REC-html40">
  8098.             <head>
  8099.                 <style>
  8100.                     p.MsoBibliography, li.MsoBibliography, div.MsoBibliography
  8101.                 </style>
  8102.             </head>
  8103.             <body>
  8104.                 <xsl:element name="table">
  8105.                     <xsl:attribute name="class">
  8106.                         <xsl:value-of select="'MsoBibliography'"/>
  8107.                     </xsl:attribute>
  8108.                     <xsl:attribute name="width">
  8109.                         <xsl:value-of select="'100%'"/>
  8110.                     </xsl:attribute>
  8111.                     <xsl:for-each select ="b:Bibliography">
  8112.                         <xsl:apply-templates select="b:Source">
  8113.                             <xsl:sort select="b:RefOrder" order="ascending" data-type="number"/>
  8114.                         </xsl:apply-templates>
  8115.                     </xsl:for-each>
  8116.                 </xsl:element>
  8117.             </body>
  8118.         </html>
  8119.     </xsl:template>
  8120.  
  8121.  
  8122.     <xsl:template name="RefOrder">
  8123.         <xsl:value-of select="b:Source/b:RefOrder"/>
  8124.     </xsl:template>
  8125.  
  8126.     <xsl:template name="BibRefOrder">
  8127.         <xsl:call-template name ="templ_prop_SecondaryOpen"/>
  8128.         <xsl:value-of select="b:RefOrder"/>
  8129.         <xsl:call-template name="templ_prop_SecondaryClose"/>
  8130.         <xsl:call-template name ="templ_prop_Space"/>
  8131.     </xsl:template>
  8132.  
  8133.     <xsl:template name ="displayPageOrPages">
  8134.         <xsl:param name ="pages"/>
  8135.         <xsl:if test="$pages">
  8136.             <xsl:call-template name="templ_prop_ListSeparator"/>
  8137.         </xsl:if>
  8138.         <xsl:value-of select="$pages"/>
  8139.     </xsl:template>
  8140.  
  8141.     <xsl:template name="Citation">
  8142.         <xsl:for-each select="b:Citation">
  8143.             <xsl:variable name="SourceType">
  8144.                 <xsl:value-of select="b:Source/b:SourceType"/>
  8145.             </xsl:variable>
  8146.             <xsl:choose>
  8147.                 <xsl:when test="$SourceType = 'Book' or
  8148.                $SourceType = 'BookSection' or
  8149.                $SourceType = 'Film' or
  8150.                 $SourceType = 'Case' or
  8151.                $SourceType = 'JournalArticle' or
  8152.                $SourceType = 'ArticleInAPeriodical' or
  8153.                 $SourceType = 'Misc' or
  8154.                 $SourceType = 'ElectronicSource' or
  8155.                 $SourceType = 'Report' or
  8156.                 $SourceType = 'DocumentFromInternetSite' or
  8157.                 $SourceType = 'Art' or
  8158.                 $SourceType = 'SoundRecording' or
  8159.                 $SourceType = 'Performance' or
  8160.                 $SourceType = 'Interview' or
  8161.                 $SourceType = 'InternetSite' or
  8162.                 $SourceType = 'Patent' or
  8163.                $SourceType = 'ConferenceProceedings' ">
  8164.                     <html xmlns="http://www.w3.org/TR/REC-html40">
  8165.                         <body>
  8166.  
  8167.                             <xsl:variable name ="cPages">
  8168.                                 <xsl:value-of select="count(b:Pages)" />
  8169.                             </xsl:variable>
  8170.  
  8171.                             <xsl:variable name ="initValueOfPages">
  8172.                                 <xsl:value-of select="b:Pages"/>
  8173.                             </xsl:variable>
  8174.  
  8175.                             <xsl:variable name ="pages">
  8176.                                 <xsl:choose>
  8177.                                     <xsl:when test="contains($initValueOfPages, '-')">
  8178.                                         <xsl:value-of select="concat('pp. ',$initValueOfPages)"/>
  8179.                                     </xsl:when>
  8180.                                     <xsl:when test="contains($initValueOfPages, ',')">
  8181.                                         <xsl:value-of select="concat('pp. ',$initValueOfPages)"/>
  8182.                                     </xsl:when>
  8183.                                     <xsl:otherwise>
  8184.                                         <xsl:value-of select="concat('p. ',$initValueOfPages)"/>
  8185.                                     </xsl:otherwise>
  8186.                                 </xsl:choose>
  8187.                             </xsl:variable>
  8188.  
  8189.  
  8190.                             <xsl:if test="b:FirstAuthor">
  8191.                                 <xsl:call-template name ="templ_prop_SecondaryOpen"/>
  8192.                             </xsl:if>
  8193.  
  8194.                             <xsl:call-template  name="RefOrder"/>
  8195.  
  8196.                             <xsl:if test="count(b:Pages)>0">
  8197.                                 <xsl:call-template name="displayPageOrPages" >
  8198.                                     <xsl:with-param name="pages" select ="$pages"/>
  8199.                                 </xsl:call-template>
  8200.                             </xsl:if>
  8201.  
  8202.                             <xsl:if test="b:LastAuthor">
  8203.                                 <xsl:call-template name="templ_prop_SecondaryClose"/>
  8204.                             <xsl:call-template name ="BibDisplayURL"/>
  8205.                             </xsl:if>
  8206.                            
  8207.                             <xsl:call-template name ="BibDisplayAccessedDates"/>
  8208.                             <xsl:if test="not(b:LastAuthor)">
  8209.                                 <xsl:call-template name="templ_prop_ListSeparator"/>
  8210.                                 <xsl:call-template name ="templ_prop_Space"/>
  8211.                             </xsl:if>
  8212.                            
  8213.                         </body>
  8214.                     </html>
  8215.                 </xsl:when>
  8216.             </xsl:choose>
  8217.         </xsl:for-each>
  8218.     </xsl:template>
  8219.  
  8220.     <xsl:template name="right-trim">
  8221.         <xsl:param name="s" />
  8222.         <xsl:choose>
  8223.             <xsl:when test="substring($s, 1, 1) = ''">
  8224.                 <xsl:value-of select="$s"/>
  8225.             </xsl:when>
  8226.             <xsl:when test="normalize-space(substring($s, string-length($s))) = ''">
  8227.                 <xsl:call-template name="right-trim">
  8228.                     <xsl:with-param name="s" select="substring($s, 1, string-length($s) - 1)" />
  8229.                 </xsl:call-template>
  8230.             </xsl:when>
  8231.             <xsl:otherwise>
  8232.                 <xsl:value-of select="$s" />
  8233.             </xsl:otherwise>
  8234.         </xsl:choose>
  8235.     </xsl:template>
  8236.  
  8237.     <xsl:template name="left-trim">
  8238.         <xsl:param name="s" />
  8239.         <xsl:choose>
  8240.             <xsl:when test="substring($s,1,1) = ' '">
  8241.                 <xsl:call-template name="left-trim">
  8242.                     <xsl:with-param name="s" select="substring($s, 2)" />
  8243.                 </xsl:call-template>
  8244.             </xsl:when>
  8245.             <xsl:otherwise>
  8246.                 <xsl:value-of select="$s" />
  8247.             </xsl:otherwise>
  8248.         </xsl:choose>
  8249.     </xsl:template>
  8250. </xsl:stylesheet>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement