home *** CD-ROM | disk | FTP | other *** search
/ ftp.tcs3.com / ftp.tcs3.com.tar / ftp.tcs3.com / DRIVERS / Audio / Office2010 / ProPlus.WW / ProPsWW.cab / APA.XSL < prev    next >
Extensible Markup Language  |  2009-11-03  |  380KB  |  9,920 lines

  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2.  
  3.  
  4. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt"    xmlns:b="http://schemas.openxmlformats.org/officeDocument/2006/bibliography" xmlns:t="http://www.microsoft.com/temp">
  5.     <xsl:output method="html" encoding="us-ascii"/>
  6.  
  7.     
  8.     <xsl:template match="*" mode="outputHtml2">
  9.             <xsl:apply-templates mode="outputHtml"/>        
  10.     </xsl:template>
  11.  
  12.     <xsl:template name="StringFormatDot">
  13.         <xsl:param name="format" />
  14.         <xsl:param name="parameters" />
  15.  
  16.     <xsl:variable name="prop_EndChars">
  17.       <xsl:call-template name="templ_prop_EndChars"/>
  18.     </xsl:variable>
  19.  
  20.     <xsl:choose>
  21.       <xsl:when test="$format = ''"></xsl:when>
  22.       <xsl:when test="substring($format, 1, 2) = '%%'">
  23.         <xsl:text>%</xsl:text>
  24.         <xsl:call-template name="StringFormatDot">
  25.           <xsl:with-param name="format" select="substring($format, 3)" />
  26.           <xsl:with-param name="parameters" select="$parameters" />
  27.         </xsl:call-template>
  28.         <xsl:if test="string-length($format)=2">
  29.           <xsl:call-template name="templ_prop_Dot"/>
  30.         </xsl:if>
  31.       </xsl:when>
  32.       <xsl:when test="substring($format, 1, 1) = '%'">
  33.         <xsl:variable name="pos" select="substring($format, 2, 1)" />
  34.         <xsl:apply-templates select="msxsl:node-set($parameters)/t:params/t:param[position() = $pos]" mode="outputHtml2"/>
  35.         <xsl:call-template name="StringFormatDot">
  36.           <xsl:with-param name="format" select="substring($format, 3)" />
  37.           <xsl:with-param name="parameters" select="$parameters" />
  38.         </xsl:call-template>
  39.         <xsl:if test="string-length($format)=2">
  40.           <xsl:variable name="temp2">
  41.             <xsl:call-template name="handleSpaces">
  42.               <xsl:with-param name="field" select="msxsl:node-set($parameters)/t:params/t:param[position() = $pos]"/>
  43.             </xsl:call-template>
  44.                     </xsl:variable>                
  45.                     <xsl:variable name="lastChar">
  46.                         <xsl:value-of select="substring($temp2, string-length($temp2))"/>
  47.                     </xsl:variable>
  48.           
  49.           <xsl:if test="not(contains($prop_EndChars, $lastChar))">
  50.                         <xsl:call-template name="templ_prop_Dot"/>
  51.                     </xsl:if>
  52.                 </xsl:if>
  53.             </xsl:when>
  54.             <xsl:otherwise>
  55.                 <xsl:value-of select="substring($format, 1, 1)" />
  56.                 <xsl:call-template name="StringFormatDot">
  57.                     <xsl:with-param name="format" select="substring($format, 2)" />
  58.                     <xsl:with-param name="parameters" select="$parameters" />
  59.                 </xsl:call-template>
  60.                 <xsl:if test="string-length($format)=1">
  61.                     <xsl:if test="not(contains($prop_EndChars, $format))">
  62.                         <xsl:call-template name="templ_prop_Dot"/>
  63.                     </xsl:if>
  64.                 </xsl:if>
  65.             </xsl:otherwise>
  66.         </xsl:choose>
  67.     </xsl:template>    
  68.  
  69.     <xsl:template name="StringFormat">
  70.         <xsl:param name="format" />
  71.         <xsl:param name="parameters" />
  72.         <xsl:choose>
  73.             <xsl:when test="$format = ''"></xsl:when>
  74.             <xsl:when test="substring($format, 1, 2) = '%%'">
  75.                 <xsl:text>%</xsl:text>
  76.                 <xsl:call-template name="StringFormat">
  77.                     <xsl:with-param name="format" select="substring($format, 3)" />
  78.                     <xsl:with-param name="parameters" select="$parameters" />
  79.                 </xsl:call-template>
  80.             </xsl:when>
  81.             <xsl:when test="substring($format, 1, 1) = '%'">
  82.                 <xsl:variable name="pos" select="substring($format, 2, 1)" />
  83.                 <xsl:apply-templates select="msxsl:node-set($parameters)/t:params/t:param[position() = $pos]" mode="outputHtml2"/>
  84.                 <xsl:call-template name="StringFormat">
  85.                     <xsl:with-param name="format" select="substring($format, 3)" />
  86.                     <xsl:with-param name="parameters" select="$parameters" />
  87.                 </xsl:call-template>
  88.             </xsl:when>
  89.             <xsl:otherwise>
  90.                 <xsl:value-of select="substring($format, 1, 1)" />
  91.                 <xsl:call-template name="StringFormat">
  92.                     <xsl:with-param name="format" select="substring($format, 2)" />
  93.                     <xsl:with-param name="parameters" select="$parameters" />
  94.                 </xsl:call-template>
  95.             </xsl:otherwise>
  96.         </xsl:choose>
  97.     </xsl:template>
  98.  
  99.              
  100.              
  101.  
  102.   
  103.  
  104.   <xsl:template name="localLCID">
  105.     <xsl:param name="LCID"/>
  106.  
  107.     <xsl:variable name="_LCID1">
  108.       <xsl:choose>
  109.         <xsl:when test="$LCID!='0' and $LCID!=''">
  110.           <xsl:value-of select="$LCID"/>
  111.         </xsl:when>
  112.         <xsl:when test="/b:Citation">
  113.           <xsl:value-of select="/*/b:Locals/b:DefaultLCID"/>
  114.         </xsl:when>
  115.         <xsl:when test="b:LCID">
  116.           <xsl:value-of select="b:LCID"/>
  117.         </xsl:when>
  118.         <xsl:when test="../b:LCID">
  119.           <xsl:value-of select="../b:LCID"/>
  120.         </xsl:when>
  121.         <xsl:when test="../../b:LCID">
  122.           <xsl:value-of select="../../b:LCID"/>
  123.         </xsl:when>
  124.         <xsl:when test="../../../b:LCID">
  125.           <xsl:value-of select="../../../b:LCID"/>
  126.         </xsl:when>
  127.         <xsl:when test="../../../../b:LCID">
  128.           <xsl:value-of select="../../../../b:LCID"/>
  129.         </xsl:when>
  130.         <xsl:when test="../../../../b:LCID">
  131.           <xsl:value-of select="../../../../b:LCID"/>
  132.         </xsl:when>
  133.         <xsl:when test="../../../../../b:LCID">
  134.           <xsl:value-of select="../../../../../b:LCID"/>
  135.         </xsl:when>
  136.         <xsl:otherwise>
  137.           <xsl:value-of select="/*/b:Locals/b:DefaultLCID"/>
  138.         </xsl:otherwise>
  139.       </xsl:choose>
  140.     </xsl:variable>
  141.  
  142.     <xsl:choose>
  143.       <xsl:when test="$_LCID1!='0' and string-length($_LCID1)>0">
  144.         <xsl:value-of select="$_LCID1"/>
  145.       </xsl:when>
  146.       <xsl:otherwise>
  147.         <xsl:value-of select="/*/b:Locals/b:DefaultLCID"/>
  148.       </xsl:otherwise>
  149.     </xsl:choose>
  150.  
  151.   </xsl:template>
  152.  
  153.   
  154.   <xsl:template name="templ_prop_MLA_CitationLong_FML" >
  155.     <xsl:param name="LCID" />
  156.     <xsl:variable name="_LCID">
  157.       <xsl:call-template name="localLCID">
  158.         <xsl:with-param name="LCID" select="$LCID"/>
  159.       </xsl:call-template>
  160.     </xsl:variable>
  161.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:MLA/b:CitationLong/b:FML"/>
  162.   </xsl:template>
  163.  
  164.   
  165.   <xsl:template name="templ_prop_MLA_CitationLong_FM" >
  166.     <xsl:param name="LCID" />
  167.     <xsl:variable name="_LCID">
  168.       <xsl:call-template name="localLCID">
  169.         <xsl:with-param name="LCID" select="$LCID"/>
  170.       </xsl:call-template>
  171.     </xsl:variable>
  172.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:MLA/b:CitationLong/b:FM"/>
  173.   </xsl:template>
  174.  
  175.   
  176.   <xsl:template name="templ_prop_MLA_CitationLong_ML" >
  177.     <xsl:param name="LCID" />
  178.     <xsl:variable name="_LCID">
  179.       <xsl:call-template name="localLCID">
  180.         <xsl:with-param name="LCID" select="$LCID"/>
  181.       </xsl:call-template>
  182.     </xsl:variable>
  183.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:MLA/b:CitationLong/b:ML"/>
  184.   </xsl:template>
  185.  
  186.   
  187.   <xsl:template name="templ_prop_MLA_CitationLong_FL" >
  188.     <xsl:param name="LCID" />
  189.     <xsl:variable name="_LCID">
  190.       <xsl:call-template name="localLCID">
  191.         <xsl:with-param name="LCID" select="$LCID"/>
  192.       </xsl:call-template>
  193.     </xsl:variable>
  194.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:MLA/b:CitationLong/b:FL"/>
  195.   </xsl:template>
  196.  
  197.   
  198.   <xsl:template name="templ_prop_MLA_CitationShort_FML" >
  199.     <xsl:param name="LCID" />
  200.     <xsl:variable name="_LCID">
  201.       <xsl:call-template name="localLCID">
  202.         <xsl:with-param name="LCID" select="$LCID"/>
  203.       </xsl:call-template>
  204.     </xsl:variable>
  205.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:MLA/b:CitationShort/b:FML"/>
  206.   </xsl:template>
  207.  
  208.   
  209.   <xsl:template name="templ_prop_MLA_CitationShort_FM" >
  210.     <xsl:param name="LCID" />
  211.     <xsl:variable name="_LCID">
  212.       <xsl:call-template name="localLCID">
  213.         <xsl:with-param name="LCID" select="$LCID"/>
  214.       </xsl:call-template>
  215.     </xsl:variable>
  216.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:MLA/b:CitationShort/b:FM"/>
  217.   </xsl:template>
  218.  
  219.   
  220.   <xsl:template name="templ_prop_MLA_CitationShort_ML" >
  221.     <xsl:param name="LCID" />
  222.     <xsl:variable name="_LCID">
  223.       <xsl:call-template name="localLCID">
  224.         <xsl:with-param name="LCID" select="$LCID"/>
  225.       </xsl:call-template>
  226.     </xsl:variable>
  227.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:MLA/b:CitationShort/b:ML"/>
  228.   </xsl:template>
  229.  
  230.   
  231.   <xsl:template name="templ_prop_MLA_CitationShort_FL" >
  232.     <xsl:param name="LCID" />
  233.     <xsl:variable name="_LCID">
  234.       <xsl:call-template name="localLCID">
  235.         <xsl:with-param name="LCID" select="$LCID"/>
  236.       </xsl:call-template>
  237.     </xsl:variable>
  238.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:MLA/b:CitationShort/b:FL"/>
  239.   </xsl:template>
  240.  
  241.   
  242.   <xsl:template name="templ_prop_APA_CitationLong_FML" >
  243.     <xsl:param name="LCID" />
  244.     <xsl:variable name="_LCID">
  245.       <xsl:call-template name="localLCID">
  246.         <xsl:with-param name="LCID" select="$LCID"/>
  247.       </xsl:call-template>
  248.     </xsl:variable>
  249.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:APA/b:CitationLong/b:FML"/>
  250.   </xsl:template>
  251.  
  252.   
  253.   <xsl:template name="templ_prop_APA_CitationLong_FM" >
  254.     <xsl:param name="LCID" />
  255.     <xsl:variable name="_LCID">
  256.       <xsl:call-template name="localLCID">
  257.         <xsl:with-param name="LCID" select="$LCID"/>
  258.       </xsl:call-template>
  259.     </xsl:variable>
  260.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:APA/b:CitationLong/b:FM"/>
  261.   </xsl:template>
  262.  
  263.   
  264.   <xsl:template name="templ_prop_APA_CitationLong_ML" >
  265.     <xsl:param name="LCID" />
  266.     <xsl:variable name="_LCID">
  267.       <xsl:call-template name="localLCID">
  268.         <xsl:with-param name="LCID" select="$LCID"/>
  269.       </xsl:call-template>
  270.     </xsl:variable>
  271.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:APA/b:CitationLong/b:ML"/>
  272.   </xsl:template>
  273.  
  274.   
  275.   <xsl:template name="templ_prop_APA_CitationLong_FL" >
  276.     <xsl:param name="LCID" />
  277.     <xsl:variable name="_LCID">
  278.       <xsl:call-template name="localLCID">
  279.         <xsl:with-param name="LCID" select="$LCID"/>
  280.       </xsl:call-template>
  281.     </xsl:variable>
  282.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:APA/b:CitationLong/b:FL"/>
  283.   </xsl:template>
  284.  
  285.   
  286.   <xsl:template name="templ_prop_APA_CitationShort_FML" >
  287.     <xsl:param name="LCID" />
  288.     <xsl:variable name="_LCID">
  289.       <xsl:call-template name="localLCID">
  290.         <xsl:with-param name="LCID" select="$LCID"/>
  291.       </xsl:call-template>
  292.     </xsl:variable>
  293.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:APA/b:CitationShort/b:FML"/>
  294.   </xsl:template>
  295.  
  296.   
  297.   <xsl:template name="templ_prop_APA_CitationShort_FM" >
  298.     <xsl:param name="LCID" />
  299.     <xsl:variable name="_LCID">
  300.       <xsl:call-template name="localLCID">
  301.         <xsl:with-param name="LCID" select="$LCID"/>
  302.       </xsl:call-template>
  303.     </xsl:variable>
  304.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:APA/b:CitationShort/b:FM"/>
  305.   </xsl:template>
  306.  
  307.   
  308.   <xsl:template name="templ_prop_APA_CitationShort_ML" >
  309.     <xsl:param name="LCID" />
  310.     <xsl:variable name="_LCID">
  311.       <xsl:call-template name="localLCID">
  312.         <xsl:with-param name="LCID" select="$LCID"/>
  313.       </xsl:call-template>
  314.     </xsl:variable>
  315.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:APA/b:CitationShort/b:ML"/>
  316.   </xsl:template>
  317.  
  318.   
  319.   <xsl:template name="templ_prop_APA_CitationShort_FL" >
  320.     <xsl:param name="LCID" />
  321.     <xsl:variable name="_LCID">
  322.       <xsl:call-template name="localLCID">
  323.         <xsl:with-param name="LCID" select="$LCID"/>
  324.       </xsl:call-template>
  325.     </xsl:variable>
  326.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:APA/b:CitationShort/b:FL"/>
  327.   </xsl:template>
  328.  
  329.   
  330.   <xsl:template name="templ_prop_Chicago_CitationLong_FML" >
  331.     <xsl:param name="LCID" />
  332.     <xsl:variable name="_LCID">
  333.       <xsl:call-template name="localLCID">
  334.         <xsl:with-param name="LCID" select="$LCID"/>
  335.       </xsl:call-template>
  336.     </xsl:variable>
  337.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Chicago/b:CitationLong/b:FML"/>
  338.   </xsl:template>
  339.  
  340.   
  341.   <xsl:template name="templ_prop_Chicago_CitationLong_FM" >
  342.     <xsl:param name="LCID" />
  343.     <xsl:variable name="_LCID">
  344.       <xsl:call-template name="localLCID">
  345.         <xsl:with-param name="LCID" select="$LCID"/>
  346.       </xsl:call-template>
  347.     </xsl:variable>
  348.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Chicago/b:CitationLong/b:FM"/>
  349.   </xsl:template>
  350.  
  351.   
  352.   <xsl:template name="templ_prop_Chicago_CitationLong_ML" >
  353.     <xsl:param name="LCID" />
  354.     <xsl:variable name="_LCID">
  355.       <xsl:call-template name="localLCID">
  356.         <xsl:with-param name="LCID" select="$LCID"/>
  357.       </xsl:call-template>
  358.     </xsl:variable>
  359.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Chicago/b:CitationLong/b:ML"/>
  360.   </xsl:template>
  361.  
  362.   
  363.   <xsl:template name="templ_prop_Chicago_CitationLong_FL" >
  364.     <xsl:param name="LCID" />
  365.     <xsl:variable name="_LCID">
  366.       <xsl:call-template name="localLCID">
  367.         <xsl:with-param name="LCID" select="$LCID"/>
  368.       </xsl:call-template>
  369.     </xsl:variable>
  370.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Chicago/b:CitationLong/b:FL"/>
  371.   </xsl:template>
  372.  
  373.   
  374.   <xsl:template name="templ_prop_Chicago_CitationShort_FML" >
  375.     <xsl:param name="LCID" />
  376.     <xsl:variable name="_LCID">
  377.       <xsl:call-template name="localLCID">
  378.         <xsl:with-param name="LCID" select="$LCID"/>
  379.       </xsl:call-template>
  380.     </xsl:variable>
  381.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Chicago/b:CitationShort/b:FML"/>
  382.   </xsl:template>
  383.  
  384.   
  385.   <xsl:template name="templ_prop_Chicago_CitationShort_FM" >
  386.     <xsl:param name="LCID" />
  387.     <xsl:variable name="_LCID">
  388.       <xsl:call-template name="localLCID">
  389.         <xsl:with-param name="LCID" select="$LCID"/>
  390.       </xsl:call-template>
  391.     </xsl:variable>
  392.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Chicago/b:CitationShort/b:FM"/>
  393.   </xsl:template>
  394.  
  395.   
  396.   <xsl:template name="templ_prop_Chicago_CitationShort_ML" >
  397.     <xsl:param name="LCID" />
  398.     <xsl:variable name="_LCID">
  399.       <xsl:call-template name="localLCID">
  400.         <xsl:with-param name="LCID" select="$LCID"/>
  401.       </xsl:call-template>
  402.     </xsl:variable>
  403.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Chicago/b:CitationShort/b:ML"/>
  404.   </xsl:template>
  405.  
  406.   
  407.   <xsl:template name="templ_prop_Chicago_CitationShort_FL" >
  408.     <xsl:param name="LCID" />
  409.     <xsl:variable name="_LCID">
  410.       <xsl:call-template name="localLCID">
  411.         <xsl:with-param name="LCID" select="$LCID"/>
  412.       </xsl:call-template>
  413.     </xsl:variable>
  414.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Chicago/b:CitationShort/b:FL"/>
  415.   </xsl:template>
  416.  
  417.   
  418.   <xsl:template name="templ_prop_Gost_CitationLong_FML" >
  419.     <xsl:param name="LCID" />
  420.     <xsl:variable name="_LCID">
  421.       <xsl:call-template name="localLCID">
  422.         <xsl:with-param name="LCID" select="$LCID"/>
  423.       </xsl:call-template>
  424.     </xsl:variable>
  425.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Gost/b:CitationLong/b:FML"/>
  426.   </xsl:template>
  427.  
  428.   
  429.   <xsl:template name="templ_prop_Gost_CitationLong_FM" >
  430.     <xsl:param name="LCID" />
  431.     <xsl:variable name="_LCID">
  432.       <xsl:call-template name="localLCID">
  433.         <xsl:with-param name="LCID" select="$LCID"/>
  434.       </xsl:call-template>
  435.     </xsl:variable>
  436.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Gost/b:CitationLong/b:FM"/>
  437.   </xsl:template>
  438.  
  439.   
  440.   <xsl:template name="templ_prop_Gost_CitationLong_ML" >
  441.     <xsl:param name="LCID" />
  442.     <xsl:variable name="_LCID">
  443.       <xsl:call-template name="localLCID">
  444.         <xsl:with-param name="LCID" select="$LCID"/>
  445.       </xsl:call-template>
  446.     </xsl:variable>
  447.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Gost/b:CitationLong/b:ML"/>
  448.   </xsl:template>
  449.  
  450.   
  451.   <xsl:template name="templ_prop_Gost_CitationLong_FL" >
  452.     <xsl:param name="LCID" />
  453.     <xsl:variable name="_LCID">
  454.       <xsl:call-template name="localLCID">
  455.         <xsl:with-param name="LCID" select="$LCID"/>
  456.       </xsl:call-template>
  457.     </xsl:variable>
  458.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Gost/b:CitationLong/b:FL"/>
  459.   </xsl:template>
  460.  
  461.   
  462.   <xsl:template name="templ_prop_Gost_CitationShort_FML" >
  463.     <xsl:param name="LCID" />
  464.     <xsl:variable name="_LCID">
  465.       <xsl:call-template name="localLCID">
  466.         <xsl:with-param name="LCID" select="$LCID"/>
  467.       </xsl:call-template>
  468.     </xsl:variable>
  469.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Gost/b:CitationShort/b:FML"/>
  470.   </xsl:template>
  471.  
  472.   
  473.   <xsl:template name="templ_prop_Gost_CitationShort_FM" >
  474.     <xsl:param name="LCID" />
  475.     <xsl:variable name="_LCID">
  476.       <xsl:call-template name="localLCID">
  477.         <xsl:with-param name="LCID" select="$LCID"/>
  478.       </xsl:call-template>
  479.     </xsl:variable>
  480.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Gost/b:CitationShort/b:FM"/>
  481.   </xsl:template>
  482.  
  483.   
  484.   <xsl:template name="templ_prop_Gost_CitationShort_ML" >
  485.     <xsl:param name="LCID" />
  486.     <xsl:variable name="_LCID">
  487.       <xsl:call-template name="localLCID">
  488.         <xsl:with-param name="LCID" select="$LCID"/>
  489.       </xsl:call-template>
  490.     </xsl:variable>
  491.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Gost/b:CitationShort/b:ML"/>
  492.   </xsl:template>
  493.  
  494.   
  495.   <xsl:template name="templ_prop_Gost_CitationShort_FL" >
  496.     <xsl:param name="LCID" />
  497.     <xsl:variable name="_LCID">
  498.       <xsl:call-template name="localLCID">
  499.         <xsl:with-param name="LCID" select="$LCID"/>
  500.       </xsl:call-template>
  501.     </xsl:variable>
  502.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Gost/b:CitationShort/b:FL"/>
  503.   </xsl:template>
  504.  
  505.   
  506.   <xsl:template name="templ_prop_ISO690_CitationLong_FML" >
  507.     <xsl:param name="LCID" />
  508.     <xsl:variable name="_LCID">
  509.       <xsl:call-template name="localLCID">
  510.         <xsl:with-param name="LCID" select="$LCID"/>
  511.       </xsl:call-template>
  512.     </xsl:variable>
  513.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:ISO690/b:CitationLong/b:FML"/>
  514.   </xsl:template>
  515.  
  516.   
  517.   <xsl:template name="templ_prop_ISO690_CitationLong_FM" >
  518.     <xsl:param name="LCID" />
  519.     <xsl:variable name="_LCID">
  520.       <xsl:call-template name="localLCID">
  521.         <xsl:with-param name="LCID" select="$LCID"/>
  522.       </xsl:call-template>
  523.     </xsl:variable>
  524.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:ISO690/b:CitationLong/b:FM"/>
  525.   </xsl:template>
  526.  
  527.   
  528.   <xsl:template name="templ_prop_ISO690_CitationLong_ML" >
  529.     <xsl:param name="LCID" />
  530.     <xsl:variable name="_LCID">
  531.       <xsl:call-template name="localLCID">
  532.         <xsl:with-param name="LCID" select="$LCID"/>
  533.       </xsl:call-template>
  534.     </xsl:variable>
  535.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:ISO690/b:CitationLong/b:ML"/>
  536.   </xsl:template>
  537.  
  538.   
  539.   <xsl:template name="templ_prop_ISO690_CitationLong_FL" >
  540.     <xsl:param name="LCID" />
  541.     <xsl:variable name="_LCID">
  542.       <xsl:call-template name="localLCID">
  543.         <xsl:with-param name="LCID" select="$LCID"/>
  544.       </xsl:call-template>
  545.     </xsl:variable>
  546.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:ISO690/b:CitationLong/b:FL"/>
  547.   </xsl:template>
  548.  
  549.   
  550.   <xsl:template name="templ_prop_ISO690_CitationShort_FML" >
  551.     <xsl:param name="LCID" />
  552.     <xsl:variable name="_LCID">
  553.       <xsl:call-template name="localLCID">
  554.         <xsl:with-param name="LCID" select="$LCID"/>
  555.       </xsl:call-template>
  556.     </xsl:variable>
  557.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:ISO690/b:CitationShort/b:FML"/>
  558.   </xsl:template>
  559.  
  560.   
  561.   <xsl:template name="templ_prop_ISO690_CitationShort_FM" >
  562.     <xsl:param name="LCID" />
  563.     <xsl:variable name="_LCID">
  564.       <xsl:call-template name="localLCID">
  565.         <xsl:with-param name="LCID" select="$LCID"/>
  566.       </xsl:call-template>
  567.     </xsl:variable>
  568.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:ISO690/b:CitationShort/b:FM"/>
  569.   </xsl:template>
  570.  
  571.   
  572.   <xsl:template name="templ_prop_ISO690_CitationShort_ML" >
  573.     <xsl:param name="LCID" />
  574.     <xsl:variable name="_LCID">
  575.       <xsl:call-template name="localLCID">
  576.         <xsl:with-param name="LCID" select="$LCID"/>
  577.       </xsl:call-template>
  578.     </xsl:variable>
  579.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:ISO690/b:CitationShort/b:ML"/>
  580.   </xsl:template>
  581.  
  582.   
  583.   <xsl:template name="templ_prop_ISO690_CitationShort_FL" >
  584.     <xsl:param name="LCID" />
  585.     <xsl:variable name="_LCID">
  586.       <xsl:call-template name="localLCID">
  587.         <xsl:with-param name="LCID" select="$LCID"/>
  588.       </xsl:call-template>
  589.     </xsl:variable>
  590.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:ISO690/b:CitationShort/b:FL"/>
  591.   </xsl:template>
  592.  
  593.   
  594.   <xsl:template name="templ_str_OnlineCap" >
  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:OnlineCap"/>
  602.   </xsl:template>
  603.  
  604.   
  605.   <xsl:template name="templ_str_OnlineUnCap" >
  606.     <xsl:param name="LCID" />
  607.     <xsl:variable name="_LCID">
  608.       <xsl:call-template name="localLCID">
  609.         <xsl:with-param name="LCID" select="$LCID"/>
  610.       </xsl:call-template>
  611.     </xsl:variable>
  612.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:OnlineUnCap"/>
  613.   </xsl:template>
  614.  
  615.   
  616.   <xsl:template name="templ_str_FiledCap" >
  617.     <xsl:param name="LCID" />
  618.     <xsl:variable name="_LCID">
  619.       <xsl:call-template name="localLCID">
  620.         <xsl:with-param name="LCID" select="$LCID"/>
  621.       </xsl:call-template>
  622.     </xsl:variable>
  623.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:FiledCap"/>
  624.   </xsl:template>
  625.  
  626.   
  627.   <xsl:template name="templ_str_PatentFiledCap" >
  628.     <xsl:param name="LCID" />
  629.     <xsl:variable name="_LCID">
  630.       <xsl:call-template name="localLCID">
  631.         <xsl:with-param name="LCID" select="$LCID"/>
  632.       </xsl:call-template>
  633.     </xsl:variable>
  634.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:PatentFiledCap"/>
  635.   </xsl:template>
  636.  
  637.   
  638.   <xsl:template name="templ_str_InCap" >
  639.     <xsl:param name="LCID" />
  640.     <xsl:variable name="_LCID">
  641.       <xsl:call-template name="localLCID">
  642.         <xsl:with-param name="LCID" select="$LCID"/>
  643.       </xsl:call-template>
  644.     </xsl:variable>
  645.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:InCap"/>
  646.   </xsl:template>
  647.  
  648.   
  649.   <xsl:template name="templ_str_OnAlbumTitleCap" >
  650.     <xsl:param name="LCID" />
  651.     <xsl:variable name="_LCID">
  652.       <xsl:call-template name="localLCID">
  653.         <xsl:with-param name="LCID" select="$LCID"/>
  654.       </xsl:call-template>
  655.     </xsl:variable>
  656.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:OnAlbumTitleCap"/>
  657.   </xsl:template>
  658.  
  659.  
  660.   
  661.   <xsl:template name="templ_str_InNameCap" >
  662.     <xsl:param name="LCID" />
  663.     <xsl:variable name="_LCID">
  664.       <xsl:call-template name="localLCID">
  665.         <xsl:with-param name="LCID" select="$LCID"/>
  666.       </xsl:call-template>
  667.     </xsl:variable>
  668.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:InNameCap"/>
  669.   </xsl:template>
  670.  
  671.   
  672.   <xsl:template name="templ_str_WithUnCap" >
  673.     <xsl:param name="LCID" />
  674.     <xsl:variable name="_LCID">
  675.       <xsl:call-template name="localLCID">
  676.         <xsl:with-param name="LCID" select="$LCID"/>
  677.       </xsl:call-template>
  678.     </xsl:variable>
  679.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:WithUnCap"/>
  680.   </xsl:template>
  681.  
  682.   
  683.   <xsl:template name="templ_str_VersionShortCap" >
  684.     <xsl:param name="LCID" />
  685.     <xsl:variable name="_LCID">
  686.       <xsl:call-template name="localLCID">
  687.         <xsl:with-param name="LCID" select="$LCID"/>
  688.       </xsl:call-template>
  689.     </xsl:variable>
  690.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:VersionShortCap"/>
  691.   </xsl:template>
  692.  
  693.   
  694.   <xsl:template name="templ_str_InterviewCap" >
  695.     <xsl:param name="LCID" />
  696.     <xsl:variable name="_LCID">
  697.       <xsl:call-template name="localLCID">
  698.         <xsl:with-param name="LCID" select="$LCID"/>
  699.       </xsl:call-template>
  700.     </xsl:variable>
  701.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:InterviewCap"/>
  702.   </xsl:template>
  703.  
  704.   
  705.   <xsl:template name="templ_str_InterviewWithCap" >
  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:InterviewWithCap"/>
  713.   </xsl:template>
  714.  
  715.   
  716.   <xsl:template name="templ_str_InterviewByCap" >
  717.     <xsl:param name="LCID" />
  718.     <xsl:variable name="_LCID">
  719.       <xsl:call-template name="localLCID">
  720.         <xsl:with-param name="LCID" select="$LCID"/>
  721.       </xsl:call-template>
  722.     </xsl:variable>
  723.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:InterviewByCap"/>
  724.   </xsl:template>
  725.  
  726.   
  727.   <xsl:template name="templ_str_ByCap" >
  728.     <xsl:param name="LCID" />
  729.     <xsl:variable name="_LCID">
  730.       <xsl:call-template name="localLCID">
  731.         <xsl:with-param name="LCID" select="$LCID"/>
  732.       </xsl:call-template>
  733.     </xsl:variable>
  734.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:ByCap"/>
  735.   </xsl:template>
  736.  
  737.   
  738.   <xsl:template name="templ_str_AndUnCap" >
  739.     <xsl:param name="LCID" />
  740.     <xsl:variable name="_LCID">
  741.       <xsl:call-template name="localLCID">
  742.         <xsl:with-param name="LCID" select="$LCID"/>
  743.       </xsl:call-template>
  744.     </xsl:variable>
  745.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:AndUnCap"/>
  746.   </xsl:template>
  747.  
  748.   
  749.   <xsl:template name="templ_str_AndOthersUnCap" >
  750.     <xsl:param name="LCID" />
  751.     <xsl:variable name="_LCID">
  752.       <xsl:call-template name="localLCID">
  753.         <xsl:with-param name="LCID" select="$LCID"/>
  754.       </xsl:call-template>
  755.     </xsl:variable>
  756.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:AndOthersUnCap"/>
  757.   </xsl:template>
  758.  
  759.   
  760.   <xsl:template name="templ_str_MotionPictureCap" >
  761.     <xsl:param name="LCID" />
  762.     <xsl:variable name="_LCID">
  763.       <xsl:call-template name="localLCID">
  764.         <xsl:with-param name="LCID" select="$LCID"/>
  765.       </xsl:call-template>
  766.     </xsl:variable>
  767.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:MotionPictureCap"/>
  768.   </xsl:template>
  769.  
  770.   
  771.   <xsl:template name="templ_str_PatentCap" >
  772.     <xsl:param name="LCID" />
  773.     <xsl:variable name="_LCID">
  774.       <xsl:call-template name="localLCID">
  775.         <xsl:with-param name="LCID" select="$LCID"/>
  776.       </xsl:call-template>
  777.     </xsl:variable>
  778.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:PatentCap"/>
  779.   </xsl:template>
  780.  
  781.   
  782.   <xsl:template name="templ_str_EditionShortUnCap" >
  783.     <xsl:param name="LCID" />
  784.     <xsl:variable name="_LCID">
  785.       <xsl:call-template name="localLCID">
  786.         <xsl:with-param name="LCID" select="$LCID"/>
  787.       </xsl:call-template>
  788.     </xsl:variable>
  789.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:EditionShortUnCap"/>
  790.   </xsl:template>
  791.  
  792.   
  793.   <xsl:template name="templ_str_EditionUnCap" >
  794.     <xsl:param name="LCID" />
  795.     <xsl:variable name="_LCID">
  796.       <xsl:call-template name="localLCID">
  797.         <xsl:with-param name="LCID" select="$LCID"/>
  798.       </xsl:call-template>
  799.     </xsl:variable>
  800.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:EditionUnCap"/>
  801.   </xsl:template>
  802.  
  803.   
  804.   <xsl:template name="templ_str_RetrievedFromCap" >
  805.     <xsl:param name="LCID" />
  806.     <xsl:variable name="_LCID">
  807.       <xsl:call-template name="localLCID">
  808.         <xsl:with-param name="LCID" select="$LCID"/>
  809.       </xsl:call-template>
  810.     </xsl:variable>
  811.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:RetrievedFromCap"/>
  812.   </xsl:template>
  813.  
  814.   
  815.   <xsl:template name="templ_str_RetrievedCap" >
  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:RetrievedCap"/>
  823.   </xsl:template>
  824.  
  825.   
  826.   <xsl:template name="templ_str_FromCap" >
  827.     <xsl:param name="LCID" />
  828.     <xsl:variable name="_LCID">
  829.       <xsl:call-template name="localLCID">
  830.         <xsl:with-param name="LCID" select="$LCID"/>
  831.       </xsl:call-template>
  832.     </xsl:variable>
  833.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:FromCap"/>
  834.   </xsl:template>
  835.  
  836.   
  837.   <xsl:template name="templ_str_FromUnCap" >
  838.     <xsl:param name="LCID" />
  839.     <xsl:variable name="_LCID">
  840.       <xsl:call-template name="localLCID">
  841.         <xsl:with-param name="LCID" select="$LCID"/>
  842.       </xsl:call-template>
  843.     </xsl:variable>
  844.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:FromUnCap"/>
  845.   </xsl:template>
  846.  
  847.   
  848.   <xsl:template name="templ_str_NoDateShortUnCap" >
  849.     <xsl:param name="LCID" />
  850.     <xsl:variable name="_LCID">
  851.       <xsl:call-template name="localLCID">
  852.         <xsl:with-param name="LCID" select="$LCID"/>
  853.       </xsl:call-template>
  854.     </xsl:variable>
  855.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:NoDateShortUnCap"/>
  856.   </xsl:template>
  857.  
  858.   
  859.   <xsl:template name="templ_str_NumberShortCap" >
  860.     <xsl:param name="LCID" />
  861.     <xsl:variable name="_LCID">
  862.       <xsl:call-template name="localLCID">
  863.         <xsl:with-param name="LCID" select="$LCID"/>
  864.       </xsl:call-template>
  865.     </xsl:variable>
  866.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:NumberShortCap"/>
  867.   </xsl:template>
  868.  
  869.   
  870.   <xsl:template name="templ_str_NumberShortUnCap" >
  871.     <xsl:param name="LCID" />
  872.     <xsl:variable name="_LCID">
  873.       <xsl:call-template name="localLCID">
  874.         <xsl:with-param name="LCID" select="$LCID"/>
  875.       </xsl:call-template>
  876.     </xsl:variable>
  877.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:NumberShortUnCap"/>
  878.   </xsl:template>
  879.  
  880.   
  881.   <xsl:template name="templ_str_PatentNumberShortCap" >
  882.     <xsl:param name="LCID" />
  883.     <xsl:variable name="_LCID">
  884.       <xsl:call-template name="localLCID">
  885.         <xsl:with-param name="LCID" select="$LCID"/>
  886.       </xsl:call-template>
  887.     </xsl:variable>
  888.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:PatentNumberShortCap"/>
  889.   </xsl:template>
  890.  
  891.   
  892.   <xsl:template name="templ_str_PagesCountinousShort" >
  893.     <xsl:param name="LCID" />
  894.     <xsl:variable name="_LCID">
  895.       <xsl:call-template name="localLCID">
  896.         <xsl:with-param name="LCID" select="$LCID"/>
  897.       </xsl:call-template>
  898.     </xsl:variable>
  899.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:PagesCountinousShort"/>
  900.   </xsl:template>
  901.  
  902.   
  903.   <xsl:template name="templ_str_PageShort" >
  904.     <xsl:param name="LCID" />
  905.     <xsl:variable name="_LCID">
  906.       <xsl:call-template name="localLCID">
  907.         <xsl:with-param name="LCID" select="$LCID"/>
  908.       </xsl:call-template>
  909.     </xsl:variable>
  910.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:PageShort"/>
  911.   </xsl:template>
  912.  
  913.   
  914.   <xsl:template name="templ_str_SineNomineShort" >
  915.     <xsl:param name="LCID" />
  916.     <xsl:variable name="_LCID">
  917.       <xsl:call-template name="localLCID">
  918.         <xsl:with-param name="LCID" select="$LCID"/>
  919.       </xsl:call-template>
  920.     </xsl:variable>
  921.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:SineNomineShort"/>
  922.   </xsl:template>
  923.  
  924.   
  925.   <xsl:template name="templ_str_SineLocoShort" >
  926.     <xsl:param name="LCID" />
  927.     <xsl:variable name="_LCID">
  928.       <xsl:call-template name="localLCID">
  929.         <xsl:with-param name="LCID" select="$LCID"/>
  930.       </xsl:call-template>
  931.     </xsl:variable>
  932.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:SineLocoShort"/>
  933.   </xsl:template>
  934.  
  935.   
  936.   <xsl:template name="templ_str_SineLocoSineNomineShort" >
  937.     <xsl:param name="LCID" />
  938.     <xsl:variable name="_LCID">
  939.       <xsl:call-template name="localLCID">
  940.         <xsl:with-param name="LCID" select="$LCID"/>
  941.       </xsl:call-template>
  942.     </xsl:variable>
  943.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:SineLocoSineNomineShort"/>
  944.   </xsl:template>
  945.  
  946.   
  947.   <xsl:template name="templ_str_VolumeOfShortCap" >
  948.     <xsl:param name="LCID" />
  949.     <xsl:variable name="_LCID">
  950.       <xsl:call-template name="localLCID">
  951.         <xsl:with-param name="LCID" select="$LCID"/>
  952.       </xsl:call-template>
  953.     </xsl:variable>
  954.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:VolumeOfShortCap"/>
  955.   </xsl:template>
  956.  
  957.   
  958.   <xsl:template name="templ_str_VolumesOfShortCap" >
  959.     <xsl:param name="LCID" />
  960.     <xsl:variable name="_LCID">
  961.       <xsl:call-template name="localLCID">
  962.         <xsl:with-param name="LCID" select="$LCID"/>
  963.       </xsl:call-template>
  964.     </xsl:variable>
  965.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:VolumesOfShortCap"/>
  966.   </xsl:template>
  967.  
  968.   
  969.   <xsl:template name="templ_str_VolumeShortCap" >
  970.     <xsl:param name="LCID" />
  971.     <xsl:variable name="_LCID">
  972.       <xsl:call-template name="localLCID">
  973.         <xsl:with-param name="LCID" select="$LCID"/>
  974.       </xsl:call-template>
  975.     </xsl:variable>
  976.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:VolumeShortCap"/>
  977.   </xsl:template>
  978.  
  979.   
  980.   <xsl:template name="templ_str_VolumeShortUnCap" >
  981.     <xsl:param name="LCID" />
  982.     <xsl:variable name="_LCID">
  983.       <xsl:call-template name="localLCID">
  984.         <xsl:with-param name="LCID" select="$LCID"/>
  985.       </xsl:call-template>
  986.     </xsl:variable>
  987.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:VolumeShortUnCap"/>
  988.   </xsl:template>
  989.  
  990.   
  991.   <xsl:template name="templ_str_VolumesShortUnCap" >
  992.     <xsl:param name="LCID" />
  993.     <xsl:variable name="_LCID">
  994.       <xsl:call-template name="localLCID">
  995.         <xsl:with-param name="LCID" select="$LCID"/>
  996.       </xsl:call-template>
  997.     </xsl:variable>
  998.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:VolumesShortUnCap"/>
  999.   </xsl:template>
  1000.  
  1001.   
  1002.   <xsl:template name="templ_str_VolumesShortCap" >
  1003.     <xsl:param name="LCID" />
  1004.     <xsl:variable name="_LCID">
  1005.       <xsl:call-template name="localLCID">
  1006.         <xsl:with-param name="LCID" select="$LCID"/>
  1007.       </xsl:call-template>
  1008.     </xsl:variable>
  1009.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:VolumesShortCap"/>
  1010.   </xsl:template>
  1011.  
  1012.   
  1013.   <xsl:template name="templ_str_VolumeCap" >
  1014.     <xsl:param name="LCID" />
  1015.     <xsl:variable name="_LCID">
  1016.       <xsl:call-template name="localLCID">
  1017.         <xsl:with-param name="LCID" select="$LCID"/>
  1018.       </xsl:call-template>
  1019.     </xsl:variable>
  1020.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:VolumeCap"/>
  1021.   </xsl:template>
  1022.  
  1023.   
  1024.   <xsl:template name="templ_str_AuthorShortUnCap" >
  1025.     <xsl:param name="LCID" />
  1026.     <xsl:variable name="_LCID">
  1027.       <xsl:call-template name="localLCID">
  1028.         <xsl:with-param name="LCID" select="$LCID"/>
  1029.       </xsl:call-template>
  1030.     </xsl:variable>
  1031.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:AuthorShortUnCap"/>
  1032.   </xsl:template>
  1033.  
  1034.   
  1035.   <xsl:template name="templ_str_BookAuthorShortUnCap" >
  1036.     <xsl:param name="LCID" />
  1037.     <xsl:variable name="_LCID">
  1038.       <xsl:call-template name="localLCID">
  1039.         <xsl:with-param name="LCID" select="$LCID"/>
  1040.       </xsl:call-template>
  1041.     </xsl:variable>
  1042.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:BookAuthorShortUnCap"/>
  1043.   </xsl:template>
  1044.  
  1045.   
  1046.   <xsl:template name="templ_str_ArtistShortUnCap" >
  1047.     <xsl:param name="LCID" />
  1048.     <xsl:variable name="_LCID">
  1049.       <xsl:call-template name="localLCID">
  1050.         <xsl:with-param name="LCID" select="$LCID"/>
  1051.       </xsl:call-template>
  1052.     </xsl:variable>
  1053.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:ArtistShortUnCap"/>
  1054.   </xsl:template>
  1055.  
  1056.   
  1057.   <xsl:template name="templ_str_WriterCap" >
  1058.     <xsl:param name="LCID" />
  1059.     <xsl:variable name="_LCID">
  1060.       <xsl:call-template name="localLCID">
  1061.         <xsl:with-param name="LCID" select="$LCID"/>
  1062.       </xsl:call-template>
  1063.     </xsl:variable>
  1064.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:WriterCap"/>
  1065.   </xsl:template>
  1066.  
  1067.   
  1068.   <xsl:template name="templ_str_WritersCap" >
  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:WritersCap"/>
  1076.   </xsl:template>
  1077.  
  1078.   
  1079.   <xsl:template name="templ_str_WriterShortUnCap" >
  1080.     <xsl:param name="LCID" />
  1081.     <xsl:variable name="_LCID">
  1082.       <xsl:call-template name="localLCID">
  1083.         <xsl:with-param name="LCID" select="$LCID"/>
  1084.       </xsl:call-template>
  1085.     </xsl:variable>
  1086.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:WriterShortUnCap"/>
  1087.   </xsl:template>
  1088.  
  1089.   
  1090.   <xsl:template name="templ_str_ConductedByCap" >
  1091.     <xsl:param name="LCID" />
  1092.     <xsl:variable name="_LCID">
  1093.       <xsl:call-template name="localLCID">
  1094.         <xsl:with-param name="LCID" select="$LCID"/>
  1095.       </xsl:call-template>
  1096.     </xsl:variable>
  1097.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:ConductedByCap"/>
  1098.   </xsl:template>
  1099.  
  1100.   
  1101.   <xsl:template name="templ_str_ConductedByUnCap" >
  1102.     <xsl:param name="LCID" />
  1103.     <xsl:variable name="_LCID">
  1104.       <xsl:call-template name="localLCID">
  1105.         <xsl:with-param name="LCID" select="$LCID"/>
  1106.       </xsl:call-template>
  1107.     </xsl:variable>
  1108.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:ConductedByUnCap"/>
  1109.   </xsl:template>
  1110.  
  1111.   
  1112.   <xsl:template name="templ_str_ConductorCap" >
  1113.     <xsl:param name="LCID" />
  1114.     <xsl:variable name="_LCID">
  1115.       <xsl:call-template name="localLCID">
  1116.         <xsl:with-param name="LCID" select="$LCID"/>
  1117.       </xsl:call-template>
  1118.     </xsl:variable>
  1119.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:ConductorCap"/>
  1120.   </xsl:template>
  1121.  
  1122.   
  1123.   <xsl:template name="templ_str_ConductorsCap" >
  1124.     <xsl:param name="LCID" />
  1125.     <xsl:variable name="_LCID">
  1126.       <xsl:call-template name="localLCID">
  1127.         <xsl:with-param name="LCID" select="$LCID"/>
  1128.       </xsl:call-template>
  1129.     </xsl:variable>
  1130.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:ConductorsCap"/>
  1131.   </xsl:template>
  1132.  
  1133.   
  1134.   <xsl:template name="templ_str_ConductorShortCap" >
  1135.     <xsl:param name="LCID" />
  1136.     <xsl:variable name="_LCID">
  1137.       <xsl:call-template name="localLCID">
  1138.         <xsl:with-param name="LCID" select="$LCID"/>
  1139.       </xsl:call-template>
  1140.     </xsl:variable>
  1141.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:ConductorShortCap"/>
  1142.   </xsl:template>
  1143.  
  1144.   
  1145.   <xsl:template name="templ_str_ConductorShortUnCap" >
  1146.     <xsl:param name="LCID" />
  1147.     <xsl:variable name="_LCID">
  1148.       <xsl:call-template name="localLCID">
  1149.         <xsl:with-param name="LCID" select="$LCID"/>
  1150.       </xsl:call-template>
  1151.     </xsl:variable>
  1152.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:ConductorShortUnCap"/>
  1153.   </xsl:template>
  1154.  
  1155.   
  1156.   <xsl:template name="templ_str_ConductorsShortCap" >
  1157.     <xsl:param name="LCID" />
  1158.     <xsl:variable name="_LCID">
  1159.       <xsl:call-template name="localLCID">
  1160.         <xsl:with-param name="LCID" select="$LCID"/>
  1161.       </xsl:call-template>
  1162.     </xsl:variable>
  1163.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:ConductorsShortCap"/>
  1164.   </xsl:template>
  1165.  
  1166.   
  1167.   <xsl:template name="templ_str_ConductorsShortUnCap" >
  1168.     <xsl:param name="LCID" />
  1169.     <xsl:variable name="_LCID">
  1170.       <xsl:call-template name="localLCID">
  1171.         <xsl:with-param name="LCID" select="$LCID"/>
  1172.       </xsl:call-template>
  1173.     </xsl:variable>
  1174.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:ConductorsShortUnCap"/>
  1175.   </xsl:template>
  1176.  
  1177.   
  1178.   <xsl:template name="templ_str_CounselShortUnCapIso" >
  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:CounselShortUnCapIso"/>
  1186.   </xsl:template>
  1187.  
  1188.   
  1189.   <xsl:template name="templ_str_CounselShortUnCap" >
  1190.     <xsl:param name="LCID" />
  1191.     <xsl:variable name="_LCID">
  1192.       <xsl:call-template name="localLCID">
  1193.         <xsl:with-param name="LCID" select="$LCID"/>
  1194.       </xsl:call-template>
  1195.     </xsl:variable>
  1196.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:CounselShortUnCap"/>
  1197.   </xsl:template>
  1198.  
  1199.   
  1200.   <xsl:template name="templ_str_DirectedByCap" >
  1201.     <xsl:param name="LCID" />
  1202.     <xsl:variable name="_LCID">
  1203.       <xsl:call-template name="localLCID">
  1204.         <xsl:with-param name="LCID" select="$LCID"/>
  1205.       </xsl:call-template>
  1206.     </xsl:variable>
  1207.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:DirectedByCap"/>
  1208.   </xsl:template>
  1209.  
  1210.   
  1211.   <xsl:template name="templ_str_DirectedByUnCap" >
  1212.     <xsl:param name="LCID" />
  1213.     <xsl:variable name="_LCID">
  1214.       <xsl:call-template name="localLCID">
  1215.         <xsl:with-param name="LCID" select="$LCID"/>
  1216.       </xsl:call-template>
  1217.     </xsl:variable>
  1218.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:DirectedByUnCap"/>
  1219.   </xsl:template>
  1220.  
  1221.   
  1222.   <xsl:template name="templ_str_DirectorCap" >
  1223.     <xsl:param name="LCID" />
  1224.     <xsl:variable name="_LCID">
  1225.       <xsl:call-template name="localLCID">
  1226.         <xsl:with-param name="LCID" select="$LCID"/>
  1227.       </xsl:call-template>
  1228.     </xsl:variable>
  1229.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:DirectorCap"/>
  1230.   </xsl:template>
  1231.  
  1232.   
  1233.   <xsl:template name="templ_str_DirectorsCap" >
  1234.     <xsl:param name="LCID" />
  1235.     <xsl:variable name="_LCID">
  1236.       <xsl:call-template name="localLCID">
  1237.         <xsl:with-param name="LCID" select="$LCID"/>
  1238.       </xsl:call-template>
  1239.     </xsl:variable>
  1240.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:DirectorsCap"/>
  1241.   </xsl:template>
  1242.  
  1243.   
  1244.   <xsl:template name="templ_str_DirectorShortCap" >
  1245.     <xsl:param name="LCID" />
  1246.     <xsl:variable name="_LCID">
  1247.       <xsl:call-template name="localLCID">
  1248.         <xsl:with-param name="LCID" select="$LCID"/>
  1249.       </xsl:call-template>
  1250.     </xsl:variable>
  1251.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:DirectorShortCap"/>
  1252.   </xsl:template>
  1253.  
  1254.   
  1255.   <xsl:template name="templ_str_DirectorShortUnCap" >
  1256.     <xsl:param name="LCID" />
  1257.     <xsl:variable name="_LCID">
  1258.       <xsl:call-template name="localLCID">
  1259.         <xsl:with-param name="LCID" select="$LCID"/>
  1260.       </xsl:call-template>
  1261.     </xsl:variable>
  1262.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:DirectorShortUnCap"/>
  1263.   </xsl:template>
  1264.  
  1265.   
  1266.   <xsl:template name="templ_str_DirectorsShortCap" >
  1267.     <xsl:param name="LCID" />
  1268.     <xsl:variable name="_LCID">
  1269.       <xsl:call-template name="localLCID">
  1270.         <xsl:with-param name="LCID" select="$LCID"/>
  1271.       </xsl:call-template>
  1272.     </xsl:variable>
  1273.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:DirectorsShortCap"/>
  1274.   </xsl:template>
  1275.  
  1276.   
  1277.   <xsl:template name="templ_str_DirectorsShortUnCap" >
  1278.     <xsl:param name="LCID" />
  1279.     <xsl:variable name="_LCID">
  1280.       <xsl:call-template name="localLCID">
  1281.         <xsl:with-param name="LCID" select="$LCID"/>
  1282.       </xsl:call-template>
  1283.     </xsl:variable>
  1284.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:DirectorsShortUnCap"/>
  1285.   </xsl:template>
  1286.  
  1287.   
  1288.   <xsl:template name="templ_str_EditedByCap" >
  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:EditedByCap"/>
  1296.   </xsl:template>
  1297.  
  1298.   
  1299.   <xsl:template name="templ_str_EditedByUnCap" >
  1300.     <xsl:param name="LCID" />
  1301.     <xsl:variable name="_LCID">
  1302.       <xsl:call-template name="localLCID">
  1303.         <xsl:with-param name="LCID" select="$LCID"/>
  1304.       </xsl:call-template>
  1305.     </xsl:variable>
  1306.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:EditedByUnCap"/>
  1307.   </xsl:template>
  1308.  
  1309.   
  1310.   <xsl:template name="templ_str_EditorCap" >
  1311.     <xsl:param name="LCID" />
  1312.     <xsl:variable name="_LCID">
  1313.       <xsl:call-template name="localLCID">
  1314.         <xsl:with-param name="LCID" select="$LCID"/>
  1315.       </xsl:call-template>
  1316.     </xsl:variable>
  1317.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:EditorCap"/>
  1318.   </xsl:template>
  1319.  
  1320.   
  1321.   <xsl:template name="templ_str_EditorsCap" >
  1322.     <xsl:param name="LCID" />
  1323.     <xsl:variable name="_LCID">
  1324.       <xsl:call-template name="localLCID">
  1325.         <xsl:with-param name="LCID" select="$LCID"/>
  1326.       </xsl:call-template>
  1327.     </xsl:variable>
  1328.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:EditorsCap"/>
  1329.   </xsl:template>
  1330.  
  1331.   
  1332.   <xsl:template name="templ_str_EditorShortCap" >
  1333.     <xsl:param name="LCID" />
  1334.     <xsl:variable name="_LCID">
  1335.       <xsl:call-template name="localLCID">
  1336.         <xsl:with-param name="LCID" select="$LCID"/>
  1337.       </xsl:call-template>
  1338.     </xsl:variable>
  1339.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:EditorShortCap"/>
  1340.   </xsl:template>
  1341.  
  1342.   
  1343.   <xsl:template name="templ_str_EditorShortUnCap" >
  1344.     <xsl:param name="LCID" />
  1345.     <xsl:variable name="_LCID">
  1346.       <xsl:call-template name="localLCID">
  1347.         <xsl:with-param name="LCID" select="$LCID"/>
  1348.       </xsl:call-template>
  1349.     </xsl:variable>
  1350.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:EditorShortUnCap"/>
  1351.   </xsl:template>
  1352.  
  1353.   
  1354.   <xsl:template name="templ_str_EditorsShortCap" >
  1355.     <xsl:param name="LCID" />
  1356.     <xsl:variable name="_LCID">
  1357.       <xsl:call-template name="localLCID">
  1358.         <xsl:with-param name="LCID" select="$LCID"/>
  1359.       </xsl:call-template>
  1360.     </xsl:variable>
  1361.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:EditorsShortCap"/>
  1362.   </xsl:template>
  1363.  
  1364.   
  1365.   <xsl:template name="templ_str_EditorsShortUnCap" >
  1366.     <xsl:param name="LCID" />
  1367.     <xsl:variable name="_LCID">
  1368.       <xsl:call-template name="localLCID">
  1369.         <xsl:with-param name="LCID" select="$LCID"/>
  1370.       </xsl:call-template>
  1371.     </xsl:variable>
  1372.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:EditorsShortUnCap"/>
  1373.   </xsl:template>
  1374.  
  1375.   
  1376.   <xsl:template name="templ_str_IntervieweeShortUnCap" >
  1377.     <xsl:param name="LCID" />
  1378.     <xsl:variable name="_LCID">
  1379.       <xsl:call-template name="localLCID">
  1380.         <xsl:with-param name="LCID" select="$LCID"/>
  1381.       </xsl:call-template>
  1382.     </xsl:variable>
  1383.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:IntervieweeShortUnCap"/>
  1384.   </xsl:template>
  1385.  
  1386.   
  1387.   <xsl:template name="templ_str_InterviewerCap" >
  1388.     <xsl:param name="LCID" />
  1389.     <xsl:variable name="_LCID">
  1390.       <xsl:call-template name="localLCID">
  1391.         <xsl:with-param name="LCID" select="$LCID"/>
  1392.       </xsl:call-template>
  1393.     </xsl:variable>
  1394.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:InterviewerCap"/>
  1395.   </xsl:template>
  1396.  
  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.   
  1409.   <xsl:template name="templ_str_InventorShortUnCap" >
  1410.     <xsl:param name="LCID" />
  1411.     <xsl:variable name="_LCID">
  1412.       <xsl:call-template name="localLCID">
  1413.         <xsl:with-param name="LCID" select="$LCID"/>
  1414.       </xsl:call-template>
  1415.     </xsl:variable>
  1416.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:InventorShortUnCap"/>
  1417.   </xsl:template>
  1418.  
  1419.   
  1420.   <xsl:template name="templ_str_PerformedByCap" >
  1421.     <xsl:param name="LCID" />
  1422.     <xsl:variable name="_LCID">
  1423.       <xsl:call-template name="localLCID">
  1424.         <xsl:with-param name="LCID" select="$LCID"/>
  1425.       </xsl:call-template>
  1426.     </xsl:variable>
  1427.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:PerformedByCap"/>
  1428.   </xsl:template>
  1429.  
  1430.   
  1431.   <xsl:template name="templ_str_PerformedByUnCap" >
  1432.     <xsl:param name="LCID" />
  1433.     <xsl:variable name="_LCID">
  1434.       <xsl:call-template name="localLCID">
  1435.         <xsl:with-param name="LCID" select="$LCID"/>
  1436.       </xsl:call-template>
  1437.     </xsl:variable>
  1438.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:PerformedByUnCap"/>
  1439.   </xsl:template>
  1440.  
  1441.   
  1442.   <xsl:template name="templ_str_PerformerCap" >
  1443.     <xsl:param name="LCID" />
  1444.     <xsl:variable name="_LCID">
  1445.       <xsl:call-template name="localLCID">
  1446.         <xsl:with-param name="LCID" select="$LCID"/>
  1447.       </xsl:call-template>
  1448.     </xsl:variable>
  1449.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:PerformerCap"/>
  1450.   </xsl:template>
  1451.  
  1452.   
  1453.   <xsl:template name="templ_str_PerformersCap" >
  1454.     <xsl:param name="LCID" />
  1455.     <xsl:variable name="_LCID">
  1456.       <xsl:call-template name="localLCID">
  1457.         <xsl:with-param name="LCID" select="$LCID"/>
  1458.       </xsl:call-template>
  1459.     </xsl:variable>
  1460.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:PerformersCap"/>
  1461.   </xsl:template>
  1462.  
  1463.   
  1464.   <xsl:template name="templ_str_PerformerShortCap" >
  1465.     <xsl:param name="LCID" />
  1466.     <xsl:variable name="_LCID">
  1467.       <xsl:call-template name="localLCID">
  1468.         <xsl:with-param name="LCID" select="$LCID"/>
  1469.       </xsl:call-template>
  1470.     </xsl:variable>
  1471.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:PerformerShortCap"/>
  1472.   </xsl:template>
  1473.  
  1474.   
  1475.   <xsl:template name="templ_str_PerformerShortUnCap" >
  1476.     <xsl:param name="LCID" />
  1477.     <xsl:variable name="_LCID">
  1478.       <xsl:call-template name="localLCID">
  1479.         <xsl:with-param name="LCID" select="$LCID"/>
  1480.       </xsl:call-template>
  1481.     </xsl:variable>
  1482.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:PerformerShortUnCap"/>
  1483.   </xsl:template>
  1484.  
  1485.   
  1486.   <xsl:template name="templ_str_PerformersShortCap" >
  1487.     <xsl:param name="LCID" />
  1488.     <xsl:variable name="_LCID">
  1489.       <xsl:call-template name="localLCID">
  1490.         <xsl:with-param name="LCID" select="$LCID"/>
  1491.       </xsl:call-template>
  1492.     </xsl:variable>
  1493.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:PerformersShortCap"/>
  1494.   </xsl:template>
  1495.  
  1496.   
  1497.   <xsl:template name="templ_str_PerformersShortUnCap" >
  1498.     <xsl:param name="LCID" />
  1499.     <xsl:variable name="_LCID">
  1500.       <xsl:call-template name="localLCID">
  1501.         <xsl:with-param name="LCID" select="$LCID"/>
  1502.       </xsl:call-template>
  1503.     </xsl:variable>
  1504.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:PerformersShortUnCap"/>
  1505.   </xsl:template>
  1506.  
  1507.   
  1508.   <xsl:template name="templ_str_ProducedByCap" >
  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:ProducedByCap"/>
  1516.   </xsl:template>
  1517.  
  1518.   
  1519.   <xsl:template name="templ_str_ProducedByUnCap" >
  1520.     <xsl:param name="LCID" />
  1521.     <xsl:variable name="_LCID">
  1522.       <xsl:call-template name="localLCID">
  1523.         <xsl:with-param name="LCID" select="$LCID"/>
  1524.       </xsl:call-template>
  1525.     </xsl:variable>
  1526.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:ProducedByUnCap"/>
  1527.   </xsl:template>
  1528.  
  1529.   
  1530.   <xsl:template name="templ_str_ProducerCap" >
  1531.     <xsl:param name="LCID" />
  1532.     <xsl:variable name="_LCID">
  1533.       <xsl:call-template name="localLCID">
  1534.         <xsl:with-param name="LCID" select="$LCID"/>
  1535.       </xsl:call-template>
  1536.     </xsl:variable>
  1537.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:ProducerCap"/>
  1538.   </xsl:template>
  1539.  
  1540.   
  1541.   <xsl:template name="templ_str_ProducersCap" >
  1542.     <xsl:param name="LCID" />
  1543.     <xsl:variable name="_LCID">
  1544.       <xsl:call-template name="localLCID">
  1545.         <xsl:with-param name="LCID" select="$LCID"/>
  1546.       </xsl:call-template>
  1547.     </xsl:variable>
  1548.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:ProducersCap"/>
  1549.   </xsl:template>
  1550.  
  1551.   
  1552.   <xsl:template name="templ_str_ProductionCompanyShortCap" >
  1553.     <xsl:param name="LCID" />
  1554.     <xsl:variable name="_LCID">
  1555.       <xsl:call-template name="localLCID">
  1556.         <xsl:with-param name="LCID" select="$LCID"/>
  1557.       </xsl:call-template>
  1558.     </xsl:variable>
  1559.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:ProductionCompanyShortCap"/>
  1560.   </xsl:template>
  1561.  
  1562.   
  1563.   <xsl:template name="templ_str_ProducerShortCap" >
  1564.     <xsl:param name="LCID" />
  1565.     <xsl:variable name="_LCID">
  1566.       <xsl:call-template name="localLCID">
  1567.         <xsl:with-param name="LCID" select="$LCID"/>
  1568.       </xsl:call-template>
  1569.     </xsl:variable>
  1570.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:ProducerShortCap"/>
  1571.   </xsl:template>
  1572.  
  1573.   
  1574.   <xsl:template name="templ_str_ProducersShortCap" >
  1575.     <xsl:param name="LCID" />
  1576.     <xsl:variable name="_LCID">
  1577.       <xsl:call-template name="localLCID">
  1578.         <xsl:with-param name="LCID" select="$LCID"/>
  1579.       </xsl:call-template>
  1580.     </xsl:variable>
  1581.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:ProducersShortCap"/>
  1582.   </xsl:template>
  1583.  
  1584.   
  1585.   <xsl:template name="templ_str_ProducerShortUnCap" >
  1586.     <xsl:param name="LCID" />
  1587.     <xsl:variable name="_LCID">
  1588.       <xsl:call-template name="localLCID">
  1589.         <xsl:with-param name="LCID" select="$LCID"/>
  1590.       </xsl:call-template>
  1591.     </xsl:variable>
  1592.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:ProducerShortUnCap"/>
  1593.   </xsl:template>
  1594.  
  1595.   
  1596.   <xsl:template name="templ_str_TranslatedByCap" >
  1597.     <xsl:param name="LCID" />
  1598.     <xsl:variable name="_LCID">
  1599.       <xsl:call-template name="localLCID">
  1600.         <xsl:with-param name="LCID" select="$LCID"/>
  1601.       </xsl:call-template>
  1602.     </xsl:variable>
  1603.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:TranslatedByCap"/>
  1604.   </xsl:template>
  1605.  
  1606.   
  1607.   <xsl:template name="templ_str_TranslatedByUnCap" >
  1608.     <xsl:param name="LCID" />
  1609.     <xsl:variable name="_LCID">
  1610.       <xsl:call-template name="localLCID">
  1611.         <xsl:with-param name="LCID" select="$LCID"/>
  1612.       </xsl:call-template>
  1613.     </xsl:variable>
  1614.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:TranslatedByUnCap"/>
  1615.   </xsl:template>
  1616.  
  1617.   
  1618.   <xsl:template name="templ_str_TranslatorCap" >
  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:TranslatorCap"/>
  1626.   </xsl:template>
  1627.  
  1628.   
  1629.   <xsl:template name="templ_str_TranslatorsCap" >
  1630.     <xsl:param name="LCID" />
  1631.     <xsl:variable name="_LCID">
  1632.       <xsl:call-template name="localLCID">
  1633.         <xsl:with-param name="LCID" select="$LCID"/>
  1634.       </xsl:call-template>
  1635.     </xsl:variable>
  1636.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:TranslatorsCap"/>
  1637.   </xsl:template>
  1638.  
  1639.   
  1640.   <xsl:template name="templ_str_TranslatorShortCap" >
  1641.     <xsl:param name="LCID" />
  1642.     <xsl:variable name="_LCID">
  1643.       <xsl:call-template name="localLCID">
  1644.         <xsl:with-param name="LCID" select="$LCID"/>
  1645.       </xsl:call-template>
  1646.     </xsl:variable>
  1647.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:TranslatorShortCap"/>
  1648.   </xsl:template>
  1649.  
  1650.   
  1651.   <xsl:template name="templ_str_TranslatorShortUnCap" >
  1652.     <xsl:param name="LCID" />
  1653.     <xsl:variable name="_LCID">
  1654.       <xsl:call-template name="localLCID">
  1655.         <xsl:with-param name="LCID" select="$LCID"/>
  1656.       </xsl:call-template>
  1657.     </xsl:variable>
  1658.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:TranslatorShortUnCap"/>
  1659.   </xsl:template>
  1660.  
  1661.   
  1662.   <xsl:template name="templ_str_TranslatorsShortCap" >
  1663.     <xsl:param name="LCID" />
  1664.     <xsl:variable name="_LCID">
  1665.       <xsl:call-template name="localLCID">
  1666.         <xsl:with-param name="LCID" select="$LCID"/>
  1667.       </xsl:call-template>
  1668.     </xsl:variable>
  1669.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:TranslatorsShortCap"/>
  1670.   </xsl:template>
  1671.  
  1672.   
  1673.   <xsl:template name="templ_str_TranslatorsShortUnCap" >
  1674.     <xsl:param name="LCID" />
  1675.     <xsl:variable name="_LCID">
  1676.       <xsl:call-template name="localLCID">
  1677.         <xsl:with-param name="LCID" select="$LCID"/>
  1678.       </xsl:call-template>
  1679.     </xsl:variable>
  1680.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:TranslatorsShortUnCap"/>
  1681.   </xsl:template>
  1682.  
  1683.   
  1684.   <xsl:template name="templ_str_ComposerCap" >
  1685.     <xsl:param name="LCID" />
  1686.     <xsl:variable name="_LCID">
  1687.       <xsl:call-template name="localLCID">
  1688.         <xsl:with-param name="LCID" select="$LCID"/>
  1689.       </xsl:call-template>
  1690.     </xsl:variable>
  1691.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:ComposerCap"/>
  1692.   </xsl:template>
  1693.  
  1694.   
  1695.   <xsl:template name="templ_str_ComposersCap" >
  1696.     <xsl:param name="LCID" />
  1697.     <xsl:variable name="_LCID">
  1698.       <xsl:call-template name="localLCID">
  1699.         <xsl:with-param name="LCID" select="$LCID"/>
  1700.       </xsl:call-template>
  1701.     </xsl:variable>
  1702.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:ComposersCap"/>
  1703.   </xsl:template>
  1704.  
  1705.   
  1706.   <xsl:template name="templ_str_ComposerShortCap" >
  1707.     <xsl:param name="LCID" />
  1708.     <xsl:variable name="_LCID">
  1709.       <xsl:call-template name="localLCID">
  1710.         <xsl:with-param name="LCID" select="$LCID"/>
  1711.       </xsl:call-template>
  1712.     </xsl:variable>
  1713.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:ComposerShortCap"/>
  1714.   </xsl:template>
  1715.  
  1716.   
  1717.   <xsl:template name="templ_str_ComposersShortCap" >
  1718.     <xsl:param name="LCID" />
  1719.     <xsl:variable name="_LCID">
  1720.       <xsl:call-template name="localLCID">
  1721.         <xsl:with-param name="LCID" select="$LCID"/>
  1722.       </xsl:call-template>
  1723.     </xsl:variable>
  1724.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:ComposersShortCap"/>
  1725.   </xsl:template>
  1726.  
  1727.   
  1728.   <xsl:template name="templ_str_ComposerShortUnCapIso" >
  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:ComposerShortUnCapIso"/>
  1736.   </xsl:template>
  1737.  
  1738.   
  1739.   <xsl:template name="templ_str_CompiledByCap" >
  1740.     <xsl:param name="LCID" />
  1741.     <xsl:variable name="_LCID">
  1742.       <xsl:call-template name="localLCID">
  1743.         <xsl:with-param name="LCID" select="$LCID"/>
  1744.       </xsl:call-template>
  1745.     </xsl:variable>
  1746.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:CompiledByCap"/>
  1747.   </xsl:template>
  1748.  
  1749.   
  1750.   <xsl:template name="templ_str_CompiledByUnCap" >
  1751.     <xsl:param name="LCID" />
  1752.     <xsl:variable name="_LCID">
  1753.       <xsl:call-template name="localLCID">
  1754.         <xsl:with-param name="LCID" select="$LCID"/>
  1755.       </xsl:call-template>
  1756.     </xsl:variable>
  1757.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:CompiledByUnCap"/>
  1758.   </xsl:template>
  1759.  
  1760.   
  1761.   <xsl:template name="templ_str_CompilerCap" >
  1762.     <xsl:param name="LCID" />
  1763.     <xsl:variable name="_LCID">
  1764.       <xsl:call-template name="localLCID">
  1765.         <xsl:with-param name="LCID" select="$LCID"/>
  1766.       </xsl:call-template>
  1767.     </xsl:variable>
  1768.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:CompilerCap"/>
  1769.   </xsl:template>
  1770.  
  1771.   
  1772.   <xsl:template name="templ_str_CompilersCap" >
  1773.     <xsl:param name="LCID" />
  1774.     <xsl:variable name="_LCID">
  1775.       <xsl:call-template name="localLCID">
  1776.         <xsl:with-param name="LCID" select="$LCID"/>
  1777.       </xsl:call-template>
  1778.     </xsl:variable>
  1779.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:CompilersCap"/>
  1780.   </xsl:template>
  1781.  
  1782.   
  1783.   <xsl:template name="templ_str_CompilerShortCap" >
  1784.     <xsl:param name="LCID" />
  1785.     <xsl:variable name="_LCID">
  1786.       <xsl:call-template name="localLCID">
  1787.         <xsl:with-param name="LCID" select="$LCID"/>
  1788.       </xsl:call-template>
  1789.     </xsl:variable>
  1790.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:CompilerShortCap"/>
  1791.   </xsl:template>
  1792.  
  1793.   
  1794.   <xsl:template name="templ_str_CompilerShortUnCap" >
  1795.     <xsl:param name="LCID" />
  1796.     <xsl:variable name="_LCID">
  1797.       <xsl:call-template name="localLCID">
  1798.         <xsl:with-param name="LCID" select="$LCID"/>
  1799.       </xsl:call-template>
  1800.     </xsl:variable>
  1801.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:CompilerShortUnCap"/>
  1802.   </xsl:template>
  1803.  
  1804.   
  1805.   <xsl:template name="templ_str_CompilersShortCap" >
  1806.     <xsl:param name="LCID" />
  1807.     <xsl:variable name="_LCID">
  1808.       <xsl:call-template name="localLCID">
  1809.         <xsl:with-param name="LCID" select="$LCID"/>
  1810.       </xsl:call-template>
  1811.     </xsl:variable>
  1812.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:CompilersShortCap"/>
  1813.   </xsl:template>
  1814.  
  1815.   
  1816.   <xsl:template name="templ_str_CompilersShortUnCap" >
  1817.     <xsl:param name="LCID" />
  1818.     <xsl:variable name="_LCID">
  1819.       <xsl:call-template name="localLCID">
  1820.         <xsl:with-param name="LCID" select="$LCID"/>
  1821.       </xsl:call-template>
  1822.     </xsl:variable>
  1823.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:CompilersShortUnCap"/>
  1824.   </xsl:template>
  1825.  
  1826.   
  1827.   <xsl:template name="templ_str_CompilerShortUnCapIso" >
  1828.     <xsl:param name="LCID" />
  1829.     <xsl:variable name="_LCID">
  1830.       <xsl:call-template name="localLCID">
  1831.         <xsl:with-param name="LCID" select="$LCID"/>
  1832.       </xsl:call-template>
  1833.     </xsl:variable>
  1834.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:CompilerShortUnCapIso"/>
  1835.   </xsl:template>
  1836.  
  1837.  
  1838.   
  1839.  
  1840.   
  1841.   <xsl:template name="templ_prop_Culture" >
  1842.     <xsl:param name="LCID" />
  1843.     <xsl:variable name="_LCID">
  1844.       <xsl:call-template name="localLCID">
  1845.         <xsl:with-param name="LCID" select="$LCID"/>
  1846.       </xsl:call-template>
  1847.     </xsl:variable>
  1848.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/@Culture"/>
  1849.   </xsl:template>
  1850.  
  1851.   
  1852.   <xsl:template name="templ_prop_Direction" >
  1853.     <xsl:param name="LCID" />
  1854.     <xsl:variable name="_LCID">
  1855.       <xsl:call-template name="localLCID">
  1856.         <xsl:with-param name="LCID" select="$LCID"/>
  1857.       </xsl:call-template>
  1858.     </xsl:variable>
  1859.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Properties/b:Direction"/>
  1860.   </xsl:template>
  1861.  
  1862.  
  1863.   
  1864.  
  1865.   
  1866.   <xsl:template name="templ_prop_NoItalics" >
  1867.     <xsl:param name="LCID" />
  1868.     <xsl:variable name="_LCID">
  1869.       <xsl:call-template name="localLCID">
  1870.         <xsl:with-param name="LCID" select="$LCID"/>
  1871.       </xsl:call-template>
  1872.     </xsl:variable>
  1873.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:General/b:NoItalics"/>
  1874.   </xsl:template>
  1875.  
  1876.   
  1877.   <xsl:template name="templ_prop_TitleOpen" >
  1878.     <xsl:param name="LCID" />
  1879.     <xsl:variable name="_LCID">
  1880.       <xsl:call-template name="localLCID">
  1881.         <xsl:with-param name="LCID" select="$LCID"/>
  1882.       </xsl:call-template>
  1883.     </xsl:variable>
  1884.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:General/b:TitleOpen"/>
  1885.   </xsl:template>
  1886.  
  1887.   
  1888.   <xsl:template name="templ_prop_TitleClose" >
  1889.     <xsl:param name="LCID" />
  1890.     <xsl:variable name="_LCID">
  1891.       <xsl:call-template name="localLCID">
  1892.         <xsl:with-param name="LCID" select="$LCID"/>
  1893.       </xsl:call-template>
  1894.     </xsl:variable>
  1895.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:General/b:TitleClose"/>
  1896.   </xsl:template>  
  1897.  
  1898.   
  1899.   <xsl:template name="templ_prop_EndChars" >
  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:EndChars"/>
  1907.   </xsl:template>
  1908.  
  1909.   
  1910.   <xsl:template name="templ_prop_NormalizeSpace" >
  1911.     <xsl:param name="LCID" />
  1912.     <xsl:variable name="_LCID">
  1913.       <xsl:call-template name="localLCID">
  1914.         <xsl:with-param name="LCID" select="$LCID"/>
  1915.       </xsl:call-template>
  1916.     </xsl:variable>
  1917.     <xsl:text>no</xsl:text>
  1918.     
  1919.   </xsl:template>
  1920.  
  1921.   
  1922.   <xsl:template name="templ_prop_Space" >
  1923.     <xsl:param name="LCID" />
  1924.     <xsl:variable name="_LCID">
  1925.       <xsl:call-template name="localLCID">
  1926.         <xsl:with-param name="LCID" select="$LCID"/>
  1927.       </xsl:call-template>
  1928.     </xsl:variable>
  1929.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:General/b:Space"/>
  1930.   </xsl:template>
  1931.  
  1932.   
  1933.   <xsl:template name="templ_prop_NonBreakingSpace" >
  1934.     <xsl:param name="LCID" />
  1935.     <xsl:variable name="_LCID">
  1936.       <xsl:call-template name="localLCID">
  1937.         <xsl:with-param name="LCID" select="$LCID"/>
  1938.       </xsl:call-template>
  1939.     </xsl:variable>
  1940.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:General/b:NonBreakingSpace"/>
  1941.   </xsl:template>
  1942.  
  1943.   
  1944.   <xsl:template name="templ_prop_ListSeparator" >
  1945.     <xsl:param name="LCID" />
  1946.     <xsl:variable name="_LCID">
  1947.       <xsl:call-template name="localLCID">
  1948.         <xsl:with-param name="LCID" select="$LCID"/>
  1949.       </xsl:call-template>
  1950.     </xsl:variable>
  1951.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:General/b:ListSeparator"/>
  1952.   </xsl:template>
  1953.  
  1954.   
  1955.   <xsl:template name="templ_prop_Dot" >
  1956.     <xsl:param name="LCID" />
  1957.     <xsl:variable name="_LCID">
  1958.       <xsl:call-template name="localLCID">
  1959.         <xsl:with-param name="LCID" select="$LCID"/>
  1960.       </xsl:call-template>
  1961.     </xsl:variable>
  1962.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:General/b:Dot"/>
  1963.   </xsl:template>
  1964.  
  1965.   
  1966.   <xsl:template name="templ_prop_DotInitial" >
  1967.     <xsl:param name="LCID" />
  1968.     <xsl:variable name="_LCID">
  1969.       <xsl:call-template name="localLCID">
  1970.         <xsl:with-param name="LCID" select="$LCID"/>
  1971.       </xsl:call-template>
  1972.     </xsl:variable>
  1973.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:General/b:DotInitial"/>
  1974.   </xsl:template>
  1975.  
  1976.   
  1977.   <xsl:template name="templ_prop_GroupSeparator" >
  1978.     <xsl:param name="LCID" />
  1979.     <xsl:variable name="_LCID">
  1980.       <xsl:call-template name="localLCID">
  1981.         <xsl:with-param name="LCID" select="$LCID"/>
  1982.       </xsl:call-template>
  1983.     </xsl:variable>
  1984.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:General/b:GroupSeparator"/>
  1985.   </xsl:template>
  1986.  
  1987.   
  1988.   <xsl:template name="templ_prop_EnumSeparator" >
  1989.     <xsl:param name="LCID" />
  1990.     <xsl:variable name="_LCID">
  1991.       <xsl:call-template name="localLCID">
  1992.         <xsl:with-param name="LCID" select="$LCID"/>
  1993.       </xsl:call-template>
  1994.     </xsl:variable>
  1995.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:General/b:EnumSeparator"/>
  1996.   </xsl:template>
  1997.  
  1998.   
  1999.   <xsl:template name="templ_prop_Equal" >
  2000.     <xsl:param name="LCID" />
  2001.     <xsl:variable name="_LCID">
  2002.       <xsl:call-template name="localLCID">
  2003.         <xsl:with-param name="LCID" select="$LCID"/>
  2004.       </xsl:call-template>
  2005.     </xsl:variable>
  2006.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:General/b:Equal"/>
  2007.   </xsl:template>
  2008.  
  2009.   
  2010.   <xsl:template name="templ_prop_Enum" >
  2011.     <xsl:param name="LCID" />
  2012.     <xsl:variable name="_LCID">
  2013.       <xsl:call-template name="localLCID">
  2014.         <xsl:with-param name="LCID" select="$LCID"/>
  2015.       </xsl:call-template>
  2016.     </xsl:variable>
  2017.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:General/b:Enum"/>
  2018.   </xsl:template>
  2019.  
  2020.   
  2021.   <xsl:template name="templ_prop_OpenQuote" >
  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:OpenQuote"/>
  2029.   </xsl:template>
  2030.  
  2031.   
  2032.   <xsl:template name="templ_prop_CloseQuote" >
  2033.     <xsl:param name="LCID" />
  2034.     <xsl:variable name="_LCID">
  2035.       <xsl:call-template name="localLCID">
  2036.         <xsl:with-param name="LCID" select="$LCID"/>
  2037.       </xsl:call-template>
  2038.     </xsl:variable>
  2039.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:General/b:CloseQuote"/>
  2040.   </xsl:template>
  2041.  
  2042.   
  2043.   <xsl:template name="templ_prop_OpenBracket" >
  2044.     <xsl:param name="LCID" />
  2045.     <xsl:variable name="_LCID">
  2046.       <xsl:call-template name="localLCID">
  2047.         <xsl:with-param name="LCID" select="$LCID"/>
  2048.       </xsl:call-template>
  2049.     </xsl:variable>
  2050.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:General/b:OpenBracket"/>
  2051.   </xsl:template>
  2052.  
  2053.   
  2054.   <xsl:template name="templ_prop_CloseBracket" >
  2055.     <xsl:param name="LCID" />
  2056.     <xsl:variable name="_LCID">
  2057.       <xsl:call-template name="localLCID">
  2058.         <xsl:with-param name="LCID" select="$LCID"/>
  2059.       </xsl:call-template>
  2060.     </xsl:variable>
  2061.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:General/b:CloseBracket"/>
  2062.   </xsl:template>
  2063.  
  2064.   
  2065.   <xsl:template name="templ_prop_FromToDash" >
  2066.     <xsl:param name="LCID" />
  2067.     <xsl:variable name="_LCID">
  2068.       <xsl:call-template name="localLCID">
  2069.         <xsl:with-param name="LCID" select="$LCID"/>
  2070.       </xsl:call-template>
  2071.     </xsl:variable>
  2072.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:General/b:FromToDash"/>
  2073.   </xsl:template>
  2074.  
  2075.   
  2076.   <xsl:template name="templ_prop_OpenLink" >
  2077.     <xsl:param name="LCID" />
  2078.     <xsl:variable name="_LCID">
  2079.       <xsl:call-template name="localLCID">
  2080.         <xsl:with-param name="LCID" select="$LCID"/>
  2081.       </xsl:call-template>
  2082.     </xsl:variable>
  2083.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:General/b:OpenLink"/>
  2084.   </xsl:template>
  2085.  
  2086.   
  2087.   <xsl:template name="templ_prop_CloseLink" >
  2088.     <xsl:param name="LCID" />
  2089.     <xsl:variable name="_LCID">
  2090.       <xsl:call-template name="localLCID">
  2091.         <xsl:with-param name="LCID" select="$LCID"/>
  2092.       </xsl:call-template>
  2093.     </xsl:variable>
  2094.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:General/b:CloseLink"/>
  2095.   </xsl:template>
  2096.  
  2097.   
  2098.   <xsl:template name="templ_prop_AuthorsSeparator" >
  2099.     <xsl:param name="LCID" />
  2100.     <xsl:variable name="_LCID">
  2101.       <xsl:call-template name="localLCID">
  2102.         <xsl:with-param name="LCID" select="$LCID"/>
  2103.       </xsl:call-template>
  2104.     </xsl:variable>
  2105.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:General/b:AuthorsSeparator"/>
  2106.   </xsl:template>
  2107.  
  2108.   
  2109.   <xsl:template name="templ_prop_NoAndBeforeLastAuthor" >
  2110.     <xsl:param name="LCID" />
  2111.     <xsl:variable name="_LCID">
  2112.       <xsl:call-template name="localLCID">
  2113.         <xsl:with-param name="LCID" select="$LCID"/>
  2114.       </xsl:call-template>
  2115.     </xsl:variable>
  2116.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:General/b:NoAndBeforeLastAuthor"/>
  2117.   </xsl:template>
  2118.  
  2119.   
  2120.   <xsl:template name="templ_prop_NoCommaBeforeAnd" >
  2121.     <xsl:param name="LCID" />
  2122.     <xsl:variable name="_LCID">
  2123.       <xsl:call-template name="localLCID">
  2124.         <xsl:with-param name="LCID" select="$LCID"/>
  2125.       </xsl:call-template>
  2126.     </xsl:variable>
  2127.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:General/b:NoCommaBeforeAnd"/>
  2128.   </xsl:template>
  2129.  
  2130.   <xsl:template name="templ_prop_SimpleAuthor_F" >
  2131.   <xsl:text>%F</xsl:text>
  2132.   
  2133.   </xsl:template>
  2134.  
  2135.   
  2136.   <xsl:template name="templ_prop_SimpleAuthor_M" >
  2137.   <xsl:text>%M</xsl:text>
  2138.   
  2139.   </xsl:template>
  2140.  
  2141.   
  2142.   <xsl:template name="templ_prop_SimpleAuthor_L" >
  2143.   <xsl:text>%L</xsl:text>
  2144.   
  2145.   </xsl:template>
  2146.  
  2147.   
  2148.   <xsl:template name="templ_prop_SimpleDate_D" >
  2149.   <xsl:text>%D</xsl:text>
  2150.   
  2151.   </xsl:template>
  2152.  
  2153.   
  2154.   <xsl:template name="templ_prop_SimpleDate_M" >
  2155.   <xsl:text>%M</xsl:text>
  2156.   
  2157.   </xsl:template>
  2158.  
  2159.   
  2160.   <xsl:template name="templ_prop_SimpleDate_Y" >
  2161.   <xsl:text>%Y</xsl:text>
  2162.   
  2163.   </xsl:template>
  2164.  
  2165.   
  2166.   <xsl:template name="templ_prop_MLA_SameAuthor" >
  2167.     <xsl:param name="LCID" />
  2168.     <xsl:variable name="_LCID">
  2169.       <xsl:call-template name="localLCID">
  2170.         <xsl:with-param name="LCID" select="$LCID"/>
  2171.       </xsl:call-template>
  2172.     </xsl:variable>
  2173.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:MLA/b:SameAuthor"/>
  2174.   </xsl:template>
  2175.  
  2176.   
  2177.   <xsl:template name="templ_prop_MLA_MainAuthor_FML" >
  2178.     <xsl:param name="LCID" />
  2179.     <xsl:variable name="_LCID">
  2180.       <xsl:call-template name="localLCID">
  2181.         <xsl:with-param name="LCID" select="$LCID"/>
  2182.       </xsl:call-template>
  2183.     </xsl:variable>
  2184.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:MLA/b:MainAuthor/b:FML"/>
  2185.   </xsl:template>
  2186.  
  2187.   
  2188.   <xsl:template name="templ_prop_MLA_MainAuthor_FM" >
  2189.     <xsl:param name="LCID" />
  2190.     <xsl:variable name="_LCID">
  2191.       <xsl:call-template name="localLCID">
  2192.         <xsl:with-param name="LCID" select="$LCID"/>
  2193.       </xsl:call-template>
  2194.     </xsl:variable>
  2195.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:MLA/b:MainAuthor/b:FM"/>
  2196.   </xsl:template>
  2197.  
  2198.   
  2199.   <xsl:template name="templ_prop_MLA_MainAuthor_ML" >
  2200.     <xsl:param name="LCID" />
  2201.     <xsl:variable name="_LCID">
  2202.       <xsl:call-template name="localLCID">
  2203.         <xsl:with-param name="LCID" select="$LCID"/>
  2204.       </xsl:call-template>
  2205.     </xsl:variable>
  2206.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:MLA/b:MainAuthor/b:ML"/>
  2207.   </xsl:template>
  2208.  
  2209.   
  2210.   <xsl:template name="templ_prop_MLA_MainAuthor_FL" >
  2211.     <xsl:param name="LCID" />
  2212.     <xsl:variable name="_LCID">
  2213.       <xsl:call-template name="localLCID">
  2214.         <xsl:with-param name="LCID" select="$LCID"/>
  2215.       </xsl:call-template>
  2216.     </xsl:variable>
  2217.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:MLA/b:MainAuthor/b:FL"/>
  2218.   </xsl:template>
  2219.  
  2220.   
  2221.   <xsl:template name="templ_prop_MLA_OtherAuthors_FML" >
  2222.     <xsl:param name="LCID" />
  2223.     <xsl:variable name="_LCID">
  2224.       <xsl:call-template name="localLCID">
  2225.         <xsl:with-param name="LCID" select="$LCID"/>
  2226.       </xsl:call-template>
  2227.     </xsl:variable>
  2228.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:MLA/b:OtherAuthors/b:FML"/>
  2229.   </xsl:template>
  2230.  
  2231.   
  2232.   <xsl:template name="templ_prop_MLA_OtherAuthors_FM" >
  2233.     <xsl:param name="LCID" />
  2234.     <xsl:variable name="_LCID">
  2235.       <xsl:call-template name="localLCID">
  2236.         <xsl:with-param name="LCID" select="$LCID"/>
  2237.       </xsl:call-template>
  2238.     </xsl:variable>
  2239.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:MLA/b:OtherAuthors/b:FM"/>
  2240.   </xsl:template>
  2241.  
  2242.   
  2243.   <xsl:template name="templ_prop_MLA_OtherAuthors_ML" >
  2244.     <xsl:param name="LCID" />
  2245.     <xsl:variable name="_LCID">
  2246.       <xsl:call-template name="localLCID">
  2247.         <xsl:with-param name="LCID" select="$LCID"/>
  2248.       </xsl:call-template>
  2249.     </xsl:variable>
  2250.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:MLA/b:OtherAuthors/b:ML"/>
  2251.   </xsl:template>
  2252.  
  2253.   
  2254.   <xsl:template name="templ_prop_MLA_OtherAuthors_FL" >
  2255.     <xsl:param name="LCID" />
  2256.     <xsl:variable name="_LCID">
  2257.       <xsl:call-template name="localLCID">
  2258.         <xsl:with-param name="LCID" select="$LCID"/>
  2259.       </xsl:call-template>
  2260.     </xsl:variable>
  2261.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:MLA/b:OtherAuthors/b:FL"/>
  2262.   </xsl:template>
  2263.  
  2264.   
  2265.   <xsl:template name="templ_prop_MLA_SecondaryAuthors_FML" >
  2266.     <xsl:param name="LCID" />
  2267.     <xsl:variable name="_LCID">
  2268.       <xsl:call-template name="localLCID">
  2269.         <xsl:with-param name="LCID" select="$LCID"/>
  2270.       </xsl:call-template>
  2271.     </xsl:variable>
  2272.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:MLA/b:SecondaryAuthors/b:FML"/>
  2273.   </xsl:template>
  2274.  
  2275.   
  2276.   <xsl:template name="templ_prop_MLA_SecondaryAuthors_FM" >
  2277.     <xsl:param name="LCID" />
  2278.     <xsl:variable name="_LCID">
  2279.       <xsl:call-template name="localLCID">
  2280.         <xsl:with-param name="LCID" select="$LCID"/>
  2281.       </xsl:call-template>
  2282.     </xsl:variable>
  2283.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:MLA/b:SecondaryAuthors/b:FM"/>
  2284.   </xsl:template>
  2285.  
  2286.   
  2287.   <xsl:template name="templ_prop_MLA_SecondaryAuthors_ML" >
  2288.     <xsl:param name="LCID" />
  2289.     <xsl:variable name="_LCID">
  2290.       <xsl:call-template name="localLCID">
  2291.         <xsl:with-param name="LCID" select="$LCID"/>
  2292.       </xsl:call-template>
  2293.     </xsl:variable>
  2294.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:MLA/b:SecondaryAuthors/b:ML"/>
  2295.   </xsl:template>
  2296.  
  2297.   
  2298.   <xsl:template name="templ_prop_MLA_SecondaryAuthors_FL" >
  2299.     <xsl:param name="LCID" />
  2300.     <xsl:variable name="_LCID">
  2301.       <xsl:call-template name="localLCID">
  2302.         <xsl:with-param name="LCID" select="$LCID"/>
  2303.       </xsl:call-template>
  2304.     </xsl:variable>
  2305.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:MLA/b:SecondaryAuthors/b:FL"/>
  2306.   </xsl:template>
  2307.  
  2308.   
  2309.   <xsl:template name="templ_prop_MLA_Date_DMY" >
  2310.     <xsl:param name="LCID" />
  2311.     <xsl:variable name="_LCID">
  2312.       <xsl:call-template name="localLCID">
  2313.         <xsl:with-param name="LCID" select="$LCID"/>
  2314.       </xsl:call-template>
  2315.     </xsl:variable>
  2316.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:MLA/b:Date/b:DMY"/>
  2317.   </xsl:template>
  2318.  
  2319.   
  2320.   <xsl:template name="templ_prop_MLA_Date_DM" >
  2321.     <xsl:param name="LCID" />
  2322.     <xsl:variable name="_LCID">
  2323.       <xsl:call-template name="localLCID">
  2324.         <xsl:with-param name="LCID" select="$LCID"/>
  2325.       </xsl:call-template>
  2326.     </xsl:variable>
  2327.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:MLA/b:Date/b:DM"/>
  2328.   </xsl:template>
  2329.  
  2330.   
  2331.   <xsl:template name="templ_prop_MLA_Date_MY" >
  2332.     <xsl:param name="LCID" />
  2333.     <xsl:variable name="_LCID">
  2334.       <xsl:call-template name="localLCID">
  2335.         <xsl:with-param name="LCID" select="$LCID"/>
  2336.       </xsl:call-template>
  2337.     </xsl:variable>
  2338.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:MLA/b:Date/b:MY"/>
  2339.   </xsl:template>
  2340.  
  2341.   
  2342.   <xsl:template name="templ_prop_MLA_Date_DY" >
  2343.     <xsl:param name="LCID" />
  2344.     <xsl:variable name="_LCID">
  2345.       <xsl:call-template name="localLCID">
  2346.         <xsl:with-param name="LCID" select="$LCID"/>
  2347.       </xsl:call-template>
  2348.     </xsl:variable>
  2349.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:MLA/b:Date/b:DY"/>
  2350.   </xsl:template>
  2351.  
  2352.   
  2353.   <xsl:template name="templ_prop_APA_MainAuthors_FML" >
  2354.     <xsl:param name="LCID" />
  2355.     <xsl:variable name="_LCID">
  2356.       <xsl:call-template name="localLCID">
  2357.         <xsl:with-param name="LCID" select="$LCID"/>
  2358.       </xsl:call-template>
  2359.     </xsl:variable>
  2360.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:APA/b:MainAuthors/b:FML"/>
  2361.   </xsl:template>
  2362.  
  2363.   
  2364.   <xsl:template name="templ_prop_APA_MainAuthors_FM" >
  2365.     <xsl:param name="LCID" />
  2366.     <xsl:variable name="_LCID">
  2367.       <xsl:call-template name="localLCID">
  2368.         <xsl:with-param name="LCID" select="$LCID"/>
  2369.       </xsl:call-template>
  2370.     </xsl:variable>
  2371.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:APA/b:MainAuthors/b:FM"/>
  2372.   </xsl:template>
  2373.  
  2374.   
  2375.   <xsl:template name="templ_prop_APA_MainAuthors_ML" >
  2376.     <xsl:param name="LCID" />
  2377.     <xsl:variable name="_LCID">
  2378.       <xsl:call-template name="localLCID">
  2379.         <xsl:with-param name="LCID" select="$LCID"/>
  2380.       </xsl:call-template>
  2381.     </xsl:variable>
  2382.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:APA/b:MainAuthors/b:ML"/>
  2383.   </xsl:template>
  2384.  
  2385.   
  2386.   <xsl:template name="templ_prop_APA_MainAuthors_FL" >
  2387.     <xsl:param name="LCID" />
  2388.     <xsl:variable name="_LCID">
  2389.       <xsl:call-template name="localLCID">
  2390.         <xsl:with-param name="LCID" select="$LCID"/>
  2391.       </xsl:call-template>
  2392.     </xsl:variable>
  2393.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:APA/b:MainAuthors/b:FL"/>
  2394.   </xsl:template>
  2395.  
  2396.   
  2397.   <xsl:template name="templ_prop_APA_SecondaryAuthors_FML" >
  2398.     <xsl:param name="LCID" />
  2399.     <xsl:variable name="_LCID">
  2400.       <xsl:call-template name="localLCID">
  2401.         <xsl:with-param name="LCID" select="$LCID"/>
  2402.       </xsl:call-template>
  2403.     </xsl:variable>
  2404.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:APA/b:SecondaryAuthors/b:FML"/>
  2405.   </xsl:template>
  2406.  
  2407.   
  2408.   <xsl:template name="templ_prop_APA_SecondaryAuthors_FM" >
  2409.     <xsl:param name="LCID" />
  2410.     <xsl:variable name="_LCID">
  2411.       <xsl:call-template name="localLCID">
  2412.         <xsl:with-param name="LCID" select="$LCID"/>
  2413.       </xsl:call-template>
  2414.     </xsl:variable>
  2415.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:APA/b:SecondaryAuthors/b:FM"/>
  2416.   </xsl:template>
  2417.  
  2418.   
  2419.   <xsl:template name="templ_prop_APA_SecondaryAuthors_ML" >
  2420.     <xsl:param name="LCID" />
  2421.     <xsl:variable name="_LCID">
  2422.       <xsl:call-template name="localLCID">
  2423.         <xsl:with-param name="LCID" select="$LCID"/>
  2424.       </xsl:call-template>
  2425.     </xsl:variable>
  2426.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:APA/b:SecondaryAuthors/b:ML"/>
  2427.   </xsl:template>
  2428.  
  2429.   
  2430.   <xsl:template name="templ_prop_APA_SecondaryAuthors_FL" >
  2431.     <xsl:param name="LCID" />
  2432.     <xsl:variable name="_LCID">
  2433.       <xsl:call-template name="localLCID">
  2434.         <xsl:with-param name="LCID" select="$LCID"/>
  2435.       </xsl:call-template>
  2436.     </xsl:variable>
  2437.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:APA/b:SecondaryAuthors/b:FL"/>
  2438.   </xsl:template>
  2439.  
  2440.   
  2441.   <xsl:template name="templ_prop_APA_BeforeLastAuthor" >
  2442.     <xsl:param name="LCID" />
  2443.     <xsl:variable name="_LCID">
  2444.       <xsl:call-template name="localLCID">
  2445.         <xsl:with-param name="LCID" select="$LCID"/>
  2446.       </xsl:call-template>
  2447.     </xsl:variable>
  2448.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:APA/b:BeforeLastAuthor"/>
  2449.   </xsl:template>
  2450.  
  2451.   
  2452.   <xsl:template name="templ_prop_APA_GeneralOpen" >
  2453.     <xsl:param name="LCID" />
  2454.     <xsl:variable name="_LCID">
  2455.       <xsl:call-template name="localLCID">
  2456.         <xsl:with-param name="LCID" select="$LCID"/>
  2457.       </xsl:call-template>
  2458.     </xsl:variable>
  2459.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:APA/b:GeneralOpen"/>
  2460.   </xsl:template>
  2461.  
  2462.   
  2463.   <xsl:template name="templ_prop_APA_GeneralClose" >
  2464.     <xsl:param name="LCID" />
  2465.     <xsl:variable name="_LCID">
  2466.       <xsl:call-template name="localLCID">
  2467.         <xsl:with-param name="LCID" select="$LCID"/>
  2468.       </xsl:call-template>
  2469.     </xsl:variable>
  2470.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:APA/b:GeneralClose"/>
  2471.   </xsl:template>
  2472.  
  2473.   
  2474.   <xsl:template name="templ_prop_APA_SecondaryOpen" >
  2475.     <xsl:param name="LCID" />
  2476.     <xsl:variable name="_LCID">
  2477.       <xsl:call-template name="localLCID">
  2478.         <xsl:with-param name="LCID" select="$LCID"/>
  2479.       </xsl:call-template>
  2480.     </xsl:variable>
  2481.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:APA/b:SecondaryOpen"/>
  2482.   </xsl:template>
  2483.  
  2484.   
  2485.   <xsl:template name="templ_prop_APA_SecondaryClose" >
  2486.     <xsl:param name="LCID" />
  2487.     <xsl:variable name="_LCID">
  2488.       <xsl:call-template name="localLCID">
  2489.         <xsl:with-param name="LCID" select="$LCID"/>
  2490.       </xsl:call-template>
  2491.     </xsl:variable>
  2492.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:APA/b:SecondaryClose"/>
  2493.   </xsl:template>
  2494.  
  2495.   
  2496.   <xsl:template name="templ_prop_Hyphens" >
  2497.     <xsl:param name="LCID" />
  2498.     <xsl:variable name="_LCID">
  2499.       <xsl:call-template name="localLCID">
  2500.         <xsl:with-param name="LCID" select="$LCID"/>
  2501.       </xsl:call-template>
  2502.     </xsl:variable>
  2503.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:General/b:Hyphens"/>
  2504.   </xsl:template>
  2505.  
  2506.   
  2507.   <xsl:template name="templ_prop_APA_Date_DMY" >
  2508.     <xsl:param name="LCID" />
  2509.     <xsl:variable name="_LCID">
  2510.       <xsl:call-template name="localLCID">
  2511.         <xsl:with-param name="LCID" select="$LCID"/>
  2512.       </xsl:call-template>
  2513.     </xsl:variable>
  2514.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:APA/b:Date/b:DMY"/>
  2515.   </xsl:template>
  2516.  
  2517.   
  2518.   <xsl:template name="templ_prop_APA_Date_DM" >
  2519.     <xsl:param name="LCID" />
  2520.     <xsl:variable name="_LCID">
  2521.       <xsl:call-template name="localLCID">
  2522.         <xsl:with-param name="LCID" select="$LCID"/>
  2523.       </xsl:call-template>
  2524.     </xsl:variable>
  2525.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:APA/b:Date/b:DM"/>
  2526.   </xsl:template>
  2527.  
  2528.   
  2529.   <xsl:template name="templ_prop_APA_Date_MY" >
  2530.     <xsl:param name="LCID" />
  2531.     <xsl:variable name="_LCID">
  2532.       <xsl:call-template name="localLCID">
  2533.         <xsl:with-param name="LCID" select="$LCID"/>
  2534.       </xsl:call-template>
  2535.     </xsl:variable>
  2536.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:APA/b:Date/b:MY"/>
  2537.   </xsl:template>
  2538.  
  2539.   
  2540.   <xsl:template name="templ_prop_APA_Date_DY" >
  2541.     <xsl:param name="LCID" />
  2542.     <xsl:variable name="_LCID">
  2543.       <xsl:call-template name="localLCID">
  2544.         <xsl:with-param name="LCID" select="$LCID"/>
  2545.       </xsl:call-template>
  2546.     </xsl:variable>
  2547.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:APA/b:Date/b:DY"/>
  2548.   </xsl:template>
  2549.  
  2550.   
  2551.   <xsl:template name="templ_prop_APA_DateAccessed_DMY" >
  2552.     <xsl:param name="LCID" />
  2553.     <xsl:variable name="_LCID">
  2554.       <xsl:call-template name="localLCID">
  2555.         <xsl:with-param name="LCID" select="$LCID"/>
  2556.       </xsl:call-template>
  2557.     </xsl:variable>
  2558.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:APA/b:DateAccessed/b:DMY"/>
  2559.   </xsl:template>
  2560.  
  2561.   
  2562.   <xsl:template name="templ_prop_APA_DateAccessed_DM" >
  2563.     <xsl:param name="LCID" />
  2564.     <xsl:variable name="_LCID">
  2565.       <xsl:call-template name="localLCID">
  2566.         <xsl:with-param name="LCID" select="$LCID"/>
  2567.       </xsl:call-template>
  2568.     </xsl:variable>
  2569.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:APA/b:DateAccessed/b:DM"/>
  2570.   </xsl:template>
  2571.  
  2572.   
  2573.   <xsl:template name="templ_prop_APA_DateAccessed_MY" >
  2574.     <xsl:param name="LCID" />
  2575.     <xsl:variable name="_LCID">
  2576.       <xsl:call-template name="localLCID">
  2577.         <xsl:with-param name="LCID" select="$LCID"/>
  2578.       </xsl:call-template>
  2579.     </xsl:variable>
  2580.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:APA/b:DateAccessed/b:MY"/>
  2581.   </xsl:template>
  2582.  
  2583.   
  2584.   <xsl:template name="templ_prop_APA_DateAccessed_DY" >
  2585.     <xsl:param name="LCID" />
  2586.     <xsl:variable name="_LCID">
  2587.       <xsl:call-template name="localLCID">
  2588.         <xsl:with-param name="LCID" select="$LCID"/>
  2589.       </xsl:call-template>
  2590.     </xsl:variable>
  2591.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:APA/b:DateAccessed/b:DY"/>
  2592.   </xsl:template>
  2593.  
  2594.   
  2595.   <xsl:template name="templ_prop_APA_DateCourt_DMY" >
  2596.     <xsl:param name="LCID" />
  2597.     <xsl:variable name="_LCID">
  2598.       <xsl:call-template name="localLCID">
  2599.         <xsl:with-param name="LCID" select="$LCID"/>
  2600.       </xsl:call-template>
  2601.     </xsl:variable>
  2602.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:APA/b:DateCourt/b:DMY"/>
  2603.   </xsl:template>
  2604.  
  2605.   
  2606.   <xsl:template name="templ_prop_APA_DateCourt_DM" >
  2607.     <xsl:param name="LCID" />
  2608.     <xsl:variable name="_LCID">
  2609.       <xsl:call-template name="localLCID">
  2610.         <xsl:with-param name="LCID" select="$LCID"/>
  2611.       </xsl:call-template>
  2612.     </xsl:variable>
  2613.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:APA/b:DateCourt/b:DM"/>
  2614.   </xsl:template>
  2615.  
  2616.   
  2617.   <xsl:template name="templ_prop_APA_DateCourt_MY" >
  2618.     <xsl:param name="LCID" />
  2619.     <xsl:variable name="_LCID">
  2620.       <xsl:call-template name="localLCID">
  2621.         <xsl:with-param name="LCID" select="$LCID"/>
  2622.       </xsl:call-template>
  2623.     </xsl:variable>
  2624.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:APA/b:DateCourt/b:MY"/>
  2625.   </xsl:template>
  2626.  
  2627.   
  2628.   <xsl:template name="templ_prop_APA_DateCourt_DY" >
  2629.     <xsl:param name="LCID" />
  2630.     <xsl:variable name="_LCID">
  2631.       <xsl:call-template name="localLCID">
  2632.         <xsl:with-param name="LCID" select="$LCID"/>
  2633.       </xsl:call-template>
  2634.     </xsl:variable>
  2635.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:APA/b:DateCourt/b:DY"/>
  2636.   </xsl:template>
  2637.  
  2638.   
  2639.   <xsl:template name="templ_prop_Chicago_SameAuthor" >
  2640.     <xsl:param name="LCID" />
  2641.     <xsl:variable name="_LCID">
  2642.       <xsl:call-template name="localLCID">
  2643.         <xsl:with-param name="LCID" select="$LCID"/>
  2644.       </xsl:call-template>
  2645.     </xsl:variable>
  2646.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Chicago/b:SameAuthor"/>
  2647.   </xsl:template>
  2648.  
  2649.   
  2650.   <xsl:template name="templ_prop_Chicago_MainAuthor_FML" >
  2651.     <xsl:param name="LCID" />
  2652.     <xsl:variable name="_LCID">
  2653.       <xsl:call-template name="localLCID">
  2654.         <xsl:with-param name="LCID" select="$LCID"/>
  2655.       </xsl:call-template>
  2656.     </xsl:variable>
  2657.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Chicago/b:MainAuthor/b:FML"/>
  2658.   </xsl:template>
  2659.  
  2660.   
  2661.   <xsl:template name="templ_prop_Chicago_MainAuthor_FM" >
  2662.     <xsl:param name="LCID" />
  2663.     <xsl:variable name="_LCID">
  2664.       <xsl:call-template name="localLCID">
  2665.         <xsl:with-param name="LCID" select="$LCID"/>
  2666.       </xsl:call-template>
  2667.     </xsl:variable>
  2668.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Chicago/b:MainAuthor/b:FM"/>
  2669.   </xsl:template>
  2670.  
  2671.   
  2672.   <xsl:template name="templ_prop_Chicago_MainAuthor_ML" >
  2673.     <xsl:param name="LCID" />
  2674.     <xsl:variable name="_LCID">
  2675.       <xsl:call-template name="localLCID">
  2676.         <xsl:with-param name="LCID" select="$LCID"/>
  2677.       </xsl:call-template>
  2678.     </xsl:variable>
  2679.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Chicago/b:MainAuthor/b:ML"/>
  2680.   </xsl:template>
  2681.  
  2682.   
  2683.   <xsl:template name="templ_prop_Chicago_MainAuthor_FL" >
  2684.     <xsl:param name="LCID" />
  2685.     <xsl:variable name="_LCID">
  2686.       <xsl:call-template name="localLCID">
  2687.         <xsl:with-param name="LCID" select="$LCID"/>
  2688.       </xsl:call-template>
  2689.     </xsl:variable>
  2690.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Chicago/b:MainAuthor/b:FL"/>
  2691.   </xsl:template>
  2692.  
  2693.   
  2694.   <xsl:template name="templ_prop_Chicago_OtherAuthors_FML" >
  2695.     <xsl:param name="LCID" />
  2696.     <xsl:variable name="_LCID">
  2697.       <xsl:call-template name="localLCID">
  2698.         <xsl:with-param name="LCID" select="$LCID"/>
  2699.       </xsl:call-template>
  2700.     </xsl:variable>
  2701.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Chicago/b:OtherAuthors/b:FML"/>
  2702.   </xsl:template>
  2703.  
  2704.   
  2705.   <xsl:template name="templ_prop_Chicago_OtherAuthors_FM" >
  2706.     <xsl:param name="LCID" />
  2707.     <xsl:variable name="_LCID">
  2708.       <xsl:call-template name="localLCID">
  2709.         <xsl:with-param name="LCID" select="$LCID"/>
  2710.       </xsl:call-template>
  2711.     </xsl:variable>
  2712.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Chicago/b:OtherAuthors/b:FM"/>
  2713.   </xsl:template>
  2714.  
  2715.   
  2716.   <xsl:template name="templ_prop_Chicago_OtherAuthors_ML" >
  2717.     <xsl:param name="LCID" />
  2718.     <xsl:variable name="_LCID">
  2719.       <xsl:call-template name="localLCID">
  2720.         <xsl:with-param name="LCID" select="$LCID"/>
  2721.       </xsl:call-template>
  2722.     </xsl:variable>
  2723.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Chicago/b:OtherAuthors/b:ML"/>
  2724.   </xsl:template>
  2725.  
  2726.   
  2727.   <xsl:template name="templ_prop_Chicago_OtherAuthors_FL" >
  2728.     <xsl:param name="LCID" />
  2729.     <xsl:variable name="_LCID">
  2730.       <xsl:call-template name="localLCID">
  2731.         <xsl:with-param name="LCID" select="$LCID"/>
  2732.       </xsl:call-template>
  2733.     </xsl:variable>
  2734.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Chicago/b:OtherAuthors/b:FL"/>
  2735.   </xsl:template>
  2736.  
  2737.   
  2738.   <xsl:template name="templ_prop_Chicago_SecondaryAuthors_FML" >
  2739.     <xsl:param name="LCID" />
  2740.     <xsl:variable name="_LCID">
  2741.       <xsl:call-template name="localLCID">
  2742.         <xsl:with-param name="LCID" select="$LCID"/>
  2743.       </xsl:call-template>
  2744.     </xsl:variable>
  2745.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Chicago/b:SecondaryAuthors/b:FML"/>
  2746.   </xsl:template>
  2747.  
  2748.   
  2749.   <xsl:template name="templ_prop_Chicago_SecondaryAuthors_FM" >
  2750.     <xsl:param name="LCID" />
  2751.     <xsl:variable name="_LCID">
  2752.       <xsl:call-template name="localLCID">
  2753.         <xsl:with-param name="LCID" select="$LCID"/>
  2754.       </xsl:call-template>
  2755.     </xsl:variable>
  2756.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Chicago/b:SecondaryAuthors/b:FM"/>
  2757.   </xsl:template>
  2758.  
  2759.   
  2760.   <xsl:template name="templ_prop_Chicago_SecondaryAuthors_ML" >
  2761.     <xsl:param name="LCID" />
  2762.     <xsl:variable name="_LCID">
  2763.       <xsl:call-template name="localLCID">
  2764.         <xsl:with-param name="LCID" select="$LCID"/>
  2765.       </xsl:call-template>
  2766.     </xsl:variable>
  2767.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Chicago/b:SecondaryAuthors/b:ML"/>
  2768.   </xsl:template>
  2769.  
  2770.   
  2771.   <xsl:template name="templ_prop_Chicago_SecondaryAuthors_FL" >
  2772.     <xsl:param name="LCID" />
  2773.     <xsl:variable name="_LCID">
  2774.       <xsl:call-template name="localLCID">
  2775.         <xsl:with-param name="LCID" select="$LCID"/>
  2776.       </xsl:call-template>
  2777.     </xsl:variable>
  2778.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Chicago/b:SecondaryAuthors/b:FL"/>
  2779.   </xsl:template>
  2780.  
  2781.   
  2782.   <xsl:template name="templ_prop_Chicago_Date_DMY" >
  2783.     <xsl:param name="LCID" />
  2784.     <xsl:variable name="_LCID">
  2785.       <xsl:call-template name="localLCID">
  2786.         <xsl:with-param name="LCID" select="$LCID"/>
  2787.       </xsl:call-template>
  2788.     </xsl:variable>
  2789.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Chicago/b:Date/b:DMY"/>
  2790.   </xsl:template>
  2791.  
  2792.   
  2793.   <xsl:template name="templ_prop_Chicago_Date_DM" >
  2794.     <xsl:param name="LCID" />
  2795.     <xsl:variable name="_LCID">
  2796.       <xsl:call-template name="localLCID">
  2797.         <xsl:with-param name="LCID" select="$LCID"/>
  2798.       </xsl:call-template>
  2799.     </xsl:variable>
  2800.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Chicago/b:Date/b:DM"/>
  2801.   </xsl:template>
  2802.  
  2803.   
  2804.   <xsl:template name="templ_prop_Chicago_Date_MY" >
  2805.     <xsl:param name="LCID" />
  2806.     <xsl:variable name="_LCID">
  2807.       <xsl:call-template name="localLCID">
  2808.         <xsl:with-param name="LCID" select="$LCID"/>
  2809.       </xsl:call-template>
  2810.     </xsl:variable>
  2811.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Chicago/b:Date/b:MY"/>
  2812.   </xsl:template>
  2813.  
  2814.   
  2815.   <xsl:template name="templ_prop_Chicago_Date_DY" >
  2816.     <xsl:param name="LCID" />
  2817.     <xsl:variable name="_LCID">
  2818.       <xsl:call-template name="localLCID">
  2819.         <xsl:with-param name="LCID" select="$LCID"/>
  2820.       </xsl:call-template>
  2821.     </xsl:variable>
  2822.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Chicago/b:Date/b:DY"/>
  2823.   </xsl:template>
  2824.  
  2825.   
  2826.   <xsl:template name="templ_prop_ISO690_MainAuthors_FML" >
  2827.     <xsl:param name="LCID" />
  2828.     <xsl:variable name="_LCID">
  2829.       <xsl:call-template name="localLCID">
  2830.         <xsl:with-param name="LCID" select="$LCID"/>
  2831.       </xsl:call-template>
  2832.     </xsl:variable>
  2833.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:ISO690/b:MainAuthors/b:FML"/>
  2834.   </xsl:template>
  2835.  
  2836.   
  2837.   <xsl:template name="templ_prop_ISO690_MainAuthors_FM" >
  2838.     <xsl:param name="LCID" />
  2839.     <xsl:variable name="_LCID">
  2840.       <xsl:call-template name="localLCID">
  2841.         <xsl:with-param name="LCID" select="$LCID"/>
  2842.       </xsl:call-template>
  2843.     </xsl:variable>
  2844.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:ISO690/b:MainAuthors/b:FM"/>
  2845.   </xsl:template>
  2846.  
  2847.   
  2848.   <xsl:template name="templ_prop_ISO690_MainAuthors_ML" >
  2849.     <xsl:param name="LCID" />
  2850.     <xsl:variable name="_LCID">
  2851.       <xsl:call-template name="localLCID">
  2852.         <xsl:with-param name="LCID" select="$LCID"/>
  2853.       </xsl:call-template>
  2854.     </xsl:variable>
  2855.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:ISO690/b:MainAuthors/b:ML"/>
  2856.   </xsl:template>
  2857.  
  2858.   
  2859.   <xsl:template name="templ_prop_ISO690_MainAuthors_FL" >
  2860.     <xsl:param name="LCID" />
  2861.     <xsl:variable name="_LCID">
  2862.       <xsl:call-template name="localLCID">
  2863.         <xsl:with-param name="LCID" select="$LCID"/>
  2864.       </xsl:call-template>
  2865.     </xsl:variable>
  2866.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:ISO690/b:MainAuthors/b:FL"/>
  2867.   </xsl:template>
  2868.  
  2869.   
  2870.   <xsl:template name="templ_prop_ISO690_SecondaryAuthors_FML" >
  2871.     <xsl:param name="LCID" />
  2872.     <xsl:variable name="_LCID">
  2873.       <xsl:call-template name="localLCID">
  2874.         <xsl:with-param name="LCID" select="$LCID"/>
  2875.       </xsl:call-template>
  2876.     </xsl:variable>
  2877.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:ISO690/b:SecondaryAuthors/b:FML"/>
  2878.   </xsl:template>
  2879.  
  2880.   
  2881.   <xsl:template name="templ_prop_ISO690_SecondaryAuthors_FM" >
  2882.     <xsl:param name="LCID" />
  2883.     <xsl:variable name="_LCID">
  2884.       <xsl:call-template name="localLCID">
  2885.         <xsl:with-param name="LCID" select="$LCID"/>
  2886.       </xsl:call-template>
  2887.     </xsl:variable>
  2888.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:ISO690/b:SecondaryAuthors/b:FM"/>
  2889.   </xsl:template>
  2890.  
  2891.   
  2892.   <xsl:template name="templ_prop_ISO690_SecondaryAuthors_ML" >
  2893.     <xsl:param name="LCID" />
  2894.     <xsl:variable name="_LCID">
  2895.       <xsl:call-template name="localLCID">
  2896.         <xsl:with-param name="LCID" select="$LCID"/>
  2897.       </xsl:call-template>
  2898.     </xsl:variable>
  2899.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:ISO690/b:SecondaryAuthors/b:ML"/>
  2900.   </xsl:template>
  2901.  
  2902.   
  2903.   <xsl:template name="templ_prop_ISO690_SecondaryAuthors_FL" >
  2904.     <xsl:param name="LCID" />
  2905.     <xsl:variable name="_LCID">
  2906.       <xsl:call-template name="localLCID">
  2907.         <xsl:with-param name="LCID" select="$LCID"/>
  2908.       </xsl:call-template>
  2909.     </xsl:variable>
  2910.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:ISO690/b:SecondaryAuthors/b:FL"/>
  2911.   </xsl:template>
  2912.  
  2913.   
  2914.   <xsl:template name="templ_prop_ISO690_SameAuthor" >
  2915.     <xsl:param name="LCID" />
  2916.     <xsl:variable name="_LCID">
  2917.       <xsl:call-template name="localLCID">
  2918.         <xsl:with-param name="LCID" select="$LCID"/>
  2919.       </xsl:call-template>
  2920.     </xsl:variable>
  2921.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:ISO690/b:SameAuthor"/>
  2922.   </xsl:template>
  2923.  
  2924.   
  2925.   <xsl:template name="templ_prop_ISO690_GeneralOpen" >
  2926.     <xsl:param name="LCID" />
  2927.     <xsl:variable name="_LCID">
  2928.       <xsl:call-template name="localLCID">
  2929.         <xsl:with-param name="LCID" select="$LCID"/>
  2930.       </xsl:call-template>
  2931.     </xsl:variable>
  2932.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:ISO690/b:GeneralOpen"/>
  2933.   </xsl:template>
  2934.  
  2935.   
  2936.   <xsl:template name="templ_prop_ISO690_GeneralClose" >
  2937.     <xsl:param name="LCID" />
  2938.     <xsl:variable name="_LCID">
  2939.       <xsl:call-template name="localLCID">
  2940.         <xsl:with-param name="LCID" select="$LCID"/>
  2941.       </xsl:call-template>
  2942.     </xsl:variable>
  2943.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:ISO690/b:GeneralClose"/>
  2944.   </xsl:template>
  2945.  
  2946.   
  2947.   <xsl:template name="templ_prop_ISO690_Date_DMY" >
  2948.     <xsl:param name="LCID" />
  2949.     <xsl:variable name="_LCID">
  2950.       <xsl:call-template name="localLCID">
  2951.         <xsl:with-param name="LCID" select="$LCID"/>
  2952.       </xsl:call-template>
  2953.     </xsl:variable>
  2954.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:ISO690/b:Date/b:DMY"/>
  2955.   </xsl:template>
  2956.  
  2957.   
  2958.   <xsl:template name="templ_prop_ISO690_Date_DM" >
  2959.     <xsl:param name="LCID" />
  2960.     <xsl:variable name="_LCID">
  2961.       <xsl:call-template name="localLCID">
  2962.         <xsl:with-param name="LCID" select="$LCID"/>
  2963.       </xsl:call-template>
  2964.     </xsl:variable>
  2965.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:ISO690/b:Date/b:DM"/>
  2966.   </xsl:template>
  2967.  
  2968.   
  2969.   <xsl:template name="templ_prop_ISO690_Date_MY" >
  2970.     <xsl:param name="LCID" />
  2971.     <xsl:variable name="_LCID">
  2972.       <xsl:call-template name="localLCID">
  2973.         <xsl:with-param name="LCID" select="$LCID"/>
  2974.       </xsl:call-template>
  2975.     </xsl:variable>
  2976.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:ISO690/b:Date/b:MY"/>
  2977.   </xsl:template>
  2978.  
  2979.   
  2980.   <xsl:template name="templ_prop_ISO690_Date_DY" >
  2981.     <xsl:param name="LCID" />
  2982.     <xsl:variable name="_LCID">
  2983.       <xsl:call-template name="localLCID">
  2984.         <xsl:with-param name="LCID" select="$LCID"/>
  2985.       </xsl:call-template>
  2986.     </xsl:variable>
  2987.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:ISO690/b:Date/b:DY"/>
  2988.   </xsl:template>
  2989.  
  2990.   
  2991.   <xsl:template name="templ_prop_ISO690_DateAccessed_DMY" >
  2992.     <xsl:param name="LCID" />
  2993.     <xsl:variable name="_LCID">
  2994.       <xsl:call-template name="localLCID">
  2995.         <xsl:with-param name="LCID" select="$LCID"/>
  2996.       </xsl:call-template>
  2997.     </xsl:variable>
  2998.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:ISO690/b:DateAccessed/b:DMY"/>
  2999.   </xsl:template>
  3000.  
  3001.   
  3002.   <xsl:template name="templ_prop_ISO690_DateAccessed_DM" >
  3003.     <xsl:param name="LCID" />
  3004.     <xsl:variable name="_LCID">
  3005.       <xsl:call-template name="localLCID">
  3006.         <xsl:with-param name="LCID" select="$LCID"/>
  3007.       </xsl:call-template>
  3008.     </xsl:variable>
  3009.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:ISO690/b:DateAccessed/b:DM"/>
  3010.   </xsl:template>
  3011.  
  3012.   
  3013.   <xsl:template name="templ_prop_ISO690_DateAccessed_MY" >
  3014.     <xsl:param name="LCID" />
  3015.     <xsl:variable name="_LCID">
  3016.       <xsl:call-template name="localLCID">
  3017.         <xsl:with-param name="LCID" select="$LCID"/>
  3018.       </xsl:call-template>
  3019.     </xsl:variable>
  3020.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:ISO690/b:DateAccessed/b:MY"/>
  3021.   </xsl:template>
  3022.  
  3023.   
  3024.   <xsl:template name="templ_prop_ISO690_DateAccessed_DY" >
  3025.     <xsl:param name="LCID" />
  3026.     <xsl:variable name="_LCID">
  3027.       <xsl:call-template name="localLCID">
  3028.         <xsl:with-param name="LCID" select="$LCID"/>
  3029.       </xsl:call-template>
  3030.     </xsl:variable>
  3031.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:ISO690/b:DateAccessed/b:DY"/>
  3032.   </xsl:template>
  3033.  
  3034.   
  3035.   <xsl:template name="templ_prop_Gost_Authors_FML" >
  3036.     <xsl:param name="LCID" />
  3037.     <xsl:variable name="_LCID">
  3038.       <xsl:call-template name="localLCID">
  3039.         <xsl:with-param name="LCID" select="$LCID"/>
  3040.       </xsl:call-template>
  3041.     </xsl:variable>
  3042.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Gost/b:Authors/b:FML"/>
  3043.   </xsl:template>
  3044.  
  3045.   
  3046.   <xsl:template name="templ_prop_Gost_Authors_FM" >
  3047.     <xsl:param name="LCID" />
  3048.     <xsl:variable name="_LCID">
  3049.       <xsl:call-template name="localLCID">
  3050.         <xsl:with-param name="LCID" select="$LCID"/>
  3051.       </xsl:call-template>
  3052.     </xsl:variable>
  3053.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Gost/b:Authors/b:FM"/>
  3054.   </xsl:template>
  3055.  
  3056.   
  3057.   <xsl:template name="templ_prop_Gost_Authors_ML" >
  3058.     <xsl:param name="LCID" />
  3059.     <xsl:variable name="_LCID">
  3060.       <xsl:call-template name="localLCID">
  3061.         <xsl:with-param name="LCID" select="$LCID"/>
  3062.       </xsl:call-template>
  3063.     </xsl:variable>
  3064.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Gost/b:Authors/b:ML"/>
  3065.   </xsl:template>
  3066.  
  3067.   
  3068.   <xsl:template name="templ_prop_Gost_Authors_FL" >
  3069.     <xsl:param name="LCID" />
  3070.     <xsl:variable name="_LCID">
  3071.       <xsl:call-template name="localLCID">
  3072.         <xsl:with-param name="LCID" select="$LCID"/>
  3073.       </xsl:call-template>
  3074.     </xsl:variable>
  3075.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Gost/b:Authors/b:FL"/>
  3076.   </xsl:template>
  3077.  
  3078.   
  3079.   <xsl:template name="templ_prop_Gost_Date_DMY" >
  3080.     <xsl:param name="LCID" />
  3081.     <xsl:variable name="_LCID">
  3082.       <xsl:call-template name="localLCID">
  3083.         <xsl:with-param name="LCID" select="$LCID"/>
  3084.       </xsl:call-template>
  3085.     </xsl:variable>
  3086.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Gost/b:Date/b:DMY"/>
  3087.   </xsl:template>
  3088.  
  3089.   
  3090.   <xsl:template name="templ_prop_Gost_Date_DM" >
  3091.     <xsl:param name="LCID" />
  3092.     <xsl:variable name="_LCID">
  3093.       <xsl:call-template name="localLCID">
  3094.         <xsl:with-param name="LCID" select="$LCID"/>
  3095.       </xsl:call-template>
  3096.     </xsl:variable>
  3097.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Gost/b:Date/b:DM"/>
  3098.   </xsl:template>
  3099.  
  3100.   
  3101.   <xsl:template name="templ_prop_Gost_Date_MY" >
  3102.     <xsl:param name="LCID" />
  3103.     <xsl:variable name="_LCID">
  3104.       <xsl:call-template name="localLCID">
  3105.         <xsl:with-param name="LCID" select="$LCID"/>
  3106.       </xsl:call-template>
  3107.     </xsl:variable>
  3108.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Gost/b:Date/b:MY"/>
  3109.   </xsl:template>
  3110.  
  3111.   
  3112.   <xsl:template name="templ_prop_Gost_Date_DY" >
  3113.     <xsl:param name="LCID" />
  3114.     <xsl:variable name="_LCID">
  3115.       <xsl:call-template name="localLCID">
  3116.         <xsl:with-param name="LCID" select="$LCID"/>
  3117.       </xsl:call-template>
  3118.     </xsl:variable>
  3119.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Gost/b:Date/b:DY"/>
  3120.   </xsl:template>
  3121.  
  3122.   
  3123.   <xsl:template name="templ_prop_Gost_GeneralOpen" >
  3124.     <xsl:param name="LCID" />
  3125.     <xsl:variable name="_LCID">
  3126.       <xsl:call-template name="localLCID">
  3127.         <xsl:with-param name="LCID" select="$LCID"/>
  3128.       </xsl:call-template>
  3129.     </xsl:variable>
  3130.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Gost/b:GeneralOpen"/>
  3131.   </xsl:template>
  3132.  
  3133.   
  3134.   <xsl:template name="templ_prop_Gost_GeneralClose" >
  3135.     <xsl:param name="LCID" />
  3136.     <xsl:variable name="_LCID">
  3137.       <xsl:call-template name="localLCID">
  3138.         <xsl:with-param name="LCID" select="$LCID"/>
  3139.       </xsl:call-template>
  3140.     </xsl:variable>
  3141.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Gost/b:GeneralClose"/>
  3142.   </xsl:template>
  3143.  
  3144.   
  3145.   <xsl:template name="templ_prop_Gost_OneSlash" >
  3146.     <xsl:param name="LCID" />
  3147.     <xsl:variable name="_LCID">
  3148.       <xsl:call-template name="localLCID">
  3149.         <xsl:with-param name="LCID" select="$LCID"/>
  3150.       </xsl:call-template>
  3151.     </xsl:variable>
  3152.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Gost/b:OneSlash"/>
  3153.   </xsl:template>
  3154.  
  3155.   
  3156.   <xsl:template name="templ_prop_Gost_TwoSlash" >
  3157.     <xsl:param name="LCID" />
  3158.     <xsl:variable name="_LCID">
  3159.       <xsl:call-template name="localLCID">
  3160.         <xsl:with-param name="LCID" select="$LCID"/>
  3161.       </xsl:call-template>
  3162.     </xsl:variable>
  3163.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Gost/b:TwoSlash"/>
  3164.   </xsl:template>
  3165.  
  3166.   
  3167.   <xsl:template name="templ_prop_SIST_MainAuthors_FML" >
  3168.     <xsl:param name="LCID" />
  3169.     <xsl:variable name="_LCID">
  3170.       <xsl:call-template name="localLCID">
  3171.         <xsl:with-param name="LCID" select="$LCID"/>
  3172.       </xsl:call-template>
  3173.     </xsl:variable>
  3174.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:SIST/b:MainAuthors/b:FML"/>
  3175.   </xsl:template>
  3176.  
  3177.   
  3178.   <xsl:template name="templ_prop_SIST_MainAuthors_FM" >
  3179.     <xsl:param name="LCID" />
  3180.     <xsl:variable name="_LCID">
  3181.       <xsl:call-template name="localLCID">
  3182.         <xsl:with-param name="LCID" select="$LCID"/>
  3183.       </xsl:call-template>
  3184.     </xsl:variable>
  3185.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:SIST/b:MainAuthors/b:FM"/>
  3186.   </xsl:template>
  3187.  
  3188.   
  3189.   <xsl:template name="templ_prop_SIST_MainAuthors_ML" >
  3190.     <xsl:param name="LCID" />
  3191.     <xsl:variable name="_LCID">
  3192.       <xsl:call-template name="localLCID">
  3193.         <xsl:with-param name="LCID" select="$LCID"/>
  3194.       </xsl:call-template>
  3195.     </xsl:variable>
  3196.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:SIST/b:MainAuthors/b:ML"/>
  3197.   </xsl:template>
  3198.  
  3199.   
  3200.   <xsl:template name="templ_prop_SIST_MainAuthors_FL" >
  3201.     <xsl:param name="LCID" />
  3202.     <xsl:variable name="_LCID">
  3203.       <xsl:call-template name="localLCID">
  3204.         <xsl:with-param name="LCID" select="$LCID"/>
  3205.       </xsl:call-template>
  3206.     </xsl:variable>
  3207.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:SIST/b:MainAuthors/b:FL"/>
  3208.   </xsl:template>
  3209.  
  3210.   
  3211.   <xsl:template name="templ_prop_SIST_SecondaryAuthors_FML" >
  3212.     <xsl:param name="LCID" />
  3213.     <xsl:variable name="_LCID">
  3214.       <xsl:call-template name="localLCID">
  3215.         <xsl:with-param name="LCID" select="$LCID"/>
  3216.       </xsl:call-template>
  3217.     </xsl:variable>
  3218.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:SIST/b:SecondaryAuthors/b:FML"/>
  3219.   </xsl:template>
  3220.  
  3221.   
  3222.   <xsl:template name="templ_prop_SIST_SecondaryAuthors_FM" >
  3223.     <xsl:param name="LCID" />
  3224.     <xsl:variable name="_LCID">
  3225.       <xsl:call-template name="localLCID">
  3226.         <xsl:with-param name="LCID" select="$LCID"/>
  3227.       </xsl:call-template>
  3228.     </xsl:variable>
  3229.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:SIST/b:SecondaryAuthors/b:FM"/>
  3230.   </xsl:template>
  3231.  
  3232.   
  3233.   <xsl:template name="templ_prop_SIST_SecondaryAuthors_ML" >
  3234.     <xsl:param name="LCID" />
  3235.     <xsl:variable name="_LCID">
  3236.       <xsl:call-template name="localLCID">
  3237.         <xsl:with-param name="LCID" select="$LCID"/>
  3238.       </xsl:call-template>
  3239.     </xsl:variable>
  3240.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:SIST/b:SecondaryAuthors/b:ML"/>
  3241.   </xsl:template>
  3242.  
  3243.   
  3244.   <xsl:template name="templ_prop_SIST_SecondaryAuthors_FL" >
  3245.     <xsl:param name="LCID" />
  3246.     <xsl:variable name="_LCID">
  3247.       <xsl:call-template name="localLCID">
  3248.         <xsl:with-param name="LCID" select="$LCID"/>
  3249.       </xsl:call-template>
  3250.     </xsl:variable>
  3251.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:SIST/b:SecondaryAuthors/b:FL"/>
  3252.   </xsl:template>
  3253.  
  3254.   
  3255.   <xsl:template name="templ_prop_SIST_SameAuthor" >
  3256.     <xsl:param name="LCID" />
  3257.     <xsl:variable name="_LCID">
  3258.       <xsl:call-template name="localLCID">
  3259.         <xsl:with-param name="LCID" select="$LCID"/>
  3260.       </xsl:call-template>
  3261.     </xsl:variable>
  3262.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:SIST/b:SameAuthor"/>
  3263.   </xsl:template>
  3264.  
  3265.   
  3266.   <xsl:template name="templ_prop_SIST_GeneralOpen" >
  3267.     <xsl:param name="LCID" />
  3268.     <xsl:variable name="_LCID">
  3269.       <xsl:call-template name="localLCID">
  3270.         <xsl:with-param name="LCID" select="$LCID"/>
  3271.       </xsl:call-template>
  3272.     </xsl:variable>
  3273.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:SIST/b:GeneralOpen"/>
  3274.   </xsl:template>
  3275.  
  3276.   
  3277.   <xsl:template name="templ_prop_SIST_GeneralClose" >
  3278.     <xsl:param name="LCID" />
  3279.     <xsl:variable name="_LCID">
  3280.       <xsl:call-template name="localLCID">
  3281.         <xsl:with-param name="LCID" select="$LCID"/>
  3282.       </xsl:call-template>
  3283.     </xsl:variable>
  3284.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:SIST/b:GeneralClose"/>
  3285.   </xsl:template>
  3286.  
  3287.   
  3288.   <xsl:template name="templ_prop_SIST_Date_DMY" >
  3289.     <xsl:param name="LCID" />
  3290.     <xsl:variable name="_LCID">
  3291.       <xsl:call-template name="localLCID">
  3292.         <xsl:with-param name="LCID" select="$LCID"/>
  3293.       </xsl:call-template>
  3294.     </xsl:variable>
  3295.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:SIST/b:Date/b:DMY"/>
  3296.   </xsl:template>
  3297.  
  3298.   
  3299.   <xsl:template name="templ_prop_SIST_Date_DM" >
  3300.     <xsl:param name="LCID" />
  3301.     <xsl:variable name="_LCID">
  3302.       <xsl:call-template name="localLCID">
  3303.         <xsl:with-param name="LCID" select="$LCID"/>
  3304.       </xsl:call-template>
  3305.     </xsl:variable>
  3306.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:SIST/b:Date/b:DM"/>
  3307.   </xsl:template>
  3308.  
  3309.   
  3310.   <xsl:template name="templ_prop_SIST_Date_MY" >
  3311.     <xsl:param name="LCID" />
  3312.     <xsl:variable name="_LCID">
  3313.       <xsl:call-template name="localLCID">
  3314.         <xsl:with-param name="LCID" select="$LCID"/>
  3315.       </xsl:call-template>
  3316.     </xsl:variable>
  3317.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:SIST/b:Date/b:MY"/>
  3318.   </xsl:template>
  3319.  
  3320.   
  3321.   <xsl:template name="templ_prop_SIST_Date_DY" >
  3322.     <xsl:param name="LCID" />
  3323.     <xsl:variable name="_LCID">
  3324.       <xsl:call-template name="localLCID">
  3325.         <xsl:with-param name="LCID" select="$LCID"/>
  3326.       </xsl:call-template>
  3327.     </xsl:variable>
  3328.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:SIST/b:Date/b:DY"/>
  3329.   </xsl:template>
  3330.  
  3331.   
  3332.   <xsl:template name="templ_prop_SIST_DateAccessed_DMY" >
  3333.     <xsl:param name="LCID" />
  3334.     <xsl:variable name="_LCID">
  3335.       <xsl:call-template name="localLCID">
  3336.         <xsl:with-param name="LCID" select="$LCID"/>
  3337.       </xsl:call-template>
  3338.     </xsl:variable>
  3339.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:SIST/b:DateAccessed/b:DMY"/>
  3340.   </xsl:template>
  3341.  
  3342.   
  3343.   <xsl:template name="templ_prop_SIST_DateAccessed_DM" >
  3344.     <xsl:param name="LCID" />
  3345.     <xsl:variable name="_LCID">
  3346.       <xsl:call-template name="localLCID">
  3347.         <xsl:with-param name="LCID" select="$LCID"/>
  3348.       </xsl:call-template>
  3349.     </xsl:variable>
  3350.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:SIST/b:DateAccessed/b:DM"/>
  3351.   </xsl:template>
  3352.  
  3353.   
  3354.   <xsl:template name="templ_prop_SIST_DateAccessed_MY" >
  3355.     <xsl:param name="LCID" />
  3356.     <xsl:variable name="_LCID">
  3357.       <xsl:call-template name="localLCID">
  3358.         <xsl:with-param name="LCID" select="$LCID"/>
  3359.       </xsl:call-template>
  3360.     </xsl:variable>
  3361.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:SIST/b:DateAccessed/b:MY"/>
  3362.   </xsl:template>
  3363.  
  3364.   
  3365.   <xsl:template name="templ_prop_SIST_DateAccessed_DY" >
  3366.     <xsl:param name="LCID" />
  3367.     <xsl:variable name="_LCID">
  3368.       <xsl:call-template name="localLCID">
  3369.         <xsl:with-param name="LCID" select="$LCID"/>
  3370.       </xsl:call-template>
  3371.     </xsl:variable>
  3372.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:SIST/b:DateAccessed/b:DY"/>
  3373.   </xsl:template>
  3374.  
  3375.   
  3376.  
  3377.   
  3378.  
  3379.   
  3380.  
  3381.  
  3382.  
  3383.   <xsl:template match="/">
  3384.  
  3385.  
  3386.  
  3387.  
  3388.  
  3389.     <xsl:choose>
  3390.       
  3391.       <xsl:when test="b:Version">
  3392.         <xsl:text>2006.5.07</xsl:text>
  3393.       </xsl:when>
  3394.  
  3395.       <xsl:when test="b:OfficeStyleKey">
  3396.         <xsl:text>APA</xsl:text>
  3397.       </xsl:when>
  3398.  
  3399.       
  3400.  
  3401.       <xsl:when test="b:GetImportantFields">
  3402.         <b:ImportantFields>
  3403.           <xsl:choose>
  3404.             <xsl:when test="b:GetImportantFields/b:SourceType='Book'">
  3405.               <b:ImportantField>
  3406.                 <xsl:text>b:Author/b:Author/b:NameList</xsl:text>
  3407.               </b:ImportantField>
  3408.               <b:ImportantField>
  3409.                 <xsl:text>b:Title</xsl:text>
  3410.               </b:ImportantField>
  3411.               <b:ImportantField>
  3412.                 <xsl:text>b:Year</xsl:text>
  3413.               </b:ImportantField>
  3414.               <b:ImportantField>
  3415.                 <xsl:text>b:City</xsl:text>
  3416.               </b:ImportantField>
  3417.               <b:ImportantField>
  3418.                 <xsl:text>b:Publisher</xsl:text>
  3419.               </b:ImportantField>
  3420.             </xsl:when>
  3421.  
  3422.             <xsl:when test="b:GetImportantFields/b:SourceType='BookSection'">
  3423.               <b:ImportantField>
  3424.                 <xsl:text>b:Author/b:Author/b:NameList</xsl:text>
  3425.               </b:ImportantField>
  3426.               <b:ImportantField>
  3427.                 <xsl:text>b:Title</xsl:text>
  3428.               </b:ImportantField>
  3429.               <b:ImportantField>
  3430.                 <xsl:text>b:Author/b:BookAuthor/b:NameList</xsl:text>
  3431.               </b:ImportantField>
  3432.               <b:ImportantField>
  3433.                 <xsl:text>b:BookTitle</xsl:text>
  3434.               </b:ImportantField>
  3435.               <b:ImportantField>
  3436.                 <xsl:text>b:Year</xsl:text>
  3437.               </b:ImportantField>
  3438.               <b:ImportantField>
  3439.                 <xsl:text>b:Pages</xsl:text>
  3440.               </b:ImportantField>
  3441.               <b:ImportantField>
  3442.                 <xsl:text>b:City</xsl:text>
  3443.               </b:ImportantField>
  3444.               <b:ImportantField>
  3445.                 <xsl:text>b:Publisher</xsl:text>
  3446.               </b:ImportantField>
  3447.             </xsl:when>
  3448.  
  3449.             <xsl:when test="b:GetImportantFields/b:SourceType='JournalArticle'">
  3450.               <b:ImportantField>
  3451.                 <xsl:text>b:Author/b:Author/b:NameList</xsl:text>
  3452.               </b:ImportantField>
  3453.               <b:ImportantField>
  3454.                 <xsl:text>b:Title</xsl:text>
  3455.               </b:ImportantField>
  3456.               <b:ImportantField>
  3457.                 <xsl:text>b:JournalName</xsl:text>
  3458.               </b:ImportantField>
  3459.               <b:ImportantField>
  3460.                 <xsl:text>b:Year</xsl:text>
  3461.               </b:ImportantField>
  3462.               <b:ImportantField>
  3463.                 <xsl:text>b:Pages</xsl:text>
  3464.               </b:ImportantField>
  3465.             </xsl:when>
  3466.  
  3467.             <xsl:when test="b:GetImportantFields/b:SourceType='ArticleInAPeriodical'">
  3468.               <b:ImportantField>
  3469.                 <xsl:text>b:Author/b:Author/b:NameList</xsl:text>
  3470.               </b:ImportantField>
  3471.               <b:ImportantField>
  3472.                 <xsl:text>b:Title</xsl:text>
  3473.               </b:ImportantField>
  3474.               <b:ImportantField>
  3475.                 <xsl:text>b:PeriodicalTitle</xsl:text>
  3476.               </b:ImportantField>
  3477.               <b:ImportantField>
  3478.                 <xsl:text>b:Year</xsl:text>
  3479.               </b:ImportantField>
  3480.               <b:ImportantField>
  3481.                 <xsl:text>b:Month</xsl:text>
  3482.               </b:ImportantField>
  3483.               <b:ImportantField>
  3484.                 <xsl:text>b:Day</xsl:text>
  3485.               </b:ImportantField>
  3486.               <b:ImportantField>
  3487.                 <xsl:text>b:Pages</xsl:text>
  3488.               </b:ImportantField>
  3489.             </xsl:when>
  3490.  
  3491.             <xsl:when test="b:GetImportantFields/b:SourceType='ConferenceProceedings'">
  3492.               <b:ImportantField>
  3493.                 <xsl:text>b:Author/b:Author/b:NameList</xsl:text>
  3494.               </b:ImportantField>
  3495.               <b:ImportantField>
  3496.                 <xsl:text>b:Title</xsl:text>
  3497.               </b:ImportantField>
  3498.               <b:ImportantField>
  3499.                 <xsl:text>b:Pages</xsl:text>
  3500.               </b:ImportantField>
  3501.               <b:ImportantField>
  3502.                 <xsl:text>b:Year</xsl:text>
  3503.               </b:ImportantField>
  3504.               <b:ImportantField>
  3505.                 <xsl:text>b:ConferenceName</xsl:text>
  3506.               </b:ImportantField>
  3507.               <b:ImportantField>
  3508.                 <xsl:text>b:City</xsl:text>
  3509.               </b:ImportantField>
  3510.               <b:ImportantField>
  3511.                 <xsl:text>b:Publisher</xsl:text>
  3512.               </b:ImportantField>
  3513.             </xsl:when>
  3514.  
  3515.             <xsl:when test="b:GetImportantFields/b:SourceType='Report'">
  3516.               <b:ImportantField>
  3517.                 <xsl:text>b:Author/b:Author/b:NameList</xsl:text>
  3518.               </b:ImportantField>
  3519.               <b:ImportantField>
  3520.                 <xsl:text>b:Title</xsl:text>
  3521.               </b:ImportantField>
  3522.               <b:ImportantField>
  3523.                 <xsl:text>b:Year</xsl:text>
  3524.               </b:ImportantField>
  3525.               <b:ImportantField>
  3526.                 <xsl:text>b:Publisher</xsl:text>
  3527.               </b:ImportantField>
  3528.               <b:ImportantField>
  3529.                 <xsl:text>b:City</xsl:text>
  3530.               </b:ImportantField>
  3531.             </xsl:when>
  3532.  
  3533.             <xsl:when test="b:GetImportantFields/b:SourceType='SoundRecording'">
  3534.               <b:ImportantField>
  3535.                 <xsl:text>b:Author/b:Composer/b:NameList</xsl:text>
  3536.               </b:ImportantField>
  3537.               <b:ImportantField>
  3538.                 <xsl:text>b:Author/b:Conductor/b:NameList</xsl:text>
  3539.               </b:ImportantField>
  3540.               <b:ImportantField>
  3541.                 <xsl:text>b:Author/b:Performer/b:NameList</xsl:text>
  3542.               </b:ImportantField>
  3543.               <b:ImportantField>
  3544.                 <xsl:text>b:Title</xsl:text>
  3545.               </b:ImportantField>
  3546.               <b:ImportantField>
  3547.                 <xsl:text>b:Year</xsl:text>
  3548.               </b:ImportantField>
  3549.               <b:ImportantField>
  3550.                 <xsl:text>b:City</xsl:text>
  3551.               </b:ImportantField>
  3552.               <b:ImportantField>
  3553.                 <xsl:text>b:CountryRegion</xsl:text>
  3554.               </b:ImportantField>
  3555.               <b:ImportantField>
  3556.                 <xsl:text>b:StateProvince</xsl:text>
  3557.               </b:ImportantField>
  3558.             </xsl:when>
  3559.  
  3560.             <xsl:when test="b:GetImportantFields/b:SourceType='Performance'">
  3561.               <b:ImportantField>
  3562.                 <xsl:text>b:Title</xsl:text>
  3563.               </b:ImportantField>
  3564.               <b:ImportantField>
  3565.                 <xsl:text>b:Author/b:Writer/b:NameList</xsl:text>
  3566.               </b:ImportantField>
  3567.               <b:ImportantField>
  3568.                 <xsl:text>b:Author/b:Performer/b:NameList</xsl:text>
  3569.               </b:ImportantField>
  3570.               <b:ImportantField>
  3571.                 <xsl:text>b:Theater</xsl:text>
  3572.               </b:ImportantField>
  3573.               <b:ImportantField>
  3574.                 <xsl:text>b:City</xsl:text>
  3575.               </b:ImportantField>
  3576.               <b:ImportantField>
  3577.                 <xsl:text>b:CountryRegion</xsl:text>
  3578.               </b:ImportantField>
  3579.               <b:ImportantField>
  3580.                 <xsl:text>b:StateProvince</xsl:text>
  3581.               </b:ImportantField>
  3582.               <b:ImportantField>
  3583.                 <xsl:text>b:Year</xsl:text>
  3584.               </b:ImportantField>
  3585.               <b:ImportantField>
  3586.                 <xsl:text>b:Month</xsl:text>
  3587.               </b:ImportantField>
  3588.               <b:ImportantField>
  3589.                 <xsl:text>b:Day</xsl:text>
  3590.               </b:ImportantField>
  3591.             </xsl:when>
  3592.  
  3593.             <xsl:when test="b:GetImportantFields/b:SourceType='Art'">
  3594.               <b:ImportantField>
  3595.                 <xsl:text>b:Author/b:Artist/b:NameList</xsl:text>
  3596.               </b:ImportantField>
  3597.               <b:ImportantField>
  3598.                 <xsl:text>b:Title</xsl:text>
  3599.               </b:ImportantField>
  3600.               <b:ImportantField>
  3601.                 <xsl:text>b:Institution</xsl:text>
  3602.               </b:ImportantField>
  3603.               <b:ImportantField>
  3604.                 <xsl:text>b:PublicationTitle</xsl:text>
  3605.               </b:ImportantField>
  3606.               <b:ImportantField>
  3607.                 <xsl:text>b:City</xsl:text>
  3608.               </b:ImportantField>
  3609.             </xsl:when>
  3610.  
  3611.             <xsl:when test="b:GetImportantFields/b:SourceType='DocumentFromInternetSite'">
  3612.               <b:ImportantField>
  3613.                 <xsl:text>b:Author/b:Author/b:NameList</xsl:text>
  3614.               </b:ImportantField>
  3615.               <b:ImportantField>
  3616.                 <xsl:text>b:Title</xsl:text>
  3617.               </b:ImportantField>
  3618.               <b:ImportantField>
  3619.                 <xsl:text>b:InternetSiteTitle</xsl:text>
  3620.               </b:ImportantField>
  3621.               <b:ImportantField>
  3622.                 <xsl:text>b:Year</xsl:text>
  3623.               </b:ImportantField>
  3624.               <b:ImportantField>
  3625.                 <xsl:text>b:Month</xsl:text>
  3626.               </b:ImportantField>
  3627.               <b:ImportantField>
  3628.                 <xsl:text>b:Day</xsl:text>
  3629.               </b:ImportantField>
  3630.               <b:ImportantField>
  3631.                 <xsl:text>b:YearAccessed</xsl:text>
  3632.               </b:ImportantField>
  3633.               <b:ImportantField>
  3634.                 <xsl:text>b:MonthAccessed</xsl:text>
  3635.               </b:ImportantField>
  3636.               <b:ImportantField>
  3637.                 <xsl:text>b:DayAccessed</xsl:text>
  3638.               </b:ImportantField>
  3639.               <b:ImportantField>
  3640.                 <xsl:text>b:URL</xsl:text>
  3641.               </b:ImportantField>
  3642.             </xsl:when>
  3643.  
  3644.             <xsl:when test="b:GetImportantFields/b:SourceType='InternetSite'">
  3645.               <b:ImportantField>
  3646.                 <xsl:text>b:Author/b:Author/b:NameList</xsl:text>
  3647.               </b:ImportantField>
  3648.               <b:ImportantField>
  3649.                 <xsl:text>b:Title</xsl:text>
  3650.               </b:ImportantField>
  3651.               <b:ImportantField>
  3652.                 <xsl:text>b:InternetSiteTitle</xsl:text>
  3653.               </b:ImportantField>
  3654.               <b:ImportantField>
  3655.                 <xsl:text>b:Year</xsl:text>
  3656.               </b:ImportantField>
  3657.               <b:ImportantField>
  3658.                 <xsl:text>b:Month</xsl:text>
  3659.               </b:ImportantField>
  3660.               <b:ImportantField>
  3661.                 <xsl:text>b:Day</xsl:text>
  3662.               </b:ImportantField>
  3663.               <b:ImportantField>
  3664.                 <xsl:text>b:YearAccessed</xsl:text>
  3665.               </b:ImportantField>
  3666.               <b:ImportantField>
  3667.                 <xsl:text>b:MonthAccessed</xsl:text>
  3668.               </b:ImportantField>
  3669.               <b:ImportantField>
  3670.                 <xsl:text>b:DayAccessed</xsl:text>
  3671.               </b:ImportantField>
  3672.               <b:ImportantField>
  3673.                 <xsl:text>b:URL</xsl:text>
  3674.               </b:ImportantField>
  3675.             </xsl:when>
  3676.  
  3677.             <xsl:when test="b:GetImportantFields/b:SourceType='Film'">
  3678.               <b:ImportantField>
  3679.                 <xsl:text>b:Title</xsl:text>
  3680.               </b:ImportantField>
  3681.               <b:ImportantField>
  3682.                 <xsl:text>b:Author/b:Director/b:NameList</xsl:text>
  3683.               </b:ImportantField>
  3684.               <b:ImportantField>
  3685.                 <xsl:text>b:Year</xsl:text>
  3686.               </b:ImportantField>
  3687.             </xsl:when>
  3688.  
  3689.             <xsl:when test="b:GetImportantFields/b:SourceType='Interview'">
  3690.               <b:ImportantField>
  3691.                 <xsl:text>b:Author/b:Interviewee/b:NameList</xsl:text>
  3692.               </b:ImportantField>
  3693.               <b:ImportantField>
  3694.                 <xsl:text>b:Title</xsl:text>
  3695.               </b:ImportantField>
  3696.               <b:ImportantField>
  3697.                 <xsl:text>b:Author/b:Interviewer/b:NameList</xsl:text>
  3698.               </b:ImportantField>
  3699.               <b:ImportantField>
  3700.                 <xsl:text>b:Year</xsl:text>
  3701.               </b:ImportantField>
  3702.               <b:ImportantField>
  3703.                 <xsl:text>b:Month</xsl:text>
  3704.               </b:ImportantField>
  3705.               <b:ImportantField>
  3706.                 <xsl:text>b:Day</xsl:text>
  3707.               </b:ImportantField>
  3708.             </xsl:when>
  3709.  
  3710.             <xsl:when test="b:GetImportantFields/b:SourceType='Patent'">
  3711.               <b:ImportantField>
  3712.                 <xsl:text>b:Author/b:Inventor/b:NameList</xsl:text>
  3713.               </b:ImportantField>
  3714.               <b:ImportantField>
  3715.                 <xsl:text>b:Year</xsl:text>
  3716.               </b:ImportantField>
  3717.               <b:ImportantField>
  3718.                 <xsl:text>b:CountryRegion</xsl:text>
  3719.               </b:ImportantField>
  3720.               <b:ImportantField>
  3721.                 <xsl:text>b:PatentNumber</xsl:text>
  3722.               </b:ImportantField>
  3723.             </xsl:when>
  3724.  
  3725.             <xsl:when test="b:GetImportantFields/b:SourceType='ElectronicSource'">
  3726.               <b:ImportantField>
  3727.                 <xsl:text>b:Author/b:Author/b:NameList</xsl:text>
  3728.               </b:ImportantField>
  3729.               <b:ImportantField>
  3730.                 <xsl:text>b:Title</xsl:text>
  3731.               </b:ImportantField>
  3732.               <b:ImportantField>
  3733.                 <xsl:text>b:City</xsl:text>
  3734.               </b:ImportantField>
  3735.               <b:ImportantField>
  3736.                 <xsl:text>b:CountryRegion</xsl:text>
  3737.               </b:ImportantField>
  3738.               <b:ImportantField>
  3739.                 <xsl:text>b:StateProvince</xsl:text>
  3740.               </b:ImportantField>
  3741.               <b:ImportantField>
  3742.                 <xsl:text>b:Year</xsl:text>
  3743.               </b:ImportantField>
  3744.               <b:ImportantField>
  3745.                 <xsl:text>b:Month</xsl:text>
  3746.               </b:ImportantField>
  3747.               <b:ImportantField>
  3748.                 <xsl:text>b:Day</xsl:text>
  3749.               </b:ImportantField>
  3750.             </xsl:when>
  3751.  
  3752.             <xsl:when test="b:GetImportantFields/b:SourceType='Case'">
  3753.               <b:ImportantField>
  3754.                 <xsl:text>b:Title</xsl:text>
  3755.               </b:ImportantField>
  3756.               <b:ImportantField>
  3757.                 <xsl:text>b:CaseNumber</xsl:text>
  3758.               </b:ImportantField>
  3759.               <b:ImportantField>
  3760.                 <xsl:text>b:Court</xsl:text>
  3761.               </b:ImportantField>
  3762.               <b:ImportantField>
  3763.                 <xsl:text>b:Year</xsl:text>
  3764.               </b:ImportantField>
  3765.               <b:ImportantField>
  3766.                 <xsl:text>b:Month</xsl:text>
  3767.               </b:ImportantField>
  3768.               <b:ImportantField>
  3769.                 <xsl:text>b:Day</xsl:text>
  3770.               </b:ImportantField>
  3771.             </xsl:when>
  3772.  
  3773.             <xsl:when test="b:GetImportantFields/b:SourceType='Misc'">
  3774.               <b:ImportantField>
  3775.                 <xsl:text>b:Author/b:Author/b:NameList</xsl:text>
  3776.               </b:ImportantField>
  3777.               <b:ImportantField>
  3778.                 <xsl:text>b:Title</xsl:text>
  3779.               </b:ImportantField>
  3780.               <b:ImportantField>
  3781.                 <xsl:text>b:PublicationTitle</xsl:text>
  3782.               </b:ImportantField>
  3783.               <b:ImportantField>
  3784.                 <xsl:text>b:Year</xsl:text>
  3785.               </b:ImportantField>
  3786.               <b:ImportantField>
  3787.                 <xsl:text>b:Month</xsl:text>
  3788.               </b:ImportantField>
  3789.               <b:ImportantField>
  3790.                 <xsl:text>b:Day</xsl:text>
  3791.               </b:ImportantField>
  3792.               <b:ImportantField>
  3793.                 <xsl:text>b:City</xsl:text>
  3794.               </b:ImportantField>
  3795.               <b:ImportantField>
  3796.                 <xsl:text>b:CountryRegion</xsl:text>
  3797.               </b:ImportantField>
  3798.               <b:ImportantField>
  3799.                 <xsl:text>b:StateProvince</xsl:text>
  3800.               </b:ImportantField>
  3801.               <b:ImportantField>
  3802.                 <xsl:text>b:Publisher</xsl:text>
  3803.               </b:ImportantField>
  3804.             </xsl:when>
  3805.  
  3806.           </xsl:choose>
  3807.         </b:ImportantFields>
  3808.       </xsl:when>
  3809.  
  3810.  
  3811.             <xsl:when test="b:Citation">
  3812.  
  3813.                 <xsl:variable name="ListPopulatedWithMain">
  3814.                         <xsl:call-template name="populateMain">
  3815.                             <xsl:with-param name="Type">b:Citation</xsl:with-param>
  3816.                         </xsl:call-template>
  3817.                 </xsl:variable>
  3818.  
  3819.             
  3820.             
  3821.                 <html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">
  3822.                     <head>
  3823.                     </head>
  3824.                     <body>
  3825.                         <xsl:variable name="LCID">
  3826.                           <xsl:choose>
  3827.                             <xsl:when test="b:LCID='0' or b:LCID='' or not(b:LCID)">
  3828.                               <xsl:value-of select="/*/b:Locals/b:DefaultLCID"/>
  3829.                             </xsl:when>
  3830.                             <xsl:otherwise>
  3831.                               <xsl:value-of select="b:LCID"/>
  3832.                             </xsl:otherwise>
  3833.                           </xsl:choose>
  3834.                         </xsl:variable>
  3835.  
  3836.                         <xsl:element name="p">
  3837.  
  3838.                         <xsl:attribute name="lang">
  3839.                             <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$LCID]/@Culture"/>
  3840.                         </xsl:attribute>
  3841.  
  3842.                         <xsl:attribute name="dir">
  3843.                             <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$LCID]/b:Properties/b:Direction"/>
  3844.                         </xsl:attribute>
  3845.  
  3846.                         <xsl:variable name="type">
  3847.                             <xsl:value-of select="msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:Source/b:SourceType"/>
  3848.                         </xsl:variable>
  3849.  
  3850.                         <xsl:variable name="title0">
  3851.                             <xsl:choose>
  3852.                                 <xsl:when test="string-length(msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:Source/b:ShortTitle)>0">
  3853.                                     <xsl:value-of select="msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:Source/b:ShortTitle" />
  3854.                                 </xsl:when>
  3855.  
  3856.                                 <xsl:otherwise>
  3857.                                     <xsl:value-of select="msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:Source/b:Title" />
  3858.                                 </xsl:otherwise>
  3859.                             </xsl:choose>
  3860.                         </xsl:variable>
  3861.  
  3862.                         <xsl:variable name="year0">
  3863.                             <xsl:value-of select="msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:Source/b:Year" />
  3864.                         </xsl:variable>                        
  3865.  
  3866.                         <xsl:variable name="authorMain">
  3867.                             <xsl:copy-of select="msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:Source/b:Author/b:Main"/>
  3868.                         </xsl:variable>
  3869.  
  3870.                         <xsl:variable name="author0">
  3871.                             <xsl:choose>
  3872.                                 <xsl:when test="string-length(msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:Source/b:Author/b:Main/b:Corporate) > 0">
  3873.                                     <xsl:value-of select="msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:Source/b:Author/b:Main/b:Corporate" />
  3874.                                 </xsl:when>
  3875.                                 <xsl:otherwise>
  3876.                                     <xsl:variable name="cAuthors">
  3877.                                         <xsl:value-of select="count(msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:Source/b:Author/b:Main/b:NameList/b:Person)" />
  3878.                                     </xsl:variable>
  3879.                                     <xsl:for-each select="msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:Source/b:Author/b:Main/b:NameList/b:Person">
  3880.                                         
  3881.                                         <xsl:choose>
  3882.                                             <xsl:when test="position() > 6 or (position() > 1 and $cAuthors > 6)">
  3883.                                             </xsl:when>
  3884.                                             <xsl:when test="position() = 1">
  3885.                                                 <xsl:call-template name="formatNameCore">
  3886.                                                     <xsl:with-param name="FML">
  3887.                                                         <xsl:choose>
  3888.                                                             <xsl:when test="msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:NonUniqueLastName">
  3889.                                                                 <xsl:call-template name="templ_prop_APA_CitationLong_FML"/>
  3890.                                                             </xsl:when>
  3891.                                                             <xsl:otherwise>
  3892.                                                                 <xsl:call-template name="templ_prop_APA_CitationShort_FML"/>
  3893.                                                             </xsl:otherwise>
  3894.                                                         </xsl:choose>
  3895.                                                     </xsl:with-param>
  3896.                                                     <xsl:with-param name="FM">
  3897.                                                         <xsl:choose>
  3898.                                                             <xsl:when test="msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:NonUniqueLastName">
  3899.                                                                 <xsl:call-template name="templ_prop_APA_CitationLong_FM"/>
  3900.                                                             </xsl:when>
  3901.                                                             <xsl:otherwise>
  3902.                                                                 <xsl:call-template name="templ_prop_APA_CitationShort_FM"/>
  3903.                                                             </xsl:otherwise>
  3904.                                                         </xsl:choose>
  3905.                                                     </xsl:with-param>
  3906.                                                     <xsl:with-param name="ML">
  3907.                                                         <xsl:choose>
  3908.                                                             <xsl:when test="msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:NonUniqueLastName">
  3909.                                                                 <xsl:call-template name="templ_prop_APA_CitationLong_ML"/>
  3910.                                                             </xsl:when>
  3911.                                                             <xsl:otherwise>
  3912.                                                                 <xsl:call-template name="templ_prop_APA_CitationShort_ML"/>
  3913.                                                             </xsl:otherwise>
  3914.                                                         </xsl:choose>
  3915.                                                     </xsl:with-param>
  3916.                                                     <xsl:with-param name="FL">
  3917.                                                         <xsl:choose>
  3918.                                                             <xsl:when test="msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:NonUniqueLastName">
  3919.                                                                 <xsl:call-template name="templ_prop_APA_CitationLong_FL"/>
  3920.                                                             </xsl:when>
  3921.                                                             <xsl:otherwise>
  3922.                                                                 <xsl:call-template name="templ_prop_APA_CitationShort_FL"/>
  3923.                                                             </xsl:otherwise>
  3924.                                                         </xsl:choose>
  3925.                                                     </xsl:with-param>
  3926.                                                     <xsl:with-param name="upperLast">no</xsl:with-param>
  3927.                                                     <xsl:with-param name="withDot">no</xsl:with-param>
  3928.                                                 </xsl:call-template>
  3929.                                             </xsl:when>
  3930.                                             <xsl:when test="position() > 1">
  3931.                                                 <xsl:call-template name="formatNameCore">
  3932.                                                     <xsl:with-param name="FML"><xsl:call-template name="templ_prop_APA_CitationShort_FML"/></xsl:with-param>
  3933.                                                     <xsl:with-param name="FM"><xsl:call-template name="templ_prop_APA_CitationShort_FM"/></xsl:with-param>
  3934.                                                     <xsl:with-param name="ML"><xsl:call-template name="templ_prop_APA_CitationShort_ML"/></xsl:with-param>
  3935.                                                     <xsl:with-param name="FL"><xsl:call-template name="templ_prop_APA_CitationShort_FL"/></xsl:with-param>
  3936.                                                     <xsl:with-param name="upperLast">no</xsl:with-param>
  3937.                                                     <xsl:with-param name="withDot">no</xsl:with-param>
  3938.                                                 </xsl:call-template>
  3939.                                             </xsl:when>
  3940.                                         </xsl:choose>
  3941.                                         
  3942.                                         <xsl:choose>
  3943.                                             <xsl:when test="(position() = 1 and $cAuthors > 6)">
  3944.                         <xsl:variable name="noCommaBeforeAnd">
  3945.                           <xsl:call-template name="templ_prop_NoCommaBeforeAnd" />
  3946.                         </xsl:variable>
  3947.                         <xsl:choose>
  3948.                           <xsl:when test="$noCommaBeforeAnd != 'yes'">
  3949.                             <xsl:call-template name="templ_prop_ListSeparator"/>
  3950.                           </xsl:when>
  3951.                           <xsl:otherwise>
  3952.                             <xsl:call-template name="templ_prop_Space"/>
  3953.                           </xsl:otherwise>
  3954.                         </xsl:choose>
  3955.                         <xsl:call-template name="templ_str_AndOthersUnCap"/>
  3956.                                             </xsl:when>
  3957.                                             <xsl:when test="position() > 1 and $cAuthors > 6">
  3958.                                             </xsl:when>
  3959.                                             <xsl:when test="($cAuthors - 1 = position() and ($cAuthors = 2))">
  3960.                                                 <xsl:call-template name="templ_prop_Space"/>
  3961.                                                 <xsl:call-template name="templ_prop_APA_BeforeLastAuthor"/>
  3962.                                                 <xsl:call-template name="templ_prop_Space"/>
  3963.                                             </xsl:when>
  3964.                                             <xsl:when test="($cAuthors - 1 = position() and ($cAuthors > 2))">
  3965.                         <xsl:variable name="noCommaBeforeAnd">
  3966.                           <xsl:call-template name="templ_prop_NoCommaBeforeAnd" />
  3967.                         </xsl:variable>
  3968.  
  3969.                         <xsl:variable name="noAndBeforeLastAuthor">
  3970.                                                     <xsl:call-template name="templ_prop_NoAndBeforeLastAuthor"/>
  3971.                                             </xsl:variable>
  3972.  
  3973.                         <xsl:choose>
  3974.                           <xsl:when test="$noCommaBeforeAnd != 'yes' or $noAndBeforeLastAuthor = 'yes'">
  3975.                             <xsl:call-template name="templ_prop_AuthorsSeparator"/>
  3976.                           </xsl:when>
  3977.                           <xsl:otherwise>
  3978.                             <xsl:call-template name="templ_prop_Space"/>
  3979.                           </xsl:otherwise>
  3980.                         </xsl:choose>
  3981.  
  3982.                         <xsl:if test="$noAndBeforeLastAuthor != 'yes'">
  3983.                                                     <xsl:call-template name="templ_prop_APA_BeforeLastAuthor"/>
  3984.                                                     <xsl:call-template name="templ_prop_Space"/>
  3985.                                                 </xsl:if>
  3986.                                             </xsl:when>
  3987.                                             <xsl:when test="$cAuthors > position() and 6 > position() ">
  3988.                                                 <xsl:call-template name="templ_prop_AuthorsSeparator"/>
  3989.                                             </xsl:when>
  3990.                                         </xsl:choose>
  3991.         
  3992.                                     </xsl:for-each>
  3993.                                 </xsl:otherwise>
  3994.                             </xsl:choose>
  3995.                         </xsl:variable>
  3996.  
  3997.                         <xsl:variable name="title">
  3998.                             <xsl:choose>
  3999.                                 <xsl:when test="msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:NoTitle">
  4000.                                 </xsl:when>
  4001.                                 
  4002.                                 <xsl:otherwise>
  4003.                                     <xsl:value-of select="$title0" />
  4004.                                 </xsl:otherwise>
  4005.                             </xsl:choose>
  4006.                         </xsl:variable>
  4007.  
  4008.                         <xsl:variable name="year">
  4009.                             <xsl:choose>
  4010.                                 <xsl:when test="msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:NoYear">
  4011.                                 </xsl:when>
  4012.                                 
  4013.                                 <xsl:otherwise>
  4014.                                     <xsl:value-of select="$year0" />
  4015.                                 </xsl:otherwise>
  4016.                             </xsl:choose>
  4017.                         </xsl:variable>                        
  4018.  
  4019.                         <xsl:variable name="author">
  4020.                             <xsl:choose>
  4021.                                 <xsl:when test="msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:NoAuthor">
  4022.                                 </xsl:when>
  4023.                                 <xsl:otherwise>
  4024.                                     <xsl:value-of select="$author0" />
  4025.                                 </xsl:otherwise>
  4026.                             </xsl:choose>
  4027.                         </xsl:variable>
  4028.  
  4029.                         <xsl:variable name="prop_APA_Hyphens">
  4030.                           <xsl:call-template name="templ_prop_Hyphens"/>
  4031.                         </xsl:variable>
  4032.  
  4033.                         <xsl:variable name="volume" select="msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:Volume"/>
  4034.  
  4035.                         <xsl:variable name="volVolume">
  4036.                             <xsl:if test="string-length($volume) > 0">
  4037.                                 <xsl:call-template name="StringFormat">
  4038.                                     <xsl:with-param name="format">
  4039.                                       <xsl:choose>
  4040.                                         <xsl:when test="not(string-length($volume)=string-length(translate($volume, ',', '')))">
  4041.                                           <xsl:call-template name="templ_str_VolumesShortUnCap"/>
  4042.                                         </xsl:when>
  4043.                                         <xsl:when test="string-length($volume)=string-length(translate($volume, $prop_APA_Hyphens, ''))">
  4044.                                           <xsl:call-template name="templ_str_VolumeShortUnCap"/>
  4045.                                         </xsl:when>
  4046.                                         <xsl:otherwise>
  4047.                                           <xsl:call-template name="templ_str_VolumesShortUnCap"/>
  4048.                                         </xsl:otherwise>
  4049.                                       </xsl:choose>
  4050.                                     </xsl:with-param>
  4051.                                     <xsl:with-param name="parameters">
  4052.                                         <t:params>
  4053.                                             <t:param>
  4054.                                                 <xsl:value-of select="$volume"/>
  4055.                                             </t:param>
  4056.                                         </t:params>
  4057.                                     </xsl:with-param>
  4058.                                 </xsl:call-template>
  4059.                             </xsl:if>
  4060.                         </xsl:variable>
  4061.  
  4062.  
  4063.                         <xsl:variable name="pages" select="msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:Pages"/>
  4064.  
  4065.                         <xsl:variable name="ppPages">
  4066.                             <xsl:if test="string-length($pages)>0">
  4067.                                 <xsl:choose>
  4068.                                     <xsl:when test="not(string-length($pages)=string-length(translate($pages, ',', '')))">
  4069.                                         <xsl:call-template name="templ_str_PagesCountinousShort"/>
  4070.                                     </xsl:when>
  4071.                                     <xsl:when test="string-length($pages)=string-length(translate($pages, $prop_APA_Hyphens, ''))">
  4072.                                         <xsl:call-template name="templ_str_PageShort"/>
  4073.                                     </xsl:when>
  4074.                                     <xsl:otherwise>
  4075.                                         <xsl:call-template name="templ_str_PagesCountinousShort"/>
  4076.                                     </xsl:otherwise>
  4077.                                 </xsl:choose>
  4078.                                 <xsl:call-template name="templ_prop_Space"/>
  4079.                                 <xsl:value-of select="$pages"/>
  4080.                             </xsl:if>
  4081.                         </xsl:variable>
  4082.  
  4083.                         <xsl:variable name="displayAuthor">
  4084.                             <xsl:value-of select="$author" />
  4085.                         </xsl:variable>
  4086.  
  4087.                         <xsl:variable name="displayTitle">
  4088.                             <xsl:choose>
  4089.                                 <xsl:when test="string-length($displayAuthor) = 0">
  4090.                                     <xsl:value-of select="$title" />
  4091.                                 </xsl:when>
  4092.                                 <xsl:when test="msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:RepeatedAuthor">
  4093.                                     <xsl:value-of select="$title" />
  4094.                                 </xsl:when>
  4095.                             </xsl:choose>
  4096.                         </xsl:variable>
  4097.  
  4098.                         <xsl:if test="msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:FirstAuthor">
  4099.                             <xsl:call-template name="templ_prop_OpenBracket"/>
  4100.                         </xsl:if>
  4101.                     
  4102.                         <xsl:if test="msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:PagePrefix">
  4103.                             <xsl:value-of select="/b:Citation/b:PagePrefix"/>
  4104.                         </xsl:if>
  4105.  
  4106.                         <xsl:value-of select="$displayAuthor" />
  4107.  
  4108.                         <xsl:if test="string-length($displayTitle) > 0">
  4109.                             <xsl:if test="string-length($displayAuthor) > 0">
  4110.                                 <xsl:call-template name="templ_prop_ListSeparator"/>
  4111.                             </xsl:if>
  4112.                             <xsl:if test="string-length($displayTitle)>0">
  4113.                                 <xsl:value-of select="$displayTitle"/>
  4114.                             </xsl:if>
  4115.                         </xsl:if>
  4116.  
  4117.                         <xsl:if test="string-length($year) > 0">
  4118.                             <xsl:if test="string-length($displayAuthor) > 0 or string-length($displayTitle) > 0">
  4119.                                 <xsl:call-template name="templ_prop_ListSeparator"/>
  4120.                             </xsl:if>    
  4121.                             <xsl:value-of select="$year"/>
  4122.                         </xsl:if>
  4123.  
  4124.                         <xsl:if test="string-length($author0) = 0 and string-length($title0) = 0 and string-length($year0) = 0">
  4125.                             <xsl:value-of select="msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:Source/b:Tag"/>
  4126.                         </xsl:if>
  4127.  
  4128.                         <xsl:if test="string-length($volume) > 0 or string-length($pages) > 0">
  4129.                             <xsl:if test="string-length($displayAuthor) > 0 or string-length($displayTitle) > 0 or string-length($year) > 0">
  4130.                                 <xsl:call-template name="templ_prop_ListSeparator"/>
  4131.                             </xsl:if>            
  4132.  
  4133.                             <xsl:choose>
  4134.                                 <xsl:when test="string-length($volume) > 0 and string-length($pages) > 0">
  4135.                                     <xsl:value-of select="$volume"/>
  4136.                                     <xsl:call-template name="templ_prop_Enum"/>
  4137.                                     <xsl:value-of select="$pages"/>
  4138.                                 </xsl:when>
  4139.                                 <xsl:when test="string-length($volVolume) > 0">
  4140.                                     <xsl:value-of select="$volVolume"/>
  4141.                                 </xsl:when>
  4142.                                 <xsl:when test="string-length($ppPages) > 0">
  4143.                                     <xsl:value-of select="$ppPages"/>
  4144.                                 </xsl:when>
  4145.                             </xsl:choose>
  4146.                         </xsl:if>
  4147.  
  4148.                         <xsl:if test="/b:Citation/b:PageSuffix">
  4149.                             <xsl:value-of select="/b:Citation/b:PageSuffix"/>
  4150.                         </xsl:if>
  4151.                         
  4152.                         <xsl:if test="/b:Citation/b:LastAuthor">
  4153.                             <xsl:call-template name="templ_prop_CloseBracket"/>
  4154.                         </xsl:if>
  4155.                         <xsl:if test="not(/b:Citation/b:LastAuthor)">
  4156.                             <xsl:call-template name="templ_prop_GroupSeparator"/>
  4157.                         </xsl:if>
  4158.                     
  4159.  
  4160.                         </xsl:element>
  4161.                     </body>
  4162.                 </html>
  4163.             </xsl:when>
  4164.  
  4165.       <xsl:when test="b:Bibliography">
  4166.         <html xmlns:o="urn:schemas-microsoft-com:office:office"
  4167.                         xmlns:w="urn:schemas-microsoft-com:office:word"
  4168.                         xmlns="http://www.w3.org/TR/REC-html40">
  4169.           <head>
  4170.             
  4171.             <style>
  4172.               p.MsoBibliography, li.MsoBibliography, div.MsoBibliography
  4173.             </style>
  4174.           </head>
  4175.  
  4176.           <body>
  4177.             <xsl:variable name="ListPopulatedWithMain">
  4178.               <xsl:call-template name="populateMain">
  4179.                 <xsl:with-param name="Type">b:Bibliography</xsl:with-param>
  4180.               </xsl:call-template>
  4181.             </xsl:variable>
  4182.  
  4183.             <xsl:variable name="sList">
  4184.               <xsl:call-template name="sortedList">
  4185.                 <xsl:with-param name="sourceRoot">
  4186.                   <xsl:copy-of select="$ListPopulatedWithMain"/>
  4187.                 </xsl:with-param>
  4188.               </xsl:call-template>
  4189.             </xsl:variable>
  4190.  
  4191.             <xsl:for-each select="msxsl:node-set($sList)/b:Bibliography/b:Source">
  4192.  
  4193.               <xsl:variable name="LCID">
  4194.                 <xsl:choose>
  4195.                   <xsl:when test="b:LCID='0' or b:LCID='' or not(b:LCID)">
  4196.                     <xsl:value-of select="/*/b:Locals/b:DefaultLCID"/>
  4197.                   </xsl:when>
  4198.                   <xsl:otherwise>
  4199.                     <xsl:value-of select="b:LCID"/>
  4200.                   </xsl:otherwise>
  4201.                 </xsl:choose>
  4202.               </xsl:variable>
  4203.  
  4204.               <xsl:variable name="dir">
  4205.                 <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$LCID]/b:Properties/b:Direction"/>
  4206.               </xsl:variable>
  4207.  
  4208.               <xsl:variable name="uppercase" select="'ABCDEFGHIJKLMNOPQRSTUVWXYZ'"/>
  4209.               <xsl:variable name="lowercase" select="'abcdefghijklmnopqrstuvwxyz'"/>
  4210.  
  4211.               <xsl:element name="p">
  4212.                 <xsl:attribute name="lang">
  4213.                   <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$LCID]/@Culture"/>
  4214.                 </xsl:attribute>
  4215.                 <xsl:attribute name="dir">
  4216.                   <xsl:value-of select="$dir"/>
  4217.                 </xsl:attribute>
  4218.                 <xsl:attribute name="class">
  4219.                   <xsl:value-of select="'MsoBibliography'"/>
  4220.                 </xsl:attribute>
  4221.                 <xsl:attribute name="style">
  4222.                   <xsl:choose>
  4223.                     <xsl:when test="translate($dir,$uppercase,$lowercase)='rtl'">
  4224.                       <xsl:value-of select="'margin-right:.5in;text-indent:-.5in'"/>
  4225.                     </xsl:when>
  4226.                     <xsl:otherwise>
  4227.                       <xsl:value-of select="'margin-left:.5in;text-indent:-.5in'"/>
  4228.                     </xsl:otherwise>
  4229.                   </xsl:choose>
  4230.                 </xsl:attribute>
  4231.  
  4232.                 <xsl:variable name="prevBook">
  4233.                   <xsl:value-of select="position()-1"/>
  4234.                 </xsl:variable>
  4235.  
  4236.                 <xsl:variable name="cEditors">
  4237.                   <xsl:value-of select="count(b:Author/b:Editor/b:NameList/b:Person)"/>
  4238.                 </xsl:variable>
  4239.  
  4240.                 <xsl:variable name="cTranslators">
  4241.                   <xsl:value-of select="count(b:Author/b:Translator/b:NameList/b:Person)"/>
  4242.                 </xsl:variable>
  4243.  
  4244.                 <xsl:variable name="cComposers">
  4245.                   <xsl:value-of select="count(b:Author/b:Composer/b:NameList/b:Person)"/>
  4246.                 </xsl:variable>
  4247.  
  4248.                 <xsl:variable name="cCompilers">
  4249.                   <xsl:value-of select="count(b:Author/b:Compiler/b:NameList/b:Person)"/>
  4250.                 </xsl:variable>
  4251.  
  4252.                 <xsl:variable name="cPerformers">
  4253.                   <xsl:value-of select="count(b:Author/b:Performer/b:NameList/b:Person)"/>
  4254.                 </xsl:variable>
  4255.  
  4256.                 <xsl:variable name="cDirectors">
  4257.                   <xsl:value-of select="count(b:Author/b:Director/b:NameList/b:Person)"/>
  4258.                 </xsl:variable>
  4259.  
  4260.                 <xsl:variable name="cProducers">
  4261.                   <xsl:value-of select="count(b:Author/b:ProducerName/b:NameList/b:Person)"/>
  4262.                 </xsl:variable>
  4263.  
  4264.                 <xsl:variable name="cConductors">
  4265.                   <xsl:value-of select="count(b:Author/b:Conductor/b:NameList/b:Person)"/>
  4266.                 </xsl:variable>
  4267.  
  4268.  
  4269.                 
  4270.                 <xsl:variable name="tempTV">
  4271.                   <xsl:call-template name="templateTV"/>
  4272.                 </xsl:variable>
  4273.  
  4274.                 <xsl:variable name="tempSC">
  4275.                   <xsl:call-template name="templateSC"/>
  4276.                 </xsl:variable>
  4277.  
  4278.                 <xsl:variable name="tempPrP">
  4279.                   <xsl:call-template name="templatePrP"/>
  4280.                 </xsl:variable>
  4281.  
  4282.                 <xsl:variable name="tempCD">
  4283.                   <xsl:call-template name="templateCD"/>
  4284.                 </xsl:variable>
  4285.  
  4286.                 <xsl:variable name="tempID">
  4287.                   <xsl:call-template name="templateID"/>
  4288.                 </xsl:variable>
  4289.  
  4290.                 <xsl:variable name="tempCP">
  4291.                   <xsl:call-template name="templateCP"/>
  4292.                 </xsl:variable>
  4293.  
  4294.                 <xsl:variable name="tempRIDC">
  4295.                   <xsl:call-template name="templateRIDC"/>
  4296.                 </xsl:variable>
  4297.  
  4298.  
  4299.                 <xsl:variable name="tempICSC">
  4300.                   <xsl:call-template name="templateICSC"/>
  4301.                 </xsl:variable>
  4302.  
  4303.                 <xsl:variable name="tempPVEP">
  4304.                   <xsl:call-template name="templatePVEP"/>
  4305.                 </xsl:variable>
  4306.  
  4307.                 <xsl:variable name="tempPVIEP">
  4308.                   <xsl:call-template name="templatePVIEP"/>
  4309.                 </xsl:variable>
  4310.  
  4311.                 <xsl:variable name="tempRDAFU">
  4312.                   <xsl:call-template name="templateRDAFU"/>
  4313.                 </xsl:variable>
  4314.  
  4315.                 <xsl:variable name="tempTCSC">
  4316.                   <xsl:call-template name="templateTCSC"/>
  4317.                 </xsl:variable>
  4318.  
  4319.                 <xsl:variable name="tempCPY">
  4320.                   <xsl:call-template name="templateCPY"/>
  4321.                 </xsl:variable>
  4322.  
  4323.                 <xsl:variable name="tempCSCPu">
  4324.                   <xsl:call-template name="templateCSCPu"/>
  4325.                 </xsl:variable>
  4326.  
  4327.                 <xsl:variable name="tempCSCPr">
  4328.                   <xsl:call-template name="templateCSCPr"/>
  4329.                 </xsl:variable>
  4330.  
  4331.                 <xsl:variable name="tempJVIP">
  4332.                   <xsl:call-template name="templateJVIP"/>
  4333.                 </xsl:variable>
  4334.  
  4335.  
  4336.                 
  4337.  
  4338.                 <xsl:variable name="dateCourt">
  4339.                   <xsl:call-template name="formatDateCourt"/>
  4340.                 </xsl:variable>
  4341.  
  4342.  
  4343.                 <xsl:variable name="pages">
  4344.                   <xsl:call-template name="handleSpaces">
  4345.                     <xsl:with-param name="field" select="b:Pages"/>
  4346.                   </xsl:call-template>
  4347.                 </xsl:variable>
  4348.  
  4349.                 <xsl:variable name="court">
  4350.                   <xsl:call-template name="handleSpaces">
  4351.                     <xsl:with-param name="field" select="b:Court"/>
  4352.                   </xsl:call-template>
  4353.                 </xsl:variable>
  4354.  
  4355.                 <xsl:variable name="prop_APA_Hyphens">
  4356.                   <xsl:call-template name="templ_prop_Hyphens"/>
  4357.                 </xsl:variable>
  4358.  
  4359.                 <xsl:variable name="ppPages">
  4360.                   <xsl:if test="string-length($pages)>0">
  4361.                     <xsl:choose>
  4362.                       <xsl:when test="not(string-length($pages)=string-length(translate($pages, ',', '')))">
  4363.                         <xsl:call-template name="templ_str_PagesCountinousShort"/>
  4364.                       </xsl:when>
  4365.                       <xsl:when test="string-length($pages)=string-length(translate($pages, $prop_APA_Hyphens, ''))">
  4366.                         <xsl:call-template name="templ_str_PageShort"/>
  4367.                       </xsl:when>
  4368.                       <xsl:otherwise>
  4369.                         <xsl:call-template name="templ_str_PagesCountinousShort"/>
  4370.                       </xsl:otherwise>
  4371.                     </xsl:choose>
  4372.                     <xsl:call-template name="templ_prop_Space"/>
  4373.                     <xsl:value-of select="$pages"/>
  4374.                   </xsl:if>
  4375.                 </xsl:variable>
  4376.  
  4377.                 <xsl:variable name="tempPTVI">
  4378.                   <xsl:call-template name="templatePTVI">
  4379.                     <xsl:with-param name="pages" select="$ppPages"/>
  4380.                   </xsl:call-template>
  4381.                 </xsl:variable>
  4382.  
  4383.                 <xsl:variable name="title">
  4384.                   <xsl:call-template name="handleSpaces">
  4385.                     <xsl:with-param name="field" select="b:Title"/>
  4386.                   </xsl:call-template>
  4387.                 </xsl:variable>
  4388.  
  4389.                 <xsl:variable name="titleDot">
  4390.                   <xsl:call-template name="appendField_Dot">
  4391.                     <xsl:with-param name="field" select="b:Title"/>
  4392.                   </xsl:call-template>
  4393.                 </xsl:variable>
  4394.  
  4395.                 <xsl:variable name="edition">
  4396.                   <xsl:call-template name="handleSpaces">
  4397.                     <xsl:with-param name="field" select="b:Edition"/>
  4398.                   </xsl:call-template>
  4399.                 </xsl:variable>
  4400.  
  4401.                 <xsl:variable name="date">
  4402.                   <xsl:call-template name="formatDate"/>
  4403.                 </xsl:variable>
  4404.  
  4405.                 <xsl:variable name="dateEmpty">
  4406.                   <xsl:call-template name="formatDateEmpty"/>
  4407.                 </xsl:variable>
  4408.  
  4409.                 <xsl:variable name="year">
  4410.                   <xsl:call-template name="handleSpaces">
  4411.                     <xsl:with-param name="field" select="b:Year"/>
  4412.                   </xsl:call-template>
  4413.                 </xsl:variable>
  4414.  
  4415.  
  4416.                 <xsl:variable name="issue">
  4417.                   <xsl:call-template name="handleSpaces">
  4418.                     <xsl:with-param name="field" select="b:Issue"/>
  4419.                   </xsl:call-template>
  4420.                 </xsl:variable>
  4421.  
  4422.                 <xsl:variable name="pagesDot">
  4423.                   <xsl:call-template name="appendField_Dot">
  4424.                     <xsl:with-param name="field" select="b:Pages"/>
  4425.                   </xsl:call-template>
  4426.                 </xsl:variable>
  4427.  
  4428.                 <xsl:variable name="bookTitle">
  4429.                   <xsl:call-template name="handleSpaces">
  4430.                     <xsl:with-param name="field" select="b:BookTitle"/>
  4431.                   </xsl:call-template>
  4432.                 </xsl:variable>
  4433.  
  4434.                 <xsl:variable name="bookTitleDot">
  4435.                   <xsl:call-template name="appendField_Dot">
  4436.                     <xsl:with-param name="field" select="b:BookTitle"/>
  4437.                   </xsl:call-template>
  4438.                 </xsl:variable>
  4439.  
  4440.                 <xsl:variable name="conferenceName">
  4441.                   <xsl:call-template name="handleSpaces">
  4442.                     <xsl:with-param name="field" select="b:ConferenceName"/>
  4443.                   </xsl:call-template>
  4444.                 </xsl:variable>
  4445.  
  4446.                 <xsl:variable name="conferenceNameDot">
  4447.                   <xsl:call-template name="appendField_Dot">
  4448.                     <xsl:with-param name="field" select="b:ConferenceName"/>
  4449.                   </xsl:call-template>
  4450.                 </xsl:variable>
  4451.  
  4452.                 <xsl:variable name="broadcasterDot">
  4453.                   <xsl:call-template name="appendField_Dot">
  4454.                     <xsl:with-param name="field" select="b:Broadcaster"/>
  4455.                   </xsl:call-template>
  4456.                 </xsl:variable>
  4457.  
  4458.  
  4459.                 <xsl:variable name="countryRegionDot">
  4460.                   <xsl:call-template name="appendField_Dot">
  4461.                     <xsl:with-param name="field" select="b:CountryRegion"/>
  4462.                   </xsl:call-template>
  4463.                 </xsl:variable>
  4464.  
  4465.                 <xsl:variable name="patentNumberDot">
  4466.                   <xsl:call-template name="appendField_Dot">
  4467.                     <xsl:with-param name="field" select="b:PatentNumber"/>
  4468.                   </xsl:call-template>
  4469.                 </xsl:variable>
  4470.  
  4471.                 <xsl:variable name="patentNumber">
  4472.                   <xsl:call-template name="handleSpaces">
  4473.                     <xsl:with-param name="field" select="b:PatentNumber"/>
  4474.                   </xsl:call-template>
  4475.                 </xsl:variable>
  4476.  
  4477.                 <xsl:variable name="interviewTitle">
  4478.                   <xsl:call-template name="handleSpaces">
  4479.                     <xsl:with-param name="field" select="b:Title"/>
  4480.                   </xsl:call-template>
  4481.                 </xsl:variable>
  4482.  
  4483.                 <xsl:variable name="interviewTitleDot">
  4484.                   <xsl:call-template name="appendField_Dot">
  4485.                     <xsl:with-param name="field" select="b:Title"/>
  4486.                   </xsl:call-template>
  4487.                 </xsl:variable>
  4488.  
  4489.                 <xsl:variable name="publicationTitle">
  4490.                   <xsl:call-template name="handleSpaces">
  4491.                     <xsl:with-param name="field" select="b:PublicationTitle"/>
  4492.                   </xsl:call-template>
  4493.                 </xsl:variable>
  4494.  
  4495.                 <xsl:variable name="publicationTitleDot">
  4496.                   <xsl:call-template name="appendField_Dot">
  4497.                     <xsl:with-param name="field" select="b:PublicationTitle"/>
  4498.                   </xsl:call-template>
  4499.                 </xsl:variable>
  4500.  
  4501.                 <xsl:variable name="URL">
  4502.                   <xsl:value-of select="b:URL"/>
  4503.                 </xsl:variable>
  4504.  
  4505.                 <xsl:variable name="cityDot">
  4506.                   <xsl:call-template name="appendField_Dot">
  4507.                     <xsl:with-param name="field" select="b:City"/>
  4508.                   </xsl:call-template>
  4509.                 </xsl:variable>
  4510.  
  4511.                 <xsl:variable name="institutionDot">
  4512.                   <xsl:call-template name="appendField_Dot">
  4513.                     <xsl:with-param name="field" select="b:Institution"/>
  4514.                   </xsl:call-template>
  4515.                 </xsl:variable>
  4516.  
  4517.                 <xsl:variable name="courtDot">
  4518.                   <xsl:call-template name="appendField_Dot">
  4519.                     <xsl:with-param name="field" select="b:Court"/>
  4520.                   </xsl:call-template>
  4521.                 </xsl:variable>
  4522.  
  4523.                 <xsl:variable name="thesisTypeDot">
  4524.                   <xsl:call-template name="appendField_Dot">
  4525.                     <xsl:with-param name="field" select="b:ThesisType"/>
  4526.                   </xsl:call-template>
  4527.                 </xsl:variable>
  4528.  
  4529.                 <xsl:variable name="journalNameDot">
  4530.                   <xsl:call-template name="appendField_Dot">
  4531.                     <xsl:with-param name="field" select="b:JournalName"/>
  4532.                   </xsl:call-template>
  4533.                 </xsl:variable>
  4534.  
  4535.                 <xsl:variable name="journalName">
  4536.                   <xsl:call-template name="handleSpaces">
  4537.                     <xsl:with-param name="field" select="b:JournalName"/>
  4538.                   </xsl:call-template>
  4539.                 </xsl:variable>
  4540.  
  4541.                 <xsl:variable name="internetSiteTitleDot">
  4542.                   <xsl:call-template name="appendField_Dot">
  4543.                     <xsl:with-param name="field" select="b:InternetSiteTitle"/>
  4544.                   </xsl:call-template>
  4545.                 </xsl:variable>
  4546.  
  4547.                 <xsl:variable name="mediumDot">
  4548.                   <xsl:call-template name="appendField_Dot">
  4549.                     <xsl:with-param name="field" select="b:Medium"/>
  4550.                   </xsl:call-template>
  4551.                 </xsl:variable>
  4552.  
  4553.                 <xsl:variable name="issueDot">
  4554.                   <xsl:call-template name="appendField_Dot">
  4555.                     <xsl:with-param name="field" select="b:Issue"/>
  4556.                   </xsl:call-template>
  4557.                 </xsl:variable>
  4558.  
  4559.                 <xsl:variable name="productionCompanyDot">
  4560.                   <xsl:call-template name="appendField_Dot">
  4561.                     <xsl:with-param name="field" select="b:ProductionCompany"/>
  4562.                   </xsl:call-template>
  4563.                 </xsl:variable>
  4564.  
  4565.                 <xsl:variable name="editionDot">
  4566.                   <xsl:call-template name="appendField_Dot">
  4567.                     <xsl:with-param name="field" select="b:Edition"/>
  4568.                   </xsl:call-template>
  4569.                 </xsl:variable>
  4570.  
  4571.                 <xsl:variable name="broadcastTitle">
  4572.                   <xsl:call-template name="handleSpaces">
  4573.                     <xsl:with-param name="field" select="b:BroadcastTitle"/>
  4574.                   </xsl:call-template>
  4575.                 </xsl:variable>
  4576.  
  4577.                 <xsl:variable name="publisher">
  4578.                   <xsl:call-template name="handleSpaces">
  4579.                     <xsl:with-param name="field" select="b:Publisher"/>
  4580.                   </xsl:call-template>
  4581.                 </xsl:variable>
  4582.  
  4583.                 <xsl:variable name="versionDot">
  4584.                   <xsl:call-template name="appendField_Dot">
  4585.                     <xsl:with-param name="field" select="b:Version"/>
  4586.                   </xsl:call-template>
  4587.                 </xsl:variable>
  4588.  
  4589.                 <xsl:variable name="broadcastTitleDot">
  4590.                   <xsl:call-template name="appendField_Dot">
  4591.                     <xsl:with-param name="field" select="b:BroadcastTitle"/>
  4592.                   </xsl:call-template>
  4593.                 </xsl:variable>
  4594.  
  4595.                 <xsl:variable name="periodicalTitleDot">
  4596.                   <xsl:call-template name="appendField_Dot">
  4597.                     <xsl:with-param name="field" select="b:PeriodicalTitle"/>
  4598.                   </xsl:call-template>
  4599.                 </xsl:variable>
  4600.  
  4601.                 <xsl:variable name="periodicalTitle">
  4602.                   <xsl:call-template name="handleSpaces">
  4603.                     <xsl:with-param name="field" select="b:PeriodicalTitle"/>
  4604.                   </xsl:call-template>
  4605.                 </xsl:variable>
  4606.  
  4607.                 <xsl:variable name="productionCompany">
  4608.                   <xsl:call-template name="handleSpaces">
  4609.                     <xsl:with-param name="field" select="b:ProductionCompany"/>
  4610.                   </xsl:call-template>
  4611.                 </xsl:variable>
  4612.  
  4613.                 <xsl:variable name="caseNumber">
  4614.                   <xsl:call-template name="handleSpaces">
  4615.                     <xsl:with-param name="field" select="b:CaseNumber"/>
  4616.                   </xsl:call-template>
  4617.                 </xsl:variable>
  4618.  
  4619.                 <xsl:variable name="broadcaster">
  4620.                   <xsl:call-template name="handleSpaces">
  4621.                     <xsl:with-param name="field" select="b:Broadcaster"/>
  4622.                   </xsl:call-template>
  4623.                 </xsl:variable>
  4624.  
  4625.                 <xsl:variable name="volume">
  4626.                   <xsl:call-template name="handleSpaces">
  4627.                     <xsl:with-param name="field" select="b:Volume"/>
  4628.                   </xsl:call-template>
  4629.                 </xsl:variable>
  4630.  
  4631.  
  4632.                 <xsl:variable name="prefixVolumeUnCap">
  4633.                   <xsl:if test="string-length($volume)>0">
  4634.                     <xsl:call-template name="StringFormat">
  4635.                           <xsl:with-param name="format">
  4636.                           <xsl:choose>
  4637.                             <xsl:when test="not(string-length($volume)=string-length(translate($volume, ',', '')))">
  4638.                               <xsl:call-template name="templ_str_VolumesShortUnCap"/>
  4639.                             </xsl:when>
  4640.                             <xsl:when test="string-length($volume)=string-length(translate($volume, $prop_APA_Hyphens, ''))">
  4641.                               <xsl:call-template name="templ_str_VolumeShortUnCap"/>
  4642.                             </xsl:when>
  4643.                             <xsl:otherwise>
  4644.                               <xsl:call-template name="templ_str_VolumesShortUnCap"/>
  4645.                             </xsl:otherwise>
  4646.                           </xsl:choose>
  4647.                           </xsl:with-param>
  4648.                           <xsl:with-param name="parameters">
  4649.                               <t:params>
  4650.                                   <t:param>
  4651.                                     <xsl:value-of select="$volume"/>
  4652.                                 </t:param>
  4653.                               </t:params>
  4654.                           </xsl:with-param>
  4655.                     </xsl:call-template>
  4656.                   </xsl:if>
  4657.                 </xsl:variable>
  4658.  
  4659.                 <xsl:variable name="prefixVolumeCap">
  4660.                   <xsl:if test="string-length($volume)>0">
  4661.                     <xsl:call-template name="StringFormat">
  4662.                         <xsl:with-param name="format">
  4663.                           <xsl:choose>
  4664.                             <xsl:when test="not(string-length($volume)=string-length(translate($volume, ',', '')))">
  4665.                               <xsl:call-template name="templ_str_VolumesShortCap"/>
  4666.                             </xsl:when>
  4667.                             <xsl:when test="string-length($volume)=string-length(translate($volume, $prop_APA_Hyphens, ''))">
  4668.                               <xsl:call-template name="templ_str_VolumeShortCap"/>
  4669.                             </xsl:when>
  4670.                             <xsl:otherwise>
  4671.                               <xsl:call-template name="templ_str_VolumesShortCap"/>
  4672.                             </xsl:otherwise>
  4673.                           </xsl:choose>
  4674.                         </xsl:with-param>
  4675.                         <xsl:with-param name="parameters">
  4676.                             <t:params>
  4677.                                 <t:param>
  4678.                                     <xsl:value-of select="$volume"/>
  4679.                                 </t:param>
  4680.                             </t:params>
  4681.                         </xsl:with-param>
  4682.                     </xsl:call-template>    
  4683.                   </xsl:if>
  4684.                 </xsl:variable>
  4685.  
  4686.                 <xsl:variable name="prefixVolumeCapDot">
  4687.                   <xsl:call-template name="appendField_Dot">
  4688.                     <xsl:with-param name="field" select="$prefixVolumeCap"/>
  4689.                   </xsl:call-template>
  4690.                 </xsl:variable>
  4691.  
  4692.                 <xsl:variable name="prefixVolumeUnCapDot">
  4693.                   <xsl:call-template name="appendField_Dot">
  4694.                     <xsl:with-param name="field" select="$prefixVolumeUnCap"/>
  4695.                   </xsl:call-template>
  4696.                 </xsl:variable>
  4697.  
  4698.                 <xsl:variable name="volumeDot">
  4699.                   <xsl:call-template name="appendField_Dot">
  4700.                     <xsl:with-param name="field" select="$volume"/>
  4701.                   </xsl:call-template>
  4702.                 </xsl:variable>
  4703.  
  4704.                 <xsl:variable name="i_titleEditionVolumeDot">
  4705.                   <xsl:if test="string-length($title)>0">
  4706.                     <xsl:call-template name = "ApplyItalicTitleNS">
  4707.                      <xsl:with-param name = "data">
  4708.                       <xsl:if test="string-length($edition)>0 or string-length($prefixVolumeCap)>0">
  4709.                         <xsl:value-of select="$title"/>
  4710.                       </xsl:if>
  4711.                       <xsl:if test="string-length($edition)=0 and string-length($prefixVolumeCap)=0">
  4712.                         <xsl:value-of select="$titleDot"/>
  4713.                       </xsl:if>
  4714.                      </xsl:with-param>
  4715.                     </xsl:call-template>
  4716.  
  4717.                     <xsl:if test="string-length($edition)>0 or string-length($prefixVolumeCap)>0">
  4718.                     
  4719.                           <xsl:call-template name="templ_prop_Space"/>
  4720.                           <xsl:call-template name="templ_prop_APA_GeneralOpen"/>
  4721.  
  4722.                           <xsl:if test="string-length($edition)>0">
  4723.                             <xsl:call-template name="StringFormat">
  4724.                                   <xsl:with-param name="format">
  4725.                                     <xsl:call-template name="templ_str_EditionShortUnCap"/>
  4726.                                   </xsl:with-param>
  4727.                                   <xsl:with-param name="parameters">
  4728.                                       <t:params>
  4729.                                           <t:param>
  4730.                                             <xsl:value-of select="$edition"/>
  4731.                                         </t:param>
  4732.                                       </t:params>
  4733.                                   </xsl:with-param>
  4734.                             </xsl:call-template>
  4735.                         </xsl:if>
  4736.  
  4737.                         <xsl:if test="string-length($edition)>0 and string-length($prefixVolumeCap)>0">
  4738.                             <xsl:call-template name="templ_prop_ListSeparator"/>
  4739.                         </xsl:if>
  4740.                         
  4741.                         <xsl:value-of select="$prefixVolumeCap"/>
  4742.                         
  4743.                       <xsl:call-template name="templ_prop_APA_GeneralClose"/>
  4744.                       <xsl:call-template name="templ_prop_Dot"/>
  4745.                     </xsl:if>
  4746.                   </xsl:if>
  4747.                 </xsl:variable>
  4748.  
  4749.                 
  4750.  
  4751.  
  4752.                 <xsl:variable name="author">
  4753.                   <xsl:call-template name="formatAuthor"/>
  4754.                 </xsl:variable>
  4755.                 <xsl:variable name="compiler">
  4756.                   <xsl:call-template name="formatCompiler"/>
  4757.                 </xsl:variable>
  4758.  
  4759.                 <xsl:variable name="compilerLF">
  4760.                   <xsl:call-template name="formatCompilerLF"/>
  4761.                 </xsl:variable>
  4762.  
  4763.                 <xsl:variable name="editor">
  4764.                   <xsl:call-template name="formatEditor"/>
  4765.                 </xsl:variable>
  4766.  
  4767.                 <xsl:variable name="editorLF">
  4768.                   <xsl:call-template name="formatEditorLF"/>
  4769.                 </xsl:variable>
  4770.  
  4771.                 <xsl:variable name="translator">
  4772.                   <xsl:call-template name="formatTranslator"/>
  4773.                 </xsl:variable>
  4774.  
  4775.                 <xsl:variable name="translatorLF">
  4776.                   <xsl:call-template name="formatTranslatorLF"/>
  4777.                 </xsl:variable>
  4778.  
  4779.                 <xsl:variable name="performer">
  4780.                   <xsl:call-template name="formatPerformer"/>
  4781.                 </xsl:variable>
  4782.  
  4783.                 <xsl:variable name="intervieweeLF">
  4784.                   <xsl:call-template name="formatIntervieweeLF"/>
  4785.                 </xsl:variable>
  4786.  
  4787.                 <xsl:variable name="producerName">
  4788.                   <xsl:call-template name="formatProducerName"/>
  4789.                 </xsl:variable>
  4790.  
  4791.                 <xsl:variable name="interviewer">
  4792.                   <xsl:call-template name="formatInterviewer"/>
  4793.                 </xsl:variable>
  4794.  
  4795.                 <xsl:variable name="interviewerLF">
  4796.                   <xsl:call-template name="formatInterviewerLF"/>
  4797.                 </xsl:variable>
  4798.  
  4799.                 <xsl:variable name="writer">
  4800.                   <xsl:call-template name="formatWriter"/>
  4801.                 </xsl:variable>
  4802.  
  4803.                 <xsl:variable name="director">
  4804.                   <xsl:call-template name="formatDirector"/>
  4805.                 </xsl:variable>
  4806.  
  4807.                 <xsl:variable name="inventorLF">
  4808.                   <xsl:call-template name="formatInventorLF"/>
  4809.                 </xsl:variable>
  4810.  
  4811.                 <xsl:variable name="writerLF">
  4812.                   <xsl:call-template name="formatWriterLF"/>
  4813.                 </xsl:variable>
  4814.  
  4815.                 <xsl:variable name="bookAuthor">
  4816.                   <xsl:call-template name="formatBookAuthor"/>
  4817.                 </xsl:variable>
  4818.  
  4819.                 <xsl:variable name="sectionAuthor">
  4820.                   <xsl:call-template name="formatAuthor"/>
  4821.                 </xsl:variable>
  4822.  
  4823.                 <xsl:variable name="performerLF">
  4824.                   <xsl:call-template name="formatPerformerLF"/>
  4825.                 </xsl:variable>
  4826.  
  4827.                 <xsl:variable name="conductorLF">
  4828.                   <xsl:call-template name="formatConductorLF"/>
  4829.                 </xsl:variable>
  4830.  
  4831.                 <xsl:variable name="conductor">
  4832.                   <xsl:call-template name="formatConductor"/>
  4833.                 </xsl:variable>
  4834.  
  4835.                 <xsl:variable name="composerLF">
  4836.                   <xsl:call-template name="formatComposerLF"/>
  4837.                 </xsl:variable>
  4838.  
  4839.                 <xsl:variable name="directorLF">
  4840.                   <xsl:call-template name="formatDirectorLF"/>
  4841.                 </xsl:variable>
  4842.  
  4843.                 <xsl:variable name="composer">
  4844.                   <xsl:call-template name="formatComposer"/>
  4845.                 </xsl:variable>
  4846.  
  4847.                 <xsl:variable name="artist">
  4848.                   <xsl:call-template name="formatArtistLF"/>
  4849.                 </xsl:variable>
  4850.  
  4851.                 <xsl:variable name="artistLF">
  4852.                   <xsl:call-template name="formatArtistLF"/>
  4853.                 </xsl:variable>
  4854.  
  4855.                 <xsl:variable name="artistLFDot">
  4856.                   <xsl:call-template name="appendField_Dot">
  4857.                     <xsl:with-param name="field" select="$artistLF"/>
  4858.                   </xsl:call-template>
  4859.                 </xsl:variable>
  4860.  
  4861.                 <xsl:variable name="inventorLFDot">
  4862.                   <xsl:call-template name="appendField_Dot">
  4863.                     <xsl:with-param name="field" select="$inventorLF"/>
  4864.                   </xsl:call-template>
  4865.                 </xsl:variable>
  4866.  
  4867.                 <xsl:variable name="intervieweeLFDot">
  4868.                   <xsl:call-template name="appendField_Dot">
  4869.                     <xsl:with-param name="field" select="$intervieweeLF"/>
  4870.                   </xsl:call-template>
  4871.                 </xsl:variable>
  4872.  
  4873.  
  4874.                 
  4875.  
  4876.  
  4877.                 <xsl:variable name="sufixEditorDot">
  4878.                   <xsl:if test="string-length($editor)>0">
  4879.                     <xsl:value-of select="$editor"/>
  4880.                     <xsl:call-template name="templ_prop_Space"/>
  4881.                     <xsl:if test="$cEditors > 1">
  4882.                       <xsl:call-template name="templ_str_EditorsShortCap"/>
  4883.                     </xsl:if>
  4884.                     <xsl:if test="$cEditors = 1">
  4885.                       <xsl:call-template name="templ_str_EditorShortCap"/>
  4886.                     </xsl:if>
  4887.                   </xsl:if>
  4888.                 </xsl:variable>
  4889.  
  4890.  
  4891.                 <xsl:variable name="sufixTranslatorDot">
  4892.                   <xsl:if test="string-length($translator)>0">
  4893.                     <xsl:value-of select="$translator"/>
  4894.                     <xsl:call-template name="templ_prop_Space"/>
  4895.                     <xsl:if test="$cTranslators > 1">
  4896.                       <xsl:call-template name="templ_str_TranslatorsShortCap"/>
  4897.                     </xsl:if>
  4898.                     <xsl:if test="$cTranslators = 1">
  4899.                       <xsl:call-template name="templ_str_TranslatorShortCap"/>
  4900.                     </xsl:if>
  4901.                   </xsl:if>
  4902.                 </xsl:variable>
  4903.  
  4904.                 <xsl:variable name="ensufixEditorLFDot">
  4905.                   <xsl:if test="string-length($editorLF)>0">
  4906.                     <xsl:value-of select="$editorLF"/>
  4907.                     <xsl:call-template name="templ_prop_Space"/>
  4908.                     <xsl:if test="$cEditors > 1">
  4909.                       <xsl:call-template name="templ_prop_APA_GeneralOpen"/>
  4910.                       <xsl:call-template name="templ_str_EditorsShortCap"/>
  4911.                       <xsl:call-template name="templ_prop_APA_GeneralClose"/>
  4912.                     </xsl:if>
  4913.                     <xsl:if test="$cEditors = 1">
  4914.                       <xsl:call-template name="templ_prop_APA_GeneralOpen"/>
  4915.                       <xsl:call-template name="templ_str_EditorShortCap"/>
  4916.                       <xsl:call-template name="templ_prop_APA_GeneralClose"/>
  4917.                     </xsl:if>
  4918.                     <xsl:call-template name="templ_prop_Dot"/>
  4919.                   </xsl:if>
  4920.                 </xsl:variable>
  4921.  
  4922.  
  4923.                 <xsl:variable name="ensufixTranslatorLFDot">
  4924.                   <xsl:if test="string-length($translatorLF)>0">
  4925.                     <xsl:value-of select="$translatorLF"/>
  4926.                     <xsl:call-template name="templ_prop_Space"/>
  4927.                     <xsl:if test="$cTranslators > 1">
  4928.                       <xsl:call-template name="templ_prop_APA_GeneralOpen"/>
  4929.                       <xsl:call-template name="templ_str_TranslatorsShortCap"/>
  4930.                       <xsl:call-template name="templ_prop_APA_GeneralClose"/>
  4931.                     </xsl:if>
  4932.                     <xsl:if test="$cTranslators = 1">
  4933.                       <xsl:call-template name="templ_prop_APA_GeneralOpen"/>
  4934.                       <xsl:call-template name="templ_str_TranslatorShortCap"/>
  4935.                       <xsl:call-template name="templ_prop_APA_GeneralClose"/>
  4936.                     </xsl:if>
  4937.                     <xsl:call-template name="templ_prop_Dot"/>
  4938.                   </xsl:if>
  4939.                 </xsl:variable>
  4940.  
  4941.                 <xsl:variable name="ensufixEditorLF">
  4942.                   <xsl:if test="string-length($editorLF)>0">
  4943.                     <xsl:value-of select="$editorLF"/>
  4944.                     <xsl:call-template name="templ_prop_Space"/>
  4945.                     <xsl:if test="$cEditors > 1">
  4946.                       <xsl:call-template name="templ_prop_APA_GeneralOpen"/>
  4947.                       <xsl:call-template name="templ_str_EditorsShortCap"/>
  4948.                       <xsl:call-template name="templ_prop_APA_GeneralClose"/>
  4949.                     </xsl:if>
  4950.                     <xsl:if test="$cEditors = 1">
  4951.                       <xsl:call-template name="templ_prop_APA_GeneralOpen"/>
  4952.                       <xsl:call-template name="templ_str_EditorShortCap"/>
  4953.                       <xsl:call-template name="templ_prop_APA_GeneralClose"/>
  4954.                     </xsl:if>
  4955.                   </xsl:if>
  4956.                 </xsl:variable>
  4957.  
  4958.  
  4959.                 <xsl:variable name="ensufixTranslatorLF">
  4960.                   <xsl:if test="string-length($translatorLF)>0">
  4961.                     <xsl:value-of select="$translatorLF"/>
  4962.                     <xsl:call-template name="templ_prop_Space"/>
  4963.                     <xsl:if test="$cTranslators > 1">
  4964.                       <xsl:call-template name="templ_prop_APA_GeneralOpen"/>
  4965.                       <xsl:call-template name="templ_str_TranslatorsShortCap"/>
  4966.                       <xsl:call-template name="templ_prop_APA_GeneralClose"/>
  4967.                     </xsl:if>
  4968.                     <xsl:if test="$cTranslators = 1">
  4969.                       <xsl:call-template name="templ_prop_APA_GeneralOpen"/>
  4970.                       <xsl:call-template name="templ_str_TranslatorShortCap"/>
  4971.                       <xsl:call-template name="templ_prop_APA_GeneralClose"/>
  4972.                     </xsl:if>
  4973.                   </xsl:if>
  4974.                 </xsl:variable>
  4975.  
  4976.                 <xsl:variable name="ensufixComposerLFDot">
  4977.                   <xsl:if test="string-length($composerLF)>0">
  4978.                     <xsl:value-of select="$composerLF"/>
  4979.                     <xsl:call-template name="templ_prop_Space"/>
  4980.                     <xsl:if test="$cComposers > 1">
  4981.                       <xsl:call-template name="templ_prop_APA_GeneralOpen"/>
  4982.                       <xsl:call-template name="templ_str_ComposersCap"/>
  4983.                       <xsl:call-template name="templ_prop_APA_GeneralClose"/>
  4984.                     </xsl:if>
  4985.                     <xsl:if test="$cComposers = 1">
  4986.                       <xsl:call-template name="templ_prop_APA_GeneralOpen"/>
  4987.                       <xsl:call-template name="templ_str_ComposerCap"/>
  4988.                       <xsl:call-template name="templ_prop_APA_GeneralClose"/>
  4989.                     </xsl:if>
  4990.                     <xsl:call-template name="templ_prop_Dot"/>
  4991.                   </xsl:if>
  4992.                 </xsl:variable>
  4993.  
  4994.  
  4995.                 <xsl:variable name="ensufixShortCompilerLFDot">
  4996.                   <xsl:if test="string-length($compilerLF)>0">
  4997.                     <xsl:value-of select="$compilerLF"/>
  4998.                     <xsl:call-template name="templ_prop_Space"/>
  4999.                     <xsl:if test="$cCompilers > 1">
  5000.                       <xsl:call-template name="templ_prop_APA_GeneralOpen"/>
  5001.                       
  5002.                       <xsl:call-template name="templ_str_CompilerShortCap"/>
  5003.                       <xsl:call-template name="templ_prop_APA_GeneralClose"/>
  5004.                     </xsl:if>
  5005.                     <xsl:if test="$cCompilers = 1">
  5006.                       <xsl:call-template name="templ_prop_APA_GeneralOpen"/>
  5007.                       <xsl:call-template name="templ_str_CompilerShortCap"/>
  5008.                       <xsl:call-template name="templ_prop_APA_GeneralClose"/>
  5009.                     </xsl:if>
  5010.                     <xsl:call-template name="templ_prop_Dot"/>
  5011.                   </xsl:if>
  5012.                 </xsl:variable>
  5013.  
  5014.  
  5015.                 <xsl:variable name="writerLFDot">
  5016.                   <xsl:call-template name="appendField_Dot">
  5017.                     <xsl:with-param name="field" select="$writerLF"/>
  5018.                   </xsl:call-template>
  5019.                 </xsl:variable>
  5020.  
  5021.                 <xsl:variable name="ensufixPerformerLFDot">
  5022.                   <xsl:if test="string-length($performerLF)>0">
  5023.                     <xsl:value-of select="$performerLF"/>
  5024.                     <xsl:call-template name="templ_prop_Space"/>
  5025.                     <xsl:if test="$cPerformers > 1">
  5026.                       <xsl:call-template name="templ_prop_APA_GeneralOpen"/>
  5027.                       <xsl:call-template name="templ_str_PerformersCap"/>
  5028.                       <xsl:call-template name="templ_prop_APA_GeneralClose"/>
  5029.                     </xsl:if>
  5030.                     <xsl:if test="$cPerformers = 1">
  5031.                       <xsl:call-template name="templ_prop_APA_GeneralOpen"/>
  5032.                       <xsl:call-template name="templ_str_PerformerCap"/>
  5033.                       <xsl:call-template name="templ_prop_APA_GeneralClose"/>
  5034.                     </xsl:if>
  5035.                     <xsl:call-template name="templ_prop_Dot"/>
  5036.                   </xsl:if>
  5037.                 </xsl:variable>
  5038.  
  5039.                 <xsl:variable name="ensufixConductorLFDot">
  5040.                   <xsl:if test="string-length($conductorLF)>0">
  5041.                     <xsl:value-of select="$conductorLF"/>
  5042.                     <xsl:call-template name="templ_prop_Space"/>
  5043.                     <xsl:if test="$cConductors > 1">
  5044.                       <xsl:call-template name="templ_prop_APA_GeneralOpen"/>
  5045.                       <xsl:call-template name="templ_str_ConductorsCap"/>
  5046.                       <xsl:call-template name="templ_prop_APA_GeneralClose"/>
  5047.                     </xsl:if>
  5048.                     <xsl:if test="$cConductors = 1">
  5049.                       <xsl:call-template name="templ_prop_APA_GeneralOpen"/>
  5050.                       <xsl:call-template name="templ_str_ConductorCap"/>
  5051.                       <xsl:call-template name="templ_prop_APA_GeneralClose"/>
  5052.                     </xsl:if>
  5053.                     <xsl:call-template name="templ_prop_Dot"/>
  5054.                   </xsl:if>
  5055.                 </xsl:variable>
  5056.  
  5057.                 <xsl:variable name="ensufixDirectorLFDot">
  5058.                   <xsl:if test="string-length($directorLF)>0">
  5059.                     <xsl:value-of select="$directorLF"/>
  5060.                     <xsl:call-template name="templ_prop_Space"/>
  5061.                     <xsl:if test="$cDirectors > 1">
  5062.                       <xsl:call-template name="templ_prop_APA_GeneralOpen"/>
  5063.                       <xsl:call-template name="templ_str_DirectorsCap"/>
  5064.                       <xsl:call-template name="templ_prop_APA_GeneralClose"/>
  5065.                     </xsl:if>
  5066.                     <xsl:if test="$cDirectors = 1">
  5067.                       <xsl:call-template name="templ_prop_APA_GeneralOpen"/>
  5068.                       <xsl:call-template name="templ_str_DirectorCap"/>
  5069.                       <xsl:call-template name="templ_prop_APA_GeneralClose"/>
  5070.                     </xsl:if>
  5071.                     <xsl:call-template name="templ_prop_Dot"/>
  5072.                   </xsl:if>
  5073.                 </xsl:variable>
  5074.  
  5075.                 <xsl:variable name="enclosedDateDot">
  5076.                   <xsl:if test="string-length($date)>0">
  5077.                     <xsl:call-template name="templ_prop_APA_GeneralOpen"/>
  5078.                     <xsl:value-of select="$date"/>
  5079.                     <xsl:call-template name="templ_prop_APA_GeneralClose"/>
  5080.                     <xsl:call-template name="templ_prop_Dot"/>
  5081.                   </xsl:if>
  5082.                 </xsl:variable>
  5083.  
  5084.                 <xsl:variable name="enclosedDateEmptyDot">
  5085.                   <xsl:if test="string-length($dateEmpty)>0">
  5086.                     <xsl:call-template name="templ_prop_APA_GeneralOpen"/>
  5087.                     <xsl:value-of select="$dateEmpty"/>
  5088.                     <xsl:call-template name="templ_prop_APA_GeneralClose"/>
  5089.                     <xsl:call-template name="templ_prop_Dot"/>
  5090.                   </xsl:if>
  5091.                 </xsl:variable>
  5092.  
  5093.                 <xsl:variable name="authorDot">
  5094.                   <xsl:call-template name="appendField_Dot">
  5095.                     <xsl:with-param name="field" select="$author"/>
  5096.                   </xsl:call-template>
  5097.                 </xsl:variable>
  5098.  
  5099.                 <xsl:variable name="theAuthor">
  5100.                   <xsl:choose>
  5101.                     <xsl:when test="string-length($author)>0">
  5102.                       <xsl:value-of select="$author"/>
  5103.                     </xsl:when>
  5104.                     <xsl:when test="string-length($ensufixEditorLF)>0">
  5105.                       <xsl:value-of select="$ensufixEditorLF"/>
  5106.                     </xsl:when>
  5107.                   </xsl:choose>
  5108.                 </xsl:variable>
  5109.  
  5110.                 <xsl:variable name="theAuthorDot">
  5111.                   <xsl:call-template name="appendField_Dot">
  5112.                     <xsl:with-param name="field" select="$theAuthor"/>
  5113.                   </xsl:call-template>
  5114.                 </xsl:variable>
  5115.  
  5116.                 <xsl:variable name="writeEditor">
  5117.                   <xsl:choose>
  5118.                     <xsl:when test="string-length($author)>0">Editor</xsl:when>
  5119.                   </xsl:choose>
  5120.                 </xsl:variable>
  5121.  
  5122.                 <xsl:variable name="theEditorAndTranslatorDot">
  5123.                   <xsl:call-template name="formatManySecondary">
  5124.  
  5125.                     <xsl:with-param name="name1" select="$writeEditor"/>
  5126.                     <xsl:with-param name="sufixS1">
  5127.                       <xsl:call-template name="templ_prop_ListSeparator"/>
  5128.                       <xsl:call-template name="templ_str_EditorShortCap"/>
  5129.                     </xsl:with-param>
  5130.                     <xsl:with-param name="sufixM1">
  5131.                       <xsl:call-template name="templ_prop_ListSeparator"/>
  5132.                       <xsl:call-template name="templ_str_EditorsShortCap"/>
  5133.                     </xsl:with-param>
  5134.  
  5135.                     <xsl:with-param name="name2">Translator</xsl:with-param>
  5136.                     <xsl:with-param name="sufixS2">
  5137.                       <xsl:call-template name="templ_prop_ListSeparator"/>
  5138.                       <xsl:call-template name="templ_str_TranslatorShortCap"/>
  5139.                     </xsl:with-param>
  5140.                     <xsl:with-param name="sufixM2">
  5141.                       <xsl:call-template name="templ_prop_ListSeparator"/>
  5142.                       <xsl:call-template name="templ_str_TranslatorsShortCap"/>
  5143.                     </xsl:with-param>
  5144.                   </xsl:call-template>
  5145.                 </xsl:variable>
  5146.  
  5147.  
  5148.                 <xsl:variable name="theEditorEncTemp">
  5149.                   <xsl:call-template name="formatManySecondary">
  5150.  
  5151.                     <xsl:with-param name="name1" select="$writeEditor"/>
  5152.                     <xsl:with-param name="sufixS1">
  5153.                       <xsl:call-template name="templ_prop_Space"/>
  5154.                       <xsl:call-template name="templ_prop_APA_GeneralOpen"/>
  5155.                       <xsl:call-template name="templ_str_EditorShortCap"/>
  5156.                       <xsl:call-template name="templ_prop_APA_GeneralClose"/>
  5157.                     </xsl:with-param>
  5158.                     <xsl:with-param name="sufixM1">
  5159.                       <xsl:call-template name="templ_prop_Space"/>
  5160.                       <xsl:call-template name="templ_prop_APA_GeneralOpen"/>
  5161.                       <xsl:call-template name="templ_str_EditorShortCap"/>
  5162.                       <xsl:call-template name="templ_prop_APA_GeneralClose"/>
  5163.                     </xsl:with-param>
  5164.  
  5165.                   </xsl:call-template>
  5166.                 </xsl:variable>
  5167.  
  5168.                 <xsl:variable name="prop_APA_GeneralOpen">
  5169.                   <xsl:call-template name="templ_prop_APA_GeneralOpen"/>
  5170.                 </xsl:variable>
  5171.                 <xsl:variable name="prop_APA_GeneralClose">
  5172.                   <xsl:call-template name="templ_prop_APA_GeneralClose"/>
  5173.                 </xsl:variable>
  5174.  
  5175.                 <xsl:variable name="theEditorEnc">
  5176.                   <xsl:if test="string-length($theEditorEncTemp)>0">
  5177.                     <xsl:value-of select="substring($theEditorEncTemp, 1 + string-length($prop_APA_GeneralOpen), string-length($theEditorEncTemp) - string-length($prop_APA_GeneralOpen) - string-length($prop_APA_GeneralClose))"/>
  5178.                   </xsl:if>
  5179.                 </xsl:variable>
  5180.  
  5181.                 <xsl:variable name="theEditorEncDot">
  5182.                   <xsl:if test="string-length($theEditorEncTemp)>0">
  5183.                     <xsl:value-of select="substring($theEditorEncTemp, 1 + string-length($prop_APA_GeneralOpen), string-length($theEditorEncTemp)  - string-length($prop_APA_GeneralOpen) - string-length($prop_APA_GeneralClose))"/>
  5184.                     <xsl:call-template name="templ_prop_Dot"/>
  5185.                   </xsl:if>
  5186.                 </xsl:variable>
  5187.  
  5188.  
  5189.                 <xsl:variable name="theEnSufixEditor">
  5190.                   <xsl:choose>
  5191.                     <xsl:when test="string-length($author)>0">
  5192.                       <xsl:value-of select="$ensufixEditorLF"/>
  5193.                     </xsl:when>
  5194.                   </xsl:choose>
  5195.                 </xsl:variable>
  5196.  
  5197.                 <xsl:variable name="theEnSufixTranslator">
  5198.                   <xsl:choose>
  5199.                     <xsl:when test="string-length($author)>0 or string-length($ensufixEditorLFDot)>0 ">
  5200.                       <xsl:value-of select="$ensufixTranslatorLF"/>
  5201.                     </xsl:when>
  5202.                   </xsl:choose>
  5203.                 </xsl:variable>
  5204.  
  5205.                 <xsl:variable name="theBookAuthorAndEditor">
  5206.                   <xsl:call-template name="formatManySecondary">
  5207.  
  5208.                     <xsl:with-param name="name1">BookAuthor</xsl:with-param>
  5209.                     <xsl:with-param name="sufixS1"></xsl:with-param>
  5210.                     <xsl:with-param name="sufixM1"></xsl:with-param>
  5211.  
  5212.                     <xsl:with-param name="name2">Editor</xsl:with-param>
  5213.                     <xsl:with-param name="sufixS2">
  5214.                       <xsl:call-template name="templ_prop_Space"/>
  5215.                       <xsl:call-template name="templ_prop_APA_GeneralOpen"/>
  5216.                       <xsl:call-template name="templ_str_EditorShortCap"/>
  5217.                       <xsl:call-template name="templ_prop_APA_GeneralClose"/>
  5218.                     </xsl:with-param>
  5219.                     <xsl:with-param name="sufixM2">
  5220.                       <xsl:call-template name="templ_prop_Space"/>
  5221.                       <xsl:call-template name="templ_prop_APA_GeneralOpen"/>
  5222.                       <xsl:call-template name="templ_str_EditorsShortCap"/>
  5223.                       <xsl:call-template name="templ_prop_APA_GeneralClose"/>
  5224.                     </xsl:with-param>
  5225.  
  5226.                   </xsl:call-template>
  5227.                 </xsl:variable>
  5228.  
  5229.                 <xsl:variable name="theBookAuthorAndEditorDot">
  5230.                   <xsl:if test="string-length($theBookAuthorAndEditor)>0">
  5231.                     <xsl:value-of select="substring($theBookAuthorAndEditor, 1 + string-length($prop_APA_GeneralOpen), string-length($theBookAuthorAndEditor) - string-length($prop_APA_GeneralOpen) - string-length($prop_APA_GeneralClose))"/>
  5232.                     <xsl:call-template name="templ_prop_Dot"/>
  5233.                   </xsl:if>
  5234.                 </xsl:variable>
  5235.  
  5236.                 <xsl:variable name="theBookAuthorAndEditor2">
  5237.                   <xsl:if test="string-length($theBookAuthorAndEditor)>0">
  5238.                     <xsl:value-of select="substring($theBookAuthorAndEditor, 1 + string-length($prop_APA_GeneralOpen), string-length($theBookAuthorAndEditor) - string-length($prop_APA_GeneralOpen) - string-length($prop_APA_GeneralClose))"/>
  5239.                   </xsl:if>
  5240.                 </xsl:variable>
  5241.  
  5242.                 <xsl:variable name="i_bookTitlePagesDot">
  5243.                   <xsl:if test="string-length($bookTitle)>0">
  5244.                     <xsl:call-template name = "ApplyItalicFieldNS">
  5245.                      <xsl:with-param name = "data">
  5246.                       <xsl:choose>
  5247.                         <xsl:when test="string-length($volume)>0 or string-length($pages)>0 or string-length($translator)>0 or string-length($edition)>0">
  5248.                           <xsl:value-of select="$bookTitle"/>
  5249.                         </xsl:when>
  5250.                         <xsl:otherwise>
  5251.                           <xsl:value-of select="$bookTitleDot"/>
  5252.                         </xsl:otherwise>
  5253.                       </xsl:choose>
  5254.                      </xsl:with-param>
  5255.                     </xsl:call-template>
  5256.  
  5257.                     <xsl:if test="string-length($volume)>0 or string-length($pages)>0 or string-length($translator)>0 or string-length($edition)>0">
  5258.  
  5259.                       <xsl:call-template name="templ_prop_Space"/>
  5260.                       <xsl:call-template name="templ_prop_APA_GeneralOpen"/>
  5261.  
  5262.                       <xsl:if test="string-length($translator)>0">
  5263.                         <xsl:value-of select="$translator"/>
  5264.                         <xsl:call-template name="templ_prop_ListSeparator"/>
  5265.                         <xsl:if test="$cTranslators > 1">
  5266.                           <xsl:call-template name="templ_str_TranslatorsShortCap"/>
  5267.                         </xsl:if>
  5268.                         <xsl:if test="$cTranslators = 1">
  5269.                           <xsl:call-template name="templ_str_TranslatorShortCap"/>
  5270.                         </xsl:if>
  5271.  
  5272.                       </xsl:if>
  5273.  
  5274.                       <xsl:if test="string-length($edition)>0">
  5275.                          <xsl:if test="string-length($translator)>0">
  5276.                           <xsl:call-template name="templ_prop_ListSeparator"/>
  5277.                          </xsl:if>
  5278.  
  5279.                         <xsl:call-template name="StringFormat">
  5280.                             <xsl:with-param name="format">
  5281.                                 <xsl:call-template name="templ_str_EditionShortUnCap"/>
  5282.                             </xsl:with-param>
  5283.                             <xsl:with-param name="parameters">
  5284.                                 <t:params>
  5285.                                     <t:param>
  5286.                                         <xsl:value-of select="$edition"/>
  5287.                                     </t:param>
  5288.                                 </t:params>
  5289.                             </xsl:with-param>
  5290.                         </xsl:call-template>
  5291.                       </xsl:if>
  5292.  
  5293.                       <xsl:if test="string-length($volume)>0">
  5294.                          <xsl:if test="string-length($translator)>0 or string-length($edition)>0">
  5295.                           <xsl:call-template name="templ_prop_ListSeparator"/>
  5296.                          </xsl:if>
  5297.                         <xsl:call-template name="StringFormat">
  5298.                             <xsl:with-param name="format">
  5299.                               <xsl:choose>
  5300.                                 <xsl:when test="not(string-length($volume)=string-length(translate($volume, ',', '')))">
  5301.                                   <xsl:call-template name="templ_str_VolumesShortCap"/>
  5302.                                 </xsl:when>
  5303.                                 <xsl:when test="string-length($volume)=string-length(translate($volume, $prop_APA_Hyphens, ''))">
  5304.                                   <xsl:call-template name="templ_str_VolumeShortCap"/>
  5305.                                 </xsl:when>
  5306.                                 <xsl:otherwise>
  5307.                                   <xsl:call-template name="templ_str_VolumesShortCap"/>
  5308.                                 </xsl:otherwise>
  5309.                               </xsl:choose>
  5310.                             </xsl:with-param>
  5311.                             <xsl:with-param name="parameters">
  5312.                                 <t:params>
  5313.                                     <t:param>
  5314.                                         <xsl:value-of select="$volume"/>
  5315.                                     </t:param>
  5316.                                 </t:params>
  5317.                             </xsl:with-param>
  5318.                         </xsl:call-template>    
  5319.                       </xsl:if>
  5320.  
  5321.  
  5322.                       <xsl:if test="string-length($pages)>0">
  5323.                         <xsl:if test="string-length($translator)>0 or string-length($edition)>0 or string-length($volume)>0">
  5324.                           <xsl:call-template name="templ_prop_ListSeparator"/>
  5325.                         </xsl:if>
  5326.                         <xsl:value-of select="$ppPages"/>
  5327.                       </xsl:if>
  5328.  
  5329.                       <xsl:call-template name="templ_prop_APA_GeneralClose"/>
  5330.                       <xsl:call-template name="templ_prop_Dot"/>
  5331.  
  5332.                     </xsl:if>
  5333.                   </xsl:if>
  5334.                 </xsl:variable>
  5335.  
  5336.  
  5337.  
  5338.  
  5339.                 <xsl:variable name="theAuthorSoundRecordingDot">
  5340.                   <xsl:choose>
  5341.                     <xsl:when test="string-length($ensufixComposerLFDot)>0">
  5342.                       <xsl:value-of select="$ensufixComposerLFDot"/>
  5343.                     </xsl:when>
  5344.                     <xsl:when test="string-length($ensufixPerformerLFDot)>0">
  5345.                       <xsl:value-of select="$ensufixPerformerLFDot"/>
  5346.                     </xsl:when>
  5347.                     <xsl:when test="string-length($ensufixConductorLFDot)>0">
  5348.                       <xsl:value-of select="$ensufixConductorLFDot"/>
  5349.                     </xsl:when>
  5350.                   </xsl:choose>
  5351.                 </xsl:variable>
  5352.  
  5353.                 <xsl:variable name="writePerformer">
  5354.                   <xsl:choose>
  5355.                     <xsl:when test="string-length($composer)>0">Performer</xsl:when>
  5356.                   </xsl:choose>
  5357.                 </xsl:variable>
  5358.  
  5359.                 <xsl:variable name="writeConductor">
  5360.                   <xsl:choose>
  5361.                     <xsl:when test="string-length($composer)>0 or string-length($performer)>0">Conductor</xsl:when>
  5362.                   </xsl:choose>
  5363.                 </xsl:variable>
  5364.  
  5365.  
  5366.                 <xsl:variable name="thePerformerAndConductorDot">
  5367.                   <xsl:call-template name="formatManySecondary">
  5368.  
  5369.                     <xsl:with-param name="useSquareBrackets" select="'yes'"/>
  5370.                     <xsl:with-param name="name1" select="$writePerformer"/>
  5371.                     <xsl:with-param name="sufixS1">
  5372.                       <xsl:call-template name="templ_prop_ListSeparator"/>
  5373.                       <xsl:call-template name="templ_str_PerformerCap"/>
  5374.                     </xsl:with-param>
  5375.                     <xsl:with-param name="sufixM1">
  5376.                       <xsl:call-template name="templ_prop_ListSeparator"/>
  5377.                       <xsl:call-template name="templ_str_PerformersCap"/>
  5378.                     </xsl:with-param>
  5379.  
  5380.                     <xsl:with-param name="name2" select="$writeConductor"/>
  5381.                     <xsl:with-param name="sufixS2">
  5382.                       <xsl:call-template name="templ_prop_ListSeparator"/>
  5383.                       <xsl:call-template name="templ_str_ConductorCap"/>
  5384.                     </xsl:with-param>
  5385.                     <xsl:with-param name="sufixM2">
  5386.                       <xsl:call-template name="templ_prop_ListSeparator"/>
  5387.                       <xsl:call-template name="templ_str_ConductorsCap"/>
  5388.                     </xsl:with-param>
  5389.                   </xsl:call-template>
  5390.                 </xsl:variable>
  5391.  
  5392.  
  5393.  
  5394.  
  5395.                 <xsl:variable name="theAuthorPerformanceDot">
  5396.                   <xsl:choose>
  5397.                     <xsl:when test="string-length($writerLFDot)>0">
  5398.                       <xsl:value-of select="$writerLFDot"/>
  5399.                     </xsl:when>
  5400.                     <xsl:when test="string-length($ensufixDirectorLFDot)>0">
  5401.                       <xsl:value-of select="$ensufixDirectorLFDot"/>
  5402.                     </xsl:when>
  5403.                     <xsl:when test="string-length($ensufixPerformerLFDot)>0">
  5404.                       <xsl:value-of select="$ensufixPerformerLFDot"/>
  5405.                     </xsl:when>
  5406.                   </xsl:choose>
  5407.                 </xsl:variable>
  5408.  
  5409.                 <xsl:variable name="writePerfDirector">
  5410.                   <xsl:choose>
  5411.                     <xsl:when test="string-length($writer)>0">Director</xsl:when>
  5412.                   </xsl:choose>
  5413.                 </xsl:variable>
  5414.  
  5415.                 <xsl:variable name="writePerfPerformer">
  5416.                   <xsl:choose>
  5417.                     <xsl:when test="string-length($writer)>0 or string-length($director)>0">Performer</xsl:when>
  5418.                   </xsl:choose>
  5419.                 </xsl:variable>
  5420.  
  5421.  
  5422.                 <xsl:variable name="thePerformanceDirectorAndPerformerDot">
  5423.                   <xsl:call-template name="formatManySecondary">
  5424.  
  5425.                     <xsl:with-param name="name1" select="$writePerfDirector"/>
  5426.                     <xsl:with-param name="sufixS1">
  5427.                       <xsl:call-template name="templ_prop_ListSeparator"/>
  5428.                       <xsl:call-template name="templ_str_DirectorCap"/>
  5429.                     </xsl:with-param>
  5430.                     <xsl:with-param name="sufixM1">
  5431.                       <xsl:call-template name="templ_prop_ListSeparator"/>
  5432.                       <xsl:call-template name="templ_str_DirectorsCap"/>
  5433.                     </xsl:with-param>
  5434.  
  5435.                     <xsl:with-param name="name2" select="$writePerfPerformer"/>
  5436.                     <xsl:with-param name="sufixS2">
  5437.                       <xsl:call-template name="templ_prop_ListSeparator"/>
  5438.                       <xsl:call-template name="templ_str_PerformerCap"/>
  5439.                     </xsl:with-param>
  5440.                     <xsl:with-param name="sufixM2">
  5441.                       <xsl:call-template name="templ_prop_ListSeparator"/>
  5442.                       <xsl:call-template name="templ_str_PerformersCap"/>
  5443.                     </xsl:with-param>
  5444.  
  5445.                   </xsl:call-template>
  5446.                 </xsl:variable>
  5447.  
  5448.                 <xsl:variable name="theMiscAuthorDot">
  5449.                   <xsl:choose>
  5450.                     <xsl:when test="string-length($authorDot)>0">
  5451.                       <xsl:value-of select="$authorDot"/>
  5452.                     </xsl:when>
  5453.                     <xsl:when test="string-length($ensufixEditorLFDot)>0">
  5454.                       <xsl:value-of select="$ensufixEditorLFDot"/>
  5455.                     </xsl:when>
  5456.                   </xsl:choose>
  5457.                 </xsl:variable>
  5458.  
  5459.                 <xsl:variable name="writeMiscEditor">
  5460.                   <xsl:choose>
  5461.                     <xsl:when test="string-length($authorDot)>0">Editor</xsl:when>
  5462.                   </xsl:choose>
  5463.                 </xsl:variable>
  5464.  
  5465.  
  5466.                 <xsl:variable name="theMiscEditorAndTranslatorAndCompilerDot">
  5467.                   <xsl:call-template name="formatManySecondary">
  5468.  
  5469.                     <xsl:with-param name="name1" select="$writeMiscEditor"/>
  5470.                     <xsl:with-param name="sufixS1">
  5471.                       <xsl:call-template name="templ_prop_ListSeparator"/>
  5472.                       <xsl:call-template name="templ_str_EditorShortCap"/>
  5473.                     </xsl:with-param>
  5474.                     <xsl:with-param name="sufixM1">
  5475.                       <xsl:call-template name="templ_prop_ListSeparator"/>
  5476.                       <xsl:call-template name="templ_str_EditorsShortCap"/>
  5477.                     </xsl:with-param>
  5478.  
  5479.                     <xsl:with-param name="name2">Translator</xsl:with-param>
  5480.                     <xsl:with-param name="sufixS2">
  5481.                       <xsl:call-template name="templ_prop_ListSeparator"/>
  5482.                       <xsl:call-template name="templ_str_TranslatorShortCap"/>
  5483.                     </xsl:with-param>
  5484.                     <xsl:with-param name="sufixM2">
  5485.                       <xsl:call-template name="templ_prop_ListSeparator"/>
  5486.                       <xsl:call-template name="templ_str_TranslatorsShortCap"/>
  5487.                     </xsl:with-param>
  5488.  
  5489.                     <xsl:with-param name="name3">Compiler</xsl:with-param>
  5490.                     <xsl:with-param name="sufixS3">
  5491.                       <xsl:call-template name="templ_prop_ListSeparator"/>
  5492.                       <xsl:call-template name="templ_str_CompilerCap"/>
  5493.                     </xsl:with-param>
  5494.                     <xsl:with-param name="sufixM3">
  5495.                       <xsl:call-template name="templ_prop_ListSeparator"/>
  5496.                       <xsl:call-template name="templ_str_CompilersCap"/>
  5497.                     </xsl:with-param>
  5498.                   </xsl:call-template>
  5499.                 </xsl:variable>
  5500.  
  5501.  
  5502.                 <xsl:variable name="theFilmProducerAndWriterAndDirectorDot">
  5503.                   <xsl:call-template name="formatManyMain">
  5504.  
  5505.                     <xsl:with-param name="name1">ProducerName</xsl:with-param>
  5506.                     <xsl:with-param name="sufixS1">
  5507.                       <xsl:call-template name="templ_prop_Space"/>
  5508.                       <xsl:call-template name="templ_prop_APA_GeneralOpen"/>
  5509.                       <xsl:call-template name="templ_str_ProducerCap"/>
  5510.                       <xsl:call-template name="templ_prop_APA_GeneralClose"/>
  5511.                     </xsl:with-param>
  5512.                     <xsl:with-param name="sufixM1">
  5513.                       <xsl:call-template name="templ_prop_Space"/>
  5514.                       <xsl:call-template name="templ_prop_APA_GeneralOpen"/>
  5515.                       <xsl:call-template name="templ_str_ProducersCap"/>
  5516.                       <xsl:call-template name="templ_prop_APA_GeneralClose"/>
  5517.                     </xsl:with-param>
  5518.  
  5519.                     <xsl:with-param name="name2">Writer</xsl:with-param>
  5520.                     <xsl:with-param name="sufixS2">
  5521.                       <xsl:call-template name="templ_prop_Space"/>
  5522.                       <xsl:call-template name="templ_prop_APA_GeneralOpen"/>
  5523.                       <xsl:call-template name="templ_str_WriterCap"/>
  5524.                       <xsl:call-template name="templ_prop_APA_GeneralClose"/>
  5525.                     </xsl:with-param>
  5526.                     <xsl:with-param name="sufixM2">
  5527.                       <xsl:call-template name="templ_prop_Space"/>
  5528.                       <xsl:call-template name="templ_prop_APA_GeneralOpen"/>
  5529.                       <xsl:call-template name="templ_str_WritersCap"/>
  5530.                       <xsl:call-template name="templ_prop_APA_GeneralClose"/>
  5531.                     </xsl:with-param>
  5532.  
  5533.                     <xsl:with-param name="name3">Director</xsl:with-param>
  5534.                     <xsl:with-param name="sufixS3">
  5535.                       <xsl:call-template name="templ_prop_Space"/>
  5536.                       <xsl:call-template name="templ_prop_APA_GeneralOpen"/>
  5537.                       <xsl:call-template name="templ_str_DirectorCap"/>
  5538.                       <xsl:call-template name="templ_prop_APA_GeneralClose"/>
  5539.                     </xsl:with-param>
  5540.                     <xsl:with-param name="sufixM3">
  5541.                       <xsl:call-template name="templ_prop_Space"/>
  5542.                       <xsl:call-template name="templ_prop_APA_GeneralOpen"/>
  5543.                       <xsl:call-template name="templ_str_DirectorsCap"/>
  5544.                       <xsl:call-template name="templ_prop_APA_GeneralClose"/>
  5545.                     </xsl:with-param>
  5546.                   </xsl:call-template>
  5547.                 </xsl:variable>
  5548.  
  5549.  
  5550.                 <xsl:variable name="theInterviewInterviewerAndEditorAndTranslator">
  5551.                   <xsl:call-template name="formatManySecondary">
  5552.  
  5553.                     <xsl:with-param name="name1">Interviewer</xsl:with-param>
  5554.                     <xsl:with-param name="sufixS1">
  5555.                       <xsl:call-template name="templ_prop_ListSeparator"/>
  5556.                       <xsl:call-template name="templ_str_InterviewerCap"/>
  5557.                     </xsl:with-param>
  5558.                     <xsl:with-param name="sufixM1">
  5559.                       <xsl:call-template name="templ_prop_ListSeparator"/>
  5560.                       <xsl:call-template name="templ_str_InterviewersCap"/>
  5561.                     </xsl:with-param>
  5562.  
  5563.                     <xsl:with-param name="name2">Editor</xsl:with-param>
  5564.                     <xsl:with-param name="sufixS2">
  5565.                       <xsl:call-template name="templ_prop_ListSeparator"/>
  5566.                       <xsl:call-template name="templ_str_EditorCap"/>
  5567.                     </xsl:with-param>
  5568.                     <xsl:with-param name="sufixM2">
  5569.                       <xsl:call-template name="templ_prop_ListSeparator"/>
  5570.                       <xsl:call-template name="templ_str_EditorsCap"/>
  5571.                     </xsl:with-param>
  5572.  
  5573.                     <xsl:with-param name="name3">Translator</xsl:with-param>
  5574.                     <xsl:with-param name="sufixS3">
  5575.                       <xsl:call-template name="templ_prop_ListSeparator"/>
  5576.                       <xsl:call-template name="templ_str_TranslatorCap"/>
  5577.                     </xsl:with-param>
  5578.                     <xsl:with-param name="sufixM3">
  5579.                       <xsl:call-template name="templ_prop_ListSeparator"/>
  5580.                       <xsl:call-template name="templ_str_TranslatorsCap"/>
  5581.                     </xsl:with-param>
  5582.                   </xsl:call-template>
  5583.                 </xsl:variable>
  5584.  
  5585.                 <xsl:variable name="theInterviewInterviewer">
  5586.                   <xsl:call-template name="formatManySecondary">
  5587.  
  5588.                     <xsl:with-param name="name1">Interviewer</xsl:with-param>
  5589.                     <xsl:with-param name="sufixS1">
  5590.                       <xsl:call-template name="templ_prop_ListSeparator"/>
  5591.                       <xsl:call-template name="templ_str_InterviewerCap"/>
  5592.                     </xsl:with-param>
  5593.                     <xsl:with-param name="sufixM1">
  5594.                       <xsl:call-template name="templ_prop_ListSeparator"/>
  5595.                       <xsl:call-template name="templ_str_InterviewersCap"/>
  5596.                     </xsl:with-param>
  5597.                   </xsl:call-template>
  5598.                 </xsl:variable>
  5599.  
  5600.  
  5601.                 <xsl:variable name="theInternetSiteEditorAndProducerDot">
  5602.                   <xsl:call-template name="formatManySecondary">
  5603.  
  5604.                     <xsl:with-param name="name1" select="$writeEditor"/>
  5605.                     <xsl:with-param name="sufixS1">
  5606.                       <xsl:call-template name="templ_prop_ListSeparator"/>
  5607.                       <xsl:call-template name="templ_str_EditorCap"/>
  5608.                     </xsl:with-param>
  5609.                     <xsl:with-param name="sufixM1">
  5610.                       <xsl:call-template name="templ_prop_ListSeparator"/>
  5611.                       <xsl:call-template name="templ_str_EditorsCap"/>
  5612.                     </xsl:with-param>
  5613.  
  5614.                     <xsl:with-param name="name2">ProducerName</xsl:with-param>
  5615.                     <xsl:with-param name="sufixS2">
  5616.                       <xsl:call-template name="templ_prop_ListSeparator"/>
  5617.                       <xsl:call-template name="templ_str_ProducerCap"/>
  5618.                     </xsl:with-param>
  5619.                     <xsl:with-param name="sufixM2">
  5620.                       <xsl:call-template name="templ_prop_ListSeparator"/>
  5621.                       <xsl:call-template name="templ_str_ProducersCap"/>
  5622.                     </xsl:with-param>
  5623.  
  5624.                     <xsl:with-param name="special3">
  5625.                       <xsl:value-of select="$productionCompany"/>
  5626.                     </xsl:with-param>
  5627.                   </xsl:call-template>
  5628.                 </xsl:variable>
  5629.  
  5630.                 <xsl:variable name = "_albumTitleMedium">
  5631.                   <xsl:if test="string-length(b:AlbumTitle)>0">
  5632.                     <xsl:call-template name="StringFormat">
  5633.                       <xsl:with-param name="format">
  5634.                         <xsl:call-template name="templ_str_OnAlbumTitleCap"/>
  5635.                       </xsl:with-param>
  5636.  
  5637.                       <xsl:with-param name="parameters">
  5638.                         <t:params>
  5639.                           <t:param>
  5640.                             <xsl:call-template name = "ApplyItalicTitleNS">
  5641.                              <xsl:with-param name = "data">
  5642.                               <xsl:value-of select="b:AlbumTitle"/>
  5643.                              </xsl:with-param>
  5644.                             </xsl:call-template>
  5645.                           </t:param>
  5646.                         </t:params>
  5647.                       </xsl:with-param>
  5648.                     </xsl:call-template>
  5649.                   </xsl:if>
  5650.  
  5651.                   <xsl:if test = "string-length(b:AlbumTitle)>0 and string-length(b:Medium)>0">
  5652.                     <xsl:call-template name="templ_prop_Space"/>
  5653.                   </xsl:if>
  5654.  
  5655.                   <xsl:if test = "string-length(b:Medium)>0">
  5656.                     <xsl:call-template name="templ_prop_APA_SecondaryOpen"/>
  5657.                     <xsl:value-of select="b:Medium"/>
  5658.                     <xsl:call-template name="templ_prop_APA_SecondaryClose"/>
  5659.                   </xsl:if>
  5660.                 </xsl:variable>
  5661.  
  5662.  
  5663.                 <xsl:variable name = "_albumTitleMediumDot">
  5664.                     <xsl:if test="string-length(normalize-space($_albumTitleMedium)) > 0">
  5665.                       <xsl:copy-of select="$_albumTitleMedium" />
  5666.                       <xsl:call-template name="need_Dot">
  5667.                         <xsl:with-param name="field" select ="$_albumTitleMedium"/>
  5668.                       </xsl:call-template>                        
  5669.                     </xsl:if>
  5670.                 </xsl:variable>
  5671.  
  5672.                 <xsl:choose>
  5673.                   <xsl:when test="b:SourceType='Book'">
  5674.                     <xsl:choose>
  5675.  
  5676.                       
  5677.                       <xsl:when test="string-length($theAuthorDot)>0">
  5678.  
  5679.                         <xsl:value-of select="$theAuthorDot"/>
  5680.  
  5681.                         <xsl:if test="string-length($enclosedDateDot)>0">
  5682.                           <xsl:call-template name="templ_prop_Space"/>
  5683.                           <xsl:value-of select="$enclosedDateDot"/>
  5684.                         </xsl:if>
  5685.  
  5686.                         <xsl:if test="string-length($i_titleEditionVolumeDot)>0">
  5687.                           <xsl:call-template name="templ_prop_Space"/>
  5688.                           <xsl:apply-templates select="msxsl:node-set($i_titleEditionVolumeDot)" mode="outputHtml"/>
  5689.                         </xsl:if>
  5690.  
  5691.                         <xsl:if test="string-length($theEditorAndTranslatorDot)>0">
  5692.                           <xsl:call-template name="templ_prop_Space"/>
  5693.  
  5694.                           <xsl:value-of select="$theEditorAndTranslatorDot"/>
  5695.  
  5696.                         </xsl:if>
  5697.  
  5698.                         <xsl:if test="string-length($tempCSCPu)>0">
  5699.                           <xsl:call-template name="templ_prop_Space"/>
  5700.                           <xsl:value-of select="$tempCSCPu"/>
  5701.                         </xsl:if>
  5702.  
  5703.                       </xsl:when>
  5704.  
  5705.  
  5706.                       
  5707.                       <xsl:when test="string-length($theAuthorDot)=0">
  5708.  
  5709.                         <xsl:if test="string-length($i_titleEditionVolumeDot)>0">
  5710.                           <xsl:apply-templates select="msxsl:node-set($i_titleEditionVolumeDot)" mode="outputHtml"/>
  5711.                         </xsl:if>
  5712.  
  5713.                         <xsl:if test="string-length($enclosedDateDot)>0">
  5714.                           <xsl:if test="string-length($i_titleEditionVolumeDot)>0">
  5715.                             <xsl:call-template name="templ_prop_Space"/>
  5716.                           </xsl:if>
  5717.                           <xsl:value-of select="$enclosedDateDot"/>
  5718.                         </xsl:if>
  5719.  
  5720.                         <xsl:if test="string-length($theEditorAndTranslatorDot)>0">
  5721.                           <xsl:if test="string-length($i_titleEditionVolumeDot)>0 or string-length($enclosedDateDot)>0">
  5722.                             <xsl:call-template name="templ_prop_Space"/>
  5723.                           </xsl:if>
  5724.  
  5725.                           <xsl:value-of select="$theEditorAndTranslatorDot"/>
  5726.  
  5727.                         </xsl:if>
  5728.  
  5729.  
  5730.                         <xsl:if test="string-length($tempCSCPu)>0">
  5731.                           <xsl:if test="string-length($i_titleEditionVolumeDot)>0 or string-length($enclosedDateDot)>0 or string-length($theEditorAndTranslatorDot)>0">
  5732.                             <xsl:call-template name="templ_prop_Space"/>
  5733.                           </xsl:if>
  5734.                           <xsl:value-of select="$tempCSCPu"/>
  5735.                         </xsl:if>
  5736.                       </xsl:when>
  5737.  
  5738.                     </xsl:choose>
  5739.  
  5740.                   </xsl:when>
  5741.  
  5742.  
  5743.                   <xsl:when test="b:SourceType='BookSection'">
  5744.  
  5745.                     <xsl:if test="string-length($authorDot)>0">
  5746.                       <xsl:value-of select="$authorDot"/>
  5747.                     </xsl:if>
  5748.  
  5749.                     <xsl:if test="string-length($enclosedDateDot)>0">
  5750.                       <xsl:call-template name="templ_prop_Space"/>
  5751.                       <xsl:value-of select="$enclosedDateDot"/>
  5752.                     </xsl:if>
  5753.  
  5754.                     <xsl:if test="string-length($titleDot)>0">
  5755.                       <xsl:if test="string-length($authorDot)>0 or string-length($enclosedDateDot)>0">
  5756.                         <xsl:call-template name="templ_prop_Space"/>
  5757.                       </xsl:if>
  5758.                       <xsl:value-of select="$titleDot"/>
  5759.                     </xsl:if>
  5760.  
  5761.                     <xsl:if test="string-length($theBookAuthorAndEditor)>0">
  5762.                       <xsl:if test="string-length($authorDot)>0 or string-length($titleDot)>0 or string-length($enclosedDateDot)>0">
  5763.                         <xsl:call-template name="templ_prop_Space"/>
  5764.                       </xsl:if>
  5765.  
  5766.                       <xsl:variable name="str_InNameCap">
  5767.                         <xsl:call-template name="templ_str_InNameCap"/>
  5768.                       </xsl:variable>
  5769.  
  5770.                       <xsl:call-template name="StringFormat">
  5771.                         <xsl:with-param name="format" select="$str_InNameCap"/>
  5772.  
  5773.                         <xsl:with-param name="parameters">
  5774.                           <t:params>
  5775.                             <t:param>
  5776.                               <xsl:if test="string-length($i_bookTitlePagesDot)>0">
  5777.                                 <xsl:value-of select="$theBookAuthorAndEditor2"/>
  5778.                               </xsl:if>
  5779.  
  5780.                               <xsl:if test="string-length($i_bookTitlePagesDot)=0">
  5781.                                 <xsl:value-of select="$theBookAuthorAndEditorDot"/>
  5782.                               </xsl:if>
  5783.                             </t:param>
  5784.                           </t:params>
  5785.                         </xsl:with-param>
  5786.                       </xsl:call-template>
  5787.                     </xsl:if>
  5788.  
  5789.                     <xsl:if test="string-length($i_bookTitlePagesDot)>0">
  5790.                       <xsl:choose>
  5791.                         <xsl:when test="string-length($theBookAuthorAndEditor)>0">
  5792.                           <xsl:call-template name="templ_prop_ListSeparator"/>
  5793.                         </xsl:when>
  5794.                         <xsl:when test="string-length($authorDot)>0 or string-length($titleDot)>0 or string-length($theBookAuthorAndEditorDot)>0 or string-length($enclosedDateDot)>0">
  5795.                           <xsl:call-template name="templ_prop_Space"/>
  5796.                         </xsl:when>
  5797.                       </xsl:choose>
  5798.  
  5799.                       <xsl:variable name="str_InNameCap">
  5800.                         <xsl:call-template name="templ_str_InNameCap"/>
  5801.                       </xsl:variable>
  5802.  
  5803.                       <xsl:if test="string-length($theBookAuthorAndEditor)=0">
  5804.                         <xsl:call-template name="StringFormat">
  5805.                           <xsl:with-param name="format" select="$str_InNameCap"/>
  5806.  
  5807.                           <xsl:with-param name="parameters">
  5808.                             <t:params>
  5809.                               <t:param>
  5810.                                 <xsl:copy-of select="$i_bookTitlePagesDot"/>
  5811.                               </t:param>
  5812.                             </t:params>
  5813.                           </xsl:with-param>
  5814.                         </xsl:call-template>
  5815.                       </xsl:if>
  5816.  
  5817.                       <xsl:if test="string-length($theBookAuthorAndEditor)>0">
  5818.                         <xsl:apply-templates select="msxsl:node-set($i_bookTitlePagesDot)" mode="outputHtml"/>
  5819.                       </xsl:if>
  5820.  
  5821.                     </xsl:if>
  5822.  
  5823.                     <xsl:if test="string-length($tempCSCPu)>0">
  5824.                       <xsl:if test="string-length($authorDot)>0 or string-length($titleDot)>0 or string-length($theBookAuthorAndEditorDot)>0 or string-length($i_bookTitlePagesDot)>0 or string-length($enclosedDateDot)>0">
  5825.                         <xsl:call-template name="templ_prop_Space"/>
  5826.                       </xsl:if>
  5827.                       <xsl:value-of select="$tempCSCPu"/>
  5828.                     </xsl:if>
  5829.  
  5830.                   </xsl:when>
  5831.  
  5832.  
  5833.  
  5834.  
  5835.  
  5836.  
  5837.                   <xsl:when test="b:SourceType='JournalArticle'">
  5838.  
  5839.                     <xsl:choose>
  5840.                       <xsl:when test="string-length($theAuthorDot)>0">
  5841.                         <xsl:value-of select="$theAuthorDot"/>
  5842.  
  5843.                         <xsl:if test="(string-length($issue)>0 or string-length($volume)>0) and string-length($enclosedDateDot)>0">
  5844.                           <xsl:call-template name="templ_prop_Space"/>
  5845.                           <xsl:value-of select="$enclosedDateDot"/>
  5846.                         </xsl:if>
  5847.  
  5848.                         <xsl:if test="(string-length($issue)=0 and string-length($volume)=0) and string-length($enclosedDateDot)>0">
  5849.                           <xsl:call-template name="templ_prop_Space"/>
  5850.                           <xsl:value-of select="$enclosedDateDot"/>
  5851.                         </xsl:if>
  5852.  
  5853.                         <xsl:if test="string-length($titleDot)>0">
  5854.                           <xsl:call-template name="templ_prop_Space"/>
  5855.                           <xsl:value-of select="$titleDot"/>
  5856.                         </xsl:if>
  5857.  
  5858.                         <xsl:if test="string-length($theEditorAndTranslatorDot)>0">
  5859.                           <xsl:call-template name="templ_prop_Space"/>
  5860.                           <xsl:value-of select="$theEditorAndTranslatorDot"/>
  5861.                         </xsl:if>
  5862.  
  5863.                         <xsl:if test="string-length($tempJVIP)>0">
  5864.                           <xsl:call-template name="templ_prop_Space"/>
  5865.                           <xsl:apply-templates select="msxsl:node-set($tempJVIP)" mode="outputHtml"/>
  5866.                         </xsl:if>
  5867.  
  5868.                       </xsl:when>
  5869.  
  5870.                       <xsl:otherwise>
  5871.  
  5872.                         <xsl:if test="string-length($titleDot)>0">
  5873.                           <xsl:value-of select="$titleDot"/>
  5874.                         </xsl:if>
  5875.  
  5876.                         <xsl:if test="(string-length($issue)>0 or string-length($volume)>0) and string-length($enclosedDateDot)>0">
  5877.                           <xsl:if test="string-length($titleDot)>0">
  5878.                             <xsl:call-template name="templ_prop_Space"/>
  5879.                           </xsl:if>
  5880.                           <xsl:value-of select="$enclosedDateDot"/>
  5881.                         </xsl:if>
  5882.  
  5883.                         <xsl:if test="(string-length($issue)=0 and string-length($volume)=0) and string-length($enclosedDateDot)>0">
  5884.                           <xsl:call-template name="templ_prop_Space"/>
  5885.                           <xsl:value-of select="$enclosedDateDot"/>
  5886.                         </xsl:if>
  5887.  
  5888.                         <xsl:if test="string-length($theEditorAndTranslatorDot)>0">
  5889.                           <xsl:if test="string-length($titleDot)>0 or ((string-length($issue)>0 or string-length($volume)>0) and string-length($enclosedDateDot)>0) or ((string-length($issue)=0 and string-length($volume)=0) and string-length($enclosedDateDot)>0)">
  5890.                             <xsl:call-template name="templ_prop_Space"/>
  5891.                           </xsl:if>
  5892.                           <xsl:value-of select="$theEditorAndTranslatorDot"/>
  5893.                         </xsl:if>
  5894.  
  5895.                         <xsl:if test="string-length($tempJVIP)>0">
  5896.                           <xsl:if test="string-length($titleDot)>0 or ((string-length($issue)>0 or string-length($volume)>0) and string-length($enclosedDateDot)>0) or ((string-length($issue)=0 and string-length($volume)=0) and string-length($enclosedDateDot)>0) or string-length($theEditorAndTranslatorDot)>0">
  5897.                             <xsl:call-template name="templ_prop_Space"/>
  5898.                           </xsl:if>
  5899.                           <xsl:apply-templates select="msxsl:node-set($tempJVIP)" mode="outputHtml"/>
  5900.                         </xsl:if>
  5901.  
  5902.                       </xsl:otherwise>
  5903.  
  5904.                     </xsl:choose>
  5905.                   </xsl:when>
  5906.  
  5907.  
  5908.                   <xsl:when test="b:SourceType='ArticleInAPeriodical'">
  5909.                     <xsl:choose>
  5910.                       <xsl:when test="string-length($theAuthorDot)>0">
  5911.                         <xsl:value-of select="$theAuthorDot"/>
  5912.  
  5913.                         <xsl:if test="string-length($enclosedDateDot)>0">
  5914.                           <xsl:call-template name="templ_prop_Space"/>
  5915.                           <xsl:value-of select="$enclosedDateDot"/>
  5916.                         </xsl:if>
  5917.  
  5918.                         <xsl:if test="string-length($titleDot)>0">
  5919.                           <xsl:call-template name="templ_prop_Space"/>
  5920.                           <xsl:value-of select="$titleDot"/>
  5921.                         </xsl:if>
  5922.  
  5923.                         <xsl:if test="string-length($theEditorAndTranslatorDot)>0">
  5924.                           <xsl:call-template name="templ_prop_Space"/>
  5925.                           <xsl:value-of select="$theEditorAndTranslatorDot"/>
  5926.                         </xsl:if>
  5927.  
  5928.                         <xsl:if test="string-length($tempPTVI)>0">
  5929.                           <xsl:call-template name="templ_prop_Space"/>
  5930.                           <xsl:apply-templates select="msxsl:node-set($tempPTVI)" mode="outputHtml"/>
  5931.                         </xsl:if>
  5932.  
  5933.                       </xsl:when>
  5934.  
  5935.                       <xsl:otherwise>
  5936.  
  5937.                         <xsl:if test="string-length($titleDot)>0">
  5938.                           <xsl:value-of select="$titleDot"/>
  5939.                         </xsl:if>
  5940.  
  5941.                         <xsl:if test="string-length($enclosedDateDot)>0">
  5942.                           <xsl:if test="string-length($titleDot)>0">
  5943.                             <xsl:call-template name="templ_prop_Space"/>
  5944.                           </xsl:if>
  5945.                           <xsl:value-of select="$enclosedDateDot"/>
  5946.                         </xsl:if>
  5947.  
  5948.                         <xsl:if test="string-length($theEditorAndTranslatorDot)>0">
  5949.                           <xsl:if test="string-length($titleDot)>0 or string-length($enclosedDateDot)>0">
  5950.                             <xsl:call-template name="templ_prop_Space"/>
  5951.                           </xsl:if>
  5952.                           <xsl:value-of select="$theEditorAndTranslatorDot"/>
  5953.                         </xsl:if>
  5954.  
  5955.                         <xsl:if test="string-length($tempPTVI)>0">
  5956.                           <xsl:if test="string-length($titleDot)>0 or string-length($enclosedDateDot)>0 or string-length($theEditorAndTranslatorDot)>0">
  5957.                             <xsl:call-template name="templ_prop_Space"/>
  5958.                           </xsl:if>
  5959.                           <xsl:apply-templates select="msxsl:node-set($tempPTVI)" mode="outputHtml"/>
  5960.                         </xsl:if>
  5961.  
  5962.                       </xsl:otherwise>
  5963.                     </xsl:choose>
  5964.                   </xsl:when>
  5965.  
  5966.                   <xsl:when test="b:SourceType='ConferenceProceedings'">
  5967.                     <xsl:choose>
  5968.                       <xsl:when test="string-length($theAuthorDot)>0">
  5969.  
  5970.                         <xsl:value-of select="$theAuthorDot"/>
  5971.  
  5972.                         <xsl:if test="string-length($enclosedDateDot)>0">
  5973.                           <xsl:call-template name="templ_prop_Space"/>
  5974.                           <xsl:value-of select="$enclosedDateDot"/>
  5975.                         </xsl:if>
  5976.  
  5977.                         <xsl:if test="string-length($titleDot)>0">
  5978.                           <xsl:call-template name="templ_prop_Space"/>
  5979.                           <xsl:value-of select="$titleDot"/>
  5980.                         </xsl:if>
  5981.  
  5982.                         <xsl:if test="string-length($theEditorEnc)>0">
  5983.                           <xsl:call-template name="templ_prop_Space"/>
  5984.  
  5985.                           <xsl:variable name="str_InNameCap">
  5986.                             <xsl:call-template name="templ_str_InNameCap"/>
  5987.                           </xsl:variable>
  5988.  
  5989.  
  5990.                           <xsl:call-template name="StringFormat">
  5991.                             <xsl:with-param name="format" select="$str_InNameCap"/>
  5992.                             <xsl:with-param name="parameters">
  5993.                               <t:params>
  5994.                                 <t:param>
  5995.                                   <xsl:if test="string-length($conferenceNameDot)>0">
  5996.                                     <xsl:value-of select="$theEditorEnc"/>
  5997.                                     <xsl:call-template name="templ_prop_ListSeparator"/>
  5998.                                     <xsl:call-template name = "ApplyItalicTitleNS">
  5999.                                      <xsl:with-param name = "data">
  6000.                                       <xsl:choose>
  6001.                                         <xsl:when test="((string-length($volume)=0 and string-length($pages)>0) or (string-length($publisher)=0 and (string-length($volume)>0 or string-length($pages)>0)))">
  6002.                                           <xsl:value-of select="$conferenceName"/>
  6003.                                         </xsl:when>
  6004.                                         <xsl:otherwise>
  6005.                                           <xsl:value-of select="$conferenceNameDot"/>
  6006.                                         </xsl:otherwise>
  6007.                                       </xsl:choose>
  6008.                                      </xsl:with-param>
  6009.                                     </xsl:call-template>
  6010.                                   </xsl:if>
  6011.  
  6012.                                   <xsl:if test="string-length($conferenceNameDot)=0">
  6013.                                     <xsl:value-of select="$theEditorEncDot"/>
  6014.                                   </xsl:if>
  6015.                                 </t:param>
  6016.                               </t:params>
  6017.                             </xsl:with-param>
  6018.                           </xsl:call-template>
  6019.                         </xsl:if>
  6020.  
  6021.                         <xsl:if test="string-length($theEditorEnc)=0">
  6022.                           <xsl:if test="string-length($conferenceNameDot)>0">
  6023.                             <xsl:call-template name="templ_prop_Space"/>
  6024.  
  6025.                             <xsl:call-template name = "ApplyItalicTitleNS">
  6026.                              <xsl:with-param name = "data">
  6027.                               <xsl:choose>
  6028.                                 <xsl:when test="((string-length($volume)=0 and string-length($pages)>0) or (string-length($publisher)=0 and (string-length($volume)>0 or string-length($pages)>0)))">
  6029.                                   <xsl:value-of select="$conferenceName"/>
  6030.                                 </xsl:when>
  6031.                                 <xsl:otherwise>
  6032.                                   <xsl:value-of select="$conferenceNameDot"/>
  6033.                                 </xsl:otherwise>
  6034.                               </xsl:choose>
  6035.                              </xsl:with-param>
  6036.                             </xsl:call-template>
  6037.                           </xsl:if>
  6038.                         </xsl:if>
  6039.  
  6040.                         <xsl:if test="string-length($volumeDot)>0 or string-length($pages)>0">
  6041.                           <xsl:if test="string-length($publisher)=0">
  6042.                             <xsl:call-template name="templ_prop_ListSeparator"/>
  6043.                           </xsl:if>
  6044.                           <xsl:if test="string-length($volumeDot)>0 and string-length($pages)=0">
  6045.                             <xsl:call-template name="templ_prop_Space"/>
  6046.                             <xsl:call-template name = "ApplyItalicFieldNS">
  6047.                              <xsl:with-param name = "data">
  6048.                               <xsl:value-of select="$volumeDot"/>
  6049.                              </xsl:with-param>
  6050.                             </xsl:call-template>
  6051.                           </xsl:if>
  6052.  
  6053.                           <xsl:if test="string-length($volume)>0 and string-length($pages)>0">
  6054.                             <xsl:call-template name="templ_prop_Space"/>
  6055.                             <xsl:call-template name = "ApplyItalicFieldNS">
  6056.                              <xsl:with-param name = "data">
  6057.                               <xsl:value-of select="$volume"/>
  6058.                              </xsl:with-param>
  6059.                             </xsl:call-template>
  6060.                             <xsl:if test="string-length($pages)>0">
  6061.                               <xsl:call-template name="templ_prop_ListSeparator"/>
  6062.                               <xsl:call-template name="appendField_Dot">
  6063.                                 <xsl:with-param name="field" select="$ppPages"/>
  6064.                               </xsl:call-template>
  6065.                             </xsl:if>
  6066.                           </xsl:if>
  6067.  
  6068.  
  6069.                           <xsl:if test="string-length($volume)=0 and string-length($pages)>0">
  6070.                             <xsl:call-template name="templ_prop_Space"/>
  6071.                             <xsl:call-template name="templ_prop_APA_GeneralOpen"/>
  6072.                             <xsl:value-of select="$ppPages"/>
  6073.                             <xsl:call-template name="templ_prop_APA_GeneralClose"/>
  6074.                             <xsl:call-template name="templ_prop_Dot"/>
  6075.                           </xsl:if>
  6076.                         </xsl:if>
  6077.  
  6078.  
  6079.                         <xsl:if test="string-length($tempCP)>0">
  6080.                           <xsl:call-template name="templ_prop_Space"/>
  6081.                           <xsl:value-of select="$tempCP"/>
  6082.                         </xsl:if>
  6083.  
  6084.                       </xsl:when>
  6085.  
  6086.                       <xsl:otherwise>
  6087.  
  6088.  
  6089.                         <xsl:if test="string-length($titleDot)>0">
  6090.                           <xsl:value-of select="$titleDot"/>
  6091.                         </xsl:if>
  6092.  
  6093.                         <xsl:if test="string-length($enclosedDateDot)>0">
  6094.                           <xsl:if test="string-length($title)>0">
  6095.                             <xsl:call-template name="templ_prop_Space"/>
  6096.                           </xsl:if>
  6097.                           <xsl:value-of select="$enclosedDateDot"/>
  6098.                         </xsl:if>
  6099.  
  6100.  
  6101.                         <xsl:if test="string-length($conferenceNameDot)>0">
  6102.                           <xsl:if test="string-length($title)>0 or string-length($enclosedDateDot)>0">
  6103.                             <xsl:call-template name="templ_prop_Space"/>
  6104.                           </xsl:if>
  6105.                           <xsl:call-template name = "ApplyItalicFieldNS">
  6106.                            <xsl:with-param name = "data">
  6107.                             <xsl:choose>
  6108.                               <xsl:when test="((string-length($volume)=0 and string-length($pages)>0) or (string-length($publisher)=0 and (string-length($volume)>0 or string-length($pages)>0)))">
  6109.                                 <xsl:value-of select="$conferenceName"/>
  6110.                               </xsl:when>
  6111.                               <xsl:otherwise>
  6112.                                 <xsl:value-of select="$conferenceNameDot"/>
  6113.                               </xsl:otherwise>
  6114.                             </xsl:choose>
  6115.                            </xsl:with-param>
  6116.                           </xsl:call-template>
  6117.                         </xsl:if>
  6118.  
  6119.  
  6120.  
  6121.  
  6122.                         <xsl:if test="string-length($volumeDot)>0 or string-length($pages)>0">
  6123.                           <xsl:if test="string-length($publisher)=0">
  6124.                             <xsl:call-template name="templ_prop_ListSeparator"/>
  6125.                           </xsl:if>
  6126.                           <xsl:if test="string-length($volumeDot)>0 and string-length($pages)=0">
  6127.                             <xsl:if test="string-length($title)>0 or string-length($enclosedDateDot)>0 or string-length($conferenceNameDot)>0">
  6128.                               <xsl:call-template name="templ_prop_Space"/>
  6129.                             </xsl:if>
  6130.                             <xsl:call-template name = "ApplyItalicFieldNS">
  6131.                              <xsl:with-param name = "data">
  6132.                               <xsl:value-of select="$volumeDot"/>
  6133.                              </xsl:with-param>
  6134.                             </xsl:call-template>
  6135.                           </xsl:if>
  6136.  
  6137.                           <xsl:if test="string-length($volume)>0 and string-length($pages)>0">
  6138.                             <xsl:if test="string-length($title)>0 or string-length($enclosedDateDot)>0 or string-length($conferenceNameDot)>0">
  6139.                               <xsl:call-template name="templ_prop_Space"/>
  6140.                             </xsl:if>
  6141.                             <xsl:call-template name = "ApplyItalicFieldNS">
  6142.                              <xsl:with-param name = "data">
  6143.                               <xsl:value-of select="$volume"/>
  6144.                              </xsl:with-param>
  6145.                             </xsl:call-template>
  6146.                             <xsl:if test="string-length($pages)>0">
  6147.                               <xsl:call-template name="templ_prop_ListSeparator"/>
  6148.                               <xsl:call-template name="appendField_Dot">
  6149.                                 <xsl:with-param name="field" select="$ppPages"/>
  6150.                               </xsl:call-template>
  6151.                             </xsl:if>
  6152.                           </xsl:if>
  6153.  
  6154.  
  6155.                           <xsl:if test="string-length($volume)=0 and string-length($pages)>0">
  6156.                             <xsl:if test="string-length($title)>0 or string-length($enclosedDateDot)>0 or string-length($conferenceNameDot)>0">
  6157.                               <xsl:call-template name="templ_prop_Space"/>
  6158.                             </xsl:if>
  6159.                             <xsl:call-template name="templ_prop_APA_GeneralOpen"/>
  6160.                             <xsl:value-of select="$ppPages"/>
  6161.                             <xsl:call-template name="templ_prop_APA_GeneralClose"/>
  6162.                             <xsl:call-template name="templ_prop_Dot"/>
  6163.                           </xsl:if>
  6164.                         </xsl:if>
  6165.  
  6166.                         <xsl:if test="string-length($tempCP)>0">
  6167.                           <xsl:if test="string-length($title)>0 or string-length($enclosedDateDot)>0 or string-length($conferenceNameDot)>0 or string-length($volumeDot)>0 or string-length($pages)>0">
  6168.                             <xsl:call-template name="templ_prop_Space"/>
  6169.                           </xsl:if>
  6170.                           <xsl:value-of select="$tempCP"/>
  6171.                         </xsl:if>
  6172.  
  6173.                       </xsl:otherwise>
  6174.                     </xsl:choose>
  6175.                   </xsl:when>
  6176.  
  6177.  
  6178.  
  6179.                   <xsl:when test="b:SourceType='SoundRecording'">
  6180.                     <xsl:choose>
  6181.  
  6182.                       
  6183.                       <xsl:when test="string-length($theAuthorSoundRecordingDot)>0">
  6184.  
  6185.                         <xsl:value-of select="$theAuthorSoundRecordingDot"/>
  6186.  
  6187.                         <xsl:if test="string-length($enclosedDateDot)>0">
  6188.                           <xsl:call-template name="templ_prop_Space"/>
  6189.                           <xsl:value-of select="$enclosedDateDot"/>
  6190.                         </xsl:if>
  6191.  
  6192.                         <xsl:if test="string-length($titleDot)>0">
  6193.                           <xsl:call-template name="templ_prop_Space"/>
  6194.                             <xsl:value-of select="$titleDot"/>
  6195.                         </xsl:if>
  6196.  
  6197.                         <xsl:if test="string-length($thePerformerAndConductorDot)>0">
  6198.                           <xsl:call-template name="templ_prop_Space"/>
  6199.  
  6200.                           <xsl:value-of select="$thePerformerAndConductorDot"/>
  6201.  
  6202.                         </xsl:if>
  6203.  
  6204.                         <xsl:if test="string-length($_albumTitleMediumDot)>0">
  6205.                           <xsl:call-template name="templ_prop_Space"/>
  6206.  
  6207.                           <xsl:copy-of select="$_albumTitleMediumDot" />
  6208.                         </xsl:if>
  6209.  
  6210.                         <xsl:if test="string-length($tempCSCPr)>0">
  6211.                           <xsl:call-template name="templ_prop_Space"/>
  6212.                           <xsl:value-of select="$tempCSCPr"/>
  6213.                         </xsl:if>
  6214.  
  6215.                       </xsl:when>
  6216.  
  6217.  
  6218.                       
  6219.                       <xsl:otherwise>
  6220.  
  6221.                         <xsl:if test="string-length($titleDot)>0">
  6222.                             <xsl:value-of select="$titleDot"/>
  6223.                         </xsl:if>
  6224.  
  6225.                         <xsl:if test="string-length($enclosedDateDot)>0">
  6226.                           <xsl:if test="string-length($titleDot)>0">
  6227.                             <xsl:call-template name="templ_prop_Space"/>
  6228.                           </xsl:if>
  6229.                           <xsl:value-of select="$enclosedDateDot"/>
  6230.                         </xsl:if>
  6231.  
  6232.                         <xsl:if test="string-length($thePerformerAndConductorDot)>0">
  6233.                           <xsl:if test="string-length($titleDot)>0 or string-length($enclosedDateDot)>0">
  6234.                             <xsl:call-template name="templ_prop_Space"/>
  6235.                           </xsl:if>
  6236.  
  6237.                           <xsl:value-of select="$thePerformerAndConductorDot"/>
  6238.  
  6239.                         </xsl:if>
  6240.  
  6241.                        <xsl:if test="string-length($_albumTitleMediumDot)>0">
  6242.                           <xsl:if test="string-length($titleDot)>0 or string-length($enclosedDateDot)>0 or string-length($thePerformerAndConductorDot)>0">
  6243.                             <xsl:call-template name="templ_prop_Space"/>
  6244.                           </xsl:if>
  6245.  
  6246.                           <xsl:copy-of select="$_albumTitleMediumDot" />
  6247.                         </xsl:if>
  6248.  
  6249.                         <xsl:if test="string-length($tempCSCPr)>0">
  6250.                           <xsl:if test="string-length($titleDot)>0 or string-length($enclosedDateDot)>0 or string-length($thePerformerAndConductorDot)>0 or string-length($_albumTitleMediumDot)>0">
  6251.                             <xsl:call-template name="templ_prop_Space"/>
  6252.                           </xsl:if>
  6253.                           <xsl:value-of select="$tempCSCPr"/>
  6254.                         </xsl:if>
  6255.                       </xsl:otherwise>
  6256.  
  6257.                     </xsl:choose>
  6258.  
  6259.                   </xsl:when>
  6260.  
  6261.  
  6262.                   <xsl:when test="b:SourceType='Performance'">
  6263.                     <xsl:choose>
  6264.  
  6265.                       
  6266.                       <xsl:when test="string-length($theAuthorPerformanceDot)>0">
  6267.  
  6268.                         <xsl:value-of select="$theAuthorPerformanceDot"/>
  6269.  
  6270.                         <xsl:if test="string-length($enclosedDateDot)>0">
  6271.                           <xsl:call-template name="templ_prop_Space"/>
  6272.                           <xsl:value-of select="$enclosedDateDot"/>
  6273.                         </xsl:if>
  6274.  
  6275.                         <xsl:if test="string-length($titleDot)>0">
  6276.                           <xsl:call-template name="templ_prop_Space"/>
  6277.                           <xsl:call-template name = "ApplyItalicTitleNS">
  6278.                            <xsl:with-param name = "data">
  6279.                             <xsl:value-of select="$titleDot"/>
  6280.                              </xsl:with-param>
  6281.                             </xsl:call-template>
  6282.                         </xsl:if>
  6283.  
  6284.                         <xsl:if test="string-length($thePerformanceDirectorAndPerformerDot)>0">
  6285.                           <xsl:call-template name="templ_prop_Space"/>
  6286.  
  6287.                           <xsl:value-of select="$thePerformanceDirectorAndPerformerDot"/>
  6288.  
  6289.                         </xsl:if>
  6290.  
  6291.                         <xsl:if test="string-length($tempTCSC)>0">
  6292.                           <xsl:call-template name="templ_prop_Space"/>
  6293.                           <xsl:value-of select="$tempTCSC"/>
  6294.                         </xsl:if>
  6295.  
  6296.                       </xsl:when>
  6297.  
  6298.  
  6299.                       
  6300.                       <xsl:otherwise>
  6301.  
  6302.                         <xsl:if test="string-length($titleDot)>0">
  6303.                           <xsl:call-template name = "ApplyItalicTitleNS">
  6304.                            <xsl:with-param name = "data">
  6305.                             <xsl:value-of select="$titleDot"/>
  6306.                            </xsl:with-param>
  6307.                           </xsl:call-template>
  6308.                         </xsl:if>
  6309.  
  6310.                         <xsl:if test="string-length($enclosedDateDot)>0">
  6311.                           <xsl:if test="string-length($titleDot)>0">
  6312.                             <xsl:call-template name="templ_prop_Space"/>
  6313.                           </xsl:if>
  6314.                           <xsl:value-of select="$enclosedDateDot"/>
  6315.                         </xsl:if>
  6316.  
  6317.                         <xsl:if test="string-length($tempTCSC)>0">
  6318.                           <xsl:if test="string-length($titleDot)>0 or string-length($enclosedDateDot)>0">
  6319.                             <xsl:call-template name="templ_prop_Space"/>
  6320.                           </xsl:if>
  6321.                           <xsl:value-of select="$tempTCSC"/>
  6322.                         </xsl:if>
  6323.                       </xsl:otherwise>
  6324.  
  6325.                     </xsl:choose>
  6326.  
  6327.                   </xsl:when>
  6328.  
  6329.  
  6330.                   <xsl:when test="b:SourceType='DocumentFromInternetSite'">
  6331.  
  6332.                     
  6333.  
  6334.                     <xsl:choose>
  6335.                       
  6336.                       <xsl:when test="string-length($theAuthorDot)>0">
  6337.  
  6338.                         <xsl:value-of select="$theAuthorDot"/>
  6339.  
  6340.                         <xsl:if test="string-length($enclosedDateDot)>0">
  6341.                           <xsl:call-template name="templ_prop_Space"/>
  6342.                           <xsl:value-of select="$enclosedDateDot"/>
  6343.                         </xsl:if>
  6344.  
  6345.                         <xsl:if test="string-length($titleDot)>0">
  6346.                           <xsl:call-template name="templ_prop_Space"/>
  6347.                           <xsl:call-template name = "ApplyItalicTitleNS">
  6348.                            <xsl:with-param name = "data">
  6349.                             <xsl:value-of select="$titleDot"/>
  6350.                            </xsl:with-param>
  6351.                           </xsl:call-template>
  6352.                         </xsl:if>
  6353.  
  6354.                         <xsl:if test="string-length($theEditorAndTranslatorDot)>0">
  6355.                           <xsl:call-template name="templ_prop_Space"/>
  6356.                           <xsl:value-of select="$theEditorAndTranslatorDot"/>
  6357.                         </xsl:if>
  6358.  
  6359.                         <xsl:if test="string-length($tempRDAFU)>0">
  6360.                           <xsl:call-template name="templ_prop_Space"/>
  6361.                           <xsl:value-of select="$tempRDAFU"/>
  6362.                         </xsl:if>
  6363.  
  6364.                       </xsl:when>
  6365.  
  6366.  
  6367.                       
  6368.                       <xsl:otherwise>
  6369.  
  6370.                         <xsl:if test="string-length($titleDot)>0">
  6371.                           <xsl:call-template name = "ApplyItalicTitleNS">
  6372.                            <xsl:with-param name = "data">
  6373.                             <xsl:value-of select="$titleDot"/>
  6374.                            </xsl:with-param>
  6375.                           </xsl:call-template>
  6376.                         </xsl:if>
  6377.  
  6378.                         <xsl:if test="string-length($enclosedDateDot)>0">
  6379.                           <xsl:if test="string-length($titleDot)>0">
  6380.                             <xsl:call-template name="templ_prop_Space"/>
  6381.                           </xsl:if>
  6382.                           <xsl:value-of select="$enclosedDateDot"/>
  6383.                         </xsl:if>
  6384.  
  6385.                         <xsl:if test="string-length($theEditorAndTranslatorDot)>0">
  6386.                           <xsl:if test="string-length($titleDot)>0 or string-length($enclosedDateDot)>0">
  6387.                             <xsl:call-template name="templ_prop_Space"/>
  6388.                           </xsl:if>
  6389.                           <xsl:value-of select="$theEditorAndTranslatorDot"/>
  6390.                         </xsl:if>
  6391.  
  6392.  
  6393.                         <xsl:if test="string-length($tempRDAFU)>0">
  6394.                           <xsl:if test="string-length($titleDot)>0 or string-length($enclosedDateDot)>0 or string-length($theEditorAndTranslatorDot)>0">
  6395.                             <xsl:call-template name="templ_prop_Space"/>
  6396.                           </xsl:if>
  6397.                           <xsl:value-of select="$tempRDAFU"/>
  6398.                         </xsl:if>
  6399.  
  6400.                       </xsl:otherwise>
  6401.  
  6402.                     </xsl:choose>
  6403.  
  6404.                   </xsl:when>
  6405.  
  6406.  
  6407.                   <xsl:when test="b:SourceType='InternetSite'">
  6408.  
  6409.                     <xsl:choose>
  6410.                       
  6411.                       <xsl:when test="string-length($theAuthorDot)>0">
  6412.  
  6413.                         <xsl:value-of select="$theAuthorDot"/>
  6414.  
  6415.                         <xsl:if test="string-length($enclosedDateDot)>0">
  6416.                           <xsl:call-template name="templ_prop_Space"/>
  6417.                           <xsl:value-of select="$enclosedDateDot"/>
  6418.                         </xsl:if>
  6419.  
  6420.                         <xsl:if test="string-length($tempTV)>0">
  6421.                           <xsl:call-template name="templ_prop_Space"/>
  6422.                           <xsl:apply-templates select="msxsl:node-set($tempTV)" mode="outputHtml"/>
  6423.                         </xsl:if>
  6424.  
  6425.                         <xsl:if test="string-length($theInternetSiteEditorAndProducerDot)>0">
  6426.                           <xsl:call-template name="templ_prop_Space"/>
  6427.  
  6428.                           <xsl:value-of select="$theInternetSiteEditorAndProducerDot"/>
  6429.  
  6430.                         </xsl:if>
  6431.  
  6432.                         <xsl:if test="string-length($tempRDAFU)>0">
  6433.                           <xsl:call-template name="templ_prop_Space"/>
  6434.                           <xsl:value-of select="$tempRDAFU"/>
  6435.                         </xsl:if>
  6436.  
  6437.                       </xsl:when>
  6438.  
  6439.  
  6440.                       
  6441.                       <xsl:otherwise>
  6442.  
  6443.                         <xsl:if test="string-length($tempTV)>0">
  6444.                           <xsl:apply-templates select="msxsl:node-set($tempTV)" mode="outputHtml"/>
  6445.                         </xsl:if>
  6446.  
  6447.                         <xsl:if test="string-length($enclosedDateDot)>0">
  6448.                           <xsl:if test="string-length($tempTV)>0">
  6449.                             <xsl:call-template name="templ_prop_Space"/>
  6450.                           </xsl:if>
  6451.                           <xsl:value-of select="$enclosedDateDot"/>
  6452.                         </xsl:if>
  6453.  
  6454.                         <xsl:if test="string-length($theInternetSiteEditorAndProducerDot)>0">
  6455.                           <xsl:if test="string-length($tempTV)>0 or string-length($enclosedDateDot)>0">
  6456.                             <xsl:call-template name="templ_prop_Space"/>
  6457.                           </xsl:if>
  6458.  
  6459.                           <xsl:value-of select="$theInternetSiteEditorAndProducerDot"/>
  6460.  
  6461.                         </xsl:if>
  6462.  
  6463.                         <xsl:if test="string-length($tempRDAFU)>0">
  6464.                           <xsl:if test="string-length($tempTV)>0 or string-length($enclosedDateDot)>0 or string-length($theInternetSiteEditorAndProducerDot)>0">
  6465.                             <xsl:call-template name="templ_prop_Space"/>
  6466.                           </xsl:if>
  6467.                           <xsl:value-of select="$tempRDAFU"/>
  6468.                         </xsl:if>
  6469.  
  6470.                       </xsl:otherwise>
  6471.  
  6472.                     </xsl:choose>
  6473.  
  6474.                   </xsl:when>
  6475.  
  6476.  
  6477.  
  6478.  
  6479.                   <xsl:when test="b:SourceType='Case'">
  6480.  
  6481.                     <xsl:if test="string-length($title)>0">
  6482.                       <xsl:value-of select="$title"/>
  6483.                     </xsl:if>
  6484.  
  6485.                     <xsl:if test="string-length($caseNumber)>0">
  6486.                       <xsl:if test="string-length($title)>0">
  6487.                         <xsl:call-template name="templ_prop_ListSeparator"/>
  6488.                       </xsl:if>
  6489.                       <xsl:value-of select="$caseNumber"/>
  6490.                     </xsl:if>
  6491.  
  6492.                     <xsl:if test="string-length($court)>0 or string-length($dateCourt)>0">
  6493.                       <xsl:if test="string-length($title)>0 or string-length($caseNumber)>0">
  6494.                         <xsl:call-template name="templ_prop_Space"/>
  6495.                       </xsl:if>
  6496.  
  6497.                       <xsl:call-template name="templ_prop_APA_GeneralOpen"/>
  6498.  
  6499.                       <xsl:if test="string-length($court)>0">
  6500.                         <xsl:value-of select="$court"/>
  6501.                       </xsl:if>
  6502.  
  6503.                       <xsl:if test="string-length($dateCourt)>0">
  6504.                         <xsl:if test="string-length($court)>0">
  6505.                           <xsl:call-template name="templ_prop_Space"/>
  6506.                         </xsl:if>
  6507.                         <xsl:value-of select="$dateCourt"/>
  6508.                       </xsl:if>
  6509.  
  6510.                       <xsl:call-template name="templ_prop_APA_GeneralClose"/>
  6511.  
  6512.                     </xsl:if>
  6513.  
  6514.                     <xsl:if test="string-length($title)>0 or string-length($caseNumber)>0 or string-length($court)>0 or string-length($dateCourt)>0">
  6515.                       <xsl:call-template name="templ_prop_Dot"/>
  6516.                     </xsl:if>
  6517.  
  6518.  
  6519.                   </xsl:when>
  6520.  
  6521.  
  6522.                   <xsl:when test="b:SourceType='Patent'">
  6523.  
  6524.                     <xsl:if test="string-length($inventorLFDot)>0">
  6525.                       <xsl:value-of select="$inventorLFDot"/>
  6526.                     </xsl:if>
  6527.  
  6528.                     <xsl:if test="string-length($enclosedDateDot)>0">
  6529.                       <xsl:if test="string-length($inventorLFDot)>0">
  6530.                         <xsl:call-template name="templ_prop_Space"/>
  6531.                       </xsl:if>
  6532.                       <xsl:value-of select="$enclosedDateDot"/>
  6533.                     </xsl:if>
  6534.  
  6535.                     <xsl:if test="string-length($patentNumberDot)>0">
  6536.                       <xsl:call-template name = "ApplyItalicFieldNS">
  6537.                        <xsl:with-param name = "data">
  6538.                         <xsl:if test="string-length($inventorLFDot)>0 or string-length($enclosedDateDot)>0">
  6539.                           <xsl:call-template name="templ_prop_Space"/>
  6540.                         </xsl:if>
  6541.  
  6542.                         <xsl:variable name="str_PatentNumberShortCap">
  6543.                           <xsl:call-template name="templ_str_PatentNumberShortCap"/>
  6544.                         </xsl:variable>
  6545.  
  6546.                         <xsl:call-template name="StringFormatDot">
  6547.                           <xsl:with-param name="format" select="$str_PatentNumberShortCap"/>
  6548.                           <xsl:with-param name="parameters">
  6549.                             <t:params>
  6550.                               <t:param>
  6551.                                 <xsl:value-of select="$patentNumber"/>
  6552.                               </t:param>
  6553.                             </t:params>
  6554.                           </xsl:with-param>
  6555.                         </xsl:call-template>
  6556.  
  6557.                       </xsl:with-param>
  6558.                      </xsl:call-template>
  6559.                     </xsl:if>
  6560.  
  6561.                     <xsl:if test="string-length($countryRegionDot)>0">
  6562.                       <xsl:if test="string-length($inventorLFDot)>0 or string-length($enclosedDateDot)>0 or string-length($patentNumberDot)>0">
  6563.                         <xsl:call-template name="templ_prop_Space"/>
  6564.                       </xsl:if>
  6565.                       <xsl:value-of select="$countryRegionDot"/>
  6566.                     </xsl:if>
  6567.  
  6568.                   </xsl:when>
  6569.  
  6570.  
  6571.                   <xsl:when test="b:SourceType='Misc'">
  6572.                     <xsl:choose>
  6573.  
  6574.                       
  6575.                       <xsl:when test="string-length($theMiscAuthorDot)>0">
  6576.  
  6577.                         <xsl:value-of select="$theMiscAuthorDot"/>
  6578.  
  6579.                         <xsl:if test="string-length($enclosedDateDot)>0">
  6580.                           <xsl:call-template name="templ_prop_Space"/>
  6581.                           <xsl:value-of select="$enclosedDateDot"/>
  6582.                         </xsl:if>
  6583.  
  6584.                         <xsl:if test="string-length($titleDot)>0">
  6585.                           <xsl:call-template name="templ_prop_Space"/>
  6586.                           <xsl:value-of select="$titleDot"/>
  6587.                         </xsl:if>
  6588.  
  6589.                         <xsl:if test="string-length($tempPVIEP)>0">
  6590.                           <xsl:call-template name="templ_prop_Space"/>
  6591.                           <xsl:apply-templates select="msxsl:node-set($tempPVIEP)" mode="outputHtml"/>
  6592.                         </xsl:if>
  6593.  
  6594.  
  6595.                         <xsl:if test="string-length($theMiscEditorAndTranslatorAndCompilerDot)>0">
  6596.                           <xsl:call-template name="templ_prop_Space"/>
  6597.  
  6598.                           <xsl:value-of select="$theMiscEditorAndTranslatorAndCompilerDot"/>
  6599.                         </xsl:if>
  6600.  
  6601.                         <xsl:if test="string-length($tempCSCPu)>0">
  6602.                           <xsl:call-template name="templ_prop_Space"/>
  6603.                           <xsl:value-of select="$tempCSCPu"/>
  6604.                         </xsl:if>
  6605.  
  6606.                       </xsl:when>
  6607.  
  6608.  
  6609.                       
  6610.                       <xsl:when test="string-length($theAuthorDot)=0">
  6611.  
  6612.                         <xsl:if test="string-length($titleDot)>0">
  6613.                           <xsl:value-of select="$titleDot"/>
  6614.                         </xsl:if>
  6615.  
  6616.                         <xsl:if test="string-length($enclosedDateDot)>0">
  6617.                           <xsl:if test="string-length($titleDot)>0">
  6618.                             <xsl:call-template name="templ_prop_Space"/>
  6619.                           </xsl:if>
  6620.                           <xsl:value-of select="$enclosedDateDot"/>
  6621.                         </xsl:if>
  6622.  
  6623.                         <xsl:if test="string-length($tempPVIEP)>0">
  6624.                           <xsl:if test="string-length($titleDot)>0 or string-length($enclosedDateDot)>0">
  6625.                             <xsl:call-template name="templ_prop_Space"/>
  6626.                           </xsl:if>
  6627.                           <xsl:apply-templates select="msxsl:node-set($tempPVIEP)" mode="outputHtml"/>
  6628.                         </xsl:if>
  6629.  
  6630.                         <xsl:if test="string-length($theMiscEditorAndTranslatorAndCompilerDot)>0">
  6631.                           <xsl:if test="string-length($titleDot)>0 or string-length($enclosedDateDot)>0 or string-length($tempPVIEP)>0">
  6632.                             <xsl:call-template name="templ_prop_Space"/>
  6633.                           </xsl:if>
  6634.  
  6635.                           <xsl:value-of select="$theMiscEditorAndTranslatorAndCompilerDot"/>
  6636.                         </xsl:if>
  6637.  
  6638.  
  6639.                         <xsl:if test="string-length($tempCSCPu)>0">
  6640.                           <xsl:if test="string-length($titleDot)>0 or string-length($enclosedDateDot)>0 or string-length($tempPVIEP)>0 or string-length($theMiscEditorAndTranslatorAndCompilerDot)>0">
  6641.                             <xsl:call-template name="templ_prop_Space"/>
  6642.                           </xsl:if>
  6643.                           <xsl:value-of select="$tempCSCPu"/>
  6644.                         </xsl:if>
  6645.                       </xsl:when>
  6646.  
  6647.                     </xsl:choose>
  6648.  
  6649.                   </xsl:when>
  6650.  
  6651.                   <xsl:when test="b:SourceType='ElectronicSource'">
  6652.                     <xsl:choose>
  6653.  
  6654.                       
  6655.                       <xsl:when test="string-length($theMiscAuthorDot)>0">
  6656.  
  6657.                         <xsl:value-of select="$theMiscAuthorDot"/>
  6658.  
  6659.                         <xsl:if test="string-length($enclosedDateDot)>0">
  6660.                           <xsl:call-template name="templ_prop_Space"/>
  6661.                           <xsl:value-of select="$enclosedDateDot"/>
  6662.                         </xsl:if>
  6663.  
  6664.                         <xsl:if test="string-length($titleDot)>0">
  6665.                           <xsl:call-template name="templ_prop_Space"/>
  6666.                           <xsl:value-of select="$titleDot"/>
  6667.                         </xsl:if>
  6668.  
  6669.                         <xsl:if test="string-length($tempPVEP)>0">
  6670.                           <xsl:call-template name="templ_prop_Space"/>
  6671.                           <xsl:apply-templates select="msxsl:node-set($tempPVEP)" mode="outputHtml"/>
  6672.                         </xsl:if>
  6673.  
  6674.  
  6675.                         <xsl:if test="string-length($theMiscEditorAndTranslatorAndCompilerDot)>0">
  6676.                           <xsl:call-template name="templ_prop_Space"/>
  6677.  
  6678.                           <xsl:value-of select="$theMiscEditorAndTranslatorAndCompilerDot"/>
  6679.                         </xsl:if>
  6680.  
  6681.                         <xsl:if test="string-length($tempCSCPu)>0">
  6682.                           <xsl:call-template name="templ_prop_Space"/>
  6683.                           <xsl:value-of select="$tempCSCPu"/>
  6684.                         </xsl:if>
  6685.  
  6686.                         <xsl:if test="string-length($tempRDAFU)>0">
  6687.                           <xsl:call-template name="templ_prop_Space"/>
  6688.                           <xsl:value-of select="$tempRDAFU"/>
  6689.                         </xsl:if>
  6690.  
  6691.                       </xsl:when>
  6692.  
  6693.  
  6694.                       
  6695.                       <xsl:when test="string-length($theAuthorDot)=0">
  6696.  
  6697.                         <xsl:if test="string-length($titleDot)>0">
  6698.                           <xsl:value-of select="$titleDot"/>
  6699.                         </xsl:if>
  6700.  
  6701.                         <xsl:if test="string-length($enclosedDateDot)>0">
  6702.                           <xsl:if test="string-length($titleDot)>0">
  6703.                             <xsl:call-template name="templ_prop_Space"/>
  6704.                           </xsl:if>
  6705.                           <xsl:value-of select="$enclosedDateDot"/>
  6706.                         </xsl:if>
  6707.  
  6708.                         <xsl:if test="string-length($tempPVEP)>0">
  6709.                           <xsl:if test="string-length($titleDot)>0 or string-length($enclosedDateDot)>0">
  6710.                             <xsl:call-template name="templ_prop_Space"/>
  6711.                           </xsl:if>
  6712.                           <xsl:apply-templates select="msxsl:node-set($tempPVEP)" mode="outputHtml"/>
  6713.                         </xsl:if>
  6714.  
  6715.                         <xsl:if test="string-length($theMiscEditorAndTranslatorAndCompilerDot)>0">
  6716.                           <xsl:if test="string-length($titleDot)>0 or string-length($enclosedDateDot)>0 or string-length($tempPVEP)>0">
  6717.                             <xsl:call-template name="templ_prop_Space"/>
  6718.                           </xsl:if>
  6719.  
  6720.                           <xsl:value-of select="$theMiscEditorAndTranslatorAndCompilerDot"/>
  6721.                         </xsl:if>
  6722.  
  6723.  
  6724.                         <xsl:if test="string-length($tempCSCPu)>0">
  6725.                           <xsl:if test="string-length($titleDot)>0 or string-length($enclosedDateDot)>0 or string-length($tempPVEP)>0 or string-length($theMiscEditorAndTranslatorAndCompilerDot)>0">
  6726.                             <xsl:call-template name="templ_prop_Space"/>
  6727.                           </xsl:if>
  6728.                           <xsl:value-of select="$tempCSCPu"/>
  6729.                         </xsl:if>
  6730.  
  6731.                         <xsl:if test="string-length($tempRDAFU)>0">
  6732.                           <xsl:if test="string-length($titleDot)>0 or string-length($enclosedDateDot)>0 or string-length($tempPVEP)>0 or string-length($theMiscEditorAndTranslatorAndCompilerDot)>0 or string-length($tempCSCPu)>0">
  6733.                             <xsl:call-template name="templ_prop_Space"/>
  6734.                           </xsl:if>
  6735.                           <xsl:value-of select="$tempRDAFU"/>
  6736.                         </xsl:if>
  6737.  
  6738.                       </xsl:when>
  6739.  
  6740.                     </xsl:choose>
  6741.  
  6742.                   </xsl:when>
  6743.  
  6744.  
  6745.                   <xsl:when test="b:SourceType='Art'">
  6746.  
  6747.                     <xsl:if test="string-length($artistLFDot)>0">
  6748.                       <xsl:value-of select="$artistLFDot"/>
  6749.                     </xsl:if>
  6750.  
  6751.                     <xsl:if test="string-length($titleDot)>0">
  6752.                       <xsl:if test="string-length($artistLFDot)>0">
  6753.                         <xsl:call-template name="templ_prop_Space"/>
  6754.                       </xsl:if>
  6755.  
  6756.                       <xsl:if test="string-length($publicationTitleDot)=0">
  6757.                         <xsl:call-template name = "ApplyItalicTitleNS">
  6758.                          <xsl:with-param name = "data">
  6759.                           <xsl:value-of select="$titleDot"/>
  6760.                          </xsl:with-param>
  6761.                         </xsl:call-template>
  6762.                       </xsl:if>
  6763.  
  6764.                       <xsl:if test="string-length($publicationTitleDot)>0">
  6765.                         <xsl:value-of select="$titleDot"/>
  6766.                       </xsl:if>
  6767.  
  6768.                     </xsl:if>
  6769.  
  6770.                     <xsl:if test="string-length($publicationTitleDot)>0">
  6771.                       <xsl:if test="string-length($artistLFDot)>0 or string-length($titleDot)>0">
  6772.                         <xsl:call-template name="templ_prop_Space"/>
  6773.                       </xsl:if>
  6774.  
  6775.                       <xsl:call-template name = "ApplyItalicTitleNS">
  6776.                        <xsl:with-param name = "data">
  6777.                         <xsl:value-of select="$publicationTitleDot"/>
  6778.                        </xsl:with-param>
  6779.                       </xsl:call-template>
  6780.  
  6781.                     </xsl:if>
  6782.  
  6783.                     <xsl:if test="string-length($tempICSC)>0">
  6784.                       <xsl:if test="string-length($artistLFDot)>0 or string-length($titleDot)>0 or string-length($publicationTitleDot)>0">
  6785.                         <xsl:call-template name="templ_prop_Space"/>
  6786.                       </xsl:if>
  6787.                       <xsl:value-of select="$tempICSC"/>
  6788.                     </xsl:if>
  6789.  
  6790.                   </xsl:when>
  6791.  
  6792.  
  6793.                   <xsl:when test="b:SourceType='Report'">
  6794.                     <xsl:choose>
  6795.                       <xsl:when test="string-length($publisher)>0">
  6796.  
  6797.                         <xsl:if test="string-length($authorDot)>0">
  6798.                           <xsl:value-of select="$authorDot"/>
  6799.                         </xsl:if>
  6800.  
  6801.                         <xsl:if test="string-length($enclosedDateDot)>0">
  6802.                           <xsl:if test="string-length($authorDot)>0">
  6803.                             <xsl:call-template name="templ_prop_Space"/>
  6804.                           </xsl:if>
  6805.  
  6806.                           <xsl:value-of select="$enclosedDateDot"/>
  6807.                         </xsl:if>
  6808.  
  6809.  
  6810.                         <xsl:if test="string-length($titleDot)>0">
  6811.                           <xsl:if test="string-length($authorDot)>0 or string-length($enclosedDateDot)>0">
  6812.                             <xsl:call-template name="templ_prop_Space"/>
  6813.                           </xsl:if>
  6814.  
  6815.                           <xsl:call-template name = "ApplyItalicTitleNS">
  6816.                            <xsl:with-param name = "data">
  6817.                             <xsl:value-of select="$titleDot"/>
  6818.                            </xsl:with-param>
  6819.                           </xsl:call-template>
  6820.  
  6821.                         </xsl:if>
  6822.  
  6823.                         <xsl:if test="string-length($tempID)>0">
  6824.                           <xsl:if test="string-length($authorDot)>0 or string-length($enclosedDateDot)>0 or string-length($titleDot)>0">
  6825.                             <xsl:call-template name="templ_prop_Space"/>
  6826.                           </xsl:if>
  6827.                           <xsl:value-of select="$tempID"/>
  6828.                         </xsl:if>
  6829.  
  6830.  
  6831.                         <xsl:if test="string-length($tempCP)>0">
  6832.                           <xsl:if test="string-length($authorDot)>0 or string-length($enclosedDateDot)>0 or string-length($titleDot)>0 or string-length($tempID)>0">
  6833.                             <xsl:call-template name="templ_prop_Space"/>
  6834.                           </xsl:if>
  6835.                           <xsl:value-of select="$tempCP"/>
  6836.                         </xsl:if>
  6837.  
  6838.                       </xsl:when>
  6839.  
  6840.                       <xsl:otherwise>
  6841.  
  6842.                         <xsl:if test="string-length($authorDot)>0">
  6843.                           <xsl:value-of select="$authorDot"/>
  6844.                         </xsl:if>
  6845.  
  6846.                         <xsl:if test="string-length($enclosedDateDot)>0">
  6847.                           <xsl:if test="string-length($authorDot)>0">
  6848.                             <xsl:call-template name="templ_prop_Space"/>
  6849.                           </xsl:if>
  6850.  
  6851.                           <xsl:value-of select="$enclosedDateDot"/>
  6852.                         </xsl:if>
  6853.  
  6854.  
  6855.                         <xsl:if test="string-length($titleDot)>0">
  6856.                           <xsl:if test="string-length($authorDot)>0 or string-length($enclosedDateDot)>0">
  6857.                             <xsl:call-template name="templ_prop_Space"/>
  6858.                           </xsl:if>
  6859.  
  6860.                           <xsl:call-template name = "ApplyItalicTitleNS">
  6861.                            <xsl:with-param name = "data">
  6862.                             <xsl:value-of select="$titleDot"/>
  6863.                            </xsl:with-param>
  6864.                           </xsl:call-template>
  6865.  
  6866.                         </xsl:if>
  6867.  
  6868.                         <xsl:if test="string-length($tempRIDC)>0">
  6869.                           <xsl:if test="string-length($authorDot)>0 or string-length($enclosedDateDot)>0 or string-length($titleDot)>0">
  6870.                             <xsl:call-template name="templ_prop_Space"/>
  6871.                           </xsl:if>
  6872.                           <xsl:value-of select="$tempRIDC"/>
  6873.                         </xsl:if>
  6874.  
  6875.                       </xsl:otherwise>
  6876.  
  6877.  
  6878.                     </xsl:choose>
  6879.  
  6880.                   </xsl:when>
  6881.  
  6882.                   <xsl:when test="b:SourceType='Film'">
  6883.                     <xsl:choose>
  6884.  
  6885.                       
  6886.                       <xsl:when test="string-length($theFilmProducerAndWriterAndDirectorDot)>0">
  6887.  
  6888.                         <xsl:value-of select="$theFilmProducerAndWriterAndDirectorDot"/>
  6889.  
  6890.                         <xsl:if test="string-length($enclosedDateDot)>0">
  6891.                           <xsl:call-template name="templ_prop_Space"/>
  6892.                           <xsl:value-of select="$enclosedDateDot"/>
  6893.                         </xsl:if>
  6894.  
  6895.                         <xsl:if test="string-length($title)>0">
  6896.                           <xsl:call-template name="templ_prop_Space"/>
  6897.                           <xsl:call-template name = "ApplyItalicTitleNS">
  6898.                            <xsl:with-param name = "data">
  6899.                             <xsl:value-of select="$title"/>
  6900.                            </xsl:with-param>
  6901.                           </xsl:call-template>
  6902.                         </xsl:if>
  6903.  
  6904.                         <xsl:call-template name="templ_prop_Space"/>
  6905.                         <xsl:call-template name="templ_prop_APA_SecondaryOpen"/>
  6906.                         <xsl:call-template name="templ_str_MotionPictureCap"/>
  6907.                         <xsl:call-template name="templ_prop_APA_SecondaryClose"/>
  6908.                         <xsl:call-template name="templ_prop_Dot"/>
  6909.  
  6910.                         <xsl:if test="string-length($tempCD)>0">
  6911.                           <xsl:call-template name="templ_prop_Space"/>
  6912.                           <xsl:value-of select="$tempCD"/>
  6913.                         </xsl:if>
  6914.  
  6915.                       </xsl:when>
  6916.  
  6917.  
  6918.                       
  6919.                       <xsl:otherwise>
  6920.  
  6921.                         <xsl:value-of select="$theFilmProducerAndWriterAndDirectorDot"/>
  6922.  
  6923.  
  6924.                         <xsl:if test="string-length($title)>0">
  6925.                         <xsl:call-template name = "ApplyItalicTitleNS">
  6926.                          <xsl:with-param name = "data">
  6927.                             <xsl:value-of select="$title"/>
  6928.                           </xsl:with-param>
  6929.                          </xsl:call-template>
  6930.                         </xsl:if>
  6931.  
  6932.                         <xsl:if test="string-length($enclosedDateDot)>0">
  6933.                           <xsl:if test="string-length($title)>0">
  6934.                             <xsl:call-template name="templ_prop_Space"/>
  6935.                           </xsl:if>
  6936.                           <xsl:value-of select="$enclosedDateDot"/>
  6937.                         </xsl:if>
  6938.  
  6939.                         <xsl:call-template name="templ_prop_Space"/>
  6940.                         <xsl:call-template name="templ_prop_APA_SecondaryOpen"/>
  6941.                         <xsl:call-template name="templ_str_MotionPictureCap"/>
  6942.                         <xsl:call-template name="templ_prop_APA_SecondaryClose"/>
  6943.                         <xsl:call-template name="templ_prop_Dot"/>
  6944.  
  6945.                         <xsl:if test="string-length($tempCD)>0">
  6946.                           <xsl:call-template name="templ_prop_Space"/>
  6947.                           <xsl:value-of select="$tempCD"/>
  6948.                         </xsl:if>
  6949.  
  6950.                       </xsl:otherwise>
  6951.  
  6952.                     </xsl:choose>
  6953.  
  6954.                   </xsl:when>
  6955.  
  6956.  
  6957.  
  6958.                   <xsl:when test="b:SourceType='Interview'">
  6959.                     <xsl:choose>
  6960.                       <xsl:when test="string-length($broadcaster)=0">
  6961.  
  6962.                         <xsl:if test="string-length($intervieweeLFDot)>0">
  6963.                           <xsl:value-of select="$intervieweeLFDot"/>
  6964.                         </xsl:if>
  6965.  
  6966.                         <xsl:if test="string-length($enclosedDateDot)>0">
  6967.                           <xsl:if test="string-length($intervieweeLFDot)>0">
  6968.                             <xsl:call-template name="templ_prop_Space"/>
  6969.                           </xsl:if>
  6970.  
  6971.                           <xsl:value-of select="$enclosedDateDot"/>
  6972.                         </xsl:if>
  6973.  
  6974.  
  6975.                         <xsl:if test="string-length($interviewTitleDot)>0">
  6976.                           <xsl:if test="string-length($intervieweeLFDot)>0 or string-length($enclosedDateDot)>0">
  6977.                             <xsl:call-template name="templ_prop_Space"/>
  6978.                           </xsl:if>
  6979.                           <xsl:value-of select="$interviewTitleDot"/>
  6980.                         </xsl:if>
  6981.  
  6982.                         <xsl:if test="string-length($tempPrP)>0">
  6983.                           <xsl:if test="string-length($intervieweeLFDot)>0 or string-length($enclosedDateDot)>0 or string-length($interviewTitleDot)>0">
  6984.                             <xsl:call-template name="templ_prop_Space"/>
  6985.                           </xsl:if>
  6986.                           <xsl:apply-templates select="msxsl:node-set($tempPrP)" mode="outputHtml"/>
  6987.                         </xsl:if>
  6988.  
  6989.  
  6990.                         <xsl:if test="string-length($theInterviewInterviewerAndEditorAndTranslator)>0">
  6991.                           <xsl:if test="string-length($intervieweeLFDot)>0 or string-length($enclosedDateDot)>0 or string-length($interviewTitleDot)>0 or string-length($tempPrP)>0">
  6992.                             <xsl:call-template name="templ_prop_Space"/>
  6993.                           </xsl:if>
  6994.                           <xsl:value-of select="$theInterviewInterviewerAndEditorAndTranslator"/>
  6995.                         </xsl:if>
  6996.  
  6997.                         <xsl:if test="string-length($tempCSCPu)>0">
  6998.                           <xsl:if test="string-length($intervieweeLFDot)>0 or string-length($enclosedDateDot)>0 or string-length($interviewTitleDot)>0 or string-length($tempPrP)>0 or string-length($theInterviewInterviewerAndEditorAndTranslator)>0">
  6999.                             <xsl:call-template name="templ_prop_Space"/>
  7000.                           </xsl:if>
  7001.                           <xsl:value-of select="$tempCSCPu"/>
  7002.                         </xsl:if>
  7003.                       </xsl:when>
  7004.  
  7005.                       <xsl:otherwise>
  7006.  
  7007.                         <xsl:if test="string-length($intervieweeLFDot)>0">
  7008.                           <xsl:value-of select="$intervieweeLFDot"/>
  7009.                         </xsl:if>
  7010.  
  7011.                         <xsl:if test="string-length($enclosedDateDot)>0">
  7012.                           <xsl:if test="string-length($intervieweeLFDot)>0">
  7013.                             <xsl:call-template name="templ_prop_Space"/>
  7014.                           </xsl:if>
  7015.  
  7016.                           <xsl:value-of select="$enclosedDateDot"/>
  7017.                         </xsl:if>
  7018.  
  7019.  
  7020.                         <xsl:if test="string-length($interviewTitleDot)>0">
  7021.                           <xsl:if test="string-length($intervieweeLFDot)>0 or string-length($enclosedDateDot)>0">
  7022.                             <xsl:call-template name="templ_prop_Space"/>
  7023.                           </xsl:if>
  7024.                           <xsl:value-of select="$interviewTitleDot"/>
  7025.                         </xsl:if>
  7026.  
  7027.                         <xsl:if test="string-length($broadcastTitleDot)>0">
  7028.                           <xsl:if test="string-length($intervieweeLFDot)>0 or string-length($enclosedDateDot)>0 or string-length($interviewTitleDot)>0">
  7029.                             <xsl:call-template name="templ_prop_Space"/>
  7030.                           </xsl:if>
  7031.                           <xsl:call-template name = "ApplyItalicTitleNS">
  7032.                            <xsl:with-param name = "data">
  7033.                             <xsl:value-of select="$broadcastTitleDot"/>
  7034.                            </xsl:with-param>
  7035.                           </xsl:call-template>
  7036.                         </xsl:if>
  7037.  
  7038.  
  7039.                         <xsl:if test="string-length($theInterviewInterviewer)>0">
  7040.                           <xsl:if test="string-length($intervieweeLFDot)>0 or string-length($enclosedDateDot)>0 or string-length($interviewTitleDot)>0 or string-length($broadcastTitleDot)>0">
  7041.                             <xsl:call-template name="templ_prop_Space"/>
  7042.                           </xsl:if>
  7043.                           <xsl:value-of select="$theInterviewInterviewer"/>
  7044.                         </xsl:if>
  7045.  
  7046.                         <xsl:if test="string-length($broadcasterDot)>0">
  7047.                           <xsl:if test="string-length($intervieweeLFDot)>0 or string-length($enclosedDateDot)>0 or string-length($interviewTitleDot)>0 or string-length($broadcastTitleDot)>0 or string-length($theInterviewInterviewer)>0">
  7048.                             <xsl:call-template name="templ_prop_Space"/>
  7049.                           </xsl:if>
  7050.                           <xsl:value-of select="$broadcasterDot"/>
  7051.                         </xsl:if>
  7052.  
  7053.  
  7054.                         <xsl:if test="string-length($tempSC)>0">
  7055.                           <xsl:if test="string-length($intervieweeLFDot)>0 or string-length($enclosedDateDot)>0 or string-length($interviewTitleDot)>0 or string-length($broadcastTitleDot)>0 or string-length($theInterviewInterviewer)>0 or string-length($broadcaster)>0">
  7056.                             <xsl:call-template name="templ_prop_Space"/>
  7057.                           </xsl:if>
  7058.                           <xsl:value-of select="$tempSC"/>
  7059.                         </xsl:if>
  7060.  
  7061.  
  7062.                       </xsl:otherwise>
  7063.  
  7064.  
  7065.  
  7066.  
  7067.                     </xsl:choose>
  7068.  
  7069.                   </xsl:when>
  7070.  
  7071.  
  7072.                   
  7073.  
  7074.                 </xsl:choose>
  7075.               </xsl:element>
  7076.               
  7077.             </xsl:for-each>
  7078.  
  7079.           </body>
  7080.         </html>
  7081.       </xsl:when>
  7082.     </xsl:choose>
  7083.   </xsl:template>
  7084.  
  7085.   <xsl:template name="sortedList">
  7086.     <xsl:param name="sourceRoot"/>
  7087.     
  7088.     <xsl:apply-templates select="msxsl:node-set($sourceRoot)/*">
  7089.       
  7090.       <xsl:sort select="b:SortingString" />
  7091.       
  7092.     </xsl:apply-templates>
  7093.     
  7094.   </xsl:template>
  7095.  
  7096.  
  7097.   <xsl:template match="*">
  7098.     <xsl:element name="{name()}" namespace="{namespace-uri()}">
  7099.       <xsl:for-each select="@*">
  7100.         <xsl:attribute name="{name()}" namespace="{namespace-uri()}">
  7101.           <xsl:value-of select="." />
  7102.         </xsl:attribute>
  7103.       </xsl:for-each>
  7104.       <xsl:apply-templates>
  7105.         <xsl:sort select="b:SortingString" />
  7106.         
  7107.       </xsl:apply-templates>
  7108.     </xsl:element>
  7109.   </xsl:template>
  7110.  
  7111.   <!-- This xsl:template must be kept as one line so that we don't get any end lines in our html that would 
  7112.        be normalized to spaces.
  7113.        -->
  7114.   <xsl:template match="*" mode="outputHtml" xml:space="preserve"><xsl:element name="{name()}" namespace="{namespace-uri()}"><xsl:for-each select="@*"><xsl:attribute name="{name()}" namespace="{namespace-uri()}"><xsl:value-of select="." /></xsl:attribute></xsl:for-each><xsl:apply-templates mode="outputHtml"/></xsl:element></xsl:template>
  7115.  
  7116.  
  7117.   <xsl:template match="text()">
  7118.     <xsl:value-of select="." />
  7119.   </xsl:template>
  7120.  
  7121.  
  7122.  
  7123.   
  7124.   
  7125.   
  7126.   
  7127.   <xsl:template name="MainContributors">
  7128.     <xsl:param name="SourceRoot"/>
  7129.     <xsl:choose>
  7130.       <xsl:when test="./b:SourceType='Book'">
  7131.         <xsl:choose>
  7132.           <xsl:when test="string-length(./b:Author/b:Author)>0">Author</xsl:when>
  7133.           <xsl:when test="string-length(./b:Author/b:Editor)>0">Editor</xsl:when>
  7134.           <xsl:when test="string-length(./b:Author/b:Translator)>0">Translator</xsl:when>
  7135.         </xsl:choose>
  7136.       </xsl:when>
  7137.  
  7138.       <xsl:when test="./b:SourceType='BookSection'">
  7139.         <xsl:choose>
  7140.           <xsl:when test="string-length(./b:Author/b:Author)>0">Author</xsl:when>
  7141.           <xsl:when test="string-length(./b:Author/b:BookAuthor)>0">BookAuthor</xsl:when>
  7142.         </xsl:choose>
  7143.       </xsl:when>
  7144.  
  7145.       <xsl:when test="./b:SourceType='JournalArticle'">
  7146.         <xsl:choose>
  7147.           <xsl:when test="string-length(./b:Author/b:Author)>0">Author</xsl:when>
  7148.           <xsl:when test="string-length(./b:Author/b:Editor)>0">Editor</xsl:when>
  7149.         </xsl:choose>
  7150.       </xsl:when>
  7151.  
  7152.       <xsl:when test="./b:SourceType='ArticleInAPeriodical'">
  7153.         <xsl:choose>
  7154.           <xsl:when test="string-length(./b:Author/b:Author)>0">Author</xsl:when>
  7155.           <xsl:when test="string-length(./b:Author/b:Editor)>0">Editor</xsl:when>
  7156.         </xsl:choose>
  7157.       </xsl:when>
  7158.  
  7159.       <xsl:when test="./b:SourceType='ConferenceProceedings'">
  7160.         <xsl:choose>
  7161.           <xsl:when test="string-length(./b:Author/b:Author)>0">Author</xsl:when>
  7162.         </xsl:choose>
  7163.       </xsl:when>
  7164.  
  7165.       <xsl:when test="./b:SourceType='Report'">
  7166.         <xsl:choose>
  7167.           <xsl:when test="string-length(./b:Author/b:Author)>0">Author</xsl:when>
  7168.         </xsl:choose>
  7169.       </xsl:when>
  7170.  
  7171.       <xsl:when test="./b:SourceType='SoundRecording'">
  7172.         <xsl:choose>
  7173.           <xsl:when test="string-length(./b:Author/b:Artist)>0">Artist</xsl:when>
  7174.           <xsl:when test="string-length(./b:Author/b:Composer)>0">Composer</xsl:when>
  7175.         </xsl:choose>
  7176.       </xsl:when>
  7177.  
  7178.       <xsl:when test="./b:SourceType='Performance'">
  7179.         <xsl:choose>
  7180.           <xsl:when test="string-length(./b:Author/b:Writer)>0">Writer</xsl:when>
  7181.           <xsl:when test="string-length(./b:Author/b:Performer)>0">Performer</xsl:when>
  7182.           <xsl:when test="string-length(./b:Author/b:Director)>0">Director</xsl:when>
  7183.         </xsl:choose>
  7184.       </xsl:when>
  7185.  
  7186.       <xsl:when test="./b:SourceType='Art'">
  7187.         <xsl:choose>
  7188.           <xsl:when test="string-length(./b:Author/b:Artist)>0">Artist</xsl:when>
  7189.         </xsl:choose>
  7190.       </xsl:when>
  7191.  
  7192.       <xsl:when test="./b:SourceType='DocumentFromInternetSite'">
  7193.         <xsl:choose>
  7194.           <xsl:when test="string-length(./b:Author/b:Author)>0">Author</xsl:when>
  7195.           <xsl:when test="string-length(./b:Author/b:Editor)>0">Editor</xsl:when>
  7196.         </xsl:choose>
  7197.       </xsl:when>
  7198.  
  7199.       <xsl:when test="./b:SourceType='InternetSite'">
  7200.         <xsl:choose>
  7201.           <xsl:when test="string-length(./b:Author/b:Author)>0">Author</xsl:when>
  7202.           <xsl:when test="string-length(./b:Author/b:Editor)>0">Editor</xsl:when>
  7203.         </xsl:choose>
  7204.       </xsl:when>
  7205.  
  7206.       <xsl:when test="./b:SourceType='Film'">
  7207.         <xsl:choose>
  7208.           <xsl:when test="string-length(./b:Author/b:Writer)>0">Writer</xsl:when>
  7209.           <xsl:when test="string-length(./b:Author/b:Performer)>0">Performer</xsl:when>
  7210.           <xsl:when test="string-length(./b:Author/b:Director)>0">Director</xsl:when>
  7211.         </xsl:choose>
  7212.       </xsl:when>
  7213.  
  7214.       <xsl:when test="./b:SourceType='Interview'">
  7215.         <xsl:choose>
  7216.           <xsl:when test="string-length(./b:Author/b:Interviewee)>0">Interviewee</xsl:when>
  7217.           <xsl:when test="string-length(./b:Author/b:Editor)>0">Editor</xsl:when>
  7218.           <xsl:when test="string-length(./b:Author/b:Translator)>0">Translator</xsl:when>
  7219.         </xsl:choose>
  7220.       </xsl:when>
  7221.  
  7222.       <xsl:when test="./b:SourceType='Patent'">
  7223.         <xsl:choose>
  7224.           <xsl:when test="string-length(./b:Author/b:Inventor)>0">Inventor</xsl:when>
  7225.           <xsl:when test="string-length(./b:Author/b:Editor)>0">Editor</xsl:when>
  7226.           <xsl:when test="string-length(./b:Author/b:Translator)>0">Translator</xsl:when>
  7227.         </xsl:choose>
  7228.       </xsl:when>
  7229.  
  7230.       <xsl:when test="./b:SourceType='ElectronicSource'">
  7231.         <xsl:choose>
  7232.           <xsl:when test="string-length(./b:Author/b:Author)>0">Author</xsl:when>
  7233.           <xsl:when test="string-length(./b:Author/b:Editor)>0">Editor</xsl:when>
  7234.         </xsl:choose>
  7235.       </xsl:when>
  7236.  
  7237.       <xsl:when test="./b:SourceType='Case'">
  7238.         <xsl:choose>
  7239.           <xsl:when test="string-length(./b:Author/b:Author)>0">Author</xsl:when>
  7240.         </xsl:choose>
  7241.       </xsl:when>
  7242.  
  7243.       <xsl:when test="./b:SourceType='Misc'">
  7244.         <xsl:choose>
  7245.           <xsl:when test="string-length(./b:Author/b:Author)>0">Author</xsl:when>
  7246.           <xsl:when test="string-length(./b:Author/b:Editor)>0">Editor</xsl:when>
  7247.           <xsl:when test="string-length(./b:Author/b:Translator)>0">Translator</xsl:when>
  7248.         </xsl:choose>
  7249.       </xsl:when>
  7250.     </xsl:choose>
  7251.   </xsl:template>
  7252.  
  7253.  
  7254.   
  7255.   <xsl:template name="populateMain">
  7256.     <xsl:param name="Type"/>
  7257.     
  7258.     <xsl:element name="{$Type}">
  7259.       
  7260.  
  7261.       <xsl:for-each select="/*[$Type]/b:Source">
  7262.         
  7263.         <xsl:variable name="MostImportantAuthorLocalName">
  7264.           
  7265.           <xsl:call-template name="MainContributors"/>
  7266.         </xsl:variable>
  7267.         <xsl:element name="{'b:Source'}">
  7268.           
  7269.           <xsl:if test="$Type='b:Citation'">
  7270.           
  7271.             <b:Title>
  7272.               
  7273.               <xsl:if test="string-length(b:Title)>0">
  7274.                 <xsl:value-of select="b:Title"/>
  7275.               </xsl:if>
  7276.               
  7277.               <xsl:if test="string-length(b:Title)=0">
  7278.                 <xsl:choose>
  7279.                   <xsl:when test="b:SourceType='Book' or
  7280.                                   b:SourceType='JournalArticle' or
  7281.                                   b:SourceType='ConferenceProceedings' or
  7282.                                   b:SourceType='Report' or
  7283.                                   b:SourceType='Performance' or
  7284.                                   b:SourceType='Film' or
  7285.                                   b:SourceType='Patent' or
  7286.                                   b:SourceType='Case'">
  7287.  
  7288.                     <xsl:value-of select="b:ShortTitle"/>
  7289.                   </xsl:when>
  7290.  
  7291.                   <xsl:when test="b:SourceType='BookSection'">
  7292.                     <xsl:variable name="shortTitle" select="b:ShortTitle"/>
  7293.                     <xsl:variable name="bookTitle" select="b:BookTitle"/>
  7294.  
  7295.                     <xsl:choose>
  7296.                       <xsl:when test="string-length($shortTitle)>0">
  7297.                         <xsl:value-of select="$shortTitle"/>
  7298.                       </xsl:when>
  7299.                       <xsl:when test="string-length($bookTitle)>0">
  7300.                         <xsl:value-of select="$bookTitle"/>
  7301.                       </xsl:when>
  7302.                     </xsl:choose>
  7303.  
  7304.                   </xsl:when>
  7305.  
  7306.                   <xsl:when test="b:SourceType='ArticleInAPeriodical'">
  7307.                     <xsl:variable name="shortTitle" select="b:ShortTitle"/>
  7308.                     <xsl:variable name="periodicalTitle" select="b:PeriodicalTitle"/>
  7309.  
  7310.                     <xsl:choose>
  7311.                       <xsl:when test="string-length($shortTitle)>0">
  7312.                         <xsl:value-of select="$shortTitle"/>
  7313.                       </xsl:when>
  7314.                       <xsl:when test="string-length($periodicalTitle)>0">
  7315.                         <xsl:value-of select="$periodicalTitle"/>
  7316.                       </xsl:when>
  7317.                     </xsl:choose>
  7318.                   </xsl:when>
  7319.  
  7320.                   <xsl:when test="b:SourceType='InternetSite' or
  7321.                                   b:SourceType='DocumentFromInternetSite'">
  7322.                     <xsl:variable name="shortTitle" select="b:ShortTitle"/>
  7323.                     <xsl:variable name="internetSiteTitle" select="b:InternetSiteTitle"/>
  7324.  
  7325.                     <xsl:choose>
  7326.                       <xsl:when test="string-length($shortTitle)>0">
  7327.                         <xsl:value-of select="$shortTitle"/>
  7328.                       </xsl:when>
  7329.                       <xsl:when test="string-length($internetSiteTitle)>0">
  7330.                         <xsl:value-of select="$internetSiteTitle"/>
  7331.                       </xsl:when>
  7332.                     </xsl:choose>
  7333.                   </xsl:when>
  7334.  
  7335.                   <xsl:when test="b:SourceType='ElectronicSource' or
  7336.                                   b:SourceType='Art' or
  7337.                                   b:SourceType='Misc'">
  7338.                     <xsl:variable name="shortTitle" select="b:ShortTitle"/>
  7339.                     <xsl:variable name="publicationTitle" select="b:PublicationTitle"/>
  7340.  
  7341.                     <xsl:choose>
  7342.                       <xsl:when test="string-length($shortTitle)>0">
  7343.                         <xsl:value-of select="$shortTitle"/>
  7344.                       </xsl:when>
  7345.                       <xsl:when test="string-length($publicationTitle)>0">
  7346.                         <xsl:value-of select="$publicationTitle"/>
  7347.                       </xsl:when>
  7348.                     </xsl:choose>
  7349.                   </xsl:when>
  7350.  
  7351.                   <xsl:when test="b:SourceType='SoundRecording'">
  7352.                     <xsl:variable name="shortTitle" select="b:ShortTitle"/>
  7353.                     <xsl:variable name="albumTitle" select="b:AlbumTitle"/>
  7354.  
  7355.                     <xsl:choose>
  7356.                       <xsl:when test="string-length($shortTitle)>0">
  7357.                         <xsl:value-of select="$shortTitle"/>
  7358.                       </xsl:when>
  7359.                       <xsl:when test="string-length($albumTitle)>0">
  7360.                         <xsl:value-of select="$albumTitle"/>
  7361.                       </xsl:when>
  7362.                     </xsl:choose>
  7363.                   </xsl:when>
  7364.  
  7365.                   <xsl:when test="b:SourceType='Interview'">
  7366.                     <xsl:variable name="shortTitle" select="b:ShortTitle"/>
  7367.                     
  7368.                     <xsl:variable name="broadcastTitle" select="b:BroadcastTitle"/>
  7369.                     
  7370.  
  7371.                     <xsl:choose>
  7372.                       <xsl:when test="string-length($shortTitle)>0">
  7373.                         <xsl:value-of select="$shortTitle"/>
  7374.                       </xsl:when>
  7375.                       
  7376.                       <xsl:when test="string-length($broadcastTitle)>0">
  7377.                         <xsl:value-of select="$broadcastTitle"/>
  7378.                       </xsl:when>
  7379.                       
  7380.                     </xsl:choose>
  7381.                   </xsl:when>
  7382.  
  7383.                 </xsl:choose>
  7384.               </xsl:if>
  7385.             </b:Title>
  7386.           </xsl:if>
  7387.  
  7388.           <b:SortingString>
  7389.             <xsl:variable name = "author0">
  7390.               <xsl:for-each select="./b:Author/*[local-name()=$MostImportantAuthorLocalName]">
  7391.                 <xsl:call-template name="formatPersonsAuthor"/>
  7392.               </xsl:for-each>
  7393.             </xsl:variable>
  7394.  
  7395.             <xsl:variable name = "author">
  7396.               <xsl:choose>
  7397.                 <xsl:when test="string-length(./b:Author/*[local-name()=$MostImportantAuthorLocalName]/b:Corporate) > 0">
  7398.                   <xsl:value-of select="./b:Author/*[local-name()=$MostImportantAuthorLocalName]/b:Corporate"/>
  7399.                 </xsl:when>
  7400.                 <xsl:when test="string-length($author0) > 0">
  7401.                   <xsl:value-of select="$author0"/>
  7402.                 </xsl:when>
  7403.               </xsl:choose>
  7404.             </xsl:variable>
  7405.  
  7406.             <xsl:if test="string-length($author) > 0 and b:SourceType != 'Case'">
  7407.               <xsl:text> </xsl:text>
  7408.               <xsl:value-of select="$author"/>
  7409.             </xsl:if>
  7410.  
  7411.             <xsl:if test="string-length(b:Year) > 0">
  7412.               <xsl:text> </xsl:text>
  7413.               <xsl:value-of select="b:Year"/>
  7414.             </xsl:if>
  7415.  
  7416.             <xsl:choose>
  7417.               <xsl:when test="b:SourceType='Patent' and string-length(b:PatentNumber) > 0">
  7418.                 <xsl:text> </xsl:text>
  7419.                 <xsl:value-of select="b:PatentNumber"/>
  7420.               </xsl:when>
  7421.               <xsl:when test="string-length(b:Title) > 0">
  7422.                 <xsl:text> </xsl:text>
  7423.                 <xsl:value-of select="b:Title"/>
  7424.               </xsl:when>
  7425.             </xsl:choose>
  7426.           </b:SortingString>
  7427.  
  7428.           <b:Author>
  7429.             
  7430.             <b:Main>
  7431.                 <xsl:if test="string-length(./b:Author/*[local-name()=$MostImportantAuthorLocalName]/b:Corporate)=0">
  7432.                   <b:NameList>
  7433.                     <xsl:for-each select="./b:Author/*[local-name()=$MostImportantAuthorLocalName]/b:NameList/b:Person">
  7434.                       <b:Person>
  7435.                         
  7436.                         <b:Last>
  7437.                           <xsl:value-of select="./b:Last"/>
  7438.                         </b:Last>
  7439.                         <b:First>
  7440.                           <xsl:value-of select="./b:First"/>
  7441.                         </b:First>
  7442.                         <b:Middle>
  7443.                           <xsl:value-of select="./b:Middle"/>
  7444.                         </b:Middle>
  7445.                       </b:Person>
  7446.                     </xsl:for-each>
  7447.                   </b:NameList>
  7448.                 </xsl:if>
  7449.                 <xsl:if test="string-length(./b:Author/*[local-name()=$MostImportantAuthorLocalName]/b:Corporate)>0">
  7450.                     <b:Corporate>
  7451.                       <xsl:value-of select="./b:Author/*[local-name()=$MostImportantAuthorLocalName]/b:Corporate"/>
  7452.                     </b:Corporate>
  7453.                 </xsl:if>
  7454.             </b:Main>
  7455.             <xsl:for-each select="./b:Author/*">
  7456.               
  7457.               
  7458.               <xsl:element name="{name()}" namespace="{namespace-uri()}">
  7459.                 <xsl:call-template name="copyNameNodes"/>
  7460.                 
  7461.               </xsl:element>
  7462.               
  7463.             </xsl:for-each>
  7464.           </b:Author>
  7465.           <xsl:for-each select="*">
  7466.             
  7467.             <xsl:if test="name()!='Author' and not(name()='Title' and $Type='b:Citation')">
  7468.               <xsl:element name="{name()}" namespace="{namespace-uri()}">
  7469.                 <xsl:call-template name="copyNodes"/>
  7470.                 
  7471.               </xsl:element>
  7472.             </xsl:if>
  7473.           </xsl:for-each>
  7474.         </xsl:element>
  7475.         <xsl:for-each select="../*">
  7476.           
  7477.           <xsl:if test="local-name()!='Source' and namespace-uri()='http://schemas.openxmlformats.org/officeDocument/2006/bibliography'">
  7478.             <xsl:element name="{name()}" namespace="{namespace-uri()}">
  7479.               <xsl:call-template name="copyNodes"/>
  7480.               
  7481.             </xsl:element>
  7482.           </xsl:if>
  7483.         </xsl:for-each>
  7484.       </xsl:for-each>
  7485.       
  7486.       <xsl:copy-of select="/*[$Type]/b:Locals"/>
  7487.     </xsl:element>
  7488.   </xsl:template>
  7489.  
  7490.   
  7491.   <xsl:template name="copyNameNodes">
  7492.     <xsl:if test="string-length(b:Corporate)=0">
  7493.         <b:NameList>
  7494.           <xsl:for-each select="b:NameList/b:Person">
  7495.             
  7496.             <b:Person>
  7497.               
  7498.               <xsl:if test="string-length(./b:Last)>0">
  7499.                 
  7500.                 <b:Last>
  7501.                   <xsl:value-of select="./b:Last"/>
  7502.                 </b:Last>
  7503.               </xsl:if>
  7504.               <xsl:if test="string-length(./b:First)>0">
  7505.                 <b:First>
  7506.                   <xsl:value-of select="./b:First"/>
  7507.                 </b:First>
  7508.               </xsl:if>
  7509.               <xsl:if test="string-length(./b:Middle)>0">
  7510.                 <b:Middle>
  7511.                   <xsl:value-of select="./b:Middle"/>
  7512.                 </b:Middle>
  7513.               </xsl:if>
  7514.             </b:Person>
  7515.           </xsl:for-each>
  7516.         </b:NameList>
  7517.     </xsl:if>
  7518.     <xsl:if test="string-length(b:Corporate)>0">
  7519.         <b:Corporate>
  7520.           <xsl:value-of select="b:Corporate"/>
  7521.         </b:Corporate>
  7522.     </xsl:if>
  7523.   </xsl:template>
  7524.  
  7525.   
  7526.   <xsl:template name="copyNodes">
  7527.     <xsl:value-of select="."/>
  7528.  
  7529.   </xsl:template>
  7530.  
  7531.   <xsl:template name="copyNodes2">
  7532.     <xsl:for-each select="@*">
  7533.       <xsl:attribute name="{name()}" namespace="{namespace-uri()}">
  7534.         <xsl:value-of select="."/>
  7535.       </xsl:attribute>
  7536.     </xsl:for-each>
  7537.     <xsl:for-each select="*">
  7538.       <xsl:element name="{name()}" namespace="{namespace-uri()}">
  7539.         <xsl:call-template name="copyNodes2"/>
  7540.         
  7541.       </xsl:element>
  7542.     </xsl:for-each>
  7543.  
  7544.   </xsl:template>
  7545.  
  7546.   <xsl:template name="handleSpaces">
  7547.     <xsl:param name="field"/>
  7548.  
  7549.     <xsl:variable name="prop_NormalizeSpace">
  7550.       <xsl:call-template name="templ_prop_NormalizeSpace"/>
  7551.     </xsl:variable>
  7552.  
  7553.     <xsl:choose>
  7554.       <xsl:when test="$prop_NormalizeSpace='yes'">
  7555.         <xsl:value-of select="normalize-space($field)"/>
  7556.       </xsl:when>
  7557.       <xsl:otherwise>
  7558.         <xsl:value-of select="$field"/>
  7559.       </xsl:otherwise>
  7560.     </xsl:choose>
  7561.   </xsl:template>
  7562.  
  7563.  
  7564.   <xsl:template name="appendField_Dot">
  7565.     <xsl:param name="field"/>
  7566.  
  7567.     <xsl:variable name="temp">
  7568.       <xsl:call-template name="handleSpaces">
  7569.         <xsl:with-param name="field" select="$field"/>
  7570.       </xsl:call-template>
  7571.     </xsl:variable>
  7572.  
  7573.     <xsl:variable name="lastChar">
  7574.       <xsl:value-of select="substring($temp, string-length($temp))"/>
  7575.     </xsl:variable>
  7576.  
  7577.     <xsl:variable name="prop_EndChars">
  7578.       <xsl:call-template name="templ_prop_EndChars"/>
  7579.     </xsl:variable>
  7580.  
  7581.     <xsl:choose>
  7582.       <xsl:when test="string-length($temp) = 0">
  7583.       </xsl:when>
  7584.       <xsl:when test="contains($prop_EndChars, $lastChar)">
  7585.         <xsl:value-of select="$temp"/>
  7586.       </xsl:when>
  7587.       <xsl:otherwise>
  7588.         <xsl:value-of select="$temp"/>
  7589.         <xsl:call-template name="templ_prop_Dot"/>
  7590.       </xsl:otherwise>
  7591.     </xsl:choose>
  7592.  
  7593.   </xsl:template>
  7594.  
  7595.  
  7596.   <xsl:template name="appendFieldNoHandleSpaces_Dot">
  7597.     <xsl:param name="field"/>
  7598.  
  7599.     <xsl:variable name="lastChar">
  7600.       <xsl:value-of select="substring($field, string-length($field))"/>
  7601.     </xsl:variable>
  7602.  
  7603.     <xsl:variable name="prop_EndChars">
  7604.       <xsl:call-template name="templ_prop_EndChars"/>
  7605.     </xsl:variable>
  7606.  
  7607.     <xsl:choose>
  7608.       <xsl:when test="string-length($field) = 0">
  7609.       </xsl:when>
  7610.       <xsl:when test="contains($prop_EndChars, $lastChar)">
  7611.         <xsl:value-of select="$field"/>
  7612.       </xsl:when>
  7613.       <xsl:otherwise>
  7614.         <xsl:value-of select="$field"/>
  7615.         <xsl:call-template name="templ_prop_Dot"/>
  7616.       </xsl:otherwise>
  7617.     </xsl:choose>
  7618.  
  7619.   </xsl:template>
  7620.  
  7621.   <xsl:template name="templateCSC">
  7622.  
  7623.     <xsl:variable name="tempSPCR">
  7624.       <xsl:call-template name="templateC2">
  7625.         <xsl:with-param name="first" select="b:StateProvince"/>
  7626.         <xsl:with-param name="second" select="b:CountryRegion"/>
  7627.       </xsl:call-template>
  7628.     </xsl:variable>
  7629.  
  7630.     <xsl:variable name="city">
  7631.       <xsl:call-template name="handleSpaces">
  7632.         <xsl:with-param name="field" select="b:City"/>
  7633.       </xsl:call-template>
  7634.     </xsl:variable>
  7635.     <xsl:variable name="temp">
  7636.       <xsl:call-template name="templateC">
  7637.         <xsl:with-param name="first" select="$city"/>
  7638.         <xsl:with-param name="second" select="$tempSPCR"/>
  7639.       </xsl:call-template>
  7640.     </xsl:variable>
  7641.     <xsl:call-template name="handleSpaces">
  7642.       <xsl:with-param name="field" select="$temp"/>
  7643.     </xsl:call-template>
  7644.   </xsl:template>
  7645.  
  7646.   <xsl:template name="templateCSC2">
  7647.     <xsl:variable name="tempSPCR">
  7648.       <xsl:call-template name="templateC2">
  7649.         <xsl:with-param name="first" select="b:StateProvince"/>
  7650.         <xsl:with-param name="second" select="b:CountryRegion"/>
  7651.       </xsl:call-template>
  7652.     </xsl:variable>
  7653.  
  7654.     <xsl:variable name="city">
  7655.       <xsl:call-template name="handleSpaces">
  7656.         <xsl:with-param name="field" select="b:City"/>
  7657.       </xsl:call-template>
  7658.     </xsl:variable>
  7659.     <xsl:variable name="temp">
  7660.       <xsl:call-template name="templateC2">
  7661.         <xsl:with-param name="first" select="$city"/>
  7662.         <xsl:with-param name="second" select="$tempSPCR"/>
  7663.       </xsl:call-template>
  7664.     </xsl:variable>
  7665.     <xsl:call-template name="handleSpaces">
  7666.       <xsl:with-param name="field" select="$temp"/>
  7667.     </xsl:call-template>
  7668.   </xsl:template>
  7669.  
  7670.   <xsl:template name="templateA">
  7671.     <xsl:param name="first"/>
  7672.     <xsl:param name="second"/>
  7673.     <xsl:param name="third"/>
  7674.  
  7675.     <xsl:variable name="tempFirst">
  7676.       <xsl:call-template name="handleSpaces">
  7677.         <xsl:with-param name="field" select="$first"/>
  7678.       </xsl:call-template>
  7679.     </xsl:variable>
  7680.  
  7681.     <xsl:variable name="tempSecond">
  7682.       <xsl:call-template name="handleSpaces">
  7683.         <xsl:with-param name="field" select="$second"/>
  7684.       </xsl:call-template>
  7685.     </xsl:variable>
  7686.  
  7687.     <xsl:variable name="tempThird">
  7688.       <xsl:call-template name="handleSpaces">
  7689.         <xsl:with-param name="field" select="$third"/>
  7690.       </xsl:call-template>
  7691.     </xsl:variable>
  7692.  
  7693.     <xsl:variable name="temp">
  7694.       <xsl:if test="string-length($tempFirst)>0">
  7695.         <xsl:value-of select="$tempFirst"/>
  7696.       </xsl:if>
  7697.  
  7698.       <xsl:if test="string-length($tempFirst)>0 and string-length($tempSecond)>0">
  7699.         <xsl:call-template name="templ_prop_EnumSeparator"/>
  7700.       </xsl:if>
  7701.  
  7702.       <xsl:if test="string-length($tempSecond)>0">
  7703.         <xsl:value-of select="$tempSecond"/>
  7704.       </xsl:if>
  7705.  
  7706.       <xsl:if test="(string-length($tempFirst)>0 or string-length($tempSecond)>0) and string-length($tempThird)>0">
  7707.         <xsl:call-template name="templ_prop_ListSeparator"/>
  7708.       </xsl:if>
  7709.  
  7710.       <xsl:if test="string-length($tempThird)>0">
  7711.         <xsl:value-of select="$tempThird"/>
  7712.       </xsl:if>
  7713.     </xsl:variable>
  7714.  
  7715.     <xsl:call-template name="appendFieldNoHandleSpaces_Dot">
  7716.       <xsl:with-param name="field" select="$temp"/>
  7717.     </xsl:call-template>
  7718.   </xsl:template>
  7719.  
  7720.   <xsl:template name="templateB">
  7721.     <xsl:param name="first"/>
  7722.     <xsl:param name="second"/>
  7723.  
  7724.     <xsl:variable name="tempFirst">
  7725.       <xsl:call-template name="handleSpaces">
  7726.         <xsl:with-param name="field" select="$first"/>
  7727.       </xsl:call-template>
  7728.     </xsl:variable>
  7729.  
  7730.     <xsl:variable name="tempSecond">
  7731.       <xsl:call-template name="handleSpaces">
  7732.         <xsl:with-param name="field" select="$second"/>
  7733.       </xsl:call-template>
  7734.     </xsl:variable>
  7735.  
  7736.     <xsl:variable name="temp">
  7737.       <xsl:if test="string-length($tempFirst)>0">
  7738.         <xsl:value-of select="$tempFirst"/>
  7739.       </xsl:if>
  7740.  
  7741.       <xsl:if test="string-length($tempFirst)>0 and string-length($tempSecond)>0">
  7742.         <xsl:call-template name="templ_prop_EnumSeparator"/>
  7743.       </xsl:if>
  7744.  
  7745.       <xsl:if test="string-length($tempSecond)>0">
  7746.         <xsl:value-of select="$tempSecond"/>
  7747.       </xsl:if>
  7748.  
  7749.     </xsl:variable>
  7750.  
  7751.     <xsl:call-template name="appendFieldNoHandleSpaces_Dot">
  7752.       <xsl:with-param name="field" select="$temp"/>
  7753.     </xsl:call-template>
  7754.  
  7755.   </xsl:template>
  7756.  
  7757.   <xsl:template name="templateC">
  7758.     <xsl:param name="first"/>
  7759.     <xsl:param name="second"/>
  7760.  
  7761.     <xsl:variable name="tempFirst">
  7762.       <xsl:call-template name="handleSpaces">
  7763.         <xsl:with-param name="field" select="$first"/>
  7764.       </xsl:call-template>
  7765.     </xsl:variable>
  7766.  
  7767.     <xsl:variable name="tempSecond">
  7768.       <xsl:call-template name="handleSpaces">
  7769.         <xsl:with-param name="field" select="$second"/>
  7770.       </xsl:call-template>
  7771.     </xsl:variable>
  7772.  
  7773.     <xsl:variable name="temp">
  7774.       <xsl:if test="string-length($tempFirst)>0">
  7775.         <xsl:value-of select="$tempFirst"/>
  7776.       </xsl:if>
  7777.  
  7778.       <xsl:if test="string-length($tempFirst)>0 and string-length($tempSecond)>0">
  7779.         <xsl:call-template name="templ_prop_ListSeparator"/>
  7780.       </xsl:if>
  7781.  
  7782.       <xsl:if test="string-length($tempSecond)>0">
  7783.         <xsl:value-of select="$tempSecond"/>
  7784.       </xsl:if>
  7785.  
  7786.     </xsl:variable>
  7787.  
  7788.     <xsl:call-template name="appendFieldNoHandleSpaces_Dot">
  7789.       <xsl:with-param name="field" select="$temp"/>
  7790.     </xsl:call-template>
  7791.   </xsl:template>
  7792.  
  7793.   <xsl:template name="templateCItalic">
  7794.     <xsl:param name="first"/>
  7795.     <xsl:param name="second"/>
  7796.  
  7797.     <xsl:variable name="tempFirst">
  7798.       <xsl:call-template name="handleSpaces">
  7799.         <xsl:with-param name="field" select="$first"/>
  7800.       </xsl:call-template>
  7801.     </xsl:variable>
  7802.  
  7803.     <xsl:variable name="tempSecond">
  7804.       <xsl:call-template name="handleSpaces">
  7805.         <xsl:with-param name="field" select="$second"/>
  7806.       </xsl:call-template>
  7807.     </xsl:variable>
  7808.  
  7809.     <xsl:if test="string-length($tempFirst)>0">
  7810.      <xsl:call-template name = "ApplyItalicTitleNS">
  7811.       <xsl:with-param name = "data">
  7812.        <xsl:value-of select="$tempFirst"/>
  7813.       </xsl:with-param>
  7814.      </xsl:call-template>
  7815.     </xsl:if>
  7816.   
  7817.     <xsl:if test="string-length($tempFirst)>0 and string-length($tempSecond)>0">
  7818.       <xsl:call-template name="templ_prop_ListSeparator"/>
  7819.     </xsl:if>
  7820.   
  7821.     <xsl:if test="string-length($tempSecond)>0">
  7822.       <xsl:value-of select="$tempSecond"/>
  7823.     </xsl:if>
  7824.  
  7825.     <xsl:variable name="temp">
  7826.       <xsl:value-of select="$tempFirst"/>
  7827.       <xsl:value-of select="$tempSecond"/>
  7828.     </xsl:variable>
  7829.  
  7830.     <xsl:call-template name="need_Dot">
  7831.       <xsl:with-param name="field" select="$temp"/>
  7832.     </xsl:call-template>
  7833.   </xsl:template>
  7834.  
  7835.  
  7836.   <xsl:template name="templateC2">
  7837.     <xsl:param name="first"/>
  7838.     <xsl:param name="second"/>
  7839.  
  7840.     <xsl:variable name="tempFirst">
  7841.       <xsl:call-template name="handleSpaces">
  7842.         <xsl:with-param name="field" select="$first"/>
  7843.       </xsl:call-template>
  7844.     </xsl:variable>
  7845.  
  7846.     <xsl:variable name="tempSecond">
  7847.       <xsl:call-template name="handleSpaces">
  7848.         <xsl:with-param name="field" select="$second"/>
  7849.       </xsl:call-template>
  7850.     </xsl:variable>
  7851.  
  7852.     <xsl:variable name="temp">
  7853.       <xsl:if test="string-length($tempFirst)>0">
  7854.         <xsl:value-of select="$tempFirst"/>
  7855.       </xsl:if>
  7856.  
  7857.       <xsl:if test="string-length($tempFirst)>0 and string-length($tempSecond)>0">
  7858.         <xsl:call-template name="templ_prop_ListSeparator"/>
  7859.       </xsl:if>
  7860.  
  7861.       <xsl:if test="string-length($tempSecond)>0">
  7862.         <xsl:value-of select="$tempSecond"/>
  7863.       </xsl:if>
  7864.  
  7865.     </xsl:variable>
  7866.  
  7867.     <xsl:value-of select="$temp"/>
  7868.   </xsl:template>
  7869.  
  7870.   <xsl:template name="templateF">
  7871.     <xsl:param name="first"/>
  7872.     <xsl:param name="second"/>
  7873.     <xsl:param name="third"/>
  7874.     <xsl:param name="fourth"/>
  7875.     <xsl:param name="fifth"/>
  7876.     <xsl:param name="thirdNoItalic"/>
  7877.  
  7878.     
  7879.  
  7880.     <xsl:variable name="tempFirst">
  7881.       <xsl:call-template name="handleSpaces">
  7882.         <xsl:with-param name="field" select="$first"/>
  7883.       </xsl:call-template>
  7884.     </xsl:variable>
  7885.  
  7886.     <xsl:variable name="tempSecond">
  7887.       <xsl:call-template name="handleSpaces">
  7888.         <xsl:with-param name="field" select="$second"/>
  7889.       </xsl:call-template>
  7890.     </xsl:variable>
  7891.  
  7892.     <xsl:variable name="tempThird">
  7893.       <xsl:call-template name="handleSpaces">
  7894.         <xsl:with-param name="field" select="$third"/>
  7895.       </xsl:call-template>
  7896.     </xsl:variable>
  7897.  
  7898.     <xsl:variable name="tempFourth">
  7899.       <xsl:call-template name="handleSpaces">
  7900.         <xsl:with-param name="field" select="$fourth"/>
  7901.       </xsl:call-template>
  7902.     </xsl:variable>
  7903.  
  7904.     <xsl:variable name="tempFifth">
  7905.       <xsl:call-template name="handleSpaces">
  7906.         <xsl:with-param name="field" select="$fifth"/>
  7907.       </xsl:call-template>
  7908.     </xsl:variable>
  7909.  
  7910.  
  7911.     <xsl:variable name="temp">
  7912.       <xsl:call-template name = "ApplyItalicTitleNS">
  7913.        <xsl:with-param name = "data">
  7914.         <xsl:if test="string-length($tempFirst)>0">
  7915.           <xsl:value-of select="$tempFirst"/>
  7916.         </xsl:if>
  7917.        </xsl:with-param>
  7918.       </xsl:call-template>
  7919.       <xsl:call-template name = "ApplyItalicFieldNS">
  7920.        <xsl:with-param name = "data">
  7921.       
  7922.         <xsl:if test="string-length($tempFirst)>0 and string-length($tempSecond)>0">
  7923.           <xsl:call-template name="templ_prop_ListSeparator"/>
  7924.         </xsl:if>
  7925.  
  7926.         <xsl:if test="string-length($tempSecond)>0">
  7927.           <xsl:value-of select="$tempSecond"/>
  7928.         </xsl:if>
  7929.        </xsl:with-param>
  7930.       </xsl:call-template>
  7931.  
  7932.         <xsl:if test="string-length($tempThird)>0">
  7933.           <xsl:if test = "$thirdNoItalic = 'yes'">
  7934.             <xsl:call-template name="templ_prop_APA_GeneralOpen"/>
  7935.             <xsl:value-of select="$tempThird"/>
  7936.             <xsl:call-template name="templ_prop_APA_GeneralClose"/>
  7937.           </xsl:if>
  7938.           <xsl:if test = "$thirdNoItalic != 'yes'">
  7939.             <xsl:call-template name = "ApplyItalicFieldNS">
  7940.              <xsl:with-param name = "data">
  7941.             <xsl:call-template name="templ_prop_APA_GeneralOpen"/>
  7942.             <xsl:value-of select="$tempThird"/>
  7943.             <xsl:call-template name="templ_prop_APA_GeneralClose"/>
  7944.              </xsl:with-param>
  7945.             </xsl:call-template>
  7946.           </xsl:if>
  7947.         </xsl:if>
  7948.  
  7949.       <xsl:call-template name = "ApplyItalicFieldNS">
  7950.        <xsl:with-param name = "data">
  7951.         <xsl:if test="string-length($tempFourth)>0">
  7952.           <xsl:if test="(string-length($tempFirst)>0 or string-length($tempSecond)>0) or string-length($tempThird)>0">
  7953.             <xsl:call-template name="templ_prop_ListSeparator"/>
  7954.           </xsl:if>
  7955.  
  7956.           <xsl:value-of select="$tempFourth"/>
  7957.         </xsl:if>
  7958.  
  7959.      </xsl:with-param>
  7960.     </xsl:call-template>
  7961.  
  7962.       <xsl:if test="string-length($tempFifth)>0">
  7963.         <xsl:if test="(string-length($tempFirst)>0 or string-length($tempSecond)>0) or string-length($tempThird)>0 or string-length($tempFourth)>0">
  7964.           <xsl:call-template name="templ_prop_ListSeparator"/>
  7965.         </xsl:if>
  7966.  
  7967.         <xsl:value-of select="$tempFifth"/>
  7968.       </xsl:if>
  7969.  
  7970.     </xsl:variable>
  7971.  
  7972.     <xsl:apply-templates select="msxsl:node-set($temp)" mode="outputHtml"/>
  7973.  
  7974.     <xsl:variable name="lastChar">
  7975.       <xsl:value-of select="substring($temp, string-length($temp))"/>
  7976.     </xsl:variable>
  7977.  
  7978.     <xsl:variable name="prop_EndChars">
  7979.       <xsl:call-template name="templ_prop_EndChars"/>
  7980.     </xsl:variable>
  7981.  
  7982.     <xsl:choose>
  7983.       <xsl:when test="string-length($temp) = 0">
  7984.       </xsl:when>
  7985.       <xsl:when test="contains($prop_EndChars, $lastChar)">
  7986.       </xsl:when>
  7987.       <xsl:otherwise>
  7988.         <xsl:call-template name="templ_prop_Dot"/>
  7989.       </xsl:otherwise>
  7990.     </xsl:choose>
  7991.  
  7992.   </xsl:template>
  7993.  
  7994.  
  7995.   <xsl:template name="templateG">
  7996.     <xsl:param name="first"/>
  7997.     <xsl:param name="second"/>
  7998.     <xsl:param name="third"/>
  7999.     <xsl:param name="fourth"/>
  8000.     <xsl:param name="addSpace"/>
  8001.  
  8002.     <xsl:variable name="tempFirst">
  8003.       <xsl:call-template name="handleSpaces">
  8004.         <xsl:with-param name="field" select="$first"/>
  8005.       </xsl:call-template>
  8006.     </xsl:variable>
  8007.  
  8008.     <xsl:variable name="tempSecond">
  8009.       <xsl:call-template name="handleSpaces">
  8010.         <xsl:with-param name="field" select="$second"/>
  8011.       </xsl:call-template>
  8012.     </xsl:variable>
  8013.  
  8014.     <xsl:variable name="tempThird">
  8015.       <xsl:call-template name="handleSpaces">
  8016.         <xsl:with-param name="field" select="$third"/>
  8017.       </xsl:call-template>
  8018.     </xsl:variable>
  8019.  
  8020.     <xsl:variable name="tempFourth">
  8021.       <xsl:call-template name="handleSpaces">
  8022.         <xsl:with-param name="field" select="$fourth"/>
  8023.       </xsl:call-template>
  8024.     </xsl:variable>
  8025.  
  8026.     <xsl:variable name="temp">
  8027.       <xsl:call-template name = "ApplyItalicTitleNS">
  8028.        <xsl:with-param name = "data">
  8029.         <xsl:if test="string-length($tempFirst)>0">
  8030.           <xsl:value-of select="$tempFirst"/>
  8031.         </xsl:if>
  8032.        </xsl:with-param>
  8033.       </xsl:call-template>
  8034.       <xsl:call-template name = "ApplyItalicFieldNS">
  8035.        <xsl:with-param name = "data">
  8036.  
  8037.         <xsl:if test="string-length($tempFirst)>0 and string-length($tempSecond)>0">
  8038.           <xsl:call-template name="templ_prop_ListSeparator"/>
  8039.         </xsl:if>
  8040.  
  8041.         <xsl:if test="string-length($tempSecond)>0">
  8042.           <xsl:value-of select="$tempSecond"/>
  8043.         </xsl:if>
  8044.  
  8045.        </xsl:with-param>
  8046.       </xsl:call-template>
  8047.  
  8048.       <xsl:if test="string-length($tempThird)>0">
  8049.         <xsl:call-template name="templ_prop_APA_GeneralOpen"/>
  8050.         <xsl:value-of select="$tempThird"/>
  8051.         <xsl:call-template name="templ_prop_APA_GeneralClose"/>
  8052.       </xsl:if>
  8053.  
  8054.       <xsl:if test="string-length($tempFourth)>0">
  8055.         <xsl:if test="(string-length($tempFirst)>0 or string-length($tempSecond)>0) or string-length($tempThird)>0">
  8056.           <xsl:call-template name="templ_prop_ListSeparator"/>
  8057.         </xsl:if>
  8058.  
  8059.         <xsl:value-of select="$tempFourth"/>
  8060.       </xsl:if>
  8061.  
  8062.     </xsl:variable>
  8063.  
  8064.     <xsl:apply-templates select="msxsl:node-set($temp)" mode="outputHtml"/>
  8065.  
  8066.     <xsl:variable name="lastChar">
  8067.       <xsl:value-of select="substring($temp, string-length($temp))"/>
  8068.     </xsl:variable>
  8069.  
  8070.     <xsl:variable name="prop_EndChars">
  8071.       <xsl:call-template name="templ_prop_EndChars"/>
  8072.     </xsl:variable>
  8073.  
  8074.     <xsl:choose>
  8075.       <xsl:when test="string-length($temp) = 0">
  8076.       </xsl:when>
  8077.       <xsl:when test="contains($prop_EndChars, $lastChar)">
  8078.       </xsl:when>
  8079.       <xsl:otherwise>
  8080.         <xsl:call-template name="templ_prop_Dot"/>
  8081.       </xsl:otherwise>
  8082.     </xsl:choose>
  8083.  
  8084.   </xsl:template>
  8085.  
  8086.   <xsl:template name="templateH">
  8087.     <xsl:param name="first"/>
  8088.     <xsl:param name="second"/>
  8089.  
  8090.     <xsl:variable name="tempFirst">
  8091.       <xsl:call-template name="handleSpaces">
  8092.         <xsl:with-param name="field" select="$first"/>
  8093.       </xsl:call-template>
  8094.     </xsl:variable>
  8095.  
  8096.     <xsl:variable name="tempSecond">
  8097.       <xsl:call-template name="handleSpaces">
  8098.         <xsl:with-param name="field" select="$second"/>
  8099.       </xsl:call-template>
  8100.     </xsl:variable>
  8101.  
  8102.     <xsl:variable name="temp">
  8103.       <xsl:if test="string-length($tempFirst)>0">
  8104.         <xsl:call-template name = "ApplyItalicTitleNS">
  8105.          <xsl:with-param name = "data">
  8106.           <xsl:value-of select="$tempFirst"/>
  8107.        </xsl:with-param>
  8108.       </xsl:call-template>
  8109.       </xsl:if>
  8110.  
  8111.       <xsl:if test="string-length($tempFirst)>0 and string-length($tempSecond)>0">
  8112.         <xsl:call-template name="templ_prop_ListSeparator"/>
  8113.       </xsl:if>
  8114.  
  8115.       <xsl:if test="string-length($tempSecond)>0">
  8116.         <xsl:value-of select="$tempSecond"/>
  8117.       </xsl:if>
  8118.  
  8119.     </xsl:variable>
  8120.  
  8121.     <xsl:apply-templates select="msxsl:node-set($temp)" mode="outputHtml"/>
  8122.  
  8123.     <xsl:variable name="lastChar">
  8124.       <xsl:value-of select="substring($temp, string-length($temp))"/>
  8125.     </xsl:variable>
  8126.  
  8127.     <xsl:variable name="prop_EndChars">
  8128.       <xsl:call-template name="templ_prop_EndChars"/>
  8129.     </xsl:variable>
  8130.  
  8131.     <xsl:choose>
  8132.       <xsl:when test="string-length($temp) = 0">
  8133.       </xsl:when>
  8134.       <xsl:when test="contains($prop_EndChars, $lastChar)">
  8135.       </xsl:when>
  8136.       <xsl:otherwise>
  8137.         <xsl:call-template name="templ_prop_Dot"/>
  8138.       </xsl:otherwise>
  8139.     </xsl:choose>
  8140.  
  8141.   </xsl:template>
  8142.  
  8143.   <xsl:template name="formatDateCore">
  8144.     <xsl:param name="day"/>
  8145.     <xsl:param name="month"/>
  8146.     <xsl:param name="year"/>
  8147.     <xsl:param name="displayND"/>
  8148.  
  8149.     <xsl:param name="DMY"/>
  8150.     <xsl:param name="DM"/>
  8151.     <xsl:param name="MY"/>
  8152.     <xsl:param name="DY"/>
  8153.  
  8154.     <xsl:choose>
  8155.       <xsl:when test="string-length($year)=0">
  8156.         <xsl:if test="$displayND = 'yes'">
  8157.           <xsl:call-template name="templ_str_NoDateShortUnCap"/>
  8158.         </xsl:if>
  8159.       </xsl:when>
  8160.       <xsl:otherwise>
  8161.         <xsl:call-template name="formatDateCorePrivate">
  8162.           <xsl:with-param name="day" select="$day"/>
  8163.           <xsl:with-param name="month" select="$month"/>
  8164.           <xsl:with-param name="year" select="$year"/>
  8165.  
  8166.           <xsl:with-param name="DMY" select="$DMY"/>
  8167.           <xsl:with-param name="DM" select="$DM"/>
  8168.           <xsl:with-param name="MY" select="$MY"/>
  8169.           <xsl:with-param name="DY" select="$DY"/>
  8170.         </xsl:call-template>
  8171.       </xsl:otherwise>
  8172.     </xsl:choose>
  8173.  
  8174.   </xsl:template>
  8175.  
  8176.  
  8177.   <xsl:template name="formatDate">
  8178.     <xsl:param name="appendSpace"/>
  8179.     <xsl:call-template name="formatDateCore">
  8180.       <xsl:with-param name="day">
  8181.         <xsl:call-template name="handleSpaces">
  8182.           <xsl:with-param name="field" select="b:Day"/>
  8183.         </xsl:call-template>
  8184.       </xsl:with-param>
  8185.       <xsl:with-param name="month">
  8186.         <xsl:call-template name="handleSpaces">
  8187.           <xsl:with-param name="field" select="b:Month"/>
  8188.         </xsl:call-template>
  8189.       </xsl:with-param>
  8190.       <xsl:with-param name="year">
  8191.         <xsl:call-template name="handleSpaces">
  8192.           <xsl:with-param name="field" select="b:Year"/>
  8193.         </xsl:call-template>
  8194.       </xsl:with-param>
  8195.  
  8196.       <xsl:with-param name="DMY">
  8197.         <xsl:call-template name="templ_prop_APA_Date_DMY"/>
  8198.       </xsl:with-param>
  8199.       <xsl:with-param name="DM">
  8200.         <xsl:call-template name="templ_prop_APA_Date_DM"/>
  8201.       </xsl:with-param>
  8202.       <xsl:with-param name="MY">
  8203.         <xsl:call-template name="templ_prop_APA_Date_MY"/>
  8204.       </xsl:with-param>
  8205.       <xsl:with-param name="DY">
  8206.         <xsl:call-template name="templ_prop_APA_Date_DY"/>
  8207.       </xsl:with-param>
  8208.  
  8209.       <xsl:with-param name="displayND">yes</xsl:with-param>
  8210.     </xsl:call-template>
  8211.   </xsl:template>
  8212.  
  8213.   <xsl:template name="formatDateEmpty">
  8214.     <xsl:param name="appendSpace"/>
  8215.     <xsl:call-template name="formatDateCore">
  8216.       <xsl:with-param name="day">
  8217.         <xsl:call-template name="handleSpaces">
  8218.           <xsl:with-param name="field" select="b:Day"/>
  8219.         </xsl:call-template>
  8220.       </xsl:with-param>
  8221.       <xsl:with-param name="month">
  8222.         <xsl:call-template name="handleSpaces">
  8223.           <xsl:with-param name="field" select="b:Month"/>
  8224.         </xsl:call-template>
  8225.       </xsl:with-param>
  8226.       <xsl:with-param name="year">
  8227.         <xsl:call-template name="handleSpaces">
  8228.           <xsl:with-param name="field" select="b:Year"/>
  8229.         </xsl:call-template>
  8230.       </xsl:with-param>
  8231.  
  8232.       <xsl:with-param name="DMY">
  8233.         <xsl:call-template name="templ_prop_APA_Date_DMY"/>
  8234.       </xsl:with-param>
  8235.       <xsl:with-param name="DM">
  8236.         <xsl:call-template name="templ_prop_APA_Date_DM"/>
  8237.       </xsl:with-param>
  8238.       <xsl:with-param name="MY">
  8239.         <xsl:call-template name="templ_prop_APA_Date_MY"/>
  8240.       </xsl:with-param>
  8241.       <xsl:with-param name="DY">
  8242.         <xsl:call-template name="templ_prop_APA_Date_DY"/>
  8243.       </xsl:with-param>
  8244.  
  8245.       <xsl:with-param name="displayND">no</xsl:with-param>
  8246.     </xsl:call-template>
  8247.   </xsl:template>
  8248.  
  8249.   <xsl:template name="formatDateAccessed">
  8250.     <xsl:call-template name="formatDateCore">
  8251.       <xsl:with-param name="day">
  8252.         <xsl:call-template name="handleSpaces">
  8253.           <xsl:with-param name="field" select="b:DayAccessed"/>
  8254.         </xsl:call-template>
  8255.       </xsl:with-param>
  8256.       <xsl:with-param name="month">
  8257.         <xsl:call-template name="handleSpaces">
  8258.           <xsl:with-param name="field" select="b:MonthAccessed"/>
  8259.         </xsl:call-template>
  8260.       </xsl:with-param>
  8261.       <xsl:with-param name="year">
  8262.         <xsl:call-template name="handleSpaces">
  8263.           <xsl:with-param name="field" select="b:YearAccessed"/>
  8264.         </xsl:call-template>
  8265.       </xsl:with-param>
  8266.  
  8267.       <xsl:with-param name="DMY">
  8268.         <xsl:call-template name="templ_prop_APA_DateAccessed_DMY"/>
  8269.       </xsl:with-param>
  8270.       <xsl:with-param name="DM">
  8271.         <xsl:call-template name="templ_prop_APA_DateAccessed_DM"/>
  8272.       </xsl:with-param>
  8273.       <xsl:with-param name="MY">
  8274.         <xsl:call-template name="templ_prop_APA_DateAccessed_MY"/>
  8275.       </xsl:with-param>
  8276.       <xsl:with-param name="DY">
  8277.         <xsl:call-template name="templ_prop_APA_DateAccessed_DY"/>
  8278.       </xsl:with-param>
  8279.  
  8280.       <xsl:with-param name="displayND">no</xsl:with-param>
  8281.     </xsl:call-template>
  8282.   </xsl:template>
  8283.  
  8284.   <xsl:template name="formatDateCourt">
  8285.     <xsl:call-template name="formatDateCore">
  8286.       <xsl:with-param name="day">
  8287.         <xsl:call-template name="handleSpaces">
  8288.           <xsl:with-param name="field" select="b:Day"/>
  8289.         </xsl:call-template>
  8290.       </xsl:with-param>
  8291.       <xsl:with-param name="month">
  8292.         <xsl:call-template name="handleSpaces">
  8293.           <xsl:with-param name="field" select="b:Month"/>
  8294.         </xsl:call-template>
  8295.       </xsl:with-param>
  8296.       <xsl:with-param name="year">
  8297.         <xsl:call-template name="handleSpaces">
  8298.           <xsl:with-param name="field" select="b:Year"/>
  8299.         </xsl:call-template>
  8300.       </xsl:with-param>
  8301.  
  8302.       <xsl:with-param name="DMY">
  8303.         <xsl:call-template name="templ_prop_APA_DateCourt_DMY"/>
  8304.       </xsl:with-param>
  8305.       <xsl:with-param name="DM">
  8306.         <xsl:call-template name="templ_prop_APA_DateCourt_DM"/>
  8307.       </xsl:with-param>
  8308.       <xsl:with-param name="MY">
  8309.         <xsl:call-template name="templ_prop_APA_DateCourt_MY"/>
  8310.       </xsl:with-param>
  8311.       <xsl:with-param name="DY">
  8312.         <xsl:call-template name="templ_prop_APA_DateCourt_DY"/>
  8313.       </xsl:with-param>
  8314.     </xsl:call-template>
  8315.   </xsl:template>
  8316.  
  8317.   <xsl:template name="templateCPY">
  8318.     <xsl:call-template name="templateA">
  8319.       <xsl:with-param name="first" select="b:City"/>
  8320.       <xsl:with-param name="second" select="b:Publisher"/>
  8321.       <xsl:with-param name="third" select="b:Year"/>
  8322.     </xsl:call-template>
  8323.   </xsl:template>
  8324.  
  8325.   <xsl:template name="templateRIDC">
  8326.     <xsl:call-template name='PrintList'>
  8327.         <xsl:with-param name="list">
  8328.             <Items>
  8329.                 <TextItem>
  8330.                     <xsl:value-of select ="b:ThesisType"/>
  8331.                 </TextItem>
  8332.                 <TextItem>
  8333.                     <xsl:value-of select ="b:Institution"/>
  8334.                 </TextItem>
  8335.                 <TextItem>
  8336.                     <xsl:value-of select ="b:Department"/>
  8337.                 </TextItem>
  8338.                 <TextItem>
  8339.                     <xsl:value-of select ="b:City"/>
  8340.                 </TextItem>
  8341.             </Items>
  8342.         </xsl:with-param>
  8343.     </xsl:call-template>
  8344.   </xsl:template>
  8345.  
  8346.   <xsl:template name="templateCSCPu">
  8347.     <xsl:variable name="csc">
  8348.       <xsl:call-template name="templateCSC2"/>
  8349.     </xsl:variable>
  8350.     <xsl:call-template name="templateB">
  8351.       <xsl:with-param name="first" select="$csc"/>
  8352.       <xsl:with-param name="second" select="b:Publisher"/>
  8353.     </xsl:call-template>
  8354.   </xsl:template>
  8355.  
  8356.   <xsl:template name="templateCSCPr">
  8357.     <xsl:variable name="csc">
  8358.       <xsl:call-template name="templateCSC2"/>
  8359.     </xsl:variable>
  8360.  
  8361.     <xsl:variable name="producerName">
  8362.       <xsl:call-template name="formatProducerName"/>
  8363.     </xsl:variable>
  8364.  
  8365.     <xsl:variable name="prod">
  8366.       <xsl:choose>
  8367.         <xsl:when test="string-length($producerName)>0">
  8368.           <xsl:value-of select="$producerName"/>
  8369.         </xsl:when>
  8370.         <xsl:otherwise>
  8371.           <xsl:value-of select="b:ProductionCompany"/>
  8372.         </xsl:otherwise>
  8373.       </xsl:choose>
  8374.     </xsl:variable>
  8375.  
  8376.     <xsl:call-template name="templateB">
  8377.       <xsl:with-param name="first" select="$csc"/>
  8378.       <xsl:with-param name="second" select="$prod"/>
  8379.     </xsl:call-template>
  8380.   </xsl:template>
  8381.  
  8382.  
  8383.   <xsl:template name="templateID">
  8384.     <xsl:call-template name="templateC">
  8385.       <xsl:with-param name="first" select="b:Institution"/>
  8386.       <xsl:with-param name="second" select="b:Department"/>
  8387.     </xsl:call-template>
  8388.   </xsl:template>
  8389.  
  8390.   <xsl:template name="templateCP">
  8391.     <xsl:call-template name="templateB">
  8392.       <xsl:with-param name="first" select="b:City"/>
  8393.       <xsl:with-param name="second" select="b:Publisher"/>
  8394.     </xsl:call-template>
  8395.   </xsl:template>
  8396.  
  8397.   <xsl:template name="templateTCSC">
  8398.     <xsl:variable name="csc">
  8399.       <xsl:call-template name="templateCSC2"/>
  8400.     </xsl:variable>
  8401.     <xsl:call-template name="templateC">
  8402.       <xsl:with-param name="first" select="b:Theater"/>
  8403.       <xsl:with-param name="second" select="$csc"/>
  8404.     </xsl:call-template>
  8405.   </xsl:template>
  8406.  
  8407.   <xsl:template name="templateICSC">
  8408.     <xsl:variable name="csc">
  8409.       <xsl:call-template name="templateCSC2"/>
  8410.     </xsl:variable>
  8411.     <xsl:call-template name="templateC">
  8412.       <xsl:with-param name="first" select="b:Institution"/>
  8413.       <xsl:with-param name="second" select="$csc"/>
  8414.     </xsl:call-template>
  8415.   </xsl:template>
  8416.  
  8417.   <xsl:template name="templateCD">
  8418.     <xsl:call-template name="templateB">
  8419.       <xsl:with-param name="first" select="b:CountryRegion"/>
  8420.       <xsl:with-param name="second" select="b:Distributor"/>
  8421.     </xsl:call-template>
  8422.   </xsl:template>
  8423.  
  8424.   <xsl:template name="templateCPPn">
  8425.     <xsl:variable name="patentTemp">
  8426.       <xsl:call-template name="handleSpaces">
  8427.         <xsl:with-param name="field" select="b:PatentNumber"/>
  8428.       </xsl:call-template>
  8429.     </xsl:variable>
  8430.  
  8431.     <xsl:variable name="str_PatentCap">
  8432.       <xsl:call-template name="templ_str_PatentCap"/>
  8433.     </xsl:variable>
  8434.  
  8435.     <xsl:variable name="patent">
  8436.       <xsl:choose>
  8437.         <xsl:when test="string-length($patentTemp)>0">
  8438.           <xsl:call-template name="StringFormat">
  8439.             <xsl:with-param name="format" select="$str_PatentCap"/>
  8440.             <xsl:with-param name="parameters">
  8441.               <t:params>
  8442.                 <t:param>
  8443.                   <xsl:value-of select="$patentTemp"/>
  8444.                 </t:param>
  8445.               </t:params>
  8446.             </xsl:with-param>
  8447.           </xsl:call-template>
  8448.         </xsl:when>
  8449.       </xsl:choose>
  8450.     </xsl:variable>
  8451.     <xsl:call-template name="templateB">
  8452.       <xsl:with-param name="first" select="b:CountryRegion"/>
  8453.       <xsl:with-param name="second" select="$patent"/>
  8454.     </xsl:call-template>
  8455.   </xsl:template>
  8456.  
  8457.   <xsl:template name="templateCC">
  8458.     <xsl:call-template name="templateB">
  8459.       <xsl:with-param name="first" select="b:CountryRegion"/>
  8460.       <xsl:with-param name="second" select="b:Court"/>
  8461.     </xsl:call-template>
  8462.   </xsl:template>
  8463.  
  8464.   <xsl:template name="templateTV">
  8465.     <xsl:call-template name="templateCItalic">
  8466.       <xsl:with-param name="first" select="b:Title"/>
  8467.       <xsl:with-param name="second" select="b:Version"/>
  8468.     </xsl:call-template>
  8469.   </xsl:template>
  8470.  
  8471.   <xsl:template name="templateSC">
  8472.     <xsl:call-template name="templateC">
  8473.       <xsl:with-param name="first" select="b:Station"/>
  8474.       <xsl:with-param name="second" select="b:City"/>
  8475.     </xsl:call-template>
  8476.   </xsl:template>
  8477.  
  8478.  
  8479.   <xsl:template name="templatePVEP">
  8480.     <xsl:call-template name="templateF">
  8481.       <xsl:with-param name="first" select="b:PublicationTitle"/>
  8482.       <xsl:with-param name="second" select="b:Volume"/>
  8483.       <xsl:with-param name="third" select="b:Edition"/>
  8484.       
  8485.       <xsl:with-param name="fifth" select="b:Pages"/>
  8486.       <xsl:with-param name="thirdNoItalic" select="'yes'"/>
  8487.     </xsl:call-template>
  8488.   </xsl:template>
  8489.  
  8490.   <xsl:template name="templatePVIEP">
  8491.     <xsl:call-template name="templateF">
  8492.       <xsl:with-param name="first" select="b:PublicationTitle"/>
  8493.       <xsl:with-param name="second" select="b:Volume"/>
  8494.       <xsl:with-param name="third" select="b:Issue"/>
  8495.       <xsl:with-param name="fourth" select="b:Edition"/>
  8496.       <xsl:with-param name="fifth" select="b:Pages"/>
  8497.     </xsl:call-template>
  8498.   </xsl:template>
  8499.  
  8500.   <xsl:template name="templateJVIP">
  8501.     <xsl:call-template name="templateG">
  8502.       <xsl:with-param name="first" select="b:JournalName"/>
  8503.       <xsl:with-param name="second" select="b:Volume"/>
  8504.       <xsl:with-param name="third" select="b:Issue"/>
  8505.       <xsl:with-param name="fourth" select="b:Pages"/>
  8506.     </xsl:call-template>
  8507.   </xsl:template>
  8508.  
  8509.   <xsl:template name="templatePTVI">
  8510.     <xsl:param name="pages"/>
  8511.     <xsl:call-template name="templateG">
  8512.       <xsl:with-param name="first" select="b:PeriodicalTitle"/>
  8513.       <xsl:with-param name="second" select="b:Volume"/>
  8514.       <xsl:with-param name="third" select="b:Issue"/>
  8515.       <xsl:with-param name="fourth" select="$pages"/>
  8516.       <xsl:with-param name="addSpace" select="'yes'"/>
  8517.     </xsl:call-template>
  8518.   </xsl:template>
  8519.  
  8520.   <xsl:template name="templatePrP">
  8521.     <xsl:call-template name="templateH">
  8522.       <xsl:with-param name="first" select="b:BroadcastTitle"/>
  8523.       <xsl:with-param name="second" select="b:Pages"/>
  8524.     </xsl:call-template>
  8525.   </xsl:template>
  8526.  
  8527.  
  8528.  
  8529.  
  8530.  
  8531.   <xsl:template name="templateRDAFU">
  8532.  
  8533.  
  8534.     <xsl:variable name="dac">
  8535.       <xsl:call-template name="formatDateAccessed"/>
  8536.     </xsl:variable>
  8537.  
  8538.     <xsl:variable name="internetSiteTitleAndURL">
  8539.  
  8540.       <xsl:if test="string-length(b:InternetSiteTitle)>0">
  8541.           <xsl:if test="string-length(b:URL)>0">
  8542.           <xsl:value-of select="b:InternetSiteTitle"/>
  8543.         </xsl:if>
  8544.           <xsl:if test="string-length(b:URL)=0">
  8545.           <xsl:call-template name="appendField_Dot">
  8546.             <xsl:with-param name="field" select="b:InternetSiteTitle"/>
  8547.           </xsl:call-template>
  8548.         </xsl:if>
  8549.       </xsl:if>
  8550.  
  8551.       <xsl:if test="string-length(b:InternetSiteTitle)>0 and string-length(b:URL)>0">
  8552.         <xsl:call-template name="templ_prop_EnumSeparator"/>
  8553.       </xsl:if>
  8554.  
  8555.       <xsl:if test="string-length(b:URL)>0">
  8556.         <xsl:value-of select="b:URL"/>
  8557.       </xsl:if>
  8558.     </xsl:variable>
  8559.  
  8560.     <xsl:variable name="str_RetrievedFromCap">
  8561.       <xsl:call-template name="templ_str_RetrievedFromCap"/>
  8562.     </xsl:variable>
  8563.  
  8564.     <xsl:variable name="str_RetrievedCap">
  8565.       <xsl:call-template name="templ_str_RetrievedCap"/>
  8566.     </xsl:variable>
  8567.  
  8568.     <xsl:variable name="str_FromCap">
  8569.       <xsl:call-template name="templ_str_FromCap"/>
  8570.     </xsl:variable>
  8571.  
  8572.     <xsl:variable name="temp">
  8573.       <xsl:choose>
  8574.         <xsl:when test="string-length($dac)>0 and string-length($internetSiteTitleAndURL)>0">
  8575.           <xsl:call-template name="StringFormat">
  8576.             <xsl:with-param name="format" select="$str_RetrievedFromCap"/>
  8577.             <xsl:with-param name="parameters">
  8578.               <t:params>
  8579.                 <t:param>
  8580.                   <xsl:value-of select="$dac"/>
  8581.                 </t:param>
  8582.                 <t:param>
  8583.                   <xsl:value-of select="$internetSiteTitleAndURL"/>
  8584.                 </t:param>
  8585.               </t:params>
  8586.             </xsl:with-param>
  8587.           </xsl:call-template>
  8588.         </xsl:when>
  8589.  
  8590.         <xsl:when test="string-length($dac)>0">
  8591.           <xsl:call-template name="StringFormat">
  8592.             <xsl:with-param name="format" select="$str_RetrievedCap"/>
  8593.             <xsl:with-param name="parameters">
  8594.               <t:params>
  8595.                 <t:param>
  8596.                   <xsl:value-of select="$dac"/>
  8597.                 </t:param>
  8598.               </t:params>
  8599.             </xsl:with-param>
  8600.           </xsl:call-template>
  8601.         </xsl:when>
  8602.  
  8603.         <xsl:when test="string-length($internetSiteTitleAndURL)>0">
  8604.           <xsl:call-template name="StringFormat">
  8605.             <xsl:with-param name="format" select="$str_FromCap"/>
  8606.             <xsl:with-param name="parameters">
  8607.               <t:params>
  8608.                 <t:param>
  8609.                   <xsl:value-of select="$internetSiteTitleAndURL"/>
  8610.                 </t:param>
  8611.               </t:params>
  8612.             </xsl:with-param>
  8613.           </xsl:call-template>
  8614.         </xsl:when>
  8615.       </xsl:choose>
  8616.     </xsl:variable>
  8617.     <xsl:value-of select="$temp"/>
  8618.   </xsl:template>
  8619.  
  8620.   <xsl:template name="handleHyphens">
  8621.     <xsl:param name="name"/>
  8622.  
  8623.     <xsl:variable name="prop_APA_Hyphens">
  8624.       <xsl:call-template name="templ_prop_Hyphens"/>
  8625.     </xsl:variable>
  8626.  
  8627.     <xsl:if test="string-length($name)>=2">
  8628.       <xsl:choose>
  8629.         <xsl:when test="contains($prop_APA_Hyphens, substring($name, 1, 1))">
  8630.           <xsl:value-of select="substring($name, 1, 2)"/>
  8631.           <xsl:call-template name="templ_prop_DotInitial"/>
  8632.  
  8633.           <xsl:call-template name="handleHyphens">
  8634.             <xsl:with-param name="name" select="substring($name, 3)"/>
  8635.           </xsl:call-template>
  8636.         </xsl:when>
  8637.  
  8638.         <xsl:otherwise>
  8639.           <xsl:call-template name="handleHyphens">
  8640.             <xsl:with-param name="name" select="substring($name, 2)"/>
  8641.           </xsl:call-template>
  8642.         </xsl:otherwise>
  8643.       </xsl:choose>
  8644.  
  8645.     </xsl:if>
  8646.  
  8647.   </xsl:template>
  8648.  
  8649.   <xsl:template name="formatNameInitial">
  8650.     <xsl:param name="name"/>
  8651.     <xsl:variable name="temp">
  8652.       <xsl:call-template name="handleSpaces">
  8653.         <xsl:with-param name="field" select="$name"/>
  8654.       </xsl:call-template>
  8655.     </xsl:variable>
  8656.  
  8657.     <xsl:variable name="prop_APA_Hyphens">
  8658.       <xsl:call-template name="templ_prop_Hyphens"/>
  8659.     </xsl:variable>
  8660.  
  8661.     <xsl:if test="string-length($temp)>0">
  8662.  
  8663.       <xsl:variable name="tempWithoutSpaces">
  8664.         <xsl:value-of select="translate($temp, '  ', '')"/>
  8665.         
  8666.       </xsl:variable>
  8667.  
  8668.       <xsl:if test="not(contains($prop_APA_Hyphens, substring($tempWithoutSpaces, 1, 1)))">
  8669.         <xsl:value-of select="substring($tempWithoutSpaces, 1, 1)"/>
  8670.         <xsl:call-template name="templ_prop_DotInitial"/>
  8671.       </xsl:if>
  8672.  
  8673.       <xsl:call-template name="handleHyphens">
  8674.         <xsl:with-param name="name" select="$tempWithoutSpaces"/>
  8675.       </xsl:call-template>
  8676.     </xsl:if>
  8677.   </xsl:template>
  8678.  
  8679.  
  8680.  
  8681.   <xsl:template name="formatNameOneItem">
  8682.     <xsl:param name="format"/>
  8683.  
  8684.     <xsl:choose>
  8685.       <xsl:when test="$format = 'F'">
  8686.         <xsl:value-of select="b:First"/>
  8687.       </xsl:when>
  8688.       <xsl:when test="$format = 'L'">
  8689.         <xsl:value-of select="b:Last"/>
  8690.       </xsl:when>
  8691.       <xsl:when test="$format = 'M'">
  8692.         <xsl:value-of select="b:Middle"/>
  8693.       </xsl:when>
  8694.       <xsl:when test="$format = 'f'">
  8695.         <xsl:call-template name="formatNameInitial">
  8696.           <xsl:with-param name="name" select="b:First"/>
  8697.         </xsl:call-template>
  8698.       </xsl:when>
  8699.       <xsl:when test="$format = 'm'">
  8700.         <xsl:call-template name="formatNameInitial">
  8701.           <xsl:with-param name="name" select="b:Middle"/>
  8702.         </xsl:call-template>
  8703.       </xsl:when>
  8704.       <xsl:when test="$format = 'l'">
  8705.         <xsl:call-template name="formatNameInitial">
  8706.           <xsl:with-param name="name" select="b:Last"/>
  8707.         </xsl:call-template>
  8708.       </xsl:when>
  8709.     </xsl:choose>
  8710.  
  8711.   </xsl:template>
  8712.  
  8713.  
  8714.   <xsl:template name="formatMainAuthor">
  8715.     <xsl:call-template name="formatNameCore">
  8716.       <xsl:with-param name="FML">
  8717.         <xsl:call-template name="templ_prop_APA_MainAuthors_FML"/>
  8718.       </xsl:with-param>
  8719.       <xsl:with-param name="FM">
  8720.         <xsl:call-template name="templ_prop_APA_MainAuthors_FM"/>
  8721.       </xsl:with-param>
  8722.       <xsl:with-param name="ML">
  8723.         <xsl:call-template name="templ_prop_APA_MainAuthors_ML"/>
  8724.       </xsl:with-param>
  8725.       <xsl:with-param name="FL">
  8726.         <xsl:call-template name="templ_prop_APA_MainAuthors_FL"/>
  8727.       </xsl:with-param>
  8728.       <xsl:with-param name="upperLast">no</xsl:with-param>
  8729.       <xsl:with-param name="withDot">yes</xsl:with-param>
  8730.  
  8731.     </xsl:call-template>
  8732.   </xsl:template>
  8733.  
  8734.  
  8735.   <xsl:template name="formatSecondaryName">
  8736.     <xsl:call-template name="formatNameCore">
  8737.       <xsl:with-param name="FML">
  8738.         <xsl:call-template name="templ_prop_APA_SecondaryAuthors_FML"/>
  8739.       </xsl:with-param>
  8740.       <xsl:with-param name="FM">
  8741.         <xsl:call-template name="templ_prop_APA_SecondaryAuthors_FM"/>
  8742.       </xsl:with-param>
  8743.       <xsl:with-param name="ML">
  8744.         <xsl:call-template name="templ_prop_APA_SecondaryAuthors_ML"/>
  8745.       </xsl:with-param>
  8746.       <xsl:with-param name="FL">
  8747.         <xsl:call-template name="templ_prop_APA_SecondaryAuthors_FL"/>
  8748.       </xsl:with-param>
  8749.       <xsl:with-param name="upperLast">no</xsl:with-param>
  8750.       <xsl:with-param name="withDot">yes</xsl:with-param>
  8751.     </xsl:call-template>
  8752.   </xsl:template>
  8753.  
  8754.   <xsl:template name="formatPersonSeperatorMain">
  8755.     <xsl:param name="isLast"/>
  8756.  
  8757.     <xsl:choose>
  8758.       <xsl:when test="6 >= count(../b:Person) and position() = count(../b:Person) - 1">
  8759.         <xsl:variable name="noCommaBeforeAnd">
  8760.           <xsl:call-template name="templ_prop_NoCommaBeforeAnd" />
  8761.         </xsl:variable>
  8762.         <xsl:choose>
  8763.           <xsl:when test="$noCommaBeforeAnd != 'yes'">
  8764.             <xsl:call-template name="templ_prop_AuthorsSeparator"/>
  8765.           </xsl:when>
  8766.           <xsl:otherwise>
  8767.             <xsl:call-template name="templ_prop_Space"/>
  8768.           </xsl:otherwise>
  8769.         </xsl:choose>
  8770.  
  8771.         <xsl:if test="string-length($isLast)=0 or $isLast=true()">
  8772.           <xsl:call-template name="templ_prop_APA_BeforeLastAuthor"/>
  8773.           <xsl:call-template name="templ_prop_Space"/>
  8774.         </xsl:if>
  8775.       </xsl:when>
  8776.       <xsl:when test="6 > position() and position() != count(../b:Person)">
  8777.         <xsl:call-template name="templ_prop_AuthorsSeparator"/>
  8778.       </xsl:when>
  8779.       <xsl:when test="count(../b:Person) > 6 and position() = count(../b:Person)">
  8780.         <xsl:variable name="noCommaBeforeAnd">
  8781.           <xsl:call-template name="templ_prop_NoCommaBeforeAnd" />
  8782.         </xsl:variable>
  8783.         <xsl:choose>
  8784.           <xsl:when test="$noCommaBeforeAnd != 'yes'">
  8785.             <xsl:call-template name="templ_prop_AuthorsSeparator"/>
  8786.           </xsl:when>
  8787.           <xsl:otherwise>
  8788.             <xsl:call-template name="templ_prop_Space"/>
  8789.           </xsl:otherwise>
  8790.         </xsl:choose>
  8791.         <xsl:call-template name="templ_str_AndOthersUnCap"/>
  8792.       </xsl:when>
  8793.       <xsl:when test="position()>6">
  8794.       </xsl:when>
  8795.     </xsl:choose>
  8796.   </xsl:template>
  8797.  
  8798.   <xsl:template name="formatPersonSeperatorSecondary">
  8799.     <xsl:param name="isLast"/>
  8800.  
  8801.     <xsl:choose>
  8802.       <xsl:when test="6 >= count(../b:Person) and position() = count(../b:Person) - 1">
  8803.         <xsl:variable name="noCommaBeforeAnd">
  8804.           <xsl:call-template name="templ_prop_NoCommaBeforeAnd" />
  8805.         </xsl:variable>
  8806.         <xsl:choose>
  8807.           <xsl:when test="$noCommaBeforeAnd != 'yes'">
  8808.             <xsl:call-template name="templ_prop_AuthorsSeparator"/>
  8809.           </xsl:when>
  8810.           <xsl:otherwise>
  8811.             <xsl:call-template name="templ_prop_Space"/>
  8812.           </xsl:otherwise>
  8813.         </xsl:choose>
  8814.         <xsl:if test="string-length($isLast)=0 or $isLast=true()">
  8815.           <xsl:call-template name="templ_prop_APA_BeforeLastAuthor"/>
  8816.           <xsl:call-template name="templ_prop_Space"/>
  8817.         </xsl:if>
  8818.       </xsl:when>
  8819.       <xsl:when test="6 > position() and position() != count(../b:Person)">
  8820.         <xsl:call-template name="templ_prop_AuthorsSeparator"/>
  8821.       </xsl:when>
  8822.       <xsl:when test="count(../b:Person) > 6 and position() = count(../b:Person)">
  8823.         <xsl:variable name="noCommaBeforeAnd">
  8824.           <xsl:call-template name="templ_prop_NoCommaBeforeAnd" />
  8825.         </xsl:variable>
  8826.         <xsl:choose>
  8827.           <xsl:when test="$noCommaBeforeAnd != 'yes'">
  8828.             <xsl:call-template name="templ_prop_AuthorsSeparator"/>
  8829.           </xsl:when>
  8830.           <xsl:otherwise>
  8831.             <xsl:call-template name="templ_prop_Space"/>
  8832.           </xsl:otherwise>
  8833.         </xsl:choose>
  8834.         <xsl:call-template name="templ_str_AndOthersUnCap"/>
  8835.       </xsl:when>
  8836.       <xsl:when test="position()>6">
  8837.       </xsl:when>
  8838.     </xsl:choose>
  8839.   </xsl:template>
  8840.  
  8841.  
  8842.   <xsl:template name="formatPersonsAuthor">
  8843.     <xsl:if test="string-length(b:Corporate)=0">
  8844.         <xsl:for-each select="b:NameList/b:Person">
  8845.           <xsl:if test="position() = 1">
  8846.             <xsl:call-template name="formatMainAuthor"/>
  8847.           </xsl:if>
  8848.           <xsl:if test="6 >= position() and position() != 1">
  8849.             <xsl:call-template name="formatMainAuthor"/>
  8850.           </xsl:if>
  8851.           <xsl:call-template name="formatPersonSeperatorMain"/>
  8852.         </xsl:for-each>
  8853.     </xsl:if>
  8854.  
  8855.     <xsl:if test="string-length(b:Corporate)>0">
  8856.         <xsl:value-of select="b:Corporate"/>
  8857.     </xsl:if>
  8858.   </xsl:template>
  8859.  
  8860.   <xsl:template name="formatPersons">
  8861.     <xsl:if test="string-length(b:Corporate)=0">
  8862.         <xsl:for-each select="b:NameList/b:Person">
  8863.           <xsl:if test="position() = 1">
  8864.             <xsl:call-template name="formatSecondaryName"/>
  8865.           </xsl:if>
  8866.           <xsl:if test="6 >= position() and position() != 1">
  8867.             <xsl:call-template name="formatSecondaryName"/>
  8868.           </xsl:if>
  8869.           <xsl:call-template name="formatPersonSeperatorSecondary"/>
  8870.         </xsl:for-each>
  8871.     </xsl:if>    
  8872.     
  8873.     <xsl:if test="string-length(b:Corporate)>0">
  8874.         <xsl:value-of select="b:Corporate"/>
  8875.     </xsl:if>    
  8876.   </xsl:template>
  8877.  
  8878.   <xsl:template name="formatPersons2">
  8879.     <xsl:param name="name"/>
  8880.     <xsl:param name="before"/>
  8881.     <xsl:param name="isLast"/>
  8882.  
  8883.     <xsl:if test="string-length(b:Author/*[local-name()=$name]/b:Corporate)=0">
  8884.         <xsl:for-each select="b:Author/*[local-name()=$name]/b:NameList/b:Person">
  8885.           <xsl:if test="position() = 1">
  8886.             <xsl:if test="$before=true() and $isLast=true() and count(../b:Person) = 1">
  8887.               <xsl:call-template name="templ_prop_APA_BeforeLastAuthor"/>
  8888.               <xsl:call-template name="templ_prop_Space"/>
  8889.             </xsl:if>
  8890.             <xsl:call-template name="formatSecondaryName"/>
  8891.           </xsl:if>
  8892.           <xsl:if test="6 >= position() and position() != 1">
  8893.             <xsl:call-template name="formatSecondaryName"/>
  8894.           </xsl:if>
  8895.           <xsl:call-template name="formatPersonSeperatorSecondary">
  8896.             <xsl:with-param name="isLast" select="$isLast"/>
  8897.           </xsl:call-template>
  8898.         </xsl:for-each>
  8899.     </xsl:if>
  8900.  
  8901.     <xsl:if test="string-length(b:Author/*[local-name()=$name]/b:Corporate)>0">
  8902.         <xsl:value-of select="b:Author/*[local-name()=$name]/b:Corporate"/>
  8903.     </xsl:if>
  8904.   </xsl:template>
  8905.  
  8906.  
  8907.   <xsl:template name="formatPersonsAuthor2">
  8908.     <xsl:param name="name"/>
  8909.     <xsl:param name="before"/>
  8910.     <xsl:param name="isLast"/>
  8911.  
  8912.     <xsl:if test="string-length(b:Author/*[local-name()=$name]/b:Corporate)=0">
  8913.         <xsl:for-each select="b:Author/*[local-name()=$name]/b:NameList/b:Person">
  8914.           <xsl:if test="position() = 1">
  8915.             <xsl:if test="$before=true() and $isLast=true() and count(../b:Person) = 1">
  8916.               <xsl:call-template name="templ_prop_APA_BeforeLastAuthor"/>
  8917.               <xsl:call-template name="templ_prop_Space"/>
  8918.             </xsl:if>
  8919.             <xsl:call-template name="formatMainAuthor"/>
  8920.           </xsl:if>
  8921.           <xsl:if test="6 >= position() and position() != 1">
  8922.             <xsl:call-template name="formatMainAuthor"/>
  8923.           </xsl:if>
  8924.           <xsl:call-template name="formatPersonSeperatorMain">
  8925.             <xsl:with-param name="isLast" select="$isLast"/>
  8926.           </xsl:call-template>
  8927.         </xsl:for-each>
  8928.     </xsl:if>    
  8929.     
  8930.     <xsl:if test="string-length(b:Author/*[local-name()=$name]/b:Corporate)>0">
  8931.         <xsl:value-of select="b:Author/*[local-name()=$name]/b:Corporate"/>
  8932.     </xsl:if>    
  8933.   </xsl:template>
  8934.  
  8935.  
  8936.  
  8937.  
  8938.   <xsl:template name="formatProducerName">
  8939.     <xsl:for-each select="b:Author/b:ProducerName">
  8940.       <xsl:call-template name="formatPersons"/>
  8941.     </xsl:for-each>
  8942.   </xsl:template>
  8943.  
  8944.   <xsl:template name="formatAuthor">
  8945.     <xsl:for-each select="b:Author/b:Author">
  8946.       <xsl:call-template name="formatPersonsAuthor"/>
  8947.     </xsl:for-each>
  8948.   </xsl:template>
  8949.  
  8950.   <xsl:template name="formatEditorLF">
  8951.     <xsl:for-each select="b:Author/b:Editor">
  8952.       <xsl:call-template name="formatPersonsAuthor"/>
  8953.     </xsl:for-each>
  8954.   </xsl:template>
  8955.  
  8956.   <xsl:template name="formatEditor">
  8957.     <xsl:for-each select="b:Author/b:Editor">
  8958.       <xsl:call-template name="formatPersons"/>
  8959.     </xsl:for-each>
  8960.   </xsl:template>
  8961.  
  8962.   <xsl:template name="formatTranslator">
  8963.     <xsl:for-each select="b:Author/b:Translator">
  8964.       <xsl:call-template name="formatPersons"/>
  8965.     </xsl:for-each>
  8966.   </xsl:template>
  8967.  
  8968.   <xsl:template name="formatTranslatorLF">
  8969.     <xsl:for-each select="b:Author/b:Translator">
  8970.       <xsl:call-template name="formatPersonsAuthor"/>
  8971.     </xsl:for-each>
  8972.   </xsl:template>
  8973.  
  8974.  
  8975.  
  8976.  
  8977.   <xsl:template name="formatManySecondary">
  8978.  
  8979.     <xsl:param name="useSquareBrackets"/>
  8980.  
  8981.     <xsl:param name="name1"/>
  8982.     <xsl:param name="sufixS1"/>
  8983.     <xsl:param name="sufixM1"/>
  8984.  
  8985.     <xsl:param name="name2"/>
  8986.     <xsl:param name="sufixS2"/>
  8987.     <xsl:param name="sufixM2"/>
  8988.  
  8989.     <xsl:param name="name3"/>
  8990.     <xsl:param name="sufixS3"/>
  8991.     <xsl:param name="sufixM3"/>
  8992.  
  8993.         <xsl:param name="special3"/>
  8994.     
  8995.         <xsl:variable name="count1">
  8996.             <xsl:if test="string-length($name1)>0">
  8997.                 <xsl:if  test="string-length(b:Author/*[local-name()=$name1]/b:Corporate)>0">
  8998.                     <xsl:text>1</xsl:text>
  8999.                 </xsl:if>
  9000.                 <xsl:if  test="string-length(b:Author/*[local-name()=$name1]/b:Corporate)=0">
  9001.                     <xsl:value-of select="count(b:Author/*[local-name()=$name1]/b:NameList/b:Person)"/>
  9002.                 </xsl:if>
  9003.             </xsl:if>
  9004.             <xsl:if test="string-length($name1)=0">
  9005.                 <xsl:text>0</xsl:text>
  9006.             </xsl:if>
  9007.         </xsl:variable>
  9008.  
  9009.         <xsl:variable name="count2">
  9010.             <xsl:if test="string-length($name2)>0">
  9011.                 <xsl:if  test="string-length(b:Author/*[local-name()=$name2]/b:Corporate)>0">
  9012.                     <xsl:text>1</xsl:text>
  9013.                 </xsl:if>
  9014.                 <xsl:if  test="string-length(b:Author/*[local-name()=$name2]/b:Corporate)=0">
  9015.                     <xsl:value-of select="count(b:Author/*[local-name()=$name2]/b:NameList/b:Person)"/>
  9016.                 </xsl:if>
  9017.             </xsl:if>
  9018.             <xsl:if test="string-length($name2)=0">
  9019.                 <xsl:text>0</xsl:text>
  9020.             </xsl:if>
  9021.         </xsl:variable>
  9022.  
  9023.         <xsl:variable name="count3">
  9024.             <xsl:choose>
  9025.                 <xsl:when test="string-length($name3)>0">
  9026.                     <xsl:if  test="string-length(b:Author/*[local-name()=$name3]/b:Corporate)>0">
  9027.                         <xsl:text>1</xsl:text>
  9028.                     </xsl:if>
  9029.                     <xsl:if  test="string-length(b:Author/*[local-name()=$name3]/b:Corporate)=0">
  9030.                         <xsl:value-of select="count(b:Author/*[local-name()=$name3]/b:NameList/b:Person)"/>
  9031.                     </xsl:if>
  9032.                 </xsl:when>
  9033.                 <xsl:when test="string-length($special3)>0">
  9034.                     <xsl:text>1</xsl:text>
  9035.                 </xsl:when>
  9036.                 <xsl:otherwise>
  9037.                     <xsl:text>0</xsl:text>
  9038.                 </xsl:otherwise>
  9039.             </xsl:choose>
  9040.         </xsl:variable>
  9041.  
  9042.         <xsl:if test="$count1 + $count2 + $count3 > 0">
  9043.  
  9044.             <xsl:choose>
  9045.                 <xsl:when test = "$useSquareBrackets = 'yes'">
  9046.                     <xsl:call-template name="templ_prop_APA_SecondaryOpen"/>
  9047.                 </xsl:when>
  9048.                 <xsl:otherwise>
  9049.                     <xsl:call-template name="templ_prop_APA_GeneralOpen"/>
  9050.                 </xsl:otherwise>
  9051.             </xsl:choose>
  9052.  
  9053.             <xsl:if test="$count1 > 0">
  9054.                 <xsl:call-template name="formatPersons2">
  9055.                     <xsl:with-param name="name" select="$name1"/>
  9056.                     <xsl:with-param name="before" select="false()"/>
  9057.                     <xsl:with-param name="isLast" select="$count2 + $count3 = 0"/>
  9058.                 </xsl:call-template>
  9059.  
  9060.                 <xsl:if test="$count1 = 1">
  9061.                     <xsl:if test="string-length($sufixS1)>0">
  9062.                         <xsl:value-of select="$sufixS1"/>
  9063.                     </xsl:if>
  9064.                 </xsl:if>
  9065.  
  9066.                 <xsl:if test="$count1 > 1">
  9067.                     <xsl:if test="string-length($sufixM1)>0">
  9068.                         <xsl:value-of select="$sufixM1"/>
  9069.                     </xsl:if>
  9070.                 </xsl:if>
  9071.             </xsl:if>
  9072.  
  9073.             <xsl:if test="$count2 > 0">
  9074.             
  9075.                 <xsl:if test="$count1 > 0">
  9076.                     <xsl:call-template name="templ_prop_AuthorsSeparator"/>
  9077.                 </xsl:if>
  9078.             
  9079.                 <xsl:call-template name="formatPersons2">
  9080.                     <xsl:with-param name="name" select="$name2"/>
  9081.                     <xsl:with-param name="before" select="$count1>0"/>
  9082.                     <xsl:with-param name="isLast" select="$count3=0"/>
  9083.                 </xsl:call-template>
  9084.  
  9085.                 <xsl:if test="$count2 = 1">
  9086.                     <xsl:if test="string-length($sufixS2)>0">
  9087.                         <xsl:value-of select="$sufixS2"/>
  9088.                     </xsl:if>
  9089.                 </xsl:if>
  9090.  
  9091.                 <xsl:if test="$count2 > 1">
  9092.                     <xsl:if test="string-length($sufixM2)>0">
  9093.                         <xsl:value-of select="$sufixM2"/>
  9094.                     </xsl:if>
  9095.                 </xsl:if>
  9096.             </xsl:if>
  9097.             
  9098.             <xsl:choose>
  9099.                 <xsl:when test="$count3 > 0 and string-length($special3) = 0">
  9100.                 
  9101.                     <xsl:if test="$count1 + $count2 > 0">
  9102.                         <xsl:call-template name="templ_prop_AuthorsSeparator"/>
  9103.                     </xsl:if>
  9104.                 
  9105.                     <xsl:call-template name="formatPersons2">
  9106.                         <xsl:with-param name="name" select="$name3"/>
  9107.                         <xsl:with-param name="before" select="$count1+$count2>0"/>
  9108.                         <xsl:with-param name="isLast" select="true()"/>
  9109.                     </xsl:call-template>
  9110.  
  9111.                     <xsl:if test="$count3 = 1">
  9112.                         <xsl:if test="string-length($sufixS3)>0">
  9113.                             <xsl:value-of select="$sufixS3"/>
  9114.                         </xsl:if>
  9115.                     </xsl:if>
  9116.  
  9117.                     <xsl:if test="$count3 > 1">
  9118.                         <xsl:if test="string-length($sufixM3)>0">
  9119.                             <xsl:value-of select="$sufixM3"/>
  9120.                         </xsl:if>
  9121.                     </xsl:if>
  9122.                 </xsl:when>
  9123.  
  9124.                 <xsl:when test="string-length($special3) > 0">
  9125.                     <xsl:if test="$count1 + $count2">
  9126.                         <xsl:call-template name="templ_prop_AuthorsSeparator"/>
  9127.                         <xsl:call-template name="templ_prop_APA_BeforeLastAuthor"/>
  9128.                         <xsl:call-template name="templ_prop_Space"/>
  9129.                     </xsl:if>
  9130.  
  9131.                     <xsl:value-of select="$special3"/>
  9132.  
  9133.                 </xsl:when>
  9134.             </xsl:choose>
  9135.  
  9136.             <xsl:choose>
  9137.                 <xsl:when test = "$useSquareBrackets = 'yes'">
  9138.                     <xsl:call-template name="templ_prop_APA_SecondaryClose"/>
  9139.                 </xsl:when>
  9140.                 <xsl:otherwise>
  9141.                     <xsl:call-template name="templ_prop_APA_GeneralClose"/>
  9142.                 </xsl:otherwise>
  9143.             </xsl:choose>
  9144.  
  9145.         </xsl:if>
  9146.  
  9147.         
  9148.     </xsl:template>
  9149.  
  9150.  
  9151.     <xsl:template name="formatManyMain">
  9152.     
  9153.         <xsl:param name="name1"/>
  9154.         <xsl:param name="sufixS1"/>
  9155.         <xsl:param name="sufixM1"/>
  9156.  
  9157.         <xsl:param name="name2"/>
  9158.         <xsl:param name="sufixS2"/>
  9159.         <xsl:param name="sufixM2"/>
  9160.  
  9161.         <xsl:param name="name3"/>
  9162.         <xsl:param name="sufixS3"/>
  9163.         <xsl:param name="sufixM3"/>
  9164.     
  9165.         <xsl:variable name="count1">
  9166.             <xsl:if test="string-length($name1)>0">
  9167.                 <xsl:if test="string-length(b:Author/*[local-name()=$name1]/b:Corporate)>0">
  9168.                     <xsl:text>1</xsl:text>
  9169.                 </xsl:if>
  9170.                 <xsl:if test="string-length(b:Author/*[local-name()=$name1]/b:Corporate)=0">
  9171.                     <xsl:value-of select="count(b:Author/*[local-name()=$name1]/b:NameList/b:Person)"/>
  9172.                 </xsl:if>
  9173.             </xsl:if>
  9174.             <xsl:if test="string-length($name1)=0">
  9175.                 <xsl:text>0</xsl:text>
  9176.             </xsl:if>
  9177.         </xsl:variable>
  9178.  
  9179.         <xsl:variable name="count2">
  9180.             <xsl:if test="string-length($name2)>0">
  9181.                 <xsl:if  test="string-length(b:Author/*[local-name()=$name2]/b:Corporate)>0">
  9182.                     <xsl:text>1</xsl:text>
  9183.                 </xsl:if>
  9184.                 <xsl:if  test="string-length(b:Author/*[local-name()=$name2]/b:Corporate)=0">
  9185.                     <xsl:value-of select="count(b:Author/*[local-name()=$name2]/b:NameList/b:Person)"/>
  9186.                 </xsl:if>
  9187.             </xsl:if>
  9188.             <xsl:if test="string-length($name2)=0">
  9189.                 <xsl:text>0</xsl:text>
  9190.             </xsl:if>
  9191.         </xsl:variable>
  9192.  
  9193.         <xsl:variable name="count3">
  9194.             <xsl:if test="string-length($name3)>0">
  9195.                 <xsl:if  test="string-length(b:Author/*[local-name()=$name3]/b:Corporate)>0">
  9196.                     <xsl:text>1</xsl:text>
  9197.                 </xsl:if>
  9198.                 <xsl:if  test="string-length(b:Author/*[local-name()=$name3]/b:Corporate)=0">
  9199.                     <xsl:value-of select="count(b:Author/*[local-name()=$name3]/b:NameList/b:Person)"/>
  9200.                 </xsl:if>
  9201.             </xsl:if>
  9202.             <xsl:if test="string-length($name3)=0">
  9203.                 <xsl:text>0</xsl:text>
  9204.             </xsl:if>
  9205.         </xsl:variable>
  9206.  
  9207.         <xsl:if test="$count1 + $count2 + $count3 > 0">
  9208.  
  9209.             <xsl:if test="$count1 > 0">
  9210.                 <xsl:call-template name="formatPersonsAuthor2">
  9211.                     <xsl:with-param name="name" select="$name1"/>
  9212.                     <xsl:with-param name="before" select="false()"/>
  9213.                     <xsl:with-param name="isLast" select="$count2 + $count3 = 0"/>
  9214.                 </xsl:call-template>
  9215.  
  9216.                 <xsl:if test="$count1 = 1">
  9217.                     <xsl:if test="string-length($sufixS1)>0">
  9218.                         <xsl:value-of select="$sufixS1"/>
  9219.                     </xsl:if>
  9220.                 </xsl:if>
  9221.  
  9222.                 <xsl:if test="$count1 > 1">
  9223.                     <xsl:if test="string-length($sufixM1)>0">
  9224.                         <xsl:value-of select="$sufixM1"/>
  9225.                     </xsl:if>
  9226.                 </xsl:if>
  9227.             </xsl:if>
  9228.  
  9229.             <xsl:if test="$count2 > 0">
  9230.             
  9231.                 <xsl:if test="$count1 > 0">
  9232.                     <xsl:call-template name="templ_prop_AuthorsSeparator"/>
  9233.                 </xsl:if>
  9234.             
  9235.                 <xsl:call-template name="formatPersonsAuthor2">
  9236.                     <xsl:with-param name="name" select="$name2"/>
  9237.                     <xsl:with-param name="before" select="$count1>0"/>
  9238.                     <xsl:with-param name="isLast" select="$count3=0"/>
  9239.                 </xsl:call-template>
  9240.  
  9241.                 <xsl:if test="$count2 = 1">
  9242.                     <xsl:if test="string-length($sufixS2)>0">
  9243.                         <xsl:value-of select="$sufixS2"/>
  9244.                     </xsl:if>
  9245.                 </xsl:if>
  9246.  
  9247.                 <xsl:if test="$count2 > 1">
  9248.                     <xsl:if test="string-length($sufixM2)>0">
  9249.                         <xsl:value-of select="$sufixM2"/>
  9250.                     </xsl:if>
  9251.                 </xsl:if>
  9252.             </xsl:if>
  9253.  
  9254.             <xsl:if test="$count3 > 0">
  9255.             
  9256.                 <xsl:if test="$count1 + $count2 > 0">
  9257.                     <xsl:call-template name="templ_prop_AuthorsSeparator"/>
  9258.                 </xsl:if>
  9259.             
  9260.                 <xsl:call-template name="formatPersonsAuthor2">
  9261.                     <xsl:with-param name="name" select="$name3"/>
  9262.                     <xsl:with-param name="before" select="$count1+$count2>0"/>
  9263.                     <xsl:with-param name="isLast" select="true()"/>
  9264.                 </xsl:call-template>
  9265.  
  9266.                 <xsl:if test="$count3 = 1">
  9267.                     <xsl:if test="string-length($sufixS3)>0">
  9268.                         <xsl:value-of select="$sufixS3"/>
  9269.                     </xsl:if>
  9270.                 </xsl:if>
  9271.  
  9272.                 <xsl:if test="$count3 > 1">
  9273.                     <xsl:if test="string-length($sufixM3)>0">
  9274.                         <xsl:value-of select="$sufixM3"/>
  9275.                     </xsl:if>
  9276.                 </xsl:if>
  9277.             </xsl:if>
  9278.  
  9279.             <xsl:call-template name="templ_prop_Dot"/>
  9280.  
  9281.         </xsl:if>
  9282.  
  9283.         
  9284.     </xsl:template>
  9285.  
  9286.  
  9287.  
  9288.  
  9289.  
  9290.     <xsl:template name="formatBookAuthor">
  9291.         <xsl:for-each select="b:Author/b:BookAuthor">
  9292.             <xsl:call-template name="formatPersonsAuthor"/>
  9293.         </xsl:for-each>
  9294.     </xsl:template>
  9295.  
  9296.  
  9297.     
  9298.  
  9299.     <xsl:template name="formatPerformerLF">
  9300.         <xsl:for-each select="b:Author/b:Performer">
  9301.             <xsl:call-template name="formatPersonsAuthor"/>
  9302.         </xsl:for-each>
  9303.     </xsl:template>
  9304.  
  9305.     <xsl:template name="formatConductorLF">
  9306.         <xsl:for-each select="b:Author/b:Conductor">
  9307.             <xsl:call-template name="formatPersonsAuthor"/>
  9308.         </xsl:for-each>
  9309.     </xsl:template>
  9310.  
  9311.     <xsl:template name="formatComposerLF">
  9312.         <xsl:for-each select="b:Author/b:Composer">
  9313.             <xsl:call-template name="formatPersonsAuthor"/>
  9314.         </xsl:for-each>
  9315.     </xsl:template>
  9316.  
  9317.     <xsl:template name="formatArtistLF">
  9318.         <xsl:for-each select="b:Author/b:Artist">
  9319.             <xsl:call-template name="formatPersonsAuthor"/>
  9320.         </xsl:for-each>
  9321.     </xsl:template>
  9322.  
  9323.  
  9324.     <xsl:template name="formatInventorLF">
  9325.         <xsl:for-each select="b:Author/b:Inventor">
  9326.             <xsl:call-template name="formatPersonsAuthor"/>
  9327.         </xsl:for-each>
  9328.     </xsl:template>
  9329.  
  9330.  
  9331.     <xsl:template name="formatIntervieweeLF">
  9332.         <xsl:for-each select="b:Author/b:Interviewee">
  9333.             <xsl:call-template name="formatPersonsAuthor"/>
  9334.         </xsl:for-each>
  9335.     </xsl:template>
  9336.  
  9337.  
  9338.     <xsl:template name="formatInterviewerLF">
  9339.         <xsl:for-each select="b:Author/b:Interviewer">
  9340.             <xsl:call-template name="formatPersonsAuthor"/>
  9341.         </xsl:for-each>
  9342.     </xsl:template>
  9343.  
  9344.  
  9345.     <xsl:template name="formatCompilerLF">
  9346.         <xsl:for-each select="b:Author/b:Compiler">
  9347.             <xsl:call-template name="formatPersonsAuthor"/>
  9348.         </xsl:for-each>
  9349.     </xsl:template>
  9350.  
  9351.     <xsl:template name="formatDirectorLF">
  9352.         <xsl:for-each select="b:Author/b:Director">
  9353.             <xsl:call-template name="formatPersonsAuthor"/>
  9354.         </xsl:for-each>
  9355.     </xsl:template>
  9356.  
  9357.     <xsl:template name="formatWriterLF">
  9358.         <xsl:for-each select="b:Author/b:Writer">
  9359.             <xsl:call-template name="formatPersonsAuthor"/>
  9360.         </xsl:for-each>
  9361.     </xsl:template>
  9362.  
  9363.  
  9364.  
  9365.  
  9366.  
  9367.  
  9368.  
  9369.  
  9370.  
  9371.     <xsl:template name="formatPerformer">
  9372.         <xsl:for-each select="b:Author/b:Performer">
  9373.             <xsl:call-template name="formatPersons"/>
  9374.         </xsl:for-each>
  9375.     </xsl:template>
  9376.     
  9377.     
  9378.  
  9379.     <xsl:template name="formatConductor">
  9380.         <xsl:for-each select="b:Author/b:Conductor">
  9381.             <xsl:call-template name="formatPersons"/>
  9382.         </xsl:for-each>
  9383.     </xsl:template>
  9384.     
  9385.  
  9386.     <xsl:template name="formatComposer">
  9387.         <xsl:for-each select="b:Author/b:Composer">
  9388.             <xsl:call-template name="formatPersons"/>
  9389.         </xsl:for-each>
  9390.     </xsl:template>        
  9391.     
  9392.     <xsl:template name="formatInterviewer">
  9393.         <xsl:for-each select="b:Author/b:Interviewer">
  9394.             <xsl:call-template name="formatPersons"/>
  9395.         </xsl:for-each>
  9396.     </xsl:template>        
  9397.     
  9398.  
  9399.     <xsl:template name="formatWriter">
  9400.         <xsl:for-each select="b:Author/b:Writer">
  9401.             <xsl:call-template name="formatPersons"/>
  9402.         </xsl:for-each>
  9403.     </xsl:template>
  9404.     
  9405.  
  9406.     <xsl:template name="formatDirector">
  9407.         <xsl:for-each select="b:Author/b:Director">
  9408.             <xsl:call-template name="formatPersons"/>
  9409.         </xsl:for-each>
  9410.     </xsl:template>        
  9411.     
  9412.         
  9413.     <xsl:template name="formatCompiler">
  9414.         <xsl:for-each select="b:Author/b:Compiler">
  9415.             <xsl:call-template name="formatPersons"/>
  9416.         </xsl:for-each>
  9417.     </xsl:template>        
  9418.  
  9419.     <xsl:template name="need_Dot">
  9420.         <xsl:param name="field"/>
  9421.         
  9422.         <xsl:variable name="temp">
  9423.             <xsl:call-template name="handleSpaces">
  9424.                 <xsl:with-param name="field" select="$field"/>
  9425.             </xsl:call-template>
  9426.         </xsl:variable>
  9427.  
  9428.         <xsl:variable name="lastChar">
  9429.             <xsl:value-of select="substring($temp, string-length($temp))"/>
  9430.         </xsl:variable>
  9431.     
  9432.     <xsl:variable name="prop_EndChars">
  9433.       <xsl:call-template name="templ_prop_EndChars"/>
  9434.     </xsl:variable>
  9435.     
  9436.         <xsl:choose>
  9437.             <xsl:when test="string-length($temp) = 0">
  9438.             </xsl:when>
  9439.             <xsl:when test="contains($prop_EndChars, $lastChar)">
  9440.             </xsl:when>
  9441.             <xsl:otherwise>
  9442.                 <xsl:call-template name="templ_prop_Dot"/>
  9443.             </xsl:otherwise>
  9444.         </xsl:choose>
  9445.     </xsl:template>
  9446.  
  9447.     <xsl:template name="formatNameCore">
  9448.         <xsl:param name="FML"/>
  9449.         <xsl:param name="FM"/>
  9450.         <xsl:param name="ML"/>
  9451.         <xsl:param name="FL"/>
  9452.         <xsl:param name="upperLast"/>
  9453.         <xsl:param name="withDot"/>
  9454.  
  9455.         <xsl:variable name="first">
  9456.             <xsl:call-template name="handleSpaces">
  9457.                 <xsl:with-param name="field" select="b:First"/>
  9458.             </xsl:call-template>
  9459.         </xsl:variable>
  9460.  
  9461.         <xsl:variable name="middle">
  9462.             <xsl:call-template name="handleSpaces">
  9463.                 <xsl:with-param name="field" select="b:Middle"/>
  9464.             </xsl:call-template>
  9465.         </xsl:variable>
  9466.  
  9467.         <xsl:variable name="last">
  9468.             <xsl:call-template name="handleSpaces">
  9469.                 <xsl:with-param name="field" select="b:Last"/>
  9470.             </xsl:call-template>
  9471.         </xsl:variable>
  9472.         
  9473.         <xsl:variable name="format">
  9474.             <xsl:choose>
  9475.                 <xsl:when test="string-length($first) = 0 and string-length($middle) = 0 and string-length($last) = 0 ">
  9476.                 </xsl:when>
  9477.                 <xsl:when test="string-length($first) = 0 and string-length($middle) = 0 and string-length($last) != 0 ">
  9478.                     <xsl:call-template name="templ_prop_SimpleAuthor_L" />
  9479.                 </xsl:when>
  9480.                 <xsl:when test="string-length($first) = 0 and string-length($middle) != 0 and string-length($last) = 0 ">
  9481.           <xsl:call-template name="templ_prop_SimpleAuthor_M" />
  9482.                 </xsl:when>
  9483.                 <xsl:when test="string-length($first) = 0 and string-length($middle) != 0 and string-length($last) != 0 ">
  9484.                     <xsl:value-of select="$ML"/>
  9485.                 </xsl:when>
  9486.                 <xsl:when test="string-length($first) != 0 and string-length($middle) = 0 and string-length($last) = 0 ">
  9487.                     <xsl:call-template name="templ_prop_SimpleAuthor_F" />
  9488.                 </xsl:when>
  9489.                 <xsl:when test="string-length($first) != 0 and string-length($middle) = 0 and string-length($last) != 0 ">
  9490.                     <xsl:value-of select="$FL"/>
  9491.                 </xsl:when>
  9492.                 <xsl:when test="string-length($first) != 0 and string-length($middle) != 0 and string-length($last) = 0 ">
  9493.                     <xsl:value-of select="$FM"/>
  9494.                 </xsl:when>
  9495.                 <xsl:when test="string-length($first) != 0 and string-length($middle) != 0 and string-length($last) != 0 ">
  9496.                     <xsl:value-of select="$FML"/>
  9497.                 </xsl:when>
  9498.             </xsl:choose>
  9499.         </xsl:variable>
  9500.         
  9501.         <xsl:call-template name="StringFormatName">
  9502.             <xsl:with-param name="format" select="$format"/>
  9503.             <xsl:with-param name="upperLast" select="$upperLast"/>
  9504.             <xsl:with-param name="withDot" select="$withDot"/>
  9505.         </xsl:call-template>
  9506.         
  9507.     </xsl:template>
  9508.  
  9509.     <xsl:template name="formatDateCorePrivate">
  9510.         <xsl:param name="DMY"/>
  9511.         <xsl:param name="DM"/>
  9512.         <xsl:param name="MY"/>
  9513.         <xsl:param name="DY"/>
  9514.  
  9515.         <xsl:param name="day"/>
  9516.         <xsl:param name="month"/>
  9517.         <xsl:param name="year"/>
  9518.         
  9519.         <xsl:param name="withDot"/>
  9520.         
  9521.         <xsl:variable name="format">
  9522.             <xsl:choose>
  9523.                 <xsl:when test="string-length($day) = 0 and string-length($month) = 0 and string-length($year) = 0 ">
  9524.                 </xsl:when>
  9525.                 <xsl:when test="string-length($day) = 0 and string-length($month) = 0 and string-length($year) != 0 ">
  9526.                     <xsl:call-template name="templ_prop_SimpleDate_Y" />
  9527.                 </xsl:when>
  9528.                 <xsl:when test="string-length($day) = 0 and string-length($month) != 0 and string-length($year) = 0 ">
  9529.                 </xsl:when>
  9530.                 <xsl:when test="string-length($day) = 0 and string-length($month) != 0 and string-length($year) != 0 ">
  9531.                     <xsl:value-of select="$MY"/>
  9532.                 </xsl:when>
  9533.                 <xsl:when test="string-length($day) != 0 and string-length($month) = 0 and string-length($year) = 0 ">
  9534.                 </xsl:when>
  9535.                 <xsl:when test="string-length($day) != 0 and string-length($month) = 0 and string-length($year) != 0 ">
  9536.                     <xsl:call-template name="templ_prop_SimpleDate_Y" />
  9537.                 </xsl:when>
  9538.                 <xsl:when test="string-length($day) != 0 and string-length($month) != 0 and string-length($year) = 0 ">
  9539.                 </xsl:when>
  9540.                 <xsl:when test="string-length($day) != 0 and string-length($month) != 0 and string-length($year) != 0 ">
  9541.                     <xsl:value-of select="$DMY"/>
  9542.                 </xsl:when>
  9543.             </xsl:choose>
  9544.         </xsl:variable>
  9545.         
  9546.         <xsl:call-template name="StringFormatDate">
  9547.             <xsl:with-param name="format" select="$format"/>
  9548.  
  9549.             <xsl:with-param name="day" select="$day"/>
  9550.             <xsl:with-param name="month" select="$month"/>
  9551.             <xsl:with-param name="year" select="$year"/>
  9552.  
  9553.             <xsl:with-param name="withDot" select="$withDot"/>
  9554.         </xsl:call-template>
  9555.         
  9556.     </xsl:template>
  9557.  
  9558.     <xsl:template name="StringFormatName">
  9559.         <xsl:param name="format" />
  9560.         <xsl:param name="withDot" />
  9561.         <xsl:param name="upperLast"/>
  9562.  
  9563.     <xsl:variable name="prop_EndChars">
  9564.       <xsl:call-template name="templ_prop_EndChars"/>
  9565.     </xsl:variable>
  9566.  
  9567.     <xsl:choose>
  9568.             <xsl:when test="$format = ''"></xsl:when>
  9569.             <xsl:when test="substring($format, 1, 2) = '%%'">
  9570.                 <xsl:text>%</xsl:text>
  9571.                 <xsl:call-template name="StringFormatName">
  9572.                     <xsl:with-param name="format" select="substring($format, 3)" />
  9573.                     <xsl:with-param name="withDot" select="$withDot" />
  9574.                     <xsl:with-param name="upperLast" select="$upperLast" />
  9575.                 </xsl:call-template>
  9576.         
  9577.                 <xsl:if test="string-length($format)=2 and withDot = 'yes' and not(contains($prop_EndChars, '%'))">
  9578.                     <xsl:call-template name="templ_prop_Dot"/>
  9579.                 </xsl:if>
  9580.             </xsl:when>
  9581.             <xsl:when test="substring($format, 1, 1) = '%'">
  9582.                 <xsl:variable name="what" select="substring($format, 2, 1)" />
  9583.                 
  9584.                 <xsl:choose>
  9585.                     <xsl:when test="(what = 'l' or what = 'L') and upperLast = 'yes'">
  9586.                         <span style='text-transform: uppercase;'>
  9587.                             <xsl:call-template name="formatNameOneItem">
  9588.                                 <xsl:with-param name="format" select="$what"/>
  9589.                             </xsl:call-template>
  9590.                         </span>
  9591.                     </xsl:when>
  9592.                     <xsl:otherwise>
  9593.                         <xsl:call-template name="formatNameOneItem">
  9594.                             <xsl:with-param name="format" select="$what"/>
  9595.                         </xsl:call-template>
  9596.                     </xsl:otherwise>
  9597.                 </xsl:choose>
  9598.                 <xsl:call-template name="StringFormatName">
  9599.                     <xsl:with-param name="format" select="substring($format, 3)" />
  9600.                     <xsl:with-param name="withDot" select="$withDot" />
  9601.                     <xsl:with-param name="upperLast" select="$upperLast" />
  9602.                 </xsl:call-template>
  9603.                 <xsl:if test="string-length($format)=2 and withDot='yes'">
  9604.                     <xsl:variable name="temp2">
  9605.                         <xsl:call-template name="handleSpaces">
  9606.                             <xsl:with-param name="field">
  9607.                                 <xsl:call-template name="formatNameOneItem">
  9608.                                     <xsl:with-param name="format" select="$what"/>
  9609.                                 </xsl:call-template>
  9610.                             </xsl:with-param>
  9611.                         </xsl:call-template>
  9612.                     </xsl:variable>                
  9613.                     <xsl:variable name="lastChar">
  9614.                         <xsl:value-of select="substring($temp2, string-length($temp2))"/>
  9615.                     </xsl:variable>
  9616.                     <xsl:if test="not(contains($prop_EndChars, $lastChar))">
  9617.                         <xsl:call-template name="templ_prop_Dot"/>
  9618.                     </xsl:if>
  9619.                 </xsl:if>
  9620.             </xsl:when>
  9621.             <xsl:otherwise>
  9622.                 <xsl:value-of select="substring($format, 1, 1)" />
  9623.                 <xsl:call-template name="StringFormatName">
  9624.                     <xsl:with-param name="format" select="substring($format, 2)" />
  9625.                     <xsl:with-param name="withDot" select="$withDot" />
  9626.                     <xsl:with-param name="upperLast" select="$upperLast" />
  9627.                 </xsl:call-template>
  9628.                 <xsl:if test="string-length($format)=1">
  9629.                     <xsl:if test="withDot = 'yes' and not(contains($prop_EndChars, $format))">
  9630.                         <xsl:call-template name="templ_prop_Dot"/>
  9631.                     </xsl:if>
  9632.                 </xsl:if>
  9633.             </xsl:otherwise>
  9634.         </xsl:choose>
  9635.     </xsl:template>    
  9636.  
  9637.     <xsl:template name="StringFormatDate">
  9638.         <xsl:param name="format" />
  9639.         
  9640.         <xsl:param name="day"/>
  9641.         <xsl:param name="month"/>
  9642.         <xsl:param name="year"/>        
  9643.         
  9644.         <xsl:param name="withDot" />
  9645.  
  9646.     <xsl:variable name="prop_EndChars">
  9647.       <xsl:call-template name="templ_prop_EndChars"/>
  9648.     </xsl:variable>
  9649.  
  9650.     <xsl:choose>
  9651.             <xsl:when test="$format = ''"></xsl:when>
  9652.             <xsl:when test="substring($format, 1, 2) = '%%'">
  9653.                 <xsl:text>%</xsl:text>
  9654.                 <xsl:call-template name="StringFormatDate">
  9655.                     <xsl:with-param name="format" select="substring($format, 3)" />
  9656.                     <xsl:with-param name="day" select="$day"/>
  9657.                     <xsl:with-param name="month" select="$month"/>
  9658.                     <xsl:with-param name="year" select="$year"/>
  9659.                     <xsl:with-param name="withDot" select="$withDot" />
  9660.                 </xsl:call-template>
  9661.                 <xsl:if test="string-length($format)=2 and withDot = 'yes' and not(contains($prop_EndChars, '%'))">
  9662.                     <xsl:call-template name="templ_prop_Dot"/>
  9663.                 </xsl:if>
  9664.             </xsl:when>
  9665.             <xsl:when test="substring($format, 1, 1) = '%'">
  9666.                 <xsl:variable name="what" select="substring($format, 2, 1)" />
  9667.                 <xsl:choose>
  9668.                     <xsl:when test="$what = 'D'">
  9669.                         <xsl:value-of select="$day"/>
  9670.                     </xsl:when>
  9671.                     <xsl:when test="$what = 'M'">
  9672.                         <xsl:value-of select="$month"/>
  9673.                     </xsl:when>
  9674.                     <xsl:when test="$what = 'Y'">
  9675.                         <xsl:value-of select="$year"/>
  9676.                     </xsl:when>
  9677.                 </xsl:choose>
  9678.                 <xsl:call-template name="StringFormatDate">
  9679.                     <xsl:with-param name="format" select="substring($format, 3)" />
  9680.                     <xsl:with-param name="day" select="$day"/>
  9681.                     <xsl:with-param name="month" select="$month"/>
  9682.                     <xsl:with-param name="year" select="$year"/>
  9683.                     <xsl:with-param name="withDot" select="$withDot" />
  9684.                 </xsl:call-template>
  9685.                 <xsl:if test="string-length($format)=2 and withDot='yes'">
  9686.                     <xsl:variable name="temp2">
  9687.                         <xsl:call-template name="handleSpaces">
  9688.                             <xsl:with-param name="field">
  9689.                                 <xsl:call-template name="formatNameOneItem">
  9690.                                     <xsl:with-param name="format" select="$what"/>
  9691.                                 </xsl:call-template>
  9692.                             </xsl:with-param>
  9693.                         </xsl:call-template>
  9694.                     </xsl:variable>                
  9695.                     <xsl:variable name="lastChar">
  9696.                         <xsl:value-of select="substring($temp2, string-length($temp2))"/>
  9697.                     </xsl:variable>
  9698.                     <xsl:if test="not(contains($prop_EndChars, $lastChar))">
  9699.                         <xsl:call-template name="templ_prop_Dot"/>
  9700.                     </xsl:if>
  9701.                 </xsl:if>
  9702.             </xsl:when>
  9703.             <xsl:otherwise>
  9704.                 <xsl:value-of select="substring($format, 1, 1)" />
  9705.                 <xsl:call-template name="StringFormatDate">
  9706.                     <xsl:with-param name="format" select="substring($format, 2)" />
  9707.                     <xsl:with-param name="day" select="$day"/>
  9708.                     <xsl:with-param name="month" select="$month"/>
  9709.                     <xsl:with-param name="year" select="$year"/>
  9710.                     <xsl:with-param name="withDot" select="$withDot" />
  9711.                 </xsl:call-template>
  9712.                 <xsl:if test="string-length($format)=1">
  9713.                     <xsl:if test="withDot = 'yes' and not(contains($prop_EndChars, $format))">
  9714.                         <xsl:call-template name="templ_prop_Dot"/>
  9715.                     </xsl:if>
  9716.                 </xsl:if>
  9717.             </xsl:otherwise>
  9718.         </xsl:choose>
  9719.     </xsl:template>    
  9720.  
  9721.     <xsl:template name="PrintSpaceAndList">
  9722.         <xsl:param name="list"/>
  9723.  
  9724.         <xsl:variable name="result">
  9725.             <xsl:call-template name="PrintList">
  9726.                 <xsl:with-param name="list" select="$list" />
  9727.             </xsl:call-template>
  9728.         </xsl:variable>
  9729.  
  9730.         <xsl:if test="string-length($result) > 0">
  9731.             <xsl:call-template name="templ_prop_Space" />
  9732.             <xsl:copy-of select="$result" />
  9733.         </xsl:if>
  9734.     </xsl:template>
  9735.  
  9736.     <xsl:template name="PrintList">
  9737.         <xsl:param name="list"/>
  9738.  
  9739.         <xsl:call-template name="PrintList2">
  9740.             <xsl:with-param name="list" select="$list" />
  9741.             <xsl:with-param name="index" select="'1'" />
  9742.             <xsl:with-param name="nextSeparator">
  9743.                 <xsl:call-template name="templ_prop_ListSeparator"/>
  9744.             </xsl:with-param>
  9745.             <xsl:with-param name="textDisplayed" select="''" />
  9746.         </xsl:call-template>
  9747.     </xsl:template>
  9748.  
  9749.     <xsl:template name="PrintList2">
  9750.         <xsl:param name="list"/>
  9751.         <xsl:param name="index"/>
  9752.         <xsl:param name="nextSeparator"/>
  9753.         <xsl:param name="lastTextDisplayed"/>
  9754.  
  9755.         
  9756.  
  9757.         <xsl:choose>
  9758.             <xsl:when test="$index > count(msxsl:node-set($list)/*/*)">
  9759.                 <xsl:call-template name="need_Dot">
  9760.                     <xsl:with-param name="field" select ="$lastTextDisplayed"/>
  9761.                 </xsl:call-template>
  9762.             </xsl:when>
  9763.             <xsl:when test="local-name(msxsl:node-set($list)/*/*[$index]) = 'TextItem'">
  9764.                 <xsl:variable name="item">
  9765.                     <xsl:value-of select="msxsl:node-set($list)/*/*[$index]" />
  9766.                 </xsl:variable>
  9767.  
  9768.                 <xsl:if test="string-length($item) > 0 and string-length($lastTextDisplayed) > 0">
  9769.                     <xsl:value-of select = "$nextSeparator" />
  9770.                 </xsl:if>
  9771.  
  9772.                 <xsl:if test="string-length($item) > 0">
  9773.                     <xsl:value-of select = "$item" />
  9774.                 </xsl:if>
  9775.  
  9776.                 <xsl:call-template name="PrintList2">
  9777.                     <xsl:with-param name="list" select="$list" />
  9778.                     <xsl:with-param name="index" select="$index + 1" />
  9779.                     <xsl:with-param name="nextSeparator">
  9780.                         <xsl:choose>
  9781.                             <xsl:when test="string-length($item) > 0 and string-length($lastTextDisplayed) > 0">
  9782.                                 <xsl:call-template name="templ_prop_ListSeparator"/>
  9783.                             </xsl:when>
  9784.                             <xsl:otherwise>
  9785.                                 <xsl:value-of select="$nextSeparator" />
  9786.                             </xsl:otherwise>
  9787.                         </xsl:choose>
  9788.                     </xsl:with-param>
  9789.                     <xsl:with-param name="lastTextDisplayed">
  9790.                         <xsl:choose>
  9791.                             <xsl:when test="string-length($item) > 0">
  9792.                                 <xsl:value-of select="$item" />
  9793.                             </xsl:when>
  9794.                             <xsl:otherwise>
  9795.                                 <xsl:value-of select="$lastTextDisplayed" />
  9796.                             </xsl:otherwise>
  9797.                         </xsl:choose>
  9798.                     </xsl:with-param>
  9799.                 </xsl:call-template>                    
  9800.             </xsl:when>
  9801.             <xsl:when test="local-name(msxsl:node-set($list)/*/*[$index]) = 'GroupSeparator'">
  9802.                 <xsl:call-template name="PrintList2">
  9803.                     <xsl:with-param name="list" select="$list" />
  9804.                     <xsl:with-param name="index" select="$index + 1" />
  9805.                     <xsl:with-param name="nextSeparator">
  9806.                         <xsl:call-template name="templ_prop_GroupSeparator"/>
  9807.                     </xsl:with-param>
  9808.                     <xsl:with-param name="lastTextDisplayed" select="$lastTextDisplayed" />
  9809.                 </xsl:call-template>            
  9810.             </xsl:when>
  9811.             <xsl:when test="local-name(msxsl:node-set($list)/*/*[$index]) = 'CopyItem'">
  9812.                 <xsl:variable name="item">
  9813.                     <xsl:copy-of select="msxsl:node-set($list)/*/*[$index]" />
  9814.                 </xsl:variable>
  9815.  
  9816.                 <xsl:if test="string-length($item) > 0 and string-length($lastTextDisplayed) > 0">
  9817.                     <xsl:value-of select = "$nextSeparator" />
  9818.                 </xsl:if>
  9819.  
  9820.                 <xsl:if test="string-length($item) > 0">
  9821.                     <xsl:copy-of select = "msxsl:node-set($item)/*[1]" />
  9822.                 </xsl:if>
  9823.  
  9824.                 <xsl:call-template name="PrintList2">
  9825.                     <xsl:with-param name="list" select="$list" />
  9826.                     <xsl:with-param name="index" select="$index + 1" />
  9827.                     <xsl:with-param name="nextSeparator">
  9828.                         <xsl:choose>
  9829.                             <xsl:when test="string-length($item) > 0 and string-length($lastTextDisplayed) > 0">
  9830.                                 <xsl:call-template name="templ_prop_ListSeparator"/>
  9831.                             </xsl:when>
  9832.                             <xsl:otherwise>
  9833.                                 <xsl:value-of select="$nextSeparator" />
  9834.                             </xsl:otherwise>
  9835.                         </xsl:choose>
  9836.                     </xsl:with-param>
  9837.                     <xsl:with-param name="lastTextDisplayed">
  9838.                         <xsl:choose>
  9839.                             <xsl:when test="string-length(msxsl:node-set($item)/*[1]) > 0">
  9840.                                 <xsl:value-of select="msxsl:node-set($item)/*[1]" />
  9841.                             </xsl:when>
  9842.                             <xsl:otherwise>
  9843.                                 <xsl:value-of select="$lastTextDisplayed" />
  9844.                             </xsl:otherwise>
  9845.                         </xsl:choose>
  9846.                     </xsl:with-param>
  9847.                 </xsl:call-template>
  9848.             </xsl:when>
  9849.         </xsl:choose>
  9850.  
  9851.     </xsl:template>
  9852.  
  9853.     <xsl:template name="ApplyItalicTitleNS">
  9854.         <xsl:param name="data" />
  9855.  
  9856.         <xsl:variable name="prop_NoItalics">
  9857.           <xsl:call-template name="templ_prop_NoItalics"/>
  9858.         </xsl:variable>
  9859.  
  9860.         <xsl:choose>
  9861.             <xsl:when test = "$prop_NoItalics = 'yes'">
  9862.                 <xsl:variable name = "prop_TitleOpen">
  9863.                       <xsl:call-template name="templ_prop_TitleOpen"/>
  9864.                 </xsl:variable>
  9865.                 <xsl:variable name = "prop_TitleClose">
  9866.                       <xsl:call-template name="templ_prop_TitleClose"/>
  9867.                 </xsl:variable>
  9868.                 <xsl:variable name = "prop_OpenQuote">
  9869.                       <xsl:call-template name="templ_prop_OpenQuote"/>
  9870.                 </xsl:variable>
  9871.                 <xsl:variable name = "prop_CloseQuote">
  9872.                       <xsl:call-template name="templ_prop_CloseQuote"/>
  9873.                 </xsl:variable>
  9874.                 <xsl:choose>
  9875.                     <xsl:when test = "string-length($prop_TitleOpen) > 0 and string-length($prop_TitleClose) > 0 and string-length($prop_OpenQuote) > 0 and string-length($prop_CloseQuote) > 0 and 
  9876.                                   not(starts-with($data, $prop_TitleOpen) or (substring($data, string-length($data) - string-length($prop_TitleClose)) = $prop_TitleClose) or starts-with($data, $prop_OpenQuote) or (substring($data, string-length($data) - string-length($prop_CloseQuote)) = $prop_CloseQuote))">
  9877.                           <xsl:call-template name="templ_prop_TitleOpen"/>
  9878.                         <xsl:copy-of select="msxsl:node-set($data)" />
  9879.                         <xsl:call-template name="templ_prop_TitleClose"/>
  9880.                     </xsl:when>
  9881.                     <xsl:when test = "string-length($prop_TitleOpen) > 0 and string-length($prop_TitleClose) > 0 and 
  9882.                                   not(starts-with($data, $prop_TitleOpen) or (substring($data, string-length($data) - string-length($prop_TitleClose)) = $prop_TitleClose))">
  9883.                           <xsl:call-template name="templ_prop_TitleOpen"/>
  9884.                         <xsl:copy-of select="msxsl:node-set($data)" />
  9885.                         <xsl:call-template name="templ_prop_TitleClose"/>
  9886.                     </xsl:when>
  9887.                       <xsl:otherwise>
  9888.                         <xsl:copy-of select="msxsl:node-set($data)" />
  9889.                     </xsl:otherwise>
  9890.                 </xsl:choose>
  9891.             </xsl:when>
  9892.             <xsl:otherwise>
  9893.                 <i xmlns="http://www.w3.org/TR/REC-html40">
  9894.                     <xsl:copy-of select="msxsl:node-set($data)" />
  9895.                 </i>
  9896.             </xsl:otherwise>
  9897.         </xsl:choose>
  9898.     </xsl:template>
  9899.  
  9900.     <xsl:template name="ApplyItalicFieldNS">
  9901.         <xsl:param name="data" />
  9902.  
  9903.         <xsl:variable name="prop_NoItalics">
  9904.           <xsl:call-template name="templ_prop_NoItalics"/>
  9905.         </xsl:variable>
  9906.  
  9907.         <xsl:choose>
  9908.             <xsl:when test = "$prop_NoItalics = 'yes'">
  9909.                 <xsl:copy-of select="msxsl:node-set($data)" />
  9910.             </xsl:when>
  9911.             <xsl:otherwise>
  9912.                 <i xmlns="http://www.w3.org/TR/REC-html40">
  9913.                 <xsl:copy-of select="msxsl:node-set($data)" />
  9914.                 </i>
  9915.             </xsl:otherwise>
  9916.         </xsl:choose>
  9917.     </xsl:template>
  9918.  
  9919. </xsl:stylesheet>
  9920.