Advertisement
Guest User

APA style

a guest
Sep 19th, 2016
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 325.45 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2.  
  3. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:b="http://schemas.openxmlformats.org/officeDocument/2006/bibliography" xmlns:t="http://www.microsoft.com/temp">
  4.   <xsl:output method="html" encoding="us-ascii"/>
  5.  
  6.   <xsl:template match="*" mode="outputHtml2">
  7.       <xsl:apply-templates mode="outputHtml"/>
  8.   </xsl:template>
  9.  
  10.   <xsl:template name="StringFormatDot">
  11.     <xsl:param name="format" />
  12.     <xsl:param name="parameters" />
  13.  
  14.     <xsl:variable name="prop_EndChars">
  15.       <xsl:call-template name="templ_prop_EndChars"/>
  16.     </xsl:variable>
  17.  
  18.     <xsl:choose>
  19.       <xsl:when test="$format = ''"></xsl:when>
  20.       <xsl:when test="substring($format, 1, 2) = '%%'">
  21.         <xsl:text>%</xsl:text>
  22.         <xsl:call-template name="StringFormatDot">
  23.           <xsl:with-param name="format" select="substring($format, 3)" />
  24.           <xsl:with-param name="parameters" select="$parameters" />
  25.         </xsl:call-template>
  26.         <xsl:if test="string-length($format)=2">
  27.           <xsl:call-template name="templ_prop_Dot"/>
  28.         </xsl:if>
  29.       </xsl:when>
  30.       <xsl:when test="substring($format, 1, 1) = '%'">
  31.         <xsl:variable name="pos" select="substring($format, 2, 1)" />
  32.         <xsl:apply-templates select="msxsl:node-set($parameters)/t:params/t:param[position() = $pos]" mode="outputHtml2"/>
  33.         <xsl:call-template name="StringFormatDot">
  34.           <xsl:with-param name="format" select="substring($format, 3)" />
  35.           <xsl:with-param name="parameters" select="$parameters" />
  36.         </xsl:call-template>
  37.         <xsl:if test="string-length($format)=2">
  38.           <xsl:variable name="temp2">
  39.             <xsl:call-template name="handleSpaces">
  40.               <xsl:with-param name="field" select="msxsl:node-set($parameters)/t:params/t:param[position() = $pos]"/>
  41.             </xsl:call-template>
  42.           </xsl:variable>
  43.           <xsl:variable name="lastChar">
  44.             <xsl:value-of select="substring($temp2, string-length($temp2))"/>
  45.           </xsl:variable>
  46.  
  47.           <xsl:if test="not(contains($prop_EndChars, $lastChar))">
  48.             <xsl:call-template name="templ_prop_Dot"/>
  49.           </xsl:if>
  50.         </xsl:if>
  51.       </xsl:when>
  52.       <xsl:otherwise>
  53.         <xsl:value-of select="substring($format, 1, 1)" />
  54.         <xsl:call-template name="StringFormatDot">
  55.           <xsl:with-param name="format" select="substring($format, 2)" />
  56.           <xsl:with-param name="parameters" select="$parameters" />
  57.         </xsl:call-template>
  58.         <xsl:if test="string-length($format)=1">
  59.           <xsl:if test="not(contains($prop_EndChars, $format))">
  60.             <xsl:call-template name="templ_prop_Dot"/>
  61.           </xsl:if>
  62.         </xsl:if>
  63.       </xsl:otherwise>
  64.     </xsl:choose>
  65.   </xsl:template>
  66.  
  67.   <xsl:template name="StringFormat">
  68.     <xsl:param name="format" />
  69.     <xsl:param name="parameters" />
  70.     <xsl:choose>
  71.       <xsl:when test="$format = ''"></xsl:when>
  72.       <xsl:when test="substring($format, 1, 2) = '%%'">
  73.         <xsl:text>%</xsl:text>
  74.         <xsl:call-template name="StringFormat">
  75.           <xsl:with-param name="format" select="substring($format, 3)" />
  76.           <xsl:with-param name="parameters" select="$parameters" />
  77.         </xsl:call-template>
  78.       </xsl:when>
  79.       <xsl:when test="substring($format, 1, 1) = '%'">
  80.         <xsl:variable name="pos" select="substring($format, 2, 1)" />
  81.         <xsl:apply-templates select="msxsl:node-set($parameters)/t:params/t:param[position() = $pos]" mode="outputHtml2"/>
  82.         <xsl:call-template name="StringFormat">
  83.           <xsl:with-param name="format" select="substring($format, 3)" />
  84.           <xsl:with-param name="parameters" select="$parameters" />
  85.         </xsl:call-template>
  86.       </xsl:when>
  87.       <xsl:otherwise>
  88.         <xsl:value-of select="substring($format, 1, 1)" />
  89.         <xsl:call-template name="StringFormat">
  90.           <xsl:with-param name="format" select="substring($format, 2)" />
  91.           <xsl:with-param name="parameters" select="$parameters" />
  92.         </xsl:call-template>
  93.       </xsl:otherwise>
  94.     </xsl:choose>
  95.   </xsl:template>
  96.  
  97.   <xsl:template name="localLCID">
  98.     <xsl:param name="LCID"/>
  99.  
  100.     <xsl:variable name="_LCID1">
  101.       <xsl:choose>
  102.         <xsl:when test="$LCID!='0' and $LCID!=''">
  103.           <xsl:value-of select="$LCID"/>
  104.         </xsl:when>
  105.         <xsl:when test="/b:Citation">
  106.           <xsl:value-of select="/*/b:Locals/b:DefaultLCID"/>
  107.         </xsl:when>
  108.         <xsl:when test="b:LCID">
  109.           <xsl:value-of select="b:LCID"/>
  110.         </xsl:when>
  111.         <xsl:when test="../b:LCID">
  112.           <xsl:value-of select="../b:LCID"/>
  113.         </xsl:when>
  114.         <xsl:when test="../../b:LCID">
  115.           <xsl:value-of select="../../b:LCID"/>
  116.         </xsl:when>
  117.         <xsl:when test="../../../b:LCID">
  118.           <xsl:value-of select="../../../b:LCID"/>
  119.         </xsl:when>
  120.         <xsl:when test="../../../../b:LCID">
  121.           <xsl:value-of select="../../../../b:LCID"/>
  122.         </xsl:when>
  123.         <xsl:when test="../../../../b:LCID">
  124.           <xsl:value-of select="../../../../b:LCID"/>
  125.         </xsl:when>
  126.         <xsl:when test="../../../../../b:LCID">
  127.           <xsl:value-of select="../../../../../b:LCID"/>
  128.         </xsl:when>
  129.         <xsl:otherwise>
  130.           <xsl:value-of select="/*/b:Locals/b:DefaultLCID"/>
  131.         </xsl:otherwise>
  132.       </xsl:choose>
  133.     </xsl:variable>
  134.  
  135.     <xsl:choose>
  136.       <xsl:when test="$_LCID1!='0' and string-length($_LCID1)>0">
  137.         <xsl:value-of select="$_LCID1"/>
  138.       </xsl:when>
  139.       <xsl:otherwise>
  140.         <xsl:value-of select="/*/b:Locals/b:DefaultLCID"/>
  141.       </xsl:otherwise>
  142.     </xsl:choose>
  143.  
  144.   </xsl:template>
  145.  
  146.   <xsl:template name="templ_prop_APA_CitationLong_FML" >
  147.     <xsl:param name="LCID" />
  148.     <xsl:variable name="_LCID">
  149.       <xsl:call-template name="localLCID">
  150.         <xsl:with-param name="LCID" select="$LCID"/>
  151.       </xsl:call-template>
  152.     </xsl:variable>
  153.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:APA/b:CitationLong/b:FML"/>
  154.   </xsl:template>
  155.  
  156.  
  157.   <xsl:template name="templ_prop_APA_CitationLong_FM" >
  158.     <xsl:param name="LCID" />
  159.     <xsl:variable name="_LCID">
  160.       <xsl:call-template name="localLCID">
  161.         <xsl:with-param name="LCID" select="$LCID"/>
  162.       </xsl:call-template>
  163.     </xsl:variable>
  164.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:APA/b:CitationLong/b:FM"/>
  165.   </xsl:template>
  166.  
  167.  
  168.   <xsl:template name="templ_prop_APA_CitationLong_ML" >
  169.     <xsl:param name="LCID" />
  170.     <xsl:variable name="_LCID">
  171.       <xsl:call-template name="localLCID">
  172.         <xsl:with-param name="LCID" select="$LCID"/>
  173.       </xsl:call-template>
  174.     </xsl:variable>
  175.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:APA/b:CitationLong/b:ML"/>
  176.   </xsl:template>
  177.  
  178.  
  179.   <xsl:template name="templ_prop_APA_CitationLong_FL" >
  180.     <xsl:param name="LCID" />
  181.     <xsl:variable name="_LCID">
  182.       <xsl:call-template name="localLCID">
  183.         <xsl:with-param name="LCID" select="$LCID"/>
  184.       </xsl:call-template>
  185.     </xsl:variable>
  186.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:APA/b:CitationLong/b:FL"/>
  187.   </xsl:template>
  188.  
  189.  
  190.   <xsl:template name="templ_prop_APA_CitationShort_FML" >
  191.     <xsl:param name="LCID" />
  192.     <xsl:variable name="_LCID">
  193.       <xsl:call-template name="localLCID">
  194.         <xsl:with-param name="LCID" select="$LCID"/>
  195.       </xsl:call-template>
  196.     </xsl:variable>
  197.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:APA/b:CitationShort/b:FML"/>
  198.   </xsl:template>
  199.  
  200.  
  201.   <xsl:template name="templ_prop_APA_CitationShort_FM" >
  202.     <xsl:param name="LCID" />
  203.     <xsl:variable name="_LCID">
  204.       <xsl:call-template name="localLCID">
  205.         <xsl:with-param name="LCID" select="$LCID"/>
  206.       </xsl:call-template>
  207.     </xsl:variable>
  208.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:APA/b:CitationShort/b:FM"/>
  209.   </xsl:template>
  210.  
  211.  
  212.   <xsl:template name="templ_prop_APA_CitationShort_ML" >
  213.     <xsl:param name="LCID" />
  214.     <xsl:variable name="_LCID">
  215.       <xsl:call-template name="localLCID">
  216.         <xsl:with-param name="LCID" select="$LCID"/>
  217.       </xsl:call-template>
  218.     </xsl:variable>
  219.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:APA/b:CitationShort/b:ML"/>
  220.   </xsl:template>
  221.  
  222.  
  223.   <xsl:template name="templ_prop_APA_CitationShort_FL" >
  224.     <xsl:param name="LCID" />
  225.     <xsl:variable name="_LCID">
  226.       <xsl:call-template name="localLCID">
  227.         <xsl:with-param name="LCID" select="$LCID"/>
  228.       </xsl:call-template>
  229.     </xsl:variable>
  230.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:APA/b:CitationShort/b:FL"/>
  231.   </xsl:template>
  232.  
  233.  
  234.   <xsl:template name="templ_str_OnlineCap" >
  235.     <xsl:param name="LCID" />
  236.     <xsl:variable name="_LCID">
  237.       <xsl:call-template name="localLCID">
  238.         <xsl:with-param name="LCID" select="$LCID"/>
  239.       </xsl:call-template>
  240.     </xsl:variable>
  241.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:OnlineCap"/>
  242.   </xsl:template>
  243.  
  244.  
  245.   <xsl:template name="templ_str_OnlineUnCap" >
  246.     <xsl:param name="LCID" />
  247.     <xsl:variable name="_LCID">
  248.       <xsl:call-template name="localLCID">
  249.         <xsl:with-param name="LCID" select="$LCID"/>
  250.       </xsl:call-template>
  251.     </xsl:variable>
  252.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:OnlineUnCap"/>
  253.   </xsl:template>
  254.  
  255.  
  256.   <xsl:template name="templ_str_FiledCap" >
  257.     <xsl:param name="LCID" />
  258.     <xsl:variable name="_LCID">
  259.       <xsl:call-template name="localLCID">
  260.         <xsl:with-param name="LCID" select="$LCID"/>
  261.       </xsl:call-template>
  262.     </xsl:variable>
  263.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:FiledCap"/>
  264.   </xsl:template>
  265.  
  266.  
  267.   <xsl:template name="templ_str_PatentFiledCap" >
  268.     <xsl:param name="LCID" />
  269.     <xsl:variable name="_LCID">
  270.       <xsl:call-template name="localLCID">
  271.         <xsl:with-param name="LCID" select="$LCID"/>
  272.       </xsl:call-template>
  273.     </xsl:variable>
  274.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:PatentFiledCap"/>
  275.   </xsl:template>
  276.  
  277.  
  278.   <xsl:template name="templ_str_InCap" >
  279.     <xsl:param name="LCID" />
  280.     <xsl:variable name="_LCID">
  281.       <xsl:call-template name="localLCID">
  282.         <xsl:with-param name="LCID" select="$LCID"/>
  283.       </xsl:call-template>
  284.     </xsl:variable>
  285.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:InCap"/>
  286.   </xsl:template>
  287.  
  288.  
  289.   <xsl:template name="templ_str_OnAlbumTitleCap" >
  290.     <xsl:param name="LCID" />
  291.     <xsl:variable name="_LCID">
  292.       <xsl:call-template name="localLCID">
  293.         <xsl:with-param name="LCID" select="$LCID"/>
  294.       </xsl:call-template>
  295.     </xsl:variable>
  296.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:OnAlbumTitleCap"/>
  297.   </xsl:template>
  298.  
  299.  
  300.  
  301.   <xsl:template name="templ_str_InNameCap" >
  302.     <xsl:param name="LCID" />
  303.     <xsl:variable name="_LCID">
  304.       <xsl:call-template name="localLCID">
  305.         <xsl:with-param name="LCID" select="$LCID"/>
  306.       </xsl:call-template>
  307.     </xsl:variable>
  308.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:InNameCap"/>
  309.   </xsl:template>
  310.  
  311.  
  312.   <xsl:template name="templ_str_WithUnCap" >
  313.     <xsl:param name="LCID" />
  314.     <xsl:variable name="_LCID">
  315.       <xsl:call-template name="localLCID">
  316.         <xsl:with-param name="LCID" select="$LCID"/>
  317.       </xsl:call-template>
  318.     </xsl:variable>
  319.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:WithUnCap"/>
  320.   </xsl:template>
  321.  
  322.  
  323.   <xsl:template name="templ_str_VersionShortCap" >
  324.     <xsl:param name="LCID" />
  325.     <xsl:variable name="_LCID">
  326.       <xsl:call-template name="localLCID">
  327.         <xsl:with-param name="LCID" select="$LCID"/>
  328.       </xsl:call-template>
  329.     </xsl:variable>
  330.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:VersionShortCap"/>
  331.   </xsl:template>
  332.  
  333.  
  334.   <xsl:template name="templ_str_InterviewCap" >
  335.     <xsl:param name="LCID" />
  336.     <xsl:variable name="_LCID">
  337.       <xsl:call-template name="localLCID">
  338.         <xsl:with-param name="LCID" select="$LCID"/>
  339.       </xsl:call-template>
  340.     </xsl:variable>
  341.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:InterviewCap"/>
  342.   </xsl:template>
  343.  
  344.  
  345.   <xsl:template name="templ_str_InterviewWithCap" >
  346.     <xsl:param name="LCID" />
  347.     <xsl:variable name="_LCID">
  348.       <xsl:call-template name="localLCID">
  349.         <xsl:with-param name="LCID" select="$LCID"/>
  350.       </xsl:call-template>
  351.     </xsl:variable>
  352.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:InterviewWithCap"/>
  353.   </xsl:template>
  354.  
  355.  
  356.   <xsl:template name="templ_str_InterviewByCap" >
  357.     <xsl:param name="LCID" />
  358.     <xsl:variable name="_LCID">
  359.       <xsl:call-template name="localLCID">
  360.         <xsl:with-param name="LCID" select="$LCID"/>
  361.       </xsl:call-template>
  362.     </xsl:variable>
  363.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:InterviewByCap"/>
  364.   </xsl:template>
  365.  
  366.  
  367.   <xsl:template name="templ_str_ByCap" >
  368.     <xsl:param name="LCID" />
  369.     <xsl:variable name="_LCID">
  370.       <xsl:call-template name="localLCID">
  371.         <xsl:with-param name="LCID" select="$LCID"/>
  372.       </xsl:call-template>
  373.     </xsl:variable>
  374.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:ByCap"/>
  375.   </xsl:template>
  376.  
  377.  
  378.   <xsl:template name="templ_str_AndUnCap" >
  379.     <xsl:param name="LCID" />
  380.     <xsl:variable name="_LCID">
  381.       <xsl:call-template name="localLCID">
  382.         <xsl:with-param name="LCID" select="$LCID"/>
  383.       </xsl:call-template>
  384.     </xsl:variable>
  385.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:AndUnCap"/>
  386.   </xsl:template>
  387.  
  388.  
  389.   <xsl:template name="templ_str_AndOthersUnCap" >
  390.     <xsl:param name="LCID" />
  391.     <xsl:variable name="_LCID">
  392.       <xsl:call-template name="localLCID">
  393.         <xsl:with-param name="LCID" select="$LCID"/>
  394.       </xsl:call-template>
  395.     </xsl:variable>
  396.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:AndOthersUnCap"/>
  397.   </xsl:template>
  398.  
  399.  
  400.   <xsl:template name="templ_str_MotionPictureCap" >
  401.     <xsl:param name="LCID" />
  402.     <xsl:variable name="_LCID">
  403.       <xsl:call-template name="localLCID">
  404.         <xsl:with-param name="LCID" select="$LCID"/>
  405.       </xsl:call-template>
  406.     </xsl:variable>
  407.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:MotionPictureCap"/>
  408.   </xsl:template>
  409.  
  410.  
  411.   <xsl:template name="templ_str_PatentCap" >
  412.     <xsl:param name="LCID" />
  413.     <xsl:variable name="_LCID">
  414.       <xsl:call-template name="localLCID">
  415.         <xsl:with-param name="LCID" select="$LCID"/>
  416.       </xsl:call-template>
  417.     </xsl:variable>
  418.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:PatentCap"/>
  419.   </xsl:template>
  420.  
  421.  
  422.   <xsl:template name="templ_str_EditionShortUnCap" >
  423.     <xsl:param name="LCID" />
  424.     <xsl:variable name="_LCID">
  425.       <xsl:call-template name="localLCID">
  426.         <xsl:with-param name="LCID" select="$LCID"/>
  427.       </xsl:call-template>
  428.     </xsl:variable>
  429.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:EditionShortUnCap"/>
  430.   </xsl:template>
  431.  
  432.  
  433.   <xsl:template name="templ_str_EditionUnCap" >
  434.     <xsl:param name="LCID" />
  435.     <xsl:variable name="_LCID">
  436.       <xsl:call-template name="localLCID">
  437.         <xsl:with-param name="LCID" select="$LCID"/>
  438.       </xsl:call-template>
  439.     </xsl:variable>
  440.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:EditionUnCap"/>
  441.   </xsl:template>
  442.  
  443.  
  444.   <xsl:template name="templ_str_RetrievedFromCap" >
  445.     <xsl:param name="LCID" />
  446.     <xsl:variable name="_LCID">
  447.       <xsl:call-template name="localLCID">
  448.         <xsl:with-param name="LCID" select="$LCID"/>
  449.       </xsl:call-template>
  450.     </xsl:variable>
  451.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:RetrievedFromCap"/>
  452.   </xsl:template>
  453.  
  454.  
  455.   <xsl:template name="templ_str_RetrievedCap" >
  456.     <xsl:param name="LCID" />
  457.     <xsl:variable name="_LCID">
  458.       <xsl:call-template name="localLCID">
  459.         <xsl:with-param name="LCID" select="$LCID"/>
  460.       </xsl:call-template>
  461.     </xsl:variable>
  462.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:RetrievedCap"/>
  463.   </xsl:template>
  464.  
  465.  
  466.   <xsl:template name="templ_str_FromCap" >
  467.     <xsl:param name="LCID" />
  468.     <xsl:variable name="_LCID">
  469.       <xsl:call-template name="localLCID">
  470.         <xsl:with-param name="LCID" select="$LCID"/>
  471.       </xsl:call-template>
  472.     </xsl:variable>
  473.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:FromCap"/>
  474.   </xsl:template>
  475.  
  476.  
  477.   <xsl:template name="templ_str_FromUnCap" >
  478.     <xsl:param name="LCID" />
  479.     <xsl:variable name="_LCID">
  480.       <xsl:call-template name="localLCID">
  481.         <xsl:with-param name="LCID" select="$LCID"/>
  482.       </xsl:call-template>
  483.     </xsl:variable>
  484.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:FromUnCap"/>
  485.   </xsl:template>
  486.  
  487.  
  488.   <xsl:template name="templ_str_NoDateShortUnCap" >
  489.     <xsl:param name="LCID" />
  490.     <xsl:variable name="_LCID">
  491.       <xsl:call-template name="localLCID">
  492.         <xsl:with-param name="LCID" select="$LCID"/>
  493.       </xsl:call-template>
  494.     </xsl:variable>
  495.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:NoDateShortUnCap"/>
  496.   </xsl:template>
  497.  
  498.  
  499.   <xsl:template name="templ_str_NumberShortCap" >
  500.     <xsl:param name="LCID" />
  501.     <xsl:variable name="_LCID">
  502.       <xsl:call-template name="localLCID">
  503.         <xsl:with-param name="LCID" select="$LCID"/>
  504.       </xsl:call-template>
  505.     </xsl:variable>
  506.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:NumberShortCap"/>
  507.   </xsl:template>
  508.  
  509.  
  510.   <xsl:template name="templ_str_NumberShortUnCap" >
  511.     <xsl:param name="LCID" />
  512.     <xsl:variable name="_LCID">
  513.       <xsl:call-template name="localLCID">
  514.         <xsl:with-param name="LCID" select="$LCID"/>
  515.       </xsl:call-template>
  516.     </xsl:variable>
  517.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:NumberShortUnCap"/>
  518.   </xsl:template>
  519.  
  520.  
  521.   <xsl:template name="templ_str_PatentNumberShortCap" >
  522.     <xsl:param name="LCID" />
  523.     <xsl:variable name="_LCID">
  524.       <xsl:call-template name="localLCID">
  525.         <xsl:with-param name="LCID" select="$LCID"/>
  526.       </xsl:call-template>
  527.     </xsl:variable>
  528.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:PatentNumberShortCap"/>
  529.   </xsl:template>
  530.  
  531.  
  532.   <xsl:template name="templ_str_PagesCountinousShort" >
  533.     <xsl:param name="LCID" />
  534.     <xsl:variable name="_LCID">
  535.       <xsl:call-template name="localLCID">
  536.         <xsl:with-param name="LCID" select="$LCID"/>
  537.       </xsl:call-template>
  538.     </xsl:variable>
  539.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:PagesCountinousShort"/>
  540.   </xsl:template>
  541.  
  542.  
  543.   <xsl:template name="templ_str_PageShort" >
  544.     <xsl:param name="LCID" />
  545.     <xsl:variable name="_LCID">
  546.       <xsl:call-template name="localLCID">
  547.         <xsl:with-param name="LCID" select="$LCID"/>
  548.       </xsl:call-template>
  549.     </xsl:variable>
  550.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:PageShort"/>
  551.   </xsl:template>
  552.  
  553.  
  554.   <xsl:template name="templ_str_SineNomineShort" >
  555.     <xsl:param name="LCID" />
  556.     <xsl:variable name="_LCID">
  557.       <xsl:call-template name="localLCID">
  558.         <xsl:with-param name="LCID" select="$LCID"/>
  559.       </xsl:call-template>
  560.     </xsl:variable>
  561.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:SineNomineShort"/>
  562.   </xsl:template>
  563.  
  564.  
  565.   <xsl:template name="templ_str_SineLocoShort" >
  566.     <xsl:param name="LCID" />
  567.     <xsl:variable name="_LCID">
  568.       <xsl:call-template name="localLCID">
  569.         <xsl:with-param name="LCID" select="$LCID"/>
  570.       </xsl:call-template>
  571.     </xsl:variable>
  572.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:SineLocoShort"/>
  573.   </xsl:template>
  574.  
  575.  
  576.   <xsl:template name="templ_str_SineLocoSineNomineShort" >
  577.     <xsl:param name="LCID" />
  578.     <xsl:variable name="_LCID">
  579.       <xsl:call-template name="localLCID">
  580.         <xsl:with-param name="LCID" select="$LCID"/>
  581.       </xsl:call-template>
  582.     </xsl:variable>
  583.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:SineLocoSineNomineShort"/>
  584.   </xsl:template>
  585.  
  586.  
  587.   <xsl:template name="templ_str_VolumeOfShortCap" >
  588.     <xsl:param name="LCID" />
  589.     <xsl:variable name="_LCID">
  590.       <xsl:call-template name="localLCID">
  591.         <xsl:with-param name="LCID" select="$LCID"/>
  592.       </xsl:call-template>
  593.     </xsl:variable>
  594.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:VolumeOfShortCap"/>
  595.   </xsl:template>
  596.  
  597.  
  598.   <xsl:template name="templ_str_VolumesOfShortCap" >
  599.     <xsl:param name="LCID" />
  600.     <xsl:variable name="_LCID">
  601.       <xsl:call-template name="localLCID">
  602.         <xsl:with-param name="LCID" select="$LCID"/>
  603.       </xsl:call-template>
  604.     </xsl:variable>
  605.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:VolumesOfShortCap"/>
  606.   </xsl:template>
  607.  
  608.  
  609.   <xsl:template name="templ_str_VolumeShortCap" >
  610.     <xsl:param name="LCID" />
  611.     <xsl:variable name="_LCID">
  612.       <xsl:call-template name="localLCID">
  613.         <xsl:with-param name="LCID" select="$LCID"/>
  614.       </xsl:call-template>
  615.     </xsl:variable>
  616.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:VolumeShortCap"/>
  617.   </xsl:template>
  618.  
  619.  
  620.   <xsl:template name="templ_str_VolumeShortUnCap" >
  621.     <xsl:param name="LCID" />
  622.     <xsl:variable name="_LCID">
  623.       <xsl:call-template name="localLCID">
  624.         <xsl:with-param name="LCID" select="$LCID"/>
  625.       </xsl:call-template>
  626.     </xsl:variable>
  627.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:VolumeShortUnCap"/>
  628.   </xsl:template>
  629.  
  630.  
  631.   <xsl:template name="templ_str_VolumesShortUnCap" >
  632.     <xsl:param name="LCID" />
  633.     <xsl:variable name="_LCID">
  634.       <xsl:call-template name="localLCID">
  635.         <xsl:with-param name="LCID" select="$LCID"/>
  636.       </xsl:call-template>
  637.     </xsl:variable>
  638.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:VolumesShortUnCap"/>
  639.   </xsl:template>
  640.  
  641.  
  642.   <xsl:template name="templ_str_VolumesShortCap" >
  643.     <xsl:param name="LCID" />
  644.     <xsl:variable name="_LCID">
  645.       <xsl:call-template name="localLCID">
  646.         <xsl:with-param name="LCID" select="$LCID"/>
  647.       </xsl:call-template>
  648.     </xsl:variable>
  649.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:VolumesShortCap"/>
  650.   </xsl:template>
  651.  
  652.  
  653.   <xsl:template name="templ_str_VolumeCap" >
  654.     <xsl:param name="LCID" />
  655.     <xsl:variable name="_LCID">
  656.       <xsl:call-template name="localLCID">
  657.         <xsl:with-param name="LCID" select="$LCID"/>
  658.       </xsl:call-template>
  659.     </xsl:variable>
  660.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:VolumeCap"/>
  661.   </xsl:template>
  662.  
  663.  
  664.   <xsl:template name="templ_str_AuthorShortUnCap" >
  665.     <xsl:param name="LCID" />
  666.     <xsl:variable name="_LCID">
  667.       <xsl:call-template name="localLCID">
  668.         <xsl:with-param name="LCID" select="$LCID"/>
  669.       </xsl:call-template>
  670.     </xsl:variable>
  671.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:AuthorShortUnCap"/>
  672.   </xsl:template>
  673.  
  674.  
  675.   <xsl:template name="templ_str_BookAuthorShortUnCap" >
  676.     <xsl:param name="LCID" />
  677.     <xsl:variable name="_LCID">
  678.       <xsl:call-template name="localLCID">
  679.         <xsl:with-param name="LCID" select="$LCID"/>
  680.       </xsl:call-template>
  681.     </xsl:variable>
  682.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:BookAuthorShortUnCap"/>
  683.   </xsl:template>
  684.  
  685.  
  686.   <xsl:template name="templ_str_ArtistShortUnCap" >
  687.     <xsl:param name="LCID" />
  688.     <xsl:variable name="_LCID">
  689.       <xsl:call-template name="localLCID">
  690.         <xsl:with-param name="LCID" select="$LCID"/>
  691.       </xsl:call-template>
  692.     </xsl:variable>
  693.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:ArtistShortUnCap"/>
  694.   </xsl:template>
  695.  
  696.  
  697.   <xsl:template name="templ_str_WriterCap" >
  698.     <xsl:param name="LCID" />
  699.     <xsl:variable name="_LCID">
  700.       <xsl:call-template name="localLCID">
  701.         <xsl:with-param name="LCID" select="$LCID"/>
  702.       </xsl:call-template>
  703.     </xsl:variable>
  704.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:WriterCap"/>
  705.   </xsl:template>
  706.  
  707.  
  708.   <xsl:template name="templ_str_WritersCap" >
  709.     <xsl:param name="LCID" />
  710.     <xsl:variable name="_LCID">
  711.       <xsl:call-template name="localLCID">
  712.         <xsl:with-param name="LCID" select="$LCID"/>
  713.       </xsl:call-template>
  714.     </xsl:variable>
  715.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:WritersCap"/>
  716.   </xsl:template>
  717.  
  718.  
  719.   <xsl:template name="templ_str_WriterShortUnCap" >
  720.     <xsl:param name="LCID" />
  721.     <xsl:variable name="_LCID">
  722.       <xsl:call-template name="localLCID">
  723.         <xsl:with-param name="LCID" select="$LCID"/>
  724.       </xsl:call-template>
  725.     </xsl:variable>
  726.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:WriterShortUnCap"/>
  727.   </xsl:template>
  728.  
  729.  
  730.   <xsl:template name="templ_str_ConductedByCap" >
  731.     <xsl:param name="LCID" />
  732.     <xsl:variable name="_LCID">
  733.       <xsl:call-template name="localLCID">
  734.         <xsl:with-param name="LCID" select="$LCID"/>
  735.       </xsl:call-template>
  736.     </xsl:variable>
  737.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:ConductedByCap"/>
  738.   </xsl:template>
  739.  
  740.  
  741.   <xsl:template name="templ_str_ConductedByUnCap" >
  742.     <xsl:param name="LCID" />
  743.     <xsl:variable name="_LCID">
  744.       <xsl:call-template name="localLCID">
  745.         <xsl:with-param name="LCID" select="$LCID"/>
  746.       </xsl:call-template>
  747.     </xsl:variable>
  748.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:ConductedByUnCap"/>
  749.   </xsl:template>
  750.  
  751.  
  752.   <xsl:template name="templ_str_ConductorCap" >
  753.     <xsl:param name="LCID" />
  754.     <xsl:variable name="_LCID">
  755.       <xsl:call-template name="localLCID">
  756.         <xsl:with-param name="LCID" select="$LCID"/>
  757.       </xsl:call-template>
  758.     </xsl:variable>
  759.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:ConductorCap"/>
  760.   </xsl:template>
  761.  
  762.  
  763.   <xsl:template name="templ_str_ConductorsCap" >
  764.     <xsl:param name="LCID" />
  765.     <xsl:variable name="_LCID">
  766.       <xsl:call-template name="localLCID">
  767.         <xsl:with-param name="LCID" select="$LCID"/>
  768.       </xsl:call-template>
  769.     </xsl:variable>
  770.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:ConductorsCap"/>
  771.   </xsl:template>
  772.  
  773.  
  774.   <xsl:template name="templ_str_ConductorShortCap" >
  775.     <xsl:param name="LCID" />
  776.     <xsl:variable name="_LCID">
  777.       <xsl:call-template name="localLCID">
  778.         <xsl:with-param name="LCID" select="$LCID"/>
  779.       </xsl:call-template>
  780.     </xsl:variable>
  781.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:ConductorShortCap"/>
  782.   </xsl:template>
  783.  
  784.  
  785.   <xsl:template name="templ_str_ConductorShortUnCap" >
  786.     <xsl:param name="LCID" />
  787.     <xsl:variable name="_LCID">
  788.       <xsl:call-template name="localLCID">
  789.         <xsl:with-param name="LCID" select="$LCID"/>
  790.       </xsl:call-template>
  791.     </xsl:variable>
  792.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:ConductorShortUnCap"/>
  793.   </xsl:template>
  794.  
  795.  
  796.   <xsl:template name="templ_str_ConductorsShortCap" >
  797.     <xsl:param name="LCID" />
  798.     <xsl:variable name="_LCID">
  799.       <xsl:call-template name="localLCID">
  800.         <xsl:with-param name="LCID" select="$LCID"/>
  801.       </xsl:call-template>
  802.     </xsl:variable>
  803.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:ConductorsShortCap"/>
  804.   </xsl:template>
  805.  
  806.  
  807.   <xsl:template name="templ_str_ConductorsShortUnCap" >
  808.     <xsl:param name="LCID" />
  809.     <xsl:variable name="_LCID">
  810.       <xsl:call-template name="localLCID">
  811.         <xsl:with-param name="LCID" select="$LCID"/>
  812.       </xsl:call-template>
  813.     </xsl:variable>
  814.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:ConductorsShortUnCap"/>
  815.   </xsl:template>
  816.  
  817.  
  818.   <xsl:template name="templ_str_CounselShortUnCapIso" >
  819.     <xsl:param name="LCID" />
  820.     <xsl:variable name="_LCID">
  821.       <xsl:call-template name="localLCID">
  822.         <xsl:with-param name="LCID" select="$LCID"/>
  823.       </xsl:call-template>
  824.     </xsl:variable>
  825.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:CounselShortUnCapIso"/>
  826.   </xsl:template>
  827.  
  828.  
  829.   <xsl:template name="templ_str_CounselShortUnCap" >
  830.     <xsl:param name="LCID" />
  831.     <xsl:variable name="_LCID">
  832.       <xsl:call-template name="localLCID">
  833.         <xsl:with-param name="LCID" select="$LCID"/>
  834.       </xsl:call-template>
  835.     </xsl:variable>
  836.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:CounselShortUnCap"/>
  837.   </xsl:template>
  838.  
  839.  
  840.   <xsl:template name="templ_str_DirectedByCap" >
  841.     <xsl:param name="LCID" />
  842.     <xsl:variable name="_LCID">
  843.       <xsl:call-template name="localLCID">
  844.         <xsl:with-param name="LCID" select="$LCID"/>
  845.       </xsl:call-template>
  846.     </xsl:variable>
  847.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:DirectedByCap"/>
  848.   </xsl:template>
  849.  
  850.  
  851.   <xsl:template name="templ_str_DirectedByUnCap" >
  852.     <xsl:param name="LCID" />
  853.     <xsl:variable name="_LCID">
  854.       <xsl:call-template name="localLCID">
  855.         <xsl:with-param name="LCID" select="$LCID"/>
  856.       </xsl:call-template>
  857.     </xsl:variable>
  858.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:DirectedByUnCap"/>
  859.   </xsl:template>
  860.  
  861.  
  862.   <xsl:template name="templ_str_DirectorCap" >
  863.     <xsl:param name="LCID" />
  864.     <xsl:variable name="_LCID">
  865.       <xsl:call-template name="localLCID">
  866.         <xsl:with-param name="LCID" select="$LCID"/>
  867.       </xsl:call-template>
  868.     </xsl:variable>
  869.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:DirectorCap"/>
  870.   </xsl:template>
  871.  
  872.  
  873.   <xsl:template name="templ_str_DirectorsCap" >
  874.     <xsl:param name="LCID" />
  875.     <xsl:variable name="_LCID">
  876.       <xsl:call-template name="localLCID">
  877.         <xsl:with-param name="LCID" select="$LCID"/>
  878.       </xsl:call-template>
  879.     </xsl:variable>
  880.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:DirectorsCap"/>
  881.   </xsl:template>
  882.  
  883.  
  884.   <xsl:template name="templ_str_DirectorShortCap" >
  885.     <xsl:param name="LCID" />
  886.     <xsl:variable name="_LCID">
  887.       <xsl:call-template name="localLCID">
  888.         <xsl:with-param name="LCID" select="$LCID"/>
  889.       </xsl:call-template>
  890.     </xsl:variable>
  891.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:DirectorShortCap"/>
  892.   </xsl:template>
  893.  
  894.  
  895.   <xsl:template name="templ_str_DirectorShortUnCap" >
  896.     <xsl:param name="LCID" />
  897.     <xsl:variable name="_LCID">
  898.       <xsl:call-template name="localLCID">
  899.         <xsl:with-param name="LCID" select="$LCID"/>
  900.       </xsl:call-template>
  901.     </xsl:variable>
  902.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:DirectorShortUnCap"/>
  903.   </xsl:template>
  904.  
  905.  
  906.   <xsl:template name="templ_str_DirectorsShortCap" >
  907.     <xsl:param name="LCID" />
  908.     <xsl:variable name="_LCID">
  909.       <xsl:call-template name="localLCID">
  910.         <xsl:with-param name="LCID" select="$LCID"/>
  911.       </xsl:call-template>
  912.     </xsl:variable>
  913.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:DirectorsShortCap"/>
  914.   </xsl:template>
  915.  
  916.  
  917.   <xsl:template name="templ_str_DirectorsShortUnCap" >
  918.     <xsl:param name="LCID" />
  919.     <xsl:variable name="_LCID">
  920.       <xsl:call-template name="localLCID">
  921.         <xsl:with-param name="LCID" select="$LCID"/>
  922.       </xsl:call-template>
  923.     </xsl:variable>
  924.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:DirectorsShortUnCap"/>
  925.   </xsl:template>
  926.  
  927.  
  928.   <xsl:template name="templ_str_EditedByCap" >
  929.     <xsl:param name="LCID" />
  930.     <xsl:variable name="_LCID">
  931.       <xsl:call-template name="localLCID">
  932.         <xsl:with-param name="LCID" select="$LCID"/>
  933.       </xsl:call-template>
  934.     </xsl:variable>
  935.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:EditedByCap"/>
  936.   </xsl:template>
  937.  
  938.  
  939.   <xsl:template name="templ_str_EditedByUnCap" >
  940.     <xsl:param name="LCID" />
  941.     <xsl:variable name="_LCID">
  942.       <xsl:call-template name="localLCID">
  943.         <xsl:with-param name="LCID" select="$LCID"/>
  944.       </xsl:call-template>
  945.     </xsl:variable>
  946.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:EditedByUnCap"/>
  947.   </xsl:template>
  948.  
  949.  
  950.   <xsl:template name="templ_str_EditorCap" >
  951.     <xsl:param name="LCID" />
  952.     <xsl:variable name="_LCID">
  953.       <xsl:call-template name="localLCID">
  954.         <xsl:with-param name="LCID" select="$LCID"/>
  955.       </xsl:call-template>
  956.     </xsl:variable>
  957.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:EditorCap"/>
  958.   </xsl:template>
  959.  
  960.  
  961.   <xsl:template name="templ_str_EditorsCap" >
  962.     <xsl:param name="LCID" />
  963.     <xsl:variable name="_LCID">
  964.       <xsl:call-template name="localLCID">
  965.         <xsl:with-param name="LCID" select="$LCID"/>
  966.       </xsl:call-template>
  967.     </xsl:variable>
  968.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:EditorsCap"/>
  969.   </xsl:template>
  970.  
  971.  
  972.   <xsl:template name="templ_str_EditorShortCap" >
  973.     <xsl:param name="LCID" />
  974.     <xsl:variable name="_LCID">
  975.       <xsl:call-template name="localLCID">
  976.         <xsl:with-param name="LCID" select="$LCID"/>
  977.       </xsl:call-template>
  978.     </xsl:variable>
  979.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:EditorShortCap"/>
  980.   </xsl:template>
  981.  
  982.  
  983.   <xsl:template name="templ_str_EditorShortUnCap" >
  984.     <xsl:param name="LCID" />
  985.     <xsl:variable name="_LCID">
  986.       <xsl:call-template name="localLCID">
  987.         <xsl:with-param name="LCID" select="$LCID"/>
  988.       </xsl:call-template>
  989.     </xsl:variable>
  990.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:EditorShortUnCap"/>
  991.   </xsl:template>
  992.  
  993.  
  994.   <xsl:template name="templ_str_EditorsShortCap" >
  995.     <xsl:param name="LCID" />
  996.     <xsl:variable name="_LCID">
  997.       <xsl:call-template name="localLCID">
  998.         <xsl:with-param name="LCID" select="$LCID"/>
  999.       </xsl:call-template>
  1000.     </xsl:variable>
  1001.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:EditorsShortCap"/>
  1002.   </xsl:template>
  1003.  
  1004.  
  1005.   <xsl:template name="templ_str_EditorsShortUnCap" >
  1006.     <xsl:param name="LCID" />
  1007.     <xsl:variable name="_LCID">
  1008.       <xsl:call-template name="localLCID">
  1009.         <xsl:with-param name="LCID" select="$LCID"/>
  1010.       </xsl:call-template>
  1011.     </xsl:variable>
  1012.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:EditorsShortUnCap"/>
  1013.   </xsl:template>
  1014.  
  1015.  
  1016.   <xsl:template name="templ_str_IntervieweeShortUnCap" >
  1017.     <xsl:param name="LCID" />
  1018.     <xsl:variable name="_LCID">
  1019.       <xsl:call-template name="localLCID">
  1020.         <xsl:with-param name="LCID" select="$LCID"/>
  1021.       </xsl:call-template>
  1022.     </xsl:variable>
  1023.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:IntervieweeShortUnCap"/>
  1024.   </xsl:template>
  1025.  
  1026.  
  1027.   <xsl:template name="templ_str_InterviewerCap" >
  1028.     <xsl:param name="LCID" />
  1029.     <xsl:variable name="_LCID">
  1030.       <xsl:call-template name="localLCID">
  1031.         <xsl:with-param name="LCID" select="$LCID"/>
  1032.       </xsl:call-template>
  1033.     </xsl:variable>
  1034.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:InterviewerCap"/>
  1035.   </xsl:template>
  1036.  
  1037.  
  1038.   <xsl:template name="templ_str_InterviewersCap" >
  1039.     <xsl:param name="LCID" />
  1040.     <xsl:variable name="_LCID">
  1041.       <xsl:call-template name="localLCID">
  1042.         <xsl:with-param name="LCID" select="$LCID"/>
  1043.       </xsl:call-template>
  1044.     </xsl:variable>
  1045.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:InterviewersCap"/>
  1046.   </xsl:template>
  1047.  
  1048.  
  1049.   <xsl:template name="templ_str_InventorShortUnCap" >
  1050.     <xsl:param name="LCID" />
  1051.     <xsl:variable name="_LCID">
  1052.       <xsl:call-template name="localLCID">
  1053.         <xsl:with-param name="LCID" select="$LCID"/>
  1054.       </xsl:call-template>
  1055.     </xsl:variable>
  1056.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:InventorShortUnCap"/>
  1057.   </xsl:template>
  1058.  
  1059.  
  1060.   <xsl:template name="templ_str_PerformedByCap" >
  1061.     <xsl:param name="LCID" />
  1062.     <xsl:variable name="_LCID">
  1063.       <xsl:call-template name="localLCID">
  1064.         <xsl:with-param name="LCID" select="$LCID"/>
  1065.       </xsl:call-template>
  1066.     </xsl:variable>
  1067.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:PerformedByCap"/>
  1068.   </xsl:template>
  1069.  
  1070.  
  1071.   <xsl:template name="templ_str_PerformedByUnCap" >
  1072.     <xsl:param name="LCID" />
  1073.     <xsl:variable name="_LCID">
  1074.       <xsl:call-template name="localLCID">
  1075.         <xsl:with-param name="LCID" select="$LCID"/>
  1076.       </xsl:call-template>
  1077.     </xsl:variable>
  1078.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:PerformedByUnCap"/>
  1079.   </xsl:template>
  1080.  
  1081.  
  1082.   <xsl:template name="templ_str_PerformerCap" >
  1083.     <xsl:param name="LCID" />
  1084.     <xsl:variable name="_LCID">
  1085.       <xsl:call-template name="localLCID">
  1086.         <xsl:with-param name="LCID" select="$LCID"/>
  1087.       </xsl:call-template>
  1088.     </xsl:variable>
  1089.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:PerformerCap"/>
  1090.   </xsl:template>
  1091.  
  1092.  
  1093.   <xsl:template name="templ_str_PerformersCap" >
  1094.     <xsl:param name="LCID" />
  1095.     <xsl:variable name="_LCID">
  1096.       <xsl:call-template name="localLCID">
  1097.         <xsl:with-param name="LCID" select="$LCID"/>
  1098.       </xsl:call-template>
  1099.     </xsl:variable>
  1100.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:PerformersCap"/>
  1101.   </xsl:template>
  1102.  
  1103.  
  1104.   <xsl:template name="templ_str_PerformerShortCap" >
  1105.     <xsl:param name="LCID" />
  1106.     <xsl:variable name="_LCID">
  1107.       <xsl:call-template name="localLCID">
  1108.         <xsl:with-param name="LCID" select="$LCID"/>
  1109.       </xsl:call-template>
  1110.     </xsl:variable>
  1111.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:PerformerShortCap"/>
  1112.   </xsl:template>
  1113.  
  1114.  
  1115.   <xsl:template name="templ_str_PerformerShortUnCap" >
  1116.     <xsl:param name="LCID" />
  1117.     <xsl:variable name="_LCID">
  1118.       <xsl:call-template name="localLCID">
  1119.         <xsl:with-param name="LCID" select="$LCID"/>
  1120.       </xsl:call-template>
  1121.     </xsl:variable>
  1122.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:PerformerShortUnCap"/>
  1123.   </xsl:template>
  1124.  
  1125.  
  1126.   <xsl:template name="templ_str_PerformersShortCap" >
  1127.     <xsl:param name="LCID" />
  1128.     <xsl:variable name="_LCID">
  1129.       <xsl:call-template name="localLCID">
  1130.         <xsl:with-param name="LCID" select="$LCID"/>
  1131.       </xsl:call-template>
  1132.     </xsl:variable>
  1133.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:PerformersShortCap"/>
  1134.   </xsl:template>
  1135.  
  1136.  
  1137.   <xsl:template name="templ_str_PerformersShortUnCap" >
  1138.     <xsl:param name="LCID" />
  1139.     <xsl:variable name="_LCID">
  1140.       <xsl:call-template name="localLCID">
  1141.         <xsl:with-param name="LCID" select="$LCID"/>
  1142.       </xsl:call-template>
  1143.     </xsl:variable>
  1144.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:PerformersShortUnCap"/>
  1145.   </xsl:template>
  1146.  
  1147.  
  1148.   <xsl:template name="templ_str_ProducedByCap" >
  1149.     <xsl:param name="LCID" />
  1150.     <xsl:variable name="_LCID">
  1151.       <xsl:call-template name="localLCID">
  1152.         <xsl:with-param name="LCID" select="$LCID"/>
  1153.       </xsl:call-template>
  1154.     </xsl:variable>
  1155.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:ProducedByCap"/>
  1156.   </xsl:template>
  1157.  
  1158.  
  1159.   <xsl:template name="templ_str_ProducedByUnCap" >
  1160.     <xsl:param name="LCID" />
  1161.     <xsl:variable name="_LCID">
  1162.       <xsl:call-template name="localLCID">
  1163.         <xsl:with-param name="LCID" select="$LCID"/>
  1164.       </xsl:call-template>
  1165.     </xsl:variable>
  1166.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:ProducedByUnCap"/>
  1167.   </xsl:template>
  1168.  
  1169.  
  1170.   <xsl:template name="templ_str_ProducerCap" >
  1171.     <xsl:param name="LCID" />
  1172.     <xsl:variable name="_LCID">
  1173.       <xsl:call-template name="localLCID">
  1174.         <xsl:with-param name="LCID" select="$LCID"/>
  1175.       </xsl:call-template>
  1176.     </xsl:variable>
  1177.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:ProducerCap"/>
  1178.   </xsl:template>
  1179.  
  1180.  
  1181.   <xsl:template name="templ_str_ProducersCap" >
  1182.     <xsl:param name="LCID" />
  1183.     <xsl:variable name="_LCID">
  1184.       <xsl:call-template name="localLCID">
  1185.         <xsl:with-param name="LCID" select="$LCID"/>
  1186.       </xsl:call-template>
  1187.     </xsl:variable>
  1188.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:ProducersCap"/>
  1189.   </xsl:template>
  1190.  
  1191.  
  1192.   <xsl:template name="templ_str_ProductionCompanyShortCap" >
  1193.     <xsl:param name="LCID" />
  1194.     <xsl:variable name="_LCID">
  1195.       <xsl:call-template name="localLCID">
  1196.         <xsl:with-param name="LCID" select="$LCID"/>
  1197.       </xsl:call-template>
  1198.     </xsl:variable>
  1199.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:ProductionCompanyShortCap"/>
  1200.   </xsl:template>
  1201.  
  1202.  
  1203.   <xsl:template name="templ_str_ProducerShortCap" >
  1204.     <xsl:param name="LCID" />
  1205.     <xsl:variable name="_LCID">
  1206.       <xsl:call-template name="localLCID">
  1207.         <xsl:with-param name="LCID" select="$LCID"/>
  1208.       </xsl:call-template>
  1209.     </xsl:variable>
  1210.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:ProducerShortCap"/>
  1211.   </xsl:template>
  1212.  
  1213.  
  1214.   <xsl:template name="templ_str_ProducersShortCap" >
  1215.     <xsl:param name="LCID" />
  1216.     <xsl:variable name="_LCID">
  1217.       <xsl:call-template name="localLCID">
  1218.         <xsl:with-param name="LCID" select="$LCID"/>
  1219.       </xsl:call-template>
  1220.     </xsl:variable>
  1221.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:ProducersShortCap"/>
  1222.   </xsl:template>
  1223.  
  1224.  
  1225.   <xsl:template name="templ_str_ProducerShortUnCap" >
  1226.     <xsl:param name="LCID" />
  1227.     <xsl:variable name="_LCID">
  1228.       <xsl:call-template name="localLCID">
  1229.         <xsl:with-param name="LCID" select="$LCID"/>
  1230.       </xsl:call-template>
  1231.     </xsl:variable>
  1232.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:ProducerShortUnCap"/>
  1233.   </xsl:template>
  1234.  
  1235.  
  1236.   <xsl:template name="templ_str_RecordedByCap" >
  1237.     <xsl:param name="LCID" />
  1238.     <xsl:variable name="_LCID">
  1239.       <xsl:call-template name="localLCID">
  1240.         <xsl:with-param name="LCID" select="$LCID"/>
  1241.       </xsl:call-template>
  1242.     </xsl:variable>
  1243.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:RecordedByCap"/>
  1244.   </xsl:template>
  1245.  
  1246.  
  1247.   <xsl:template name="templ_str_TranslatedByCap" >
  1248.     <xsl:param name="LCID" />
  1249.     <xsl:variable name="_LCID">
  1250.       <xsl:call-template name="localLCID">
  1251.         <xsl:with-param name="LCID" select="$LCID"/>
  1252.       </xsl:call-template>
  1253.     </xsl:variable>
  1254.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:TranslatedByCap"/>
  1255.   </xsl:template>
  1256.  
  1257.  
  1258.   <xsl:template name="templ_str_TranslatedByUnCap" >
  1259.     <xsl:param name="LCID" />
  1260.     <xsl:variable name="_LCID">
  1261.       <xsl:call-template name="localLCID">
  1262.         <xsl:with-param name="LCID" select="$LCID"/>
  1263.       </xsl:call-template>
  1264.     </xsl:variable>
  1265.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:TranslatedByUnCap"/>
  1266.   </xsl:template>
  1267.  
  1268.  
  1269.   <xsl:template name="templ_str_TranslatorCap" >
  1270.     <xsl:param name="LCID" />
  1271.     <xsl:variable name="_LCID">
  1272.       <xsl:call-template name="localLCID">
  1273.         <xsl:with-param name="LCID" select="$LCID"/>
  1274.       </xsl:call-template>
  1275.     </xsl:variable>
  1276.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:TranslatorCap"/>
  1277.   </xsl:template>
  1278.  
  1279.  
  1280.   <xsl:template name="templ_str_TranslatorsCap" >
  1281.     <xsl:param name="LCID" />
  1282.     <xsl:variable name="_LCID">
  1283.       <xsl:call-template name="localLCID">
  1284.         <xsl:with-param name="LCID" select="$LCID"/>
  1285.       </xsl:call-template>
  1286.     </xsl:variable>
  1287.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:TranslatorsCap"/>
  1288.   </xsl:template>
  1289.  
  1290.  
  1291.   <xsl:template name="templ_str_TranslatorShortCap" >
  1292.     <xsl:param name="LCID" />
  1293.     <xsl:variable name="_LCID">
  1294.       <xsl:call-template name="localLCID">
  1295.         <xsl:with-param name="LCID" select="$LCID"/>
  1296.       </xsl:call-template>
  1297.     </xsl:variable>
  1298.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:TranslatorShortCap"/>
  1299.   </xsl:template>
  1300.  
  1301.  
  1302.   <xsl:template name="templ_str_TranslatorShortUnCap" >
  1303.     <xsl:param name="LCID" />
  1304.     <xsl:variable name="_LCID">
  1305.       <xsl:call-template name="localLCID">
  1306.         <xsl:with-param name="LCID" select="$LCID"/>
  1307.       </xsl:call-template>
  1308.     </xsl:variable>
  1309.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:TranslatorShortUnCap"/>
  1310.   </xsl:template>
  1311.  
  1312.  
  1313.   <xsl:template name="templ_str_TranslatorsShortCap" >
  1314.     <xsl:param name="LCID" />
  1315.     <xsl:variable name="_LCID">
  1316.       <xsl:call-template name="localLCID">
  1317.         <xsl:with-param name="LCID" select="$LCID"/>
  1318.       </xsl:call-template>
  1319.     </xsl:variable>
  1320.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:TranslatorsShortCap"/>
  1321.   </xsl:template>
  1322.  
  1323.  
  1324.   <xsl:template name="templ_str_TranslatorsShortUnCap" >
  1325.     <xsl:param name="LCID" />
  1326.     <xsl:variable name="_LCID">
  1327.       <xsl:call-template name="localLCID">
  1328.         <xsl:with-param name="LCID" select="$LCID"/>
  1329.       </xsl:call-template>
  1330.     </xsl:variable>
  1331.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:TranslatorsShortUnCap"/>
  1332.   </xsl:template>
  1333.  
  1334.  
  1335.   <xsl:template name="templ_str_ComposerCap" >
  1336.     <xsl:param name="LCID" />
  1337.     <xsl:variable name="_LCID">
  1338.       <xsl:call-template name="localLCID">
  1339.         <xsl:with-param name="LCID" select="$LCID"/>
  1340.       </xsl:call-template>
  1341.     </xsl:variable>
  1342.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:ComposerCap"/>
  1343.   </xsl:template>
  1344.  
  1345.  
  1346.   <xsl:template name="templ_str_ComposersCap" >
  1347.     <xsl:param name="LCID" />
  1348.     <xsl:variable name="_LCID">
  1349.       <xsl:call-template name="localLCID">
  1350.         <xsl:with-param name="LCID" select="$LCID"/>
  1351.       </xsl:call-template>
  1352.     </xsl:variable>
  1353.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:ComposersCap"/>
  1354.   </xsl:template>
  1355.  
  1356.  
  1357.   <xsl:template name="templ_str_ComposerShortCap" >
  1358.     <xsl:param name="LCID" />
  1359.     <xsl:variable name="_LCID">
  1360.       <xsl:call-template name="localLCID">
  1361.         <xsl:with-param name="LCID" select="$LCID"/>
  1362.       </xsl:call-template>
  1363.     </xsl:variable>
  1364.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:ComposerShortCap"/>
  1365.   </xsl:template>
  1366.  
  1367.  
  1368.   <xsl:template name="templ_str_ComposersShortCap" >
  1369.     <xsl:param name="LCID" />
  1370.     <xsl:variable name="_LCID">
  1371.       <xsl:call-template name="localLCID">
  1372.         <xsl:with-param name="LCID" select="$LCID"/>
  1373.       </xsl:call-template>
  1374.     </xsl:variable>
  1375.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:ComposersShortCap"/>
  1376.   </xsl:template>
  1377.  
  1378.  
  1379.   <xsl:template name="templ_str_ComposerShortUnCapIso" >
  1380.     <xsl:param name="LCID" />
  1381.     <xsl:variable name="_LCID">
  1382.       <xsl:call-template name="localLCID">
  1383.         <xsl:with-param name="LCID" select="$LCID"/>
  1384.       </xsl:call-template>
  1385.     </xsl:variable>
  1386.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:ComposerShortUnCapIso"/>
  1387.   </xsl:template>
  1388.  
  1389.  
  1390.   <xsl:template name="templ_str_CompiledByCap" >
  1391.     <xsl:param name="LCID" />
  1392.     <xsl:variable name="_LCID">
  1393.       <xsl:call-template name="localLCID">
  1394.         <xsl:with-param name="LCID" select="$LCID"/>
  1395.       </xsl:call-template>
  1396.     </xsl:variable>
  1397.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:CompiledByCap"/>
  1398.   </xsl:template>
  1399.  
  1400.  
  1401.   <xsl:template name="templ_str_CompiledByUnCap" >
  1402.     <xsl:param name="LCID" />
  1403.     <xsl:variable name="_LCID">
  1404.       <xsl:call-template name="localLCID">
  1405.         <xsl:with-param name="LCID" select="$LCID"/>
  1406.       </xsl:call-template>
  1407.     </xsl:variable>
  1408.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:CompiledByUnCap"/>
  1409.   </xsl:template>
  1410.  
  1411.  
  1412.   <xsl:template name="templ_str_CompilerCap" >
  1413.     <xsl:param name="LCID" />
  1414.     <xsl:variable name="_LCID">
  1415.       <xsl:call-template name="localLCID">
  1416.         <xsl:with-param name="LCID" select="$LCID"/>
  1417.       </xsl:call-template>
  1418.     </xsl:variable>
  1419.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:CompilerCap"/>
  1420.   </xsl:template>
  1421.  
  1422.  
  1423.   <xsl:template name="templ_str_CompilersCap" >
  1424.     <xsl:param name="LCID" />
  1425.     <xsl:variable name="_LCID">
  1426.       <xsl:call-template name="localLCID">
  1427.         <xsl:with-param name="LCID" select="$LCID"/>
  1428.       </xsl:call-template>
  1429.     </xsl:variable>
  1430.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:CompilersCap"/>
  1431.   </xsl:template>
  1432.  
  1433.  
  1434.   <xsl:template name="templ_str_CompilerShortCap" >
  1435.     <xsl:param name="LCID" />
  1436.     <xsl:variable name="_LCID">
  1437.       <xsl:call-template name="localLCID">
  1438.         <xsl:with-param name="LCID" select="$LCID"/>
  1439.       </xsl:call-template>
  1440.     </xsl:variable>
  1441.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:CompilerShortCap"/>
  1442.   </xsl:template>
  1443.  
  1444.  
  1445.   <xsl:template name="templ_str_CompilerShortUnCap" >
  1446.     <xsl:param name="LCID" />
  1447.     <xsl:variable name="_LCID">
  1448.       <xsl:call-template name="localLCID">
  1449.         <xsl:with-param name="LCID" select="$LCID"/>
  1450.       </xsl:call-template>
  1451.     </xsl:variable>
  1452.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:CompilerShortUnCap"/>
  1453.   </xsl:template>
  1454.  
  1455.  
  1456.   <xsl:template name="templ_str_CompilersShortCap" >
  1457.     <xsl:param name="LCID" />
  1458.     <xsl:variable name="_LCID">
  1459.       <xsl:call-template name="localLCID">
  1460.         <xsl:with-param name="LCID" select="$LCID"/>
  1461.       </xsl:call-template>
  1462.     </xsl:variable>
  1463.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:CompilersShortCap"/>
  1464.   </xsl:template>
  1465.  
  1466.  
  1467.   <xsl:template name="templ_str_CompilersShortUnCap" >
  1468.     <xsl:param name="LCID" />
  1469.     <xsl:variable name="_LCID">
  1470.       <xsl:call-template name="localLCID">
  1471.         <xsl:with-param name="LCID" select="$LCID"/>
  1472.       </xsl:call-template>
  1473.     </xsl:variable>
  1474.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:CompilersShortUnCap"/>
  1475.   </xsl:template>
  1476.  
  1477.  
  1478.   <xsl:template name="templ_str_CompilerShortUnCapIso" >
  1479.     <xsl:param name="LCID" />
  1480.     <xsl:variable name="_LCID">
  1481.       <xsl:call-template name="localLCID">
  1482.         <xsl:with-param name="LCID" select="$LCID"/>
  1483.       </xsl:call-template>
  1484.     </xsl:variable>
  1485.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:CompilerShortUnCapIso"/>
  1486.   </xsl:template>
  1487.  
  1488.  
  1489.  
  1490.  
  1491.  
  1492.   <xsl:template name="templ_prop_Culture" >
  1493.     <xsl:param name="LCID" />
  1494.     <xsl:variable name="_LCID">
  1495.       <xsl:call-template name="localLCID">
  1496.         <xsl:with-param name="LCID" select="$LCID"/>
  1497.       </xsl:call-template>
  1498.     </xsl:variable>
  1499.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/@Culture"/>
  1500.   </xsl:template>
  1501.  
  1502.  
  1503.   <xsl:template name="templ_prop_Direction" >
  1504.     <xsl:param name="LCID" />
  1505.     <xsl:variable name="_LCID">
  1506.       <xsl:call-template name="localLCID">
  1507.         <xsl:with-param name="LCID" select="$LCID"/>
  1508.       </xsl:call-template>
  1509.     </xsl:variable>
  1510.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Properties/b:Direction"/>
  1511.   </xsl:template>
  1512.  
  1513.  
  1514.  
  1515.  
  1516.  
  1517.   <xsl:template name="templ_prop_NoItalics" >
  1518.     <xsl:param name="LCID" />
  1519.     <xsl:variable name="_LCID">
  1520.       <xsl:call-template name="localLCID">
  1521.         <xsl:with-param name="LCID" select="$LCID"/>
  1522.       </xsl:call-template>
  1523.     </xsl:variable>
  1524.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:General/b:NoItalics"/>
  1525.   </xsl:template>
  1526.  
  1527.  
  1528.   <xsl:template name="templ_prop_TitleOpen" >
  1529.     <xsl:param name="LCID" />
  1530.     <xsl:variable name="_LCID">
  1531.       <xsl:call-template name="localLCID">
  1532.         <xsl:with-param name="LCID" select="$LCID"/>
  1533.       </xsl:call-template>
  1534.     </xsl:variable>
  1535.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:General/b:TitleOpen"/>
  1536.   </xsl:template>
  1537.  
  1538.  
  1539.   <xsl:template name="templ_prop_TitleClose" >
  1540.     <xsl:param name="LCID" />
  1541.     <xsl:variable name="_LCID">
  1542.       <xsl:call-template name="localLCID">
  1543.         <xsl:with-param name="LCID" select="$LCID"/>
  1544.       </xsl:call-template>
  1545.     </xsl:variable>
  1546.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:General/b:TitleClose"/>
  1547.   </xsl:template>  
  1548.  
  1549.  
  1550.   <xsl:template name="templ_prop_EndChars" >
  1551.     <xsl:param name="LCID" />
  1552.     <xsl:variable name="_LCID">
  1553.       <xsl:call-template name="localLCID">
  1554.         <xsl:with-param name="LCID" select="$LCID"/>
  1555.       </xsl:call-template>
  1556.     </xsl:variable>
  1557.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:General/b:EndChars"/>
  1558.   </xsl:template>
  1559.  
  1560.  
  1561.   <xsl:template name="templ_prop_NormalizeSpace" >
  1562.     <xsl:param name="LCID" />
  1563.     <xsl:variable name="_LCID">
  1564.       <xsl:call-template name="localLCID">
  1565.         <xsl:with-param name="LCID" select="$LCID"/>
  1566.       </xsl:call-template>
  1567.     </xsl:variable>
  1568.     <xsl:text>no</xsl:text>
  1569.    
  1570.   </xsl:template>
  1571.  
  1572.  
  1573.   <xsl:template name="templ_prop_Space" >
  1574.     <xsl:param name="LCID" />
  1575.     <xsl:variable name="_LCID">
  1576.       <xsl:call-template name="localLCID">
  1577.         <xsl:with-param name="LCID" select="$LCID"/>
  1578.       </xsl:call-template>
  1579.     </xsl:variable>
  1580.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:General/b:Space"/>
  1581.   </xsl:template>
  1582.  
  1583.  
  1584.   <xsl:template name="templ_prop_NonBreakingSpace" >
  1585.     <xsl:param name="LCID" />
  1586.     <xsl:variable name="_LCID">
  1587.       <xsl:call-template name="localLCID">
  1588.         <xsl:with-param name="LCID" select="$LCID"/>
  1589.       </xsl:call-template>
  1590.     </xsl:variable>
  1591.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:General/b:NonBreakingSpace"/>
  1592.   </xsl:template>
  1593.  
  1594.  
  1595.   <xsl:template name="templ_prop_ListSeparator" >
  1596.     <xsl:param name="LCID" />
  1597.     <xsl:variable name="_LCID">
  1598.       <xsl:call-template name="localLCID">
  1599.         <xsl:with-param name="LCID" select="$LCID"/>
  1600.       </xsl:call-template>
  1601.     </xsl:variable>
  1602.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:General/b:ListSeparator"/>
  1603.   </xsl:template>
  1604.  
  1605.  
  1606.   <xsl:template name="templ_prop_Dot" >
  1607.     <xsl:param name="LCID" />
  1608.     <xsl:variable name="_LCID">
  1609.       <xsl:call-template name="localLCID">
  1610.         <xsl:with-param name="LCID" select="$LCID"/>
  1611.       </xsl:call-template>
  1612.     </xsl:variable>
  1613.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:General/b:Dot"/>
  1614.   </xsl:template>
  1615.  
  1616.  
  1617.   <xsl:template name="templ_prop_DotInitial" >
  1618.     <xsl:param name="LCID" />
  1619.     <xsl:variable name="_LCID">
  1620.       <xsl:call-template name="localLCID">
  1621.         <xsl:with-param name="LCID" select="$LCID"/>
  1622.       </xsl:call-template>
  1623.     </xsl:variable>
  1624.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:General/b:DotInitial"/>
  1625.   </xsl:template>
  1626.  
  1627.  
  1628.   <xsl:template name="templ_prop_GroupSeparator" >
  1629.     <xsl:param name="LCID" />
  1630.     <xsl:variable name="_LCID">
  1631.       <xsl:call-template name="localLCID">
  1632.         <xsl:with-param name="LCID" select="$LCID"/>
  1633.       </xsl:call-template>
  1634.     </xsl:variable>
  1635.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:General/b:GroupSeparator"/>
  1636.   </xsl:template>
  1637.  
  1638.  
  1639.   <xsl:template name="templ_prop_EnumSeparator" >
  1640.     <xsl:param name="LCID" />
  1641.     <xsl:variable name="_LCID">
  1642.       <xsl:call-template name="localLCID">
  1643.         <xsl:with-param name="LCID" select="$LCID"/>
  1644.       </xsl:call-template>
  1645.     </xsl:variable>
  1646.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:General/b:EnumSeparator"/>
  1647.   </xsl:template>
  1648.  
  1649.  
  1650.   <xsl:template name="templ_prop_Equal" >
  1651.     <xsl:param name="LCID" />
  1652.     <xsl:variable name="_LCID">
  1653.       <xsl:call-template name="localLCID">
  1654.         <xsl:with-param name="LCID" select="$LCID"/>
  1655.       </xsl:call-template>
  1656.     </xsl:variable>
  1657.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:General/b:Equal"/>
  1658.   </xsl:template>
  1659.  
  1660.  
  1661.   <xsl:template name="templ_prop_Enum" >
  1662.     <xsl:param name="LCID" />
  1663.     <xsl:variable name="_LCID">
  1664.       <xsl:call-template name="localLCID">
  1665.         <xsl:with-param name="LCID" select="$LCID"/>
  1666.       </xsl:call-template>
  1667.     </xsl:variable>
  1668.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:General/b:Enum"/>
  1669.   </xsl:template>
  1670.  
  1671.  
  1672.   <xsl:template name="templ_prop_OpenQuote" >
  1673.     <xsl:param name="LCID" />
  1674.     <xsl:variable name="_LCID">
  1675.       <xsl:call-template name="localLCID">
  1676.         <xsl:with-param name="LCID" select="$LCID"/>
  1677.       </xsl:call-template>
  1678.     </xsl:variable>
  1679.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:General/b:OpenQuote"/>
  1680.   </xsl:template>
  1681.  
  1682.  
  1683.   <xsl:template name="templ_prop_CloseQuote" >
  1684.     <xsl:param name="LCID" />
  1685.     <xsl:variable name="_LCID">
  1686.       <xsl:call-template name="localLCID">
  1687.         <xsl:with-param name="LCID" select="$LCID"/>
  1688.       </xsl:call-template>
  1689.     </xsl:variable>
  1690.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:General/b:CloseQuote"/>
  1691.   </xsl:template>
  1692.  
  1693.  
  1694.   <xsl:template name="templ_prop_OpenBracket" >
  1695.     <xsl:param name="LCID" />
  1696.     <xsl:variable name="_LCID">
  1697.       <xsl:call-template name="localLCID">
  1698.         <xsl:with-param name="LCID" select="$LCID"/>
  1699.       </xsl:call-template>
  1700.     </xsl:variable>
  1701.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:General/b:OpenBracket"/>
  1702.   </xsl:template>
  1703.  
  1704.  
  1705.   <xsl:template name="templ_prop_CloseBracket" >
  1706.     <xsl:param name="LCID" />
  1707.     <xsl:variable name="_LCID">
  1708.       <xsl:call-template name="localLCID">
  1709.         <xsl:with-param name="LCID" select="$LCID"/>
  1710.       </xsl:call-template>
  1711.     </xsl:variable>
  1712.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:General/b:CloseBracket"/>
  1713.   </xsl:template>
  1714.  
  1715.  
  1716.   <xsl:template name="templ_prop_FromToDash" >
  1717.     <xsl:param name="LCID" />
  1718.     <xsl:variable name="_LCID">
  1719.       <xsl:call-template name="localLCID">
  1720.         <xsl:with-param name="LCID" select="$LCID"/>
  1721.       </xsl:call-template>
  1722.     </xsl:variable>
  1723.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:General/b:FromToDash"/>
  1724.   </xsl:template>
  1725.  
  1726.  
  1727.   <xsl:template name="templ_prop_OpenLink" >
  1728.     <xsl:param name="LCID" />
  1729.     <xsl:variable name="_LCID">
  1730.       <xsl:call-template name="localLCID">
  1731.         <xsl:with-param name="LCID" select="$LCID"/>
  1732.       </xsl:call-template>
  1733.     </xsl:variable>
  1734.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:General/b:OpenLink"/>
  1735.   </xsl:template>
  1736.  
  1737.  
  1738.   <xsl:template name="templ_prop_CloseLink" >
  1739.     <xsl:param name="LCID" />
  1740.     <xsl:variable name="_LCID">
  1741.       <xsl:call-template name="localLCID">
  1742.         <xsl:with-param name="LCID" select="$LCID"/>
  1743.       </xsl:call-template>
  1744.     </xsl:variable>
  1745.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:General/b:CloseLink"/>
  1746.   </xsl:template>
  1747.  
  1748.  
  1749.   <xsl:template name="templ_prop_AuthorsSeparator" >
  1750.     <xsl:param name="LCID" />
  1751.     <xsl:variable name="_LCID">
  1752.       <xsl:call-template name="localLCID">
  1753.         <xsl:with-param name="LCID" select="$LCID"/>
  1754.       </xsl:call-template>
  1755.     </xsl:variable>
  1756.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:General/b:AuthorsSeparator"/>
  1757.   </xsl:template>
  1758.  
  1759.  
  1760.   <xsl:template name="templ_prop_NoAndBeforeLastAuthor" >
  1761.     <xsl:param name="LCID" />
  1762.     <xsl:variable name="_LCID">
  1763.       <xsl:call-template name="localLCID">
  1764.         <xsl:with-param name="LCID" select="$LCID"/>
  1765.       </xsl:call-template>
  1766.     </xsl:variable>
  1767.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:General/b:NoAndBeforeLastAuthor"/>
  1768.   </xsl:template>
  1769.  
  1770.  
  1771.   <xsl:template name="templ_prop_NoCommaBeforeAnd" >
  1772.     <xsl:param name="LCID" />
  1773.     <xsl:variable name="_LCID">
  1774.       <xsl:call-template name="localLCID">
  1775.         <xsl:with-param name="LCID" select="$LCID"/>
  1776.       </xsl:call-template>
  1777.     </xsl:variable>
  1778.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:General/b:NoCommaBeforeAnd"/>
  1779.   </xsl:template>
  1780.  
  1781.   <xsl:template name="templ_prop_SimpleAuthor_F" >
  1782.   <xsl:text>%F</xsl:text>
  1783.  
  1784.   </xsl:template>
  1785.  
  1786.  
  1787.   <xsl:template name="templ_prop_SimpleAuthor_M" >
  1788.   <xsl:text>%M</xsl:text>
  1789.  
  1790.   </xsl:template>
  1791.  
  1792.  
  1793.   <xsl:template name="templ_prop_SimpleAuthor_L" >
  1794.   <xsl:text>%L</xsl:text>
  1795.  
  1796.   </xsl:template>
  1797.  
  1798.  
  1799.   <xsl:template name="templ_prop_SimpleDate_D" >
  1800.   <xsl:text>%D</xsl:text>
  1801.  
  1802.   </xsl:template>
  1803.  
  1804.  
  1805.   <xsl:template name="templ_prop_SimpleDate_M" >
  1806.   <xsl:text>%M</xsl:text>
  1807.  
  1808.   </xsl:template>
  1809.  
  1810.  
  1811.   <xsl:template name="templ_prop_SimpleDate_Y" >
  1812.   <xsl:text>%Y</xsl:text>
  1813.  
  1814.   </xsl:template>
  1815.  
  1816.  
  1817.   <xsl:template name="templ_prop_APA_MainAuthors_FML" >
  1818.     <xsl:param name="LCID" />
  1819.     <xsl:variable name="_LCID">
  1820.       <xsl:call-template name="localLCID">
  1821.         <xsl:with-param name="LCID" select="$LCID"/>
  1822.       </xsl:call-template>
  1823.     </xsl:variable>
  1824.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:APA/b:MainAuthors/b:FML"/>
  1825.   </xsl:template>
  1826.  
  1827.  
  1828.   <xsl:template name="templ_prop_APA_MainAuthors_FM" >
  1829.     <xsl:param name="LCID" />
  1830.     <xsl:variable name="_LCID">
  1831.       <xsl:call-template name="localLCID">
  1832.         <xsl:with-param name="LCID" select="$LCID"/>
  1833.       </xsl:call-template>
  1834.     </xsl:variable>
  1835.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:APA/b:MainAuthors/b:FM"/>
  1836.   </xsl:template>
  1837.  
  1838.  
  1839.   <xsl:template name="templ_prop_APA_MainAuthors_ML" >
  1840.     <xsl:param name="LCID" />
  1841.     <xsl:variable name="_LCID">
  1842.       <xsl:call-template name="localLCID">
  1843.         <xsl:with-param name="LCID" select="$LCID"/>
  1844.       </xsl:call-template>
  1845.     </xsl:variable>
  1846.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:APA/b:MainAuthors/b:ML"/>
  1847.   </xsl:template>
  1848.  
  1849.  
  1850.   <xsl:template name="templ_prop_APA_MainAuthors_FL" >
  1851.     <xsl:param name="LCID" />
  1852.     <xsl:variable name="_LCID">
  1853.       <xsl:call-template name="localLCID">
  1854.         <xsl:with-param name="LCID" select="$LCID"/>
  1855.       </xsl:call-template>
  1856.     </xsl:variable>
  1857.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:APA/b:MainAuthors/b:FL"/>
  1858.   </xsl:template>
  1859.  
  1860.  
  1861.   <xsl:template name="templ_prop_APA_SecondaryAuthors_FML" >
  1862.     <xsl:param name="LCID" />
  1863.     <xsl:variable name="_LCID">
  1864.       <xsl:call-template name="localLCID">
  1865.         <xsl:with-param name="LCID" select="$LCID"/>
  1866.       </xsl:call-template>
  1867.     </xsl:variable>
  1868.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:APA/b:SecondaryAuthors/b:FML"/>
  1869.   </xsl:template>
  1870.  
  1871.  
  1872.   <xsl:template name="templ_prop_APA_SecondaryAuthors_FM" >
  1873.     <xsl:param name="LCID" />
  1874.     <xsl:variable name="_LCID">
  1875.       <xsl:call-template name="localLCID">
  1876.         <xsl:with-param name="LCID" select="$LCID"/>
  1877.       </xsl:call-template>
  1878.     </xsl:variable>
  1879.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:APA/b:SecondaryAuthors/b:FM"/>
  1880.   </xsl:template>
  1881.  
  1882.  
  1883.   <xsl:template name="templ_prop_APA_SecondaryAuthors_ML" >
  1884.     <xsl:param name="LCID" />
  1885.     <xsl:variable name="_LCID">
  1886.       <xsl:call-template name="localLCID">
  1887.         <xsl:with-param name="LCID" select="$LCID"/>
  1888.       </xsl:call-template>
  1889.     </xsl:variable>
  1890.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:APA/b:SecondaryAuthors/b:ML"/>
  1891.   </xsl:template>
  1892.  
  1893.  
  1894.   <xsl:template name="templ_prop_APA_SecondaryAuthors_FL" >
  1895.     <xsl:param name="LCID" />
  1896.     <xsl:variable name="_LCID">
  1897.       <xsl:call-template name="localLCID">
  1898.         <xsl:with-param name="LCID" select="$LCID"/>
  1899.       </xsl:call-template>
  1900.     </xsl:variable>
  1901.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:APA/b:SecondaryAuthors/b:FL"/>
  1902.   </xsl:template>
  1903.  
  1904.  
  1905.   <xsl:template name="templ_prop_APA_BeforeLastAuthor" >
  1906.     <xsl:param name="LCID" />
  1907.     <xsl:variable name="_LCID">
  1908.       <xsl:call-template name="localLCID">
  1909.         <xsl:with-param name="LCID" select="$LCID"/>
  1910.       </xsl:call-template>
  1911.     </xsl:variable>
  1912.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:APA/b:BeforeLastAuthor"/>
  1913.   </xsl:template>
  1914.  
  1915.  
  1916.   <xsl:template name="templ_prop_APA_GeneralOpen" >
  1917.     <xsl:param name="LCID" />
  1918.     <xsl:variable name="_LCID">
  1919.       <xsl:call-template name="localLCID">
  1920.         <xsl:with-param name="LCID" select="$LCID"/>
  1921.       </xsl:call-template>
  1922.     </xsl:variable>
  1923.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:APA/b:GeneralOpen"/>
  1924.   </xsl:template>
  1925.  
  1926.  
  1927.   <xsl:template name="templ_prop_APA_GeneralClose" >
  1928.     <xsl:param name="LCID" />
  1929.     <xsl:variable name="_LCID">
  1930.       <xsl:call-template name="localLCID">
  1931.         <xsl:with-param name="LCID" select="$LCID"/>
  1932.       </xsl:call-template>
  1933.     </xsl:variable>
  1934.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:APA/b:GeneralClose"/>
  1935.   </xsl:template>
  1936.  
  1937.  
  1938.   <xsl:template name="templ_prop_APA_SecondaryOpen" >
  1939.     <xsl:param name="LCID" />
  1940.     <xsl:variable name="_LCID">
  1941.       <xsl:call-template name="localLCID">
  1942.         <xsl:with-param name="LCID" select="$LCID"/>
  1943.       </xsl:call-template>
  1944.     </xsl:variable>
  1945.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:APA/b:SecondaryOpen"/>
  1946.   </xsl:template>
  1947.  
  1948.  
  1949.   <xsl:template name="templ_prop_APA_SecondaryClose" >
  1950.     <xsl:param name="LCID" />
  1951.     <xsl:variable name="_LCID">
  1952.       <xsl:call-template name="localLCID">
  1953.         <xsl:with-param name="LCID" select="$LCID"/>
  1954.       </xsl:call-template>
  1955.     </xsl:variable>
  1956.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:APA/b:SecondaryClose"/>
  1957.   </xsl:template>
  1958.  
  1959.  
  1960.   <xsl:template name="templ_prop_Hyphens" >
  1961.     <xsl:param name="LCID" />
  1962.     <xsl:variable name="_LCID">
  1963.       <xsl:call-template name="localLCID">
  1964.         <xsl:with-param name="LCID" select="$LCID"/>
  1965.       </xsl:call-template>
  1966.     </xsl:variable>
  1967.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:General/b:Hyphens"/>
  1968.   </xsl:template>
  1969.  
  1970.  
  1971.   <xsl:template name="templ_prop_APA_Date_DMY" >
  1972.     <xsl:param name="LCID" />
  1973.     <xsl:variable name="_LCID">
  1974.       <xsl:call-template name="localLCID">
  1975.         <xsl:with-param name="LCID" select="$LCID"/>
  1976.       </xsl:call-template>
  1977.     </xsl:variable>
  1978.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:APA/b:Date/b:DMY"/>
  1979.   </xsl:template>
  1980.  
  1981.  
  1982.   <xsl:template name="templ_prop_APA_Date_DM" >
  1983.     <xsl:param name="LCID" />
  1984.     <xsl:variable name="_LCID">
  1985.       <xsl:call-template name="localLCID">
  1986.         <xsl:with-param name="LCID" select="$LCID"/>
  1987.       </xsl:call-template>
  1988.     </xsl:variable>
  1989.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:APA/b:Date/b:DM"/>
  1990.   </xsl:template>
  1991.  
  1992.  
  1993.   <xsl:template name="templ_prop_APA_Date_MY" >
  1994.     <xsl:param name="LCID" />
  1995.     <xsl:variable name="_LCID">
  1996.       <xsl:call-template name="localLCID">
  1997.         <xsl:with-param name="LCID" select="$LCID"/>
  1998.       </xsl:call-template>
  1999.     </xsl:variable>
  2000.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:APA/b:Date/b:MY"/>
  2001.   </xsl:template>
  2002.  
  2003.  
  2004.   <xsl:template name="templ_prop_APA_Date_DY" >
  2005.     <xsl:param name="LCID" />
  2006.     <xsl:variable name="_LCID">
  2007.       <xsl:call-template name="localLCID">
  2008.         <xsl:with-param name="LCID" select="$LCID"/>
  2009.       </xsl:call-template>
  2010.     </xsl:variable>
  2011.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:APA/b:Date/b:DY"/>
  2012.   </xsl:template>
  2013.  
  2014.  
  2015.   <xsl:template name="templ_prop_APA_DateAccessed_DMY" >
  2016.     <xsl:param name="LCID" />
  2017.     <xsl:variable name="_LCID">
  2018.       <xsl:call-template name="localLCID">
  2019.         <xsl:with-param name="LCID" select="$LCID"/>
  2020.       </xsl:call-template>
  2021.     </xsl:variable>
  2022.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:APA/b:DateAccessed/b:DMY"/>
  2023.   </xsl:template>
  2024.  
  2025.  
  2026.   <xsl:template name="templ_prop_APA_DateAccessed_DM" >
  2027.     <xsl:param name="LCID" />
  2028.     <xsl:variable name="_LCID">
  2029.       <xsl:call-template name="localLCID">
  2030.         <xsl:with-param name="LCID" select="$LCID"/>
  2031.       </xsl:call-template>
  2032.     </xsl:variable>
  2033.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:APA/b:DateAccessed/b:DM"/>
  2034.   </xsl:template>
  2035.  
  2036.  
  2037.   <xsl:template name="templ_prop_APA_DateAccessed_MY" >
  2038.     <xsl:param name="LCID" />
  2039.     <xsl:variable name="_LCID">
  2040.       <xsl:call-template name="localLCID">
  2041.         <xsl:with-param name="LCID" select="$LCID"/>
  2042.       </xsl:call-template>
  2043.     </xsl:variable>
  2044.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:APA/b:DateAccessed/b:MY"/>
  2045.   </xsl:template>
  2046.  
  2047.  
  2048.   <xsl:template name="templ_prop_APA_DateAccessed_DY" >
  2049.     <xsl:param name="LCID" />
  2050.     <xsl:variable name="_LCID">
  2051.       <xsl:call-template name="localLCID">
  2052.         <xsl:with-param name="LCID" select="$LCID"/>
  2053.       </xsl:call-template>
  2054.     </xsl:variable>
  2055.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:APA/b:DateAccessed/b:DY"/>
  2056.   </xsl:template>
  2057.  
  2058.  
  2059.   <xsl:template name="templ_prop_APA_DateCourt_DMY" >
  2060.     <xsl:param name="LCID" />
  2061.     <xsl:variable name="_LCID">
  2062.       <xsl:call-template name="localLCID">
  2063.         <xsl:with-param name="LCID" select="$LCID"/>
  2064.       </xsl:call-template>
  2065.     </xsl:variable>
  2066.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:APA/b:DateCourt/b:DMY"/>
  2067.   </xsl:template>
  2068.  
  2069.  
  2070.   <xsl:template name="templ_prop_APA_DateCourt_DM" >
  2071.     <xsl:param name="LCID" />
  2072.     <xsl:variable name="_LCID">
  2073.       <xsl:call-template name="localLCID">
  2074.         <xsl:with-param name="LCID" select="$LCID"/>
  2075.       </xsl:call-template>
  2076.     </xsl:variable>
  2077.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:APA/b:DateCourt/b:DM"/>
  2078.   </xsl:template>
  2079.  
  2080.  
  2081.   <xsl:template name="templ_prop_APA_DateCourt_MY" >
  2082.     <xsl:param name="LCID" />
  2083.     <xsl:variable name="_LCID">
  2084.       <xsl:call-template name="localLCID">
  2085.         <xsl:with-param name="LCID" select="$LCID"/>
  2086.       </xsl:call-template>
  2087.     </xsl:variable>
  2088.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:APA/b:DateCourt/b:MY"/>
  2089.   </xsl:template>
  2090.  
  2091.  
  2092.   <xsl:template name="templ_prop_APA_DateCourt_DY" >
  2093.     <xsl:param name="LCID" />
  2094.     <xsl:variable name="_LCID">
  2095.       <xsl:call-template name="localLCID">
  2096.         <xsl:with-param name="LCID" select="$LCID"/>
  2097.       </xsl:call-template>
  2098.     </xsl:variable>
  2099.     <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:APA/b:DateCourt/b:DY"/>
  2100.   </xsl:template>
  2101.  
  2102.  
  2103.   <xsl:template match="/">
  2104.  
  2105.     <xsl:choose>
  2106.  
  2107.       <xsl:when test="b:Version">
  2108.         <xsl:text>2006.5.07</xsl:text>
  2109.       </xsl:when>
  2110.  
  2111.       <xsl:when test="b:OfficeStyleKey">
  2112.         <xsl:text>APA</xsl:text>
  2113.       </xsl:when>
  2114.  
  2115.        <xsl:when test="b:XslVersion">
  2116.     <xsl:text>6</xsl:text>
  2117.       </xsl:when>
  2118.  
  2119.       <xsl:when test="b:StyleNameLocalized">
  2120.         <xsl:choose>
  2121.           <xsl:when test="b:StyleNameLocalized/b:Lcid='1033'">
  2122.             <xsl:text>APA</xsl:text>
  2123.           </xsl:when>
  2124.           <xsl:when test="b:StyleNameLocalized/b:Lcid='1025'">
  2125.             <xsl:text>APA</xsl:text>
  2126.           </xsl:when>
  2127.           <xsl:when test="b:StyleNameLocalized/b:Lcid='1037'">
  2128.             <xsl:text>APA</xsl:text>
  2129.           </xsl:when>
  2130.           <xsl:when test="b:StyleNameLocalized/b:Lcid='1041'">
  2131.             <xsl:text>APA</xsl:text>
  2132.           </xsl:when>
  2133.           <xsl:when test="b:StyleNameLocalized/b:Lcid='2052'">
  2134.             <xsl:text>APA</xsl:text>
  2135.           </xsl:when>
  2136.           <xsl:when test="b:StyleNameLocalized/b:Lcid='1028'">
  2137.             <xsl:text>APA</xsl:text>
  2138.           </xsl:when>
  2139.           <xsl:when test="b:StyleNameLocalized/b:Lcid='1042'">
  2140.             <xsl:text>APA</xsl:text>
  2141.           </xsl:when>
  2142.           <xsl:when test="b:StyleNameLocalized/b:Lcid='1036'">
  2143.             <xsl:text>APA</xsl:text>
  2144.           </xsl:when>
  2145.           <xsl:when test="b:StyleNameLocalized/b:Lcid='1040'">
  2146.             <xsl:text>APA</xsl:text>
  2147.           </xsl:when>
  2148.           <xsl:when test="b:StyleNameLocalized/b:Lcid='3082'">
  2149.             <xsl:text>APA</xsl:text>
  2150.           </xsl:when>
  2151.           <xsl:when test="b:StyleNameLocalized/b:Lcid='1043'">
  2152.             <xsl:text>APA</xsl:text>
  2153.           </xsl:when>
  2154.           <xsl:when test="b:StyleNameLocalized/b:Lcid='1031'">
  2155.             <xsl:text>APA</xsl:text>
  2156.           </xsl:when>
  2157.           <xsl:when test="b:StyleNameLocalized/b:Lcid='1046'">
  2158.             <xsl:text>APA</xsl:text>
  2159.           </xsl:when>
  2160.           <xsl:when test="b:StyleNameLocalized/b:Lcid='1049'">
  2161.             <xsl:text>APA</xsl:text>
  2162.           </xsl:when>
  2163.           <xsl:when test="b:StyleNameLocalized/b:Lcid='1035'">
  2164.             <xsl:text>APA</xsl:text>
  2165.           </xsl:when>
  2166.           <xsl:when test="b:StyleNameLocalized/b:Lcid='1032'">
  2167.             <xsl:text>APA</xsl:text>
  2168.           </xsl:when>
  2169.           <xsl:when test="b:StyleNameLocalized/b:Lcid='1081'">
  2170.             <xsl:text>APA</xsl:text>
  2171.           </xsl:when>
  2172.           <xsl:when test="b:StyleNameLocalized/b:Lcid='1054'">
  2173.             <xsl:text>APA</xsl:text>
  2174.           </xsl:when>
  2175.           <xsl:when test="b:StyleNameLocalized/b:Lcid='1057'">
  2176.             <xsl:text>APA</xsl:text>
  2177.           </xsl:when>
  2178.           <xsl:when test="b:StyleNameLocalized/b:Lcid='1086'">
  2179.             <xsl:text>APA</xsl:text>
  2180.           </xsl:when>
  2181.           <xsl:when test="b:StyleNameLocalized/b:Lcid='1066'">
  2182.             <xsl:text>APA</xsl:text>
  2183.           </xsl:when>
  2184.           <xsl:when test="b:StyleNameLocalized/b:Lcid='1053'">
  2185.             <xsl:text>APA</xsl:text>
  2186.           </xsl:when>
  2187.           <xsl:when test="b:StyleNameLocalized/b:Lcid='1069'">
  2188.             <xsl:text>APA</xsl:text>
  2189.           </xsl:when>
  2190.           <xsl:when test="b:StyleNameLocalized/b:Lcid='1027'">
  2191.             <xsl:text>APA</xsl:text>
  2192.           </xsl:when>
  2193.           <xsl:when test="b:StyleNameLocalized/b:Lcid='1030'">
  2194.             <xsl:text>APA</xsl:text>
  2195.           </xsl:when>
  2196.           <xsl:when test="b:StyleNameLocalized/b:Lcid='1110'">
  2197.             <xsl:text>APA</xsl:text>
  2198.           </xsl:when>
  2199.           <xsl:when test="b:StyleNameLocalized/b:Lcid='1044'">
  2200.             <xsl:text>APA</xsl:text>
  2201.           </xsl:when>
  2202.           <xsl:when test="b:StyleNameLocalized/b:Lcid='1061'">
  2203.             <xsl:text>APA</xsl:text>
  2204.           </xsl:when>
  2205.           <xsl:when test="b:StyleNameLocalized/b:Lcid='1062'">
  2206.             <xsl:text>APA</xsl:text>
  2207.           </xsl:when>
  2208.           <xsl:when test="b:StyleNameLocalized/b:Lcid='1063'">
  2209.             <xsl:text>APA</xsl:text>
  2210.           </xsl:when>
  2211.           <xsl:when test="b:StyleNameLocalized/b:Lcid='1045'">
  2212.             <xsl:text>APA</xsl:text>
  2213.           </xsl:when>
  2214.           <xsl:when test="b:StyleNameLocalized/b:Lcid='2070'">
  2215.             <xsl:text>APA</xsl:text>
  2216.           </xsl:when>
  2217.           <xsl:when test="b:StyleNameLocalized/b:Lcid='1029'">
  2218.             <xsl:text>APA</xsl:text>
  2219.           </xsl:when>
  2220.           <xsl:when test="b:StyleNameLocalized/b:Lcid='1055'">
  2221.             <xsl:text>APA</xsl:text>
  2222.           </xsl:when>
  2223.           <xsl:when test="b:StyleNameLocalized/b:Lcid='1038'">
  2224.             <xsl:text>APA</xsl:text>
  2225.           </xsl:when>
  2226.           <xsl:when test="b:StyleNameLocalized/b:Lcid='1048'">
  2227.             <xsl:text>APA</xsl:text>
  2228.           </xsl:when>
  2229.           <xsl:when test="b:StyleNameLocalized/b:Lcid='1058'">
  2230.             <xsl:text>APA</xsl:text>
  2231.           </xsl:when>
  2232.           <xsl:when test="b:StyleNameLocalized/b:Lcid='1026'">
  2233.             <xsl:text>APA</xsl:text>
  2234.           </xsl:when>
  2235.           <xsl:when test="b:StyleNameLocalized/b:Lcid='1050'">
  2236.             <xsl:text>APA</xsl:text>
  2237.           </xsl:when>
  2238.           <xsl:when test="b:StyleNameLocalized/b:Lcid='1087'">
  2239.             <xsl:text>Американдық психологиялық қауымдастық</xsl:text>
  2240.           </xsl:when>
  2241.           <xsl:when test="b:StyleNameLocalized/b:Lcid='2074'">
  2242.             <xsl:text>APA</xsl:text>
  2243.           </xsl:when>
  2244.           <xsl:when test="b:StyleNameLocalized/b:Lcid='3098'">
  2245.             <xsl:text>APA</xsl:text>
  2246.           </xsl:when>
  2247.           <xsl:when test="b:StyleNameLocalized/b:Lcid='1051'">
  2248.             <xsl:text>APA</xsl:text>
  2249.           </xsl:when>
  2250.           <xsl:when test="b:StyleNameLocalized/b:Lcid='1060'">
  2251.             <xsl:text>Standard APA</xsl:text>
  2252.           </xsl:when>
  2253.         </xsl:choose>
  2254.       </xsl:when>
  2255.  
  2256.       <xsl:when test="b:GetImportantFields">
  2257.         <b:ImportantFields>
  2258.           <xsl:choose>
  2259.             <xsl:when test="b:GetImportantFields/b:SourceType='Book'">
  2260.               <b:ImportantField>
  2261.                 <xsl:text>b:Author/b:Author/b:NameList</xsl:text>
  2262.               </b:ImportantField>
  2263.               <b:ImportantField>
  2264.                 <xsl:text>b:Title</xsl:text>
  2265.               </b:ImportantField>
  2266.               <b:ImportantField>
  2267.                 <xsl:text>b:Year</xsl:text>
  2268.               </b:ImportantField>
  2269.               <b:ImportantField>
  2270.                 <xsl:text>b:City</xsl:text>
  2271.               </b:ImportantField>
  2272.               <b:ImportantField>
  2273.                 <xsl:text>b:Publisher</xsl:text>
  2274.               </b:ImportantField>
  2275.             </xsl:when>
  2276.  
  2277.             <xsl:when test="b:GetImportantFields/b:SourceType='BookSection'">
  2278.               <b:ImportantField>
  2279.                 <xsl:text>b:Author/b:Author/b:NameList</xsl:text>
  2280.               </b:ImportantField>
  2281.               <b:ImportantField>
  2282.                 <xsl:text>b:Title</xsl:text>
  2283.               </b:ImportantField>
  2284.               <b:ImportantField>
  2285.                 <xsl:text>b:Author/b:BookAuthor/b:NameList</xsl:text>
  2286.               </b:ImportantField>
  2287.               <b:ImportantField>
  2288.                 <xsl:text>b:BookTitle</xsl:text>
  2289.               </b:ImportantField>
  2290.               <b:ImportantField>
  2291.                 <xsl:text>b:Year</xsl:text>
  2292.               </b:ImportantField>
  2293.               <b:ImportantField>
  2294.                 <xsl:text>b:Pages</xsl:text>
  2295.               </b:ImportantField>
  2296.               <b:ImportantField>
  2297.                 <xsl:text>b:City</xsl:text>
  2298.               </b:ImportantField>
  2299.               <b:ImportantField>
  2300.                 <xsl:text>b:Publisher</xsl:text>
  2301.               </b:ImportantField>
  2302.             </xsl:when>
  2303.  
  2304.             <xsl:when test="b:GetImportantFields/b:SourceType='JournalArticle'">
  2305.               <b:ImportantField>
  2306.                 <xsl:text>b:Author/b:Author/b:NameList</xsl:text>
  2307.               </b:ImportantField>
  2308.               <b:ImportantField>
  2309.                 <xsl:text>b:Title</xsl:text>
  2310.               </b:ImportantField>
  2311.               <b:ImportantField>
  2312.                 <xsl:text>b:JournalName</xsl:text>
  2313.               </b:ImportantField>
  2314.               <b:ImportantField>
  2315.                 <xsl:text>b:Year</xsl:text>
  2316.               </b:ImportantField>
  2317.               <b:ImportantField>
  2318.                 <xsl:text>b:Pages</xsl:text>
  2319.               </b:ImportantField>
  2320.             </xsl:when>
  2321.  
  2322.             <xsl:when test="b:GetImportantFields/b:SourceType='ArticleInAPeriodical'">
  2323.               <b:ImportantField>
  2324.                 <xsl:text>b:Author/b:Author/b:NameList</xsl:text>
  2325.               </b:ImportantField>
  2326.               <b:ImportantField>
  2327.                 <xsl:text>b:Title</xsl:text>
  2328.               </b:ImportantField>
  2329.               <b:ImportantField>
  2330.                 <xsl:text>b:PeriodicalTitle</xsl:text>
  2331.               </b:ImportantField>
  2332.               <b:ImportantField>
  2333.                 <xsl:text>b:Year</xsl:text>
  2334.               </b:ImportantField>
  2335.               <b:ImportantField>
  2336.                 <xsl:text>b:Month</xsl:text>
  2337.               </b:ImportantField>
  2338.               <b:ImportantField>
  2339.                 <xsl:text>b:Day</xsl:text>
  2340.               </b:ImportantField>
  2341.               <b:ImportantField>
  2342.                 <xsl:text>b:Pages</xsl:text>
  2343.               </b:ImportantField>
  2344.             </xsl:when>
  2345.  
  2346.             <xsl:when test="b:GetImportantFields/b:SourceType='ConferenceProceedings'">
  2347.               <b:ImportantField>
  2348.                 <xsl:text>b:Author/b:Author/b:NameList</xsl:text>
  2349.               </b:ImportantField>
  2350.               <b:ImportantField>
  2351.                 <xsl:text>b:Title</xsl:text>
  2352.               </b:ImportantField>
  2353.               <b:ImportantField>
  2354.                 <xsl:text>b:Pages</xsl:text>
  2355.               </b:ImportantField>
  2356.               <b:ImportantField>
  2357.                 <xsl:text>b:Year</xsl:text>
  2358.               </b:ImportantField>
  2359.               <b:ImportantField>
  2360.                 <xsl:text>b:ConferenceName</xsl:text>
  2361.               </b:ImportantField>
  2362.               <b:ImportantField>
  2363.                 <xsl:text>b:City</xsl:text>
  2364.               </b:ImportantField>
  2365.               <b:ImportantField>
  2366.                 <xsl:text>b:Publisher</xsl:text>
  2367.               </b:ImportantField>
  2368.             </xsl:when>
  2369.  
  2370.             <xsl:when test="b:GetImportantFields/b:SourceType='Report'">
  2371.               <b:ImportantField>
  2372.                 <xsl:text>b:Author/b:Author/b:NameList</xsl:text>
  2373.               </b:ImportantField>
  2374.               <b:ImportantField>
  2375.                 <xsl:text>b:Title</xsl:text>
  2376.               </b:ImportantField>
  2377.               <b:ImportantField>
  2378.                 <xsl:text>b:Year</xsl:text>
  2379.               </b:ImportantField>
  2380.               <b:ImportantField>
  2381.                 <xsl:text>b:Publisher</xsl:text>
  2382.               </b:ImportantField>
  2383.               <b:ImportantField>
  2384.                 <xsl:text>b:City</xsl:text>
  2385.               </b:ImportantField>
  2386.             </xsl:when>
  2387.  
  2388.             <xsl:when test="b:GetImportantFields/b:SourceType='SoundRecording'">
  2389.               <b:ImportantField>
  2390.                 <xsl:text>b:Author/b:Composer/b:NameList</xsl:text>
  2391.               </b:ImportantField>
  2392.               <b:ImportantField>
  2393.                 <xsl:text>b:Author/b:Performer/b:NameList</xsl:text>
  2394.               </b:ImportantField>
  2395.               <b:ImportantField>
  2396.                 <xsl:text>b:Title</xsl:text>
  2397.               </b:ImportantField>
  2398.               <b:ImportantField>
  2399.                 <xsl:text>b:Year</xsl:text>
  2400.               </b:ImportantField>
  2401.               <b:ImportantField>
  2402.                 <xsl:text>b:City</xsl:text>
  2403.               </b:ImportantField>
  2404.               <b:ImportantField>
  2405.                 <xsl:text>b:CountryRegion</xsl:text>
  2406.               </b:ImportantField>
  2407.               <b:ImportantField>
  2408.                 <xsl:text>b:StateProvince</xsl:text>
  2409.               </b:ImportantField>
  2410.             </xsl:when>
  2411.  
  2412.             <xsl:when test="b:GetImportantFields/b:SourceType='Performance'">
  2413.               <b:ImportantField>
  2414.                 <xsl:text>b:Title</xsl:text>
  2415.               </b:ImportantField>
  2416.               <b:ImportantField>
  2417.                 <xsl:text>b:Author/b:Writer/b:NameList</xsl:text>
  2418.               </b:ImportantField>
  2419.               <b:ImportantField>
  2420.                 <xsl:text>b:Author/b:Performer/b:NameList</xsl:text>
  2421.               </b:ImportantField>
  2422.               <b:ImportantField>
  2423.                 <xsl:text>b:Theater</xsl:text>
  2424.               </b:ImportantField>
  2425.               <b:ImportantField>
  2426.                 <xsl:text>b:City</xsl:text>
  2427.               </b:ImportantField>
  2428.               <b:ImportantField>
  2429.                 <xsl:text>b:CountryRegion</xsl:text>
  2430.               </b:ImportantField>
  2431.               <b:ImportantField>
  2432.                 <xsl:text>b:StateProvince</xsl:text>
  2433.               </b:ImportantField>
  2434.               <b:ImportantField>
  2435.                 <xsl:text>b:Year</xsl:text>
  2436.               </b:ImportantField>
  2437.               <b:ImportantField>
  2438.                 <xsl:text>b:Month</xsl:text>
  2439.               </b:ImportantField>
  2440.               <b:ImportantField>
  2441.                 <xsl:text>b:Day</xsl:text>
  2442.               </b:ImportantField>
  2443.             </xsl:when>
  2444.  
  2445.             <xsl:when test="b:GetImportantFields/b:SourceType='Art'">
  2446.               <b:ImportantField>
  2447.                 <xsl:text>b:Author/b:Artist/b:NameList</xsl:text>
  2448.               </b:ImportantField>
  2449.               <b:ImportantField>
  2450.                 <xsl:text>b:Title</xsl:text>
  2451.               </b:ImportantField>
  2452.               <b:ImportantField>
  2453.                 <xsl:text>b:Institution</xsl:text>
  2454.               </b:ImportantField>
  2455.               <b:ImportantField>
  2456.                 <xsl:text>b:PublicationTitle</xsl:text>
  2457.               </b:ImportantField>
  2458.               <b:ImportantField>
  2459.                 <xsl:text>b:City</xsl:text>
  2460.               </b:ImportantField>
  2461.             </xsl:when>
  2462.  
  2463.             <xsl:when test="b:GetImportantFields/b:SourceType='DocumentFromInternetSite'">
  2464.               <b:ImportantField>
  2465.                 <xsl:text>b:Author/b:Author/b:NameList</xsl:text>
  2466.               </b:ImportantField>
  2467.               <b:ImportantField>
  2468.                 <xsl:text>b:Title</xsl:text>
  2469.               </b:ImportantField>
  2470.               <b:ImportantField>
  2471.                 <xsl:text>b:InternetSiteTitle</xsl:text>
  2472.               </b:ImportantField>
  2473.               <b:ImportantField>
  2474.                 <xsl:text>b:Year</xsl:text>
  2475.               </b:ImportantField>
  2476.               <b:ImportantField>
  2477.                 <xsl:text>b:Month</xsl:text>
  2478.               </b:ImportantField>
  2479.               <b:ImportantField>
  2480.                 <xsl:text>b:Day</xsl:text>
  2481.               </b:ImportantField>
  2482.               <b:ImportantField>
  2483.                 <xsl:text>b:URL</xsl:text>
  2484.               </b:ImportantField>
  2485.             </xsl:when>
  2486.  
  2487.             <xsl:when test="b:GetImportantFields/b:SourceType='InternetSite'">
  2488.               <b:ImportantField>
  2489.                 <xsl:text>b:Author/b:Author/b:NameList</xsl:text>
  2490.               </b:ImportantField>
  2491.               <b:ImportantField>
  2492.                 <xsl:text>b:Title</xsl:text>
  2493.               </b:ImportantField>
  2494.               <b:ImportantField>
  2495.                 <xsl:text>b:InternetSiteTitle</xsl:text>
  2496.               </b:ImportantField>
  2497.               <b:ImportantField>
  2498.                 <xsl:text>b:Year</xsl:text>
  2499.               </b:ImportantField>
  2500.               <b:ImportantField>
  2501.                 <xsl:text>b:Month</xsl:text>
  2502.               </b:ImportantField>
  2503.               <b:ImportantField>
  2504.                 <xsl:text>b:Day</xsl:text>
  2505.               </b:ImportantField>
  2506.               <b:ImportantField>
  2507.                 <xsl:text>b:URL</xsl:text>
  2508.               </b:ImportantField>
  2509.             </xsl:when>
  2510.  
  2511.             <xsl:when test="b:GetImportantFields/b:SourceType='Film'">
  2512.               <b:ImportantField>
  2513.                 <xsl:text>b:Title</xsl:text>
  2514.               </b:ImportantField>
  2515.               <b:ImportantField>
  2516.                 <xsl:text>b:Author/b:Director/b:NameList</xsl:text>
  2517.               </b:ImportantField>
  2518.               <b:ImportantField>
  2519.                 <xsl:text>b:Year</xsl:text>
  2520.               </b:ImportantField>
  2521.             </xsl:when>
  2522.  
  2523.             <xsl:when test="b:GetImportantFields/b:SourceType='Interview'">
  2524.               <b:ImportantField>
  2525.                 <xsl:text>b:Author/b:Interviewee/b:NameList</xsl:text>
  2526.               </b:ImportantField>
  2527.               <b:ImportantField>
  2528.                 <xsl:text>b:Title</xsl:text>
  2529.               </b:ImportantField>
  2530.               <b:ImportantField>
  2531.                 <xsl:text>b:Author/b:Interviewer/b:NameList</xsl:text>
  2532.               </b:ImportantField>
  2533.               <b:ImportantField>
  2534.                 <xsl:text>b:Year</xsl:text>
  2535.               </b:ImportantField>
  2536.               <b:ImportantField>
  2537.                 <xsl:text>b:Month</xsl:text>
  2538.               </b:ImportantField>
  2539.               <b:ImportantField>
  2540.                 <xsl:text>b:Day</xsl:text>
  2541.               </b:ImportantField>
  2542.             </xsl:when>
  2543.  
  2544.             <xsl:when test="b:GetImportantFields/b:SourceType='Patent'">
  2545.               <b:ImportantField>
  2546.                 <xsl:text>b:Author/b:Inventor/b:NameList</xsl:text>
  2547.               </b:ImportantField>
  2548.               <b:ImportantField>
  2549.                 <xsl:text>b:Year</xsl:text>
  2550.               </b:ImportantField>
  2551.               <b:ImportantField>
  2552.                 <xsl:text>b:CountryRegion</xsl:text>
  2553.               </b:ImportantField>
  2554.               <b:ImportantField>
  2555.                 <xsl:text>b:PatentNumber</xsl:text>
  2556.               </b:ImportantField>
  2557.             </xsl:when>
  2558.  
  2559.             <xsl:when test="b:GetImportantFields/b:SourceType='ElectronicSource'">
  2560.               <b:ImportantField>
  2561.                 <xsl:text>b:Author/b:Author/b:NameList</xsl:text>
  2562.               </b:ImportantField>
  2563.               <b:ImportantField>
  2564.                 <xsl:text>b:Title</xsl:text>
  2565.               </b:ImportantField>
  2566.               <b:ImportantField>
  2567.                 <xsl:text>b:City</xsl:text>
  2568.               </b:ImportantField>
  2569.               <b:ImportantField>
  2570.                 <xsl:text>b:CountryRegion</xsl:text>
  2571.               </b:ImportantField>
  2572.               <b:ImportantField>
  2573.                 <xsl:text>b:StateProvince</xsl:text>
  2574.               </b:ImportantField>
  2575.               <b:ImportantField>
  2576.                 <xsl:text>b:Year</xsl:text>
  2577.               </b:ImportantField>
  2578.               <b:ImportantField>
  2579.                 <xsl:text>b:Month</xsl:text>
  2580.               </b:ImportantField>
  2581.               <b:ImportantField>
  2582.                 <xsl:text>b:Day</xsl:text>
  2583.               </b:ImportantField>
  2584.             </xsl:when>
  2585.  
  2586.             <xsl:when test="b:GetImportantFields/b:SourceType='Case'">
  2587.               <b:ImportantField>
  2588.                 <xsl:text>b:Title</xsl:text>
  2589.               </b:ImportantField>
  2590.               <b:ImportantField>
  2591.                 <xsl:text>b:CaseNumber</xsl:text>
  2592.               </b:ImportantField>
  2593.               <b:ImportantField>
  2594.                 <xsl:text>b:Court</xsl:text>
  2595.               </b:ImportantField>
  2596.               <b:ImportantField>
  2597.                 <xsl:text>b:Year</xsl:text>
  2598.               </b:ImportantField>
  2599.               <b:ImportantField>
  2600.                 <xsl:text>b:Month</xsl:text>
  2601.               </b:ImportantField>
  2602.               <b:ImportantField>
  2603.                 <xsl:text>b:Day</xsl:text>
  2604.               </b:ImportantField>
  2605.             </xsl:when>
  2606.  
  2607.             <xsl:when test="b:GetImportantFields/b:SourceType='Misc'">
  2608.               <b:ImportantField>
  2609.                 <xsl:text>b:Author/b:Author/b:NameList</xsl:text>
  2610.               </b:ImportantField>
  2611.               <b:ImportantField>
  2612.                 <xsl:text>b:Title</xsl:text>
  2613.               </b:ImportantField>
  2614.               <b:ImportantField>
  2615.                 <xsl:text>b:PublicationTitle</xsl:text>
  2616.               </b:ImportantField>
  2617.               <b:ImportantField>
  2618.                 <xsl:text>b:Year</xsl:text>
  2619.               </b:ImportantField>
  2620.               <b:ImportantField>
  2621.                 <xsl:text>b:Month</xsl:text>
  2622.               </b:ImportantField>
  2623.               <b:ImportantField>
  2624.                 <xsl:text>b:Day</xsl:text>
  2625.               </b:ImportantField>
  2626.               <b:ImportantField>
  2627.                 <xsl:text>b:City</xsl:text>
  2628.               </b:ImportantField>
  2629.               <b:ImportantField>
  2630.                 <xsl:text>b:CountryRegion</xsl:text>
  2631.               </b:ImportantField>
  2632.               <b:ImportantField>
  2633.                 <xsl:text>b:StateProvince</xsl:text>
  2634.               </b:ImportantField>
  2635.               <b:ImportantField>
  2636.                 <xsl:text>b:Publisher</xsl:text>
  2637.               </b:ImportantField>
  2638.             </xsl:when>
  2639.  
  2640.           </xsl:choose>
  2641.         </b:ImportantFields>
  2642.       </xsl:when>
  2643.  
  2644.  
  2645.             <xsl:when test="b:Citation">
  2646.  
  2647.                 <xsl:variable name="ListPopulatedWithMain">
  2648.                         <xsl:call-template name="populateMain">
  2649.                             <xsl:with-param name="Type">b:Citation</xsl:with-param>
  2650.                         </xsl:call-template>
  2651.                 </xsl:variable>
  2652.  
  2653.                 <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">
  2654.                     <head>
  2655.                     </head>
  2656.                     <body>
  2657.                         <xsl:variable name="LCID">
  2658.                             <xsl:choose>
  2659.                                 <xsl:when test="b:LCID='0' or b:LCID='' or not(b:LCID)">
  2660.                                     <xsl:value-of select="/*/b:Locals/b:DefaultLCID"/>
  2661.                                 </xsl:when>
  2662.                                 <xsl:otherwise>
  2663.                                     <xsl:value-of select="b:LCID"/>
  2664.                                 </xsl:otherwise>
  2665.                             </xsl:choose>
  2666.                         </xsl:variable>
  2667.  
  2668.                         <xsl:element name="p">
  2669.  
  2670.                         <xsl:attribute name="lang">
  2671.                             <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$LCID]/@Culture"/>
  2672.                         </xsl:attribute>
  2673.  
  2674.                         <xsl:attribute name="dir">
  2675.                             <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$LCID]/b:Properties/b:Direction"/>
  2676.                         </xsl:attribute>
  2677.  
  2678.                         <xsl:variable name="type">
  2679.                             <xsl:value-of select="msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:Source/b:SourceType"/>
  2680.                         </xsl:variable>
  2681.  
  2682.                         <xsl:variable name="title0">
  2683.                             <xsl:choose>
  2684.                                 <xsl:when test="string-length(msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:Source/b:ShortTitle)>0">
  2685.                                     <xsl:value-of select="msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:Source/b:ShortTitle" />
  2686.                                 </xsl:when>
  2687.  
  2688.                                 <xsl:otherwise>
  2689.                                     <xsl:value-of select="msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:Source/b:Title" />
  2690.                                 </xsl:otherwise>
  2691.                             </xsl:choose>
  2692.                         </xsl:variable>
  2693.  
  2694.                         <xsl:variable name="year0">
  2695.                             <xsl:value-of select="msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:Source/b:Year" />
  2696.                         </xsl:variable>
  2697.  
  2698.                         <xsl:variable name="authorMain">
  2699.                             <xsl:copy-of select="msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:Source/b:Author/b:Main"/>
  2700.                         </xsl:variable>
  2701.  
  2702.                         <xsl:variable name="patentNumber">
  2703.                             <xsl:value-of select="msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:Source/b:PatentNumber"/>
  2704.                         </xsl:variable>
  2705.  
  2706.                         <xsl:variable name="countryRegion">
  2707.                             <xsl:value-of select="msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:Source/b:CountryRegion"/>
  2708.                         </xsl:variable>
  2709.  
  2710.                         <xsl:variable name="patent">
  2711.                             <xsl:if test="string-length($patentNumber)>0">
  2712.                                 <xsl:if test="string-length($countryRegion) > 0">
  2713.                                     <xsl:value-of select="$countryRegion"/>
  2714.                                     <xsl:call-template name="templ_prop_Space"/>
  2715.                                 </xsl:if>
  2716.  
  2717.                                 <xsl:variable name="str_PatentNumberShortCap">
  2718.                                     <xsl:call-template name="templ_str_PatentNumberShortCap"/>
  2719.                                 </xsl:variable>
  2720.  
  2721.                                 <xsl:call-template name="StringFormat">
  2722.                                     <xsl:with-param name="format" select="$str_PatentNumberShortCap"/>
  2723.                                     <xsl:with-param name="parameters">
  2724.                                         <t:params>
  2725.                                             <t:param>
  2726.                                                 <xsl:value-of select="$patentNumber"/>
  2727.                                             </t:param>
  2728.                                         </t:params>
  2729.                                     </xsl:with-param>
  2730.                                 </xsl:call-template>
  2731.                             </xsl:if>
  2732.                         </xsl:variable>
  2733.  
  2734.                         <xsl:variable name="maxCitationAuthors" select="5"/>
  2735.  
  2736.                         <xsl:variable name="author0">
  2737.                             <xsl:choose>
  2738.                                 <xsl:when test="string-length(msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:Source/b:Author/b:Main/b:Corporate) > 0">
  2739.                                     <xsl:value-of select="msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:Source/b:Author/b:Main/b:Corporate" />
  2740.                                 </xsl:when>
  2741.                                 <xsl:otherwise>
  2742.                                     <xsl:variable name="cAuthors">
  2743.                                         <xsl:value-of select="count(msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:Source/b:Author/b:Main/b:NameList/b:Person)" />
  2744.                                     </xsl:variable>
  2745.  
  2746.                                     <xsl:for-each select="msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:Source/b:Author/b:Main/b:NameList/b:Person">
  2747.                                         <xsl:if test="position() = 1">
  2748.                                             <xsl:call-template name="formatNameCore">
  2749.                                                 <xsl:with-param name="FML">
  2750.                                                     <xsl:choose>
  2751.                                                         <xsl:when test="msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:NonUniqueLastName">
  2752.                                                             <xsl:call-template name="templ_prop_APA_CitationLong_FML"/>
  2753.                                                         </xsl:when>
  2754.                                                         <xsl:otherwise>
  2755.                                                             <xsl:call-template name="templ_prop_APA_CitationShort_FML"/>
  2756.                                                         </xsl:otherwise>
  2757.                                                     </xsl:choose>
  2758.                                                 </xsl:with-param>
  2759.                                                 <xsl:with-param name="FM">
  2760.                                                     <xsl:choose>
  2761.                                                         <xsl:when test="msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:NonUniqueLastName">
  2762.                                                             <xsl:call-template name="templ_prop_APA_CitationLong_FM"/>
  2763.                                                         </xsl:when>
  2764.                                                         <xsl:otherwise>
  2765.                                                             <xsl:call-template name="templ_prop_APA_CitationShort_FM"/>
  2766.                                                         </xsl:otherwise>
  2767.                                                     </xsl:choose>
  2768.                                                 </xsl:with-param>
  2769.                                                 <xsl:with-param name="ML">
  2770.                                                     <xsl:choose>
  2771.                                                         <xsl:when test="msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:NonUniqueLastName">
  2772.                                                             <xsl:call-template name="templ_prop_APA_CitationLong_ML"/>
  2773.                                                         </xsl:when>
  2774.                                                         <xsl:otherwise>
  2775.                                                             <xsl:call-template name="templ_prop_APA_CitationShort_ML"/>
  2776.                                                         </xsl:otherwise>
  2777.                                                     </xsl:choose>
  2778.                                                 </xsl:with-param>
  2779.                                                 <xsl:with-param name="FL">
  2780.                                                     <xsl:choose>
  2781.                                                         <xsl:when test="msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:NonUniqueLastName">
  2782.                                                             <xsl:call-template name="templ_prop_APA_CitationLong_FL"/>
  2783.                                                         </xsl:when>
  2784.                                                         <xsl:otherwise>
  2785.                                                             <xsl:call-template name="templ_prop_APA_CitationShort_FL"/>
  2786.                                                         </xsl:otherwise>
  2787.                                                     </xsl:choose>
  2788.                                                 </xsl:with-param>
  2789.                                                 <xsl:with-param name="upperLast">no</xsl:with-param>
  2790.                                                 <xsl:with-param name="withDot">no</xsl:with-param>
  2791.                                             </xsl:call-template>
  2792.                                         </xsl:if>
  2793.  
  2794.                                         <xsl:if test="position() > 1 and $cAuthors &lt;= $maxCitationAuthors">
  2795.                                             <xsl:call-template name="formatNameCore">
  2796.                                                 <xsl:with-param name="FML"><xsl:call-template name="templ_prop_APA_CitationShort_FML"/></xsl:with-param>
  2797.                                                 <xsl:with-param name="FM"><xsl:call-template name="templ_prop_APA_CitationShort_FM"/></xsl:with-param>
  2798.                                                 <xsl:with-param name="ML"><xsl:call-template name="templ_prop_APA_CitationShort_ML"/></xsl:with-param>
  2799.                                                 <xsl:with-param name="FL"><xsl:call-template name="templ_prop_APA_CitationShort_FL"/></xsl:with-param>
  2800.                                                 <xsl:with-param name="upperLast">no</xsl:with-param>
  2801.                                                 <xsl:with-param name="withDot">no</xsl:with-param>
  2802.                                             </xsl:call-template>
  2803.                                         </xsl:if>
  2804.  
  2805.                                         <xsl:if test="$cAuthors > $maxCitationAuthors">
  2806.                                             <xsl:if test="position() = 1">
  2807.                                                 <xsl:variable name="noCommaBeforeAnd">
  2808.                                                     <xsl:call-template name="templ_prop_NoCommaBeforeAnd" />
  2809.                                                 </xsl:variable>
  2810.  
  2811.                                                 <xsl:choose>
  2812.                                                     <xsl:when test="$noCommaBeforeAnd != 'yes'">
  2813.                                                         <xsl:call-template name="templ_prop_ListSeparator"/>
  2814.                                                     </xsl:when>
  2815.                                                     <xsl:otherwise>
  2816.                                                         <xsl:call-template name="templ_prop_Space"/>
  2817.                                                     </xsl:otherwise>
  2818.                                                 </xsl:choose>
  2819.  
  2820.                                                 <xsl:call-template name="templ_str_AndOthersUnCap"/>
  2821.                                             </xsl:if>
  2822.                                         </xsl:if>
  2823.  
  2824.                                         <xsl:if test="$cAuthors &lt;= $maxCitationAuthors">
  2825.                                             <xsl:if test="position() = $cAuthors - 1">
  2826.                                                 <xsl:if test="$cAuthors = 2">
  2827.                                                     <xsl:call-template name="templ_prop_Space"/>
  2828.                                                     <xsl:call-template name="templ_prop_APA_BeforeLastAuthor"/>
  2829.                                                     <xsl:call-template name="templ_prop_Space"/>
  2830.                                                 </xsl:if>
  2831.  
  2832.                                                 <xsl:if test="$cAuthors > 2">
  2833.                                                     <xsl:variable name="noCommaBeforeAnd">
  2834.                                                         <xsl:call-template name="templ_prop_NoCommaBeforeAnd" />
  2835.                                                     </xsl:variable>
  2836.  
  2837.                                                     <xsl:variable name="noAndBeforeLastAuthor">
  2838.                                                         <xsl:call-template name="templ_prop_NoAndBeforeLastAuthor"/>
  2839.                                                     </xsl:variable>
  2840.  
  2841.                                                     <xsl:choose>
  2842.                                                         <xsl:when test="$noCommaBeforeAnd != 'yes' or $noAndBeforeLastAuthor = 'yes'">
  2843.                                                             <xsl:call-template name="templ_prop_AuthorsSeparator"/>
  2844.                                                         </xsl:when>
  2845.                                                         <xsl:otherwise>
  2846.                                                             <xsl:call-template name="templ_prop_Space"/>
  2847.                                                         </xsl:otherwise>
  2848.                                                     </xsl:choose>
  2849.  
  2850.                                                     <xsl:if test="$noAndBeforeLastAuthor != 'yes'">
  2851.                                                         <xsl:call-template name="templ_prop_APA_BeforeLastAuthor"/>
  2852.                                                         <xsl:call-template name="templ_prop_Space"/>
  2853.                                                     </xsl:if>
  2854.                                                 </xsl:if>
  2855.                                             </xsl:if>
  2856.  
  2857.                                             <xsl:if test="position() &lt; $cAuthors - 1">
  2858.                                                 <xsl:call-template name="templ_prop_AuthorsSeparator"/>
  2859.                                             </xsl:if>
  2860.                                         </xsl:if>
  2861.                                     </xsl:for-each>
  2862.                                 </xsl:otherwise>
  2863.                             </xsl:choose>
  2864.                         </xsl:variable>
  2865.  
  2866.                         <xsl:variable name="title">
  2867.                             <xsl:choose>
  2868.                                 <xsl:when test="msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:NoTitle">
  2869.                                 </xsl:when>
  2870.                                 <xsl:otherwise>
  2871.                                     <xsl:value-of select="$title0" />
  2872.                                 </xsl:otherwise>
  2873.                             </xsl:choose>
  2874.                         </xsl:variable>
  2875.  
  2876.                         <xsl:variable name="year">
  2877.                             <xsl:choose>
  2878.                                 <xsl:when test="msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:NoYear">
  2879.                                 </xsl:when>
  2880.  
  2881.                                 <xsl:when test="$type='InternetSite'">
  2882.                                     <xsl:if test="string-length($year0) > 0">
  2883.                                         <xsl:value-of select="$year0" />
  2884.                                     </xsl:if>
  2885.                                     <xsl:if test="string-length($year0) = 0">
  2886.                                         <xsl:call-template name="templ_str_NoDateShortUnCap"/>
  2887.                                     </xsl:if>
  2888.                                 </xsl:when>
  2889.  
  2890.                                 <xsl:otherwise>
  2891.                                     <xsl:value-of select="$year0" />
  2892.                                 </xsl:otherwise>
  2893.                             </xsl:choose>
  2894.                         </xsl:variable>
  2895.  
  2896.                         <xsl:variable name="author">
  2897.                             <xsl:choose>
  2898.                                 <xsl:when test="msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:NoAuthor">
  2899.                                 </xsl:when>
  2900.                                 <xsl:otherwise>
  2901.                                     <xsl:value-of select="$author0" />
  2902.                                 </xsl:otherwise>
  2903.                             </xsl:choose>
  2904.                         </xsl:variable>
  2905.  
  2906.                         <xsl:variable name="prop_APA_Hyphens">
  2907.                             <xsl:call-template name="templ_prop_Hyphens"/>
  2908.                         </xsl:variable>
  2909.  
  2910.                         <xsl:variable name="volume" select="msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:Volume"/>
  2911.  
  2912.                         <xsl:variable name="volVolume">
  2913.                             <xsl:if test="string-length($volume) > 0">
  2914.                                 <xsl:call-template name="StringFormat">
  2915.                                     <xsl:with-param name="format">
  2916.                                         <xsl:choose>
  2917.                                             <xsl:when test="not(string-length($volume)=string-length(translate($volume, ',', '')))">
  2918.                                                 <xsl:call-template name="templ_str_VolumesShortUnCap"/>
  2919.                                             </xsl:when>
  2920.                                             <xsl:when test="string-length($volume)=string-length(translate($volume, $prop_APA_Hyphens, ''))">
  2921.                                                 <xsl:call-template name="templ_str_VolumeShortUnCap"/>
  2922.                                             </xsl:when>
  2923.                                             <xsl:otherwise>
  2924.                                                 <xsl:call-template name="templ_str_VolumesShortUnCap"/>
  2925.                                             </xsl:otherwise>
  2926.                                         </xsl:choose>
  2927.                                     </xsl:with-param>
  2928.                                     <xsl:with-param name="parameters">
  2929.                                         <t:params>
  2930.                                             <t:param>
  2931.                                                 <xsl:value-of select="$volume"/>
  2932.                                             </t:param>
  2933.                                         </t:params>
  2934.                                     </xsl:with-param>
  2935.                                 </xsl:call-template>
  2936.                             </xsl:if>
  2937.                         </xsl:variable>
  2938.  
  2939.                         <xsl:variable name="pages" select="msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:Pages"/>
  2940.  
  2941.                         <xsl:variable name="ppPages">
  2942.                             <xsl:if test="string-length($pages)>0">
  2943.                                 <xsl:choose>
  2944.                                     <xsl:when test="not(string-length($pages)=string-length(translate($pages, ',', '')))">
  2945.                                         <xsl:call-template name="templ_str_PagesCountinousShort"/>
  2946.                                     </xsl:when>
  2947.                                     <xsl:when test="string-length($pages)=string-length(translate($pages, $prop_APA_Hyphens, ''))">
  2948.                                         <xsl:call-template name="templ_str_PageShort"/>
  2949.                                     </xsl:when>
  2950.                                     <xsl:otherwise>
  2951.                                         <xsl:call-template name="templ_str_PagesCountinousShort"/>
  2952.                                     </xsl:otherwise>
  2953.                                 </xsl:choose>
  2954.                                 <xsl:call-template name="templ_prop_Space"/>
  2955.                                 <xsl:value-of select="$pages"/>
  2956.                             </xsl:if>
  2957.                         </xsl:variable>
  2958.  
  2959.                         <xsl:variable name="displayAuthor">
  2960.                             <xsl:choose>
  2961.                                 <xsl:when test="$type='Patent' and string-length($patent) > 0">
  2962.                                     <xsl:value-of select="$patent" />
  2963.                                 </xsl:when>
  2964.                                 <xsl:otherwise>
  2965.                                     <xsl:value-of select="$author" />
  2966.                                 </xsl:otherwise>
  2967.                             </xsl:choose>
  2968.                         </xsl:variable>
  2969.  
  2970.                         <xsl:variable name="displayTitle">
  2971.                             <xsl:choose>
  2972.                                 <xsl:when test="string-length($displayAuthor) = 0">
  2973.                                     <xsl:value-of select="$title" />
  2974.                                 </xsl:when>
  2975.                                 <xsl:when test="$type='Patent' and string-length($patent) > 0">
  2976.                                 </xsl:when>
  2977.                                 <xsl:when test="msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:RepeatedAuthor">
  2978.                                     <xsl:value-of select="$title" />
  2979.                                 </xsl:when>
  2980.                             </xsl:choose>
  2981.                         </xsl:variable>
  2982.  
  2983.                         <xsl:if test="msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:FirstAuthor">
  2984.                             <xsl:call-template name="templ_prop_OpenBracket"/>
  2985.                         </xsl:if>
  2986.  
  2987.                         <xsl:if test="msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:PagePrefix">
  2988.                             <xsl:value-of select="/b:Citation/b:PagePrefix"/>
  2989.                         </xsl:if>
  2990.  
  2991.                         <xsl:value-of select="$displayAuthor" />
  2992.  
  2993.                         <xsl:if test="string-length($displayTitle) > 0">
  2994.                             <xsl:if test="string-length($displayAuthor) > 0">
  2995.                                 <xsl:call-template name="templ_prop_ListSeparator"/>
  2996.                             </xsl:if>
  2997.                             <xsl:if test="string-length($displayTitle)>0">
  2998.                                 <xsl:value-of select="$displayTitle"/>
  2999.                             </xsl:if>
  3000.                         </xsl:if>
  3001.  
  3002.                         <xsl:if test="string-length($year) > 0">
  3003.                             <xsl:if test="string-length($author0) > 0 or string-length($title0) > 0 or string-length($year0) > 0">
  3004.                                 <xsl:if test="string-length($displayAuthor) > 0 or string-length($displayTitle) > 0">
  3005.                                     <xsl:call-template name="templ_prop_ListSeparator"/>
  3006.                                 </xsl:if>
  3007.                                 <xsl:value-of select="$year"/>
  3008.                             </xsl:if>
  3009.                         </xsl:if>
  3010.  
  3011.                         <xsl:if test="string-length($author0) = 0 and string-length($title0) = 0 and string-length($year0) = 0">
  3012.                             <xsl:value-of select="msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:Source/b:Tag"/>
  3013.                         </xsl:if>
  3014.  
  3015.                         <xsl:if test="string-length($volume) > 0 or string-length($pages) > 0">
  3016.                             <xsl:if test="string-length($displayAuthor) > 0 or string-length($displayTitle) > 0 or string-length($year) > 0">
  3017.                                 <xsl:call-template name="templ_prop_ListSeparator"/>
  3018.                             </xsl:if>
  3019.  
  3020.                             <xsl:choose>
  3021.                                 <xsl:when test="string-length($volume) > 0 and string-length($pages) > 0">
  3022.                                     <xsl:value-of select="$volume"/>
  3023.                                     <xsl:call-template name="templ_prop_Enum"/>
  3024.                                     <xsl:value-of select="$pages"/>
  3025.                                 </xsl:when>
  3026.                                 <xsl:when test="string-length($volVolume) > 0">
  3027.                                     <xsl:value-of select="$volVolume"/>
  3028.                                 </xsl:when>
  3029.                                 <xsl:when test="string-length($ppPages) > 0">
  3030.                                     <xsl:value-of select="$ppPages"/>
  3031.                                 </xsl:when>
  3032.                             </xsl:choose>
  3033.                         </xsl:if>
  3034.  
  3035.                         <xsl:if test="/b:Citation/b:PageSuffix">
  3036.                             <xsl:value-of select="/b:Citation/b:PageSuffix"/>
  3037.                         </xsl:if>
  3038.                         <xsl:if test="/b:Citation/b:LastAuthor">
  3039.                             <xsl:call-template name="templ_prop_CloseBracket"/>
  3040.                         </xsl:if>
  3041.                         <xsl:if test="not(/b:Citation/b:LastAuthor)">
  3042.                             <xsl:call-template name="templ_prop_GroupSeparator"/>
  3043.                         </xsl:if>
  3044.  
  3045.                         </xsl:element>
  3046.                     </body>
  3047.                 </html>
  3048.             </xsl:when>
  3049.  
  3050.       <xsl:when test="b:Bibliography">
  3051.         <html xmlns:o="urn:schemas-microsoft-com:office:office"
  3052.                         xmlns:w="urn:schemas-microsoft-com:office:word"
  3053.                         xmlns="http://www.w3.org/TR/REC-html40">
  3054.           <head>
  3055.            
  3056.             <style>
  3057.               p.MsoBibliography, li.MsoBibliography, div.MsoBibliography
  3058.             </style>
  3059.           </head>
  3060.  
  3061.           <body>
  3062.             <xsl:variable name="ListPopulatedWithMain">
  3063.               <xsl:call-template name="populateMain">
  3064.                 <xsl:with-param name="Type">b:Bibliography</xsl:with-param>
  3065.               </xsl:call-template>
  3066.             </xsl:variable>
  3067.  
  3068.             <xsl:variable name="sList">
  3069.               <xsl:call-template name="sortedList">
  3070.                 <xsl:with-param name="sourceRoot">
  3071.                   <xsl:copy-of select="$ListPopulatedWithMain"/>
  3072.                 </xsl:with-param>
  3073.               </xsl:call-template>
  3074.             </xsl:variable>
  3075.  
  3076.             <xsl:for-each select="msxsl:node-set($sList)/b:Bibliography/b:Source">
  3077.  
  3078.               <xsl:variable name="LCID">
  3079.                 <xsl:choose>
  3080.                   <xsl:when test="b:LCID='0' or b:LCID='' or not(b:LCID)">
  3081.                     <xsl:value-of select="/*/b:Locals/b:DefaultLCID"/>
  3082.                   </xsl:when>
  3083.                   <xsl:otherwise>
  3084.                     <xsl:value-of select="b:LCID"/>
  3085.                   </xsl:otherwise>
  3086.                 </xsl:choose>
  3087.               </xsl:variable>
  3088.  
  3089.               <xsl:variable name="dir">
  3090.                 <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$LCID]/b:Properties/b:Direction"/>
  3091.               </xsl:variable>
  3092.  
  3093.               <xsl:variable name="uppercase" select="'ABCDEFGHIJKLMNOPQRSTUVWXYZ'"/>
  3094.               <xsl:variable name="lowercase" select="'abcdefghijklmnopqrstuvwxyz'"/>
  3095.  
  3096.               <xsl:element name="p">
  3097.                 <xsl:attribute name="lang">
  3098.                   <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$LCID]/@Culture"/>
  3099.                 </xsl:attribute>
  3100.                 <xsl:attribute name="dir">
  3101.                   <xsl:value-of select="$dir"/>
  3102.                 </xsl:attribute>
  3103.                 <xsl:attribute name="class">
  3104.                   <xsl:value-of select="'MsoBibliography'"/>
  3105.                 </xsl:attribute>
  3106.                 <xsl:attribute name="style">
  3107.                   <xsl:choose>
  3108.                     <xsl:when test="translate($dir,$uppercase,$lowercase)='rtl'">
  3109.                       <xsl:value-of select="'margin-right:.5in;text-indent:-.5in'"/>
  3110.                     </xsl:when>
  3111.                     <xsl:otherwise>
  3112.                       <xsl:value-of select="'margin-left:.5in;text-indent:-.5in'"/>
  3113.                     </xsl:otherwise>
  3114.                   </xsl:choose>
  3115.                 </xsl:attribute>
  3116.  
  3117.                 <xsl:variable name="prevBook">
  3118.                   <xsl:value-of select="position()-1"/>
  3119.                 </xsl:variable>
  3120.  
  3121.                 <xsl:variable name="cEditors">
  3122.                   <xsl:value-of select="count(b:Author/b:Editor/b:NameList/b:Person)"/>
  3123.                 </xsl:variable>
  3124.  
  3125.                 <xsl:variable name="cTranslators">
  3126.                   <xsl:value-of select="count(b:Author/b:Translator/b:NameList/b:Person)"/>
  3127.                 </xsl:variable>
  3128.  
  3129.                 <xsl:variable name="cPerformers">
  3130.                   <xsl:value-of select="count(b:Author/b:Performer/b:NameList/b:Person)"/>
  3131.                 </xsl:variable>
  3132.  
  3133.                 <xsl:variable name="cDirectors">
  3134.                   <xsl:value-of select="count(b:Author/b:Director/b:NameList/b:Person)"/>
  3135.                 </xsl:variable>
  3136.  
  3137.                 <xsl:variable name="cProducers">
  3138.                   <xsl:value-of select="count(b:Author/b:ProducerName/b:NameList/b:Person)"/>
  3139.                 </xsl:variable>
  3140.  
  3141.                 <xsl:variable name="tempTV">
  3142.                   <xsl:call-template name="templateTV"/>
  3143.                 </xsl:variable>
  3144.  
  3145.                 <xsl:variable name="tempSC">
  3146.                   <xsl:call-template name="templateSC"/>
  3147.                 </xsl:variable>
  3148.  
  3149.                 <xsl:variable name="tempPrP">
  3150.                   <xsl:call-template name="templatePrP"/>
  3151.                 </xsl:variable>
  3152.  
  3153.                 <xsl:variable name="tempCD">
  3154.                   <xsl:call-template name="templateCD"/>
  3155.                 </xsl:variable>
  3156.  
  3157.                 <xsl:variable name="tempID">
  3158.                   <xsl:call-template name="templateID"/>
  3159.                 </xsl:variable>
  3160.  
  3161.                 <xsl:variable name="tempCP">
  3162.                   <xsl:call-template name="templateCP"/>
  3163.                 </xsl:variable>
  3164.  
  3165.                 <xsl:variable name="tempRIDC">
  3166.                   <xsl:call-template name="templateRIDC"/>
  3167.                 </xsl:variable>
  3168.  
  3169.  
  3170.                 <xsl:variable name="tempICSC">
  3171.                   <xsl:call-template name="templateICSC"/>
  3172.                 </xsl:variable>
  3173.  
  3174.                 <xsl:variable name="tempPVEP">
  3175.                   <xsl:call-template name="templatePVEP"/>
  3176.                 </xsl:variable>
  3177.  
  3178.                 <xsl:variable name="tempPVIEP">
  3179.                   <xsl:call-template name="templatePVIEP"/>
  3180.                 </xsl:variable>
  3181.  
  3182.                 <xsl:variable name="tempRDAFU">
  3183.                   <xsl:call-template name="templateRDAFU"/>
  3184.                 </xsl:variable>
  3185.  
  3186.                 <xsl:variable name="tempTCSC">
  3187.                   <xsl:call-template name="templateTCSC"/>
  3188.                 </xsl:variable>
  3189.  
  3190.                 <xsl:variable name="tempCPY">
  3191.                   <xsl:call-template name="templateCPY"/>
  3192.                 </xsl:variable>
  3193.  
  3194.                 <xsl:variable name="tempCSCPu">
  3195.                   <xsl:call-template name="templateCSCPu"/>
  3196.                 </xsl:variable>
  3197.  
  3198.                 <xsl:variable name="tempCSCPr">
  3199.                   <xsl:call-template name="templateCSCPr"/>
  3200.                 </xsl:variable>
  3201.  
  3202.                 <xsl:variable name="tempJVIP">
  3203.                   <xsl:call-template name="templateJVIP"/>
  3204.                 </xsl:variable>
  3205.  
  3206.                 <xsl:variable name="dateCourt">
  3207.                   <xsl:call-template name="formatDateCourt"/>
  3208.                 </xsl:variable>
  3209.  
  3210.                 <xsl:variable name="pages">
  3211.                   <xsl:call-template name="handleSpaces">
  3212.                     <xsl:with-param name="field" select="b:Pages"/>
  3213.                   </xsl:call-template>
  3214.                 </xsl:variable>
  3215.  
  3216.                 <xsl:variable name="court">
  3217.                   <xsl:call-template name="handleSpaces">
  3218.                     <xsl:with-param name="field" select="b:Court"/>
  3219.                   </xsl:call-template>
  3220.                 </xsl:variable>
  3221.  
  3222.                 <xsl:variable name="prop_APA_Hyphens">
  3223.                   <xsl:call-template name="templ_prop_Hyphens"/>
  3224.                 </xsl:variable>
  3225.  
  3226.                 <xsl:variable name="ppPages">
  3227.                   <xsl:if test="string-length($pages)>0">
  3228.                     <xsl:choose>
  3229.                       <xsl:when test="not(string-length($pages)=string-length(translate($pages, ',', '')))">
  3230.                         <xsl:call-template name="templ_str_PagesCountinousShort"/>
  3231.                       </xsl:when>
  3232.                       <xsl:when test="string-length($pages)=string-length(translate($pages, $prop_APA_Hyphens, ''))">
  3233.                         <xsl:call-template name="templ_str_PageShort"/>
  3234.                       </xsl:when>
  3235.                       <xsl:otherwise>
  3236.                         <xsl:call-template name="templ_str_PagesCountinousShort"/>
  3237.                       </xsl:otherwise>
  3238.                     </xsl:choose>
  3239.                     <xsl:call-template name="templ_prop_Space"/>
  3240.                     <xsl:value-of select="$pages"/>
  3241.                   </xsl:if>
  3242.                 </xsl:variable>
  3243.  
  3244.                 <xsl:variable name="tempPTVI">
  3245.                   <xsl:call-template name="templatePTVI">
  3246.                     <xsl:with-param name="pages" select="$ppPages"/>
  3247.                   </xsl:call-template>
  3248.                 </xsl:variable>
  3249.  
  3250.                 <xsl:variable name="title">
  3251.                   <xsl:call-template name="handleSpaces">
  3252.                     <xsl:with-param name="field" select="b:Title"/>
  3253.                   </xsl:call-template>
  3254.                 </xsl:variable>
  3255.  
  3256.                 <xsl:variable name="titleDot">
  3257.                   <xsl:call-template name="appendField_Dot">
  3258.                     <xsl:with-param name="field" select="b:Title"/>
  3259.                   </xsl:call-template>
  3260.                 </xsl:variable>
  3261.  
  3262.                 <xsl:variable name="edition">
  3263.                   <xsl:call-template name="handleSpaces">
  3264.                     <xsl:with-param name="field" select="b:Edition"/>
  3265.                   </xsl:call-template>
  3266.                 </xsl:variable>
  3267.  
  3268.                 <xsl:variable name="date">
  3269.                   <xsl:call-template name="formatDate"/>
  3270.                 </xsl:variable>
  3271.  
  3272.                 <xsl:variable name="dateEmpty">
  3273.                   <xsl:call-template name="formatDateEmpty"/>
  3274.                 </xsl:variable>
  3275.  
  3276.                 <xsl:variable name="year">
  3277.                   <xsl:call-template name="handleSpaces">
  3278.                     <xsl:with-param name="field" select="b:Year"/>
  3279.                   </xsl:call-template>
  3280.                 </xsl:variable>
  3281.  
  3282.                 <xsl:variable name="doiPrefix" select="'doi'"/>
  3283.  
  3284.                 <xsl:variable name="doi">
  3285.                   <xsl:call-template name="handleSpaces">
  3286.                     <xsl:with-param name="field" select="b:DOI"/>
  3287.                   </xsl:call-template>
  3288.                 </xsl:variable>
  3289.  
  3290.                 <xsl:variable name="issue">
  3291.                   <xsl:call-template name="handleSpaces">
  3292.                     <xsl:with-param name="field" select="b:Issue"/>
  3293.                   </xsl:call-template>
  3294.                 </xsl:variable>
  3295.  
  3296.                 <xsl:variable name="pagesDot">
  3297.                   <xsl:call-template name="appendField_Dot">
  3298.                     <xsl:with-param name="field" select="b:Pages"/>
  3299.                   </xsl:call-template>
  3300.                 </xsl:variable>
  3301.  
  3302.                 <xsl:variable name="bookTitle">
  3303.                   <xsl:call-template name="handleSpaces">
  3304.                     <xsl:with-param name="field" select="b:BookTitle"/>
  3305.                   </xsl:call-template>
  3306.                 </xsl:variable>
  3307.  
  3308.                 <xsl:variable name="bookTitleDot">
  3309.                   <xsl:call-template name="appendField_Dot">
  3310.                     <xsl:with-param name="field" select="b:BookTitle"/>
  3311.                   </xsl:call-template>
  3312.                 </xsl:variable>
  3313.  
  3314.                 <xsl:variable name="conferenceName">
  3315.                   <xsl:call-template name="handleSpaces">
  3316.                     <xsl:with-param name="field" select="b:ConferenceName"/>
  3317.                   </xsl:call-template>
  3318.                 </xsl:variable>
  3319.  
  3320.                 <xsl:variable name="conferenceNameDot">
  3321.                   <xsl:call-template name="appendField_Dot">
  3322.                     <xsl:with-param name="field" select="b:ConferenceName"/>
  3323.                   </xsl:call-template>
  3324.                 </xsl:variable>
  3325.  
  3326.                 <xsl:variable name="broadcasterDot">
  3327.                   <xsl:call-template name="appendField_Dot">
  3328.                     <xsl:with-param name="field" select="b:Broadcaster"/>
  3329.                   </xsl:call-template>
  3330.                 </xsl:variable>
  3331.  
  3332.                 <xsl:variable name="countryRegion">
  3333.                   <xsl:call-template name="handleSpaces">
  3334.                     <xsl:with-param name="field" select="b:CountryRegion"/>
  3335.                   </xsl:call-template>
  3336.                 </xsl:variable>
  3337.  
  3338.                 <xsl:variable name="patentNumberDot">
  3339.                   <xsl:call-template name="appendField_Dot">
  3340.                     <xsl:with-param name="field" select="b:PatentNumber"/>
  3341.                   </xsl:call-template>
  3342.                 </xsl:variable>
  3343.  
  3344.                 <xsl:variable name="patentNumber">
  3345.                   <xsl:call-template name="handleSpaces">
  3346.                     <xsl:with-param name="field" select="b:PatentNumber"/>
  3347.                   </xsl:call-template>
  3348.                 </xsl:variable>
  3349.  
  3350.                 <xsl:variable name="interviewTitle">
  3351.                   <xsl:call-template name="handleSpaces">
  3352.                     <xsl:with-param name="field" select="b:Title"/>
  3353.                   </xsl:call-template>
  3354.                 </xsl:variable>
  3355.  
  3356.                 <xsl:variable name="interviewTitleDot">
  3357.                   <xsl:call-template name="appendField_Dot">
  3358.                     <xsl:with-param name="field" select="b:Title"/>
  3359.                   </xsl:call-template>
  3360.                 </xsl:variable>
  3361.  
  3362.                 <xsl:variable name="publicationTitle">
  3363.                   <xsl:call-template name="handleSpaces">
  3364.                     <xsl:with-param name="field" select="b:PublicationTitle"/>
  3365.                   </xsl:call-template>
  3366.                 </xsl:variable>
  3367.  
  3368.                 <xsl:variable name="publicationTitleDot">
  3369.                   <xsl:call-template name="appendField_Dot">
  3370.                     <xsl:with-param name="field" select="b:PublicationTitle"/>
  3371.                   </xsl:call-template>
  3372.                 </xsl:variable>
  3373.  
  3374.                 <xsl:variable name="cityDot">
  3375.                   <xsl:call-template name="appendField_Dot">
  3376.                     <xsl:with-param name="field" select="b:City"/>
  3377.                   </xsl:call-template>
  3378.                 </xsl:variable>
  3379.  
  3380.                 <xsl:variable name="institutionDot">
  3381.                   <xsl:call-template name="appendField_Dot">
  3382.                     <xsl:with-param name="field" select="b:Institution"/>
  3383.                   </xsl:call-template>
  3384.                 </xsl:variable>
  3385.  
  3386.                 <xsl:variable name="courtDot">
  3387.                   <xsl:call-template name="appendField_Dot">
  3388.                     <xsl:with-param name="field" select="b:Court"/>
  3389.                   </xsl:call-template>
  3390.                 </xsl:variable>
  3391.  
  3392.                 <xsl:variable name="thesisTypeDot">
  3393.                   <xsl:call-template name="appendField_Dot">
  3394.                     <xsl:with-param name="field" select="b:ThesisType"/>
  3395.                   </xsl:call-template>
  3396.                 </xsl:variable>
  3397.  
  3398.                 <xsl:variable name="journalNameDot">
  3399.                   <xsl:call-template name="appendField_Dot">
  3400.                     <xsl:with-param name="field" select="b:JournalName"/>
  3401.                   </xsl:call-template>
  3402.                 </xsl:variable>
  3403.  
  3404.                 <xsl:variable name="journalName">
  3405.                   <xsl:call-template name="handleSpaces">
  3406.                     <xsl:with-param name="field" select="b:JournalName"/>
  3407.                   </xsl:call-template>
  3408.                 </xsl:variable>
  3409.  
  3410.                 <xsl:variable name="mediumDot">
  3411.                   <xsl:call-template name="appendField_Dot">
  3412.                     <xsl:with-param name="field" select="b:Medium"/>
  3413.                   </xsl:call-template>
  3414.                 </xsl:variable>
  3415.  
  3416.                 <xsl:variable name="issueDot">
  3417.                   <xsl:call-template name="appendField_Dot">
  3418.                     <xsl:with-param name="field" select="b:Issue"/>
  3419.                   </xsl:call-template>
  3420.                 </xsl:variable>
  3421.  
  3422.                 <xsl:variable name="productionCompanyDot">
  3423.                   <xsl:call-template name="appendField_Dot">
  3424.                     <xsl:with-param name="field" select="b:ProductionCompany"/>
  3425.                   </xsl:call-template>
  3426.                 </xsl:variable>
  3427.  
  3428.                 <xsl:variable name="editionDot">
  3429.                   <xsl:call-template name="appendField_Dot">
  3430.                     <xsl:with-param name="field" select="b:Edition"/>
  3431.                   </xsl:call-template>
  3432.                 </xsl:variable>
  3433.  
  3434.                 <xsl:variable name="broadcastTitle">
  3435.                   <xsl:call-template name="handleSpaces">
  3436.                     <xsl:with-param name="field" select="b:BroadcastTitle"/>
  3437.                   </xsl:call-template>
  3438.                 </xsl:variable>
  3439.  
  3440.                 <xsl:variable name="publisher">
  3441.                   <xsl:call-template name="handleSpaces">
  3442.                     <xsl:with-param name="field" select="b:Publisher"/>
  3443.                   </xsl:call-template>
  3444.                 </xsl:variable>
  3445.  
  3446.                 <xsl:variable name="versionDot">
  3447.                   <xsl:call-template name="appendField_Dot">
  3448.                     <xsl:with-param name="field" select="b:Version"/>
  3449.                   </xsl:call-template>
  3450.                 </xsl:variable>
  3451.  
  3452.                 <xsl:variable name="broadcastTitleDot">
  3453.                   <xsl:call-template name="appendField_Dot">
  3454.                     <xsl:with-param name="field" select="b:BroadcastTitle"/>
  3455.                   </xsl:call-template>
  3456.                 </xsl:variable>
  3457.  
  3458.                 <xsl:variable name="periodicalTitleDot">
  3459.                   <xsl:call-template name="appendField_Dot">
  3460.                     <xsl:with-param name="field" select="b:PeriodicalTitle"/>
  3461.                   </xsl:call-template>
  3462.                 </xsl:variable>
  3463.  
  3464.                 <xsl:variable name="periodicalTitle">
  3465.                   <xsl:call-template name="handleSpaces">
  3466.                     <xsl:with-param name="field" select="b:PeriodicalTitle"/>
  3467.                   </xsl:call-template>
  3468.                 </xsl:variable>
  3469.  
  3470.                 <xsl:variable name="productionCompany">
  3471.                   <xsl:call-template name="handleSpaces">
  3472.                     <xsl:with-param name="field" select="b:ProductionCompany"/>
  3473.                   </xsl:call-template>
  3474.                 </xsl:variable>
  3475.  
  3476.                 <xsl:variable name="caseNumber">
  3477.                   <xsl:call-template name="handleSpaces">
  3478.                     <xsl:with-param name="field" select="b:CaseNumber"/>
  3479.                   </xsl:call-template>
  3480.                 </xsl:variable>
  3481.  
  3482.                 <xsl:variable name="broadcaster">
  3483.                   <xsl:call-template name="handleSpaces">
  3484.                     <xsl:with-param name="field" select="b:Broadcaster"/>
  3485.                   </xsl:call-template>
  3486.                 </xsl:variable>
  3487.  
  3488.                 <xsl:variable name="volume">
  3489.                   <xsl:call-template name="handleSpaces">
  3490.                     <xsl:with-param name="field" select="b:Volume"/>
  3491.                   </xsl:call-template>
  3492.                 </xsl:variable>
  3493.  
  3494.                 <xsl:variable name="prefixVolumeUnCap">
  3495.                   <xsl:if test="string-length($volume)>0">
  3496.                     <xsl:call-template name="StringFormat">
  3497.                       <xsl:with-param name="format">
  3498.                         <xsl:choose>
  3499.                           <xsl:when test="not(string-length($volume)=string-length(translate($volume, ',', '')))">
  3500.                             <xsl:call-template name="templ_str_VolumesShortUnCap"/>
  3501.                           </xsl:when>
  3502.                           <xsl:when test="string-length($volume)=string-length(translate($volume, $prop_APA_Hyphens, ''))">
  3503.                             <xsl:call-template name="templ_str_VolumeShortUnCap"/>
  3504.                           </xsl:when>
  3505.                           <xsl:otherwise>
  3506.                             <xsl:call-template name="templ_str_VolumesShortUnCap"/>
  3507.                           </xsl:otherwise>
  3508.                         </xsl:choose>
  3509.                       </xsl:with-param>
  3510.                       <xsl:with-param name="parameters">
  3511.                         <t:params>
  3512.                           <t:param>
  3513.                             <xsl:value-of select="$volume"/>
  3514.                           </t:param>
  3515.                         </t:params>
  3516.                       </xsl:with-param>
  3517.                     </xsl:call-template>
  3518.                   </xsl:if>
  3519.                 </xsl:variable>
  3520.  
  3521.                 <xsl:variable name="prefixVolumeCap">
  3522.                   <xsl:if test="string-length($volume)>0">
  3523.                     <xsl:call-template name="StringFormat">
  3524.                       <xsl:with-param name="format">
  3525.                         <xsl:choose>
  3526.                           <xsl:when test="not(string-length($volume)=string-length(translate($volume, ',', '')))">
  3527.                             <xsl:call-template name="templ_str_VolumesShortCap"/>
  3528.                           </xsl:when>
  3529.                           <xsl:when test="string-length($volume)=string-length(translate($volume, $prop_APA_Hyphens, ''))">
  3530.                             <xsl:call-template name="templ_str_VolumeShortCap"/>
  3531.                           </xsl:when>
  3532.                           <xsl:otherwise>
  3533.                             <xsl:call-template name="templ_str_VolumesShortCap"/>
  3534.                           </xsl:otherwise>
  3535.                         </xsl:choose>
  3536.                       </xsl:with-param>
  3537.                       <xsl:with-param name="parameters">
  3538.                         <t:params>
  3539.                           <t:param>
  3540.                             <xsl:value-of select="$volume"/>
  3541.                           </t:param>
  3542.                         </t:params>
  3543.                       </xsl:with-param>
  3544.                     </xsl:call-template>
  3545.                   </xsl:if>
  3546.                 </xsl:variable>
  3547.  
  3548.                 <xsl:variable name="prefixVolumeCapDot">
  3549.                   <xsl:call-template name="appendField_Dot">
  3550.                     <xsl:with-param name="field" select="$prefixVolumeCap"/>
  3551.                   </xsl:call-template>
  3552.                 </xsl:variable>
  3553.  
  3554.                 <xsl:variable name="prefixVolumeUnCapDot">
  3555.                   <xsl:call-template name="appendField_Dot">
  3556.                     <xsl:with-param name="field" select="$prefixVolumeUnCap"/>
  3557.                   </xsl:call-template>
  3558.                 </xsl:variable>
  3559.  
  3560.                 <xsl:variable name="volumeDot">
  3561.                   <xsl:call-template name="appendField_Dot">
  3562.                     <xsl:with-param name="field" select="$volume"/>
  3563.                   </xsl:call-template>
  3564.                 </xsl:variable>
  3565.  
  3566.                 <xsl:variable name="i_titleEditionVolumeDot">
  3567.                   <xsl:if test="string-length($title)>0">
  3568.                     <xsl:call-template name = "ApplyItalicTitleNS">
  3569.                       <xsl:with-param name = "data">
  3570.                         <xsl:if test="string-length($edition)>0 or string-length($prefixVolumeCap)>0">
  3571.                           <xsl:value-of select="$title"/>
  3572.                         </xsl:if>
  3573.                         <xsl:if test="string-length($edition)=0 and string-length($prefixVolumeCap)=0">
  3574.                           <xsl:value-of select="$titleDot"/>
  3575.                         </xsl:if>
  3576.                       </xsl:with-param>
  3577.                     </xsl:call-template>
  3578.  
  3579.                     <xsl:if test="string-length($edition)>0 or string-length($prefixVolumeCap)>0">
  3580.                       <xsl:call-template name="templ_prop_Space"/>
  3581.                       <xsl:call-template name="templ_prop_APA_GeneralOpen"/>
  3582.  
  3583.                       <xsl:if test="string-length($edition)>0">
  3584.                         <xsl:call-template name="StringFormat">
  3585.                           <xsl:with-param name="format">
  3586.                             <xsl:call-template name="templ_str_EditionShortUnCap"/>
  3587.                           </xsl:with-param>
  3588.                           <xsl:with-param name="parameters">
  3589.                             <t:params>
  3590.                               <t:param>
  3591.                                 <xsl:value-of select="$edition"/>
  3592.                               </t:param>
  3593.                             </t:params>
  3594.                           </xsl:with-param>
  3595.                         </xsl:call-template>
  3596.                       </xsl:if>
  3597.  
  3598.                       <xsl:if test="string-length($edition)>0 and string-length($prefixVolumeCap)>0">
  3599.                         <xsl:call-template name="templ_prop_ListSeparator"/>
  3600.                       </xsl:if>
  3601.  
  3602.                       <xsl:value-of select="$prefixVolumeCap"/>
  3603.  
  3604.                       <xsl:call-template name="templ_prop_APA_GeneralClose"/>
  3605.                       <xsl:call-template name="templ_prop_Dot"/>
  3606.                     </xsl:if>
  3607.                   </xsl:if>
  3608.                 </xsl:variable>
  3609.  
  3610.                 <xsl:variable name="author">
  3611.                   <xsl:call-template name="formatAuthor"/>
  3612.                 </xsl:variable>
  3613.  
  3614.                 <xsl:variable name="editorLF">
  3615.                   <xsl:call-template name="formatEditorLF"/>
  3616.                 </xsl:variable>
  3617.  
  3618.                 <xsl:variable name="translator">
  3619.                   <xsl:call-template name="formatTranslator"/>
  3620.                 </xsl:variable>
  3621.  
  3622.                 <xsl:variable name="performer">
  3623.                   <xsl:call-template name="formatPerformer"/>
  3624.                 </xsl:variable>
  3625.  
  3626.                 <xsl:variable name="conductor">
  3627.                   <xsl:call-template name="formatConductor"/>
  3628.                 </xsl:variable>
  3629.  
  3630.                 <xsl:variable name="intervieweeLF">
  3631.                   <xsl:call-template name="formatIntervieweeLF"/>
  3632.                 </xsl:variable>
  3633.  
  3634.                 <xsl:variable name="writer">
  3635.                   <xsl:call-template name="formatWriter"/>
  3636.                 </xsl:variable>
  3637.  
  3638.                 <xsl:variable name="director">
  3639.                   <xsl:call-template name="formatDirector"/>
  3640.                 </xsl:variable>
  3641.  
  3642.                 <xsl:variable name="inventorLF">
  3643.                   <xsl:call-template name="formatInventorLF"/>
  3644.                 </xsl:variable>
  3645.  
  3646.                 <xsl:variable name="writerLF">
  3647.                   <xsl:call-template name="formatWriterLF"/>
  3648.                 </xsl:variable>
  3649.  
  3650.                 <xsl:variable name="performerLF">
  3651.                   <xsl:call-template name="formatPerformerLF"/>
  3652.                 </xsl:variable>
  3653.  
  3654.                 <xsl:variable name="conductorLF">
  3655.                   <xsl:call-template name="formatConductorLF"/>
  3656.                 </xsl:variable>
  3657.  
  3658.                 <xsl:variable name="composerLF">
  3659.                   <xsl:call-template name="formatComposerLF"/>
  3660.                 </xsl:variable>
  3661.  
  3662.                 <xsl:variable name="directorLF">
  3663.                   <xsl:call-template name="formatDirectorLF"/>
  3664.                 </xsl:variable>
  3665.  
  3666.                 <xsl:variable name="composer">
  3667.                   <xsl:call-template name="formatComposer"/>
  3668.                 </xsl:variable>
  3669.  
  3670.                 <xsl:variable name="artistLF">
  3671.                   <xsl:call-template name="formatArtistLF"/>
  3672.                 </xsl:variable>
  3673.  
  3674.                 <xsl:variable name="artistLFDot">
  3675.                   <xsl:call-template name="appendField_Dot">
  3676.                     <xsl:with-param name="field" select="$artistLF"/>
  3677.                   </xsl:call-template>
  3678.                 </xsl:variable>
  3679.  
  3680.                 <xsl:variable name="inventorLFDot">
  3681.                   <xsl:call-template name="appendField_Dot">
  3682.                     <xsl:with-param name="field" select="$inventorLF"/>
  3683.                   </xsl:call-template>
  3684.                 </xsl:variable>
  3685.  
  3686.                 <xsl:variable name="intervieweeLFDot">
  3687.                   <xsl:call-template name="appendField_Dot">
  3688.                     <xsl:with-param name="field" select="$intervieweeLF"/>
  3689.                   </xsl:call-template>
  3690.                 </xsl:variable>
  3691.  
  3692.                 <xsl:variable name="ensufixEditorLF">
  3693.                   <xsl:if test="string-length($editorLF)>0">
  3694.                     <xsl:value-of select="$editorLF"/>
  3695.                     <xsl:call-template name="templ_prop_Space"/>
  3696.                     <xsl:if test="$cEditors > 1">
  3697.                       <xsl:call-template name="templ_prop_APA_GeneralOpen"/>
  3698.                       <xsl:call-template name="templ_str_EditorsShortCap"/>
  3699.                       <xsl:call-template name="templ_prop_APA_GeneralClose"/>
  3700.                     </xsl:if>
  3701.                     <xsl:if test="$cEditors = 1">
  3702.                       <xsl:call-template name="templ_prop_APA_GeneralOpen"/>
  3703.                       <xsl:call-template name="templ_str_EditorShortCap"/>
  3704.                       <xsl:call-template name="templ_prop_APA_GeneralClose"/>
  3705.                     </xsl:if>
  3706.                   </xsl:if>
  3707.                 </xsl:variable>
  3708.  
  3709.                 <xsl:variable name="ensufixEditorLFDot">
  3710.                   <xsl:if test="string-length($ensufixEditorLF)>0">
  3711.                     <xsl:value-of select="$ensufixEditorLF"/>
  3712.                     <xsl:call-template name="templ_prop_Dot"/>
  3713.                   </xsl:if>
  3714.                 </xsl:variable>
  3715.  
  3716.                 <xsl:variable name="writerLFDot">
  3717.                   <xsl:call-template name="appendField_Dot">
  3718.                     <xsl:with-param name="field" select="$writerLF"/>
  3719.                   </xsl:call-template>
  3720.                 </xsl:variable>
  3721.  
  3722.                 <xsl:variable name="ensufixPerformerLFDot">
  3723.                   <xsl:if test="string-length($performerLF)>0">
  3724.                     <xsl:value-of select="$performerLF"/>
  3725.                     <xsl:call-template name="templ_prop_Space"/>
  3726.                     <xsl:if test="$cPerformers > 1">
  3727.                       <xsl:call-template name="templ_prop_APA_GeneralOpen"/>
  3728.                       <xsl:call-template name="templ_str_PerformersCap"/>
  3729.                       <xsl:call-template name="templ_prop_APA_GeneralClose"/>
  3730.                     </xsl:if>
  3731.                     <xsl:if test="$cPerformers = 1">
  3732.                       <xsl:call-template name="templ_prop_APA_GeneralOpen"/>
  3733.                       <xsl:call-template name="templ_str_PerformerCap"/>
  3734.                       <xsl:call-template name="templ_prop_APA_GeneralClose"/>
  3735.                     </xsl:if>
  3736.                     <xsl:call-template name="templ_prop_Dot"/>
  3737.                   </xsl:if>
  3738.                 </xsl:variable>
  3739.  
  3740.                 <xsl:variable name="ensufixDirectorLFDot">
  3741.                   <xsl:if test="string-length($directorLF)>0">
  3742.                     <xsl:value-of select="$directorLF"/>
  3743.                     <xsl:call-template name="templ_prop_Space"/>
  3744.                     <xsl:if test="$cDirectors > 1">
  3745.                       <xsl:call-template name="templ_prop_APA_GeneralOpen"/>
  3746.                       <xsl:call-template name="templ_str_DirectorsCap"/>
  3747.                       <xsl:call-template name="templ_prop_APA_GeneralClose"/>
  3748.                     </xsl:if>
  3749.                     <xsl:if test="$cDirectors = 1">
  3750.                       <xsl:call-template name="templ_prop_APA_GeneralOpen"/>
  3751.                       <xsl:call-template name="templ_str_DirectorCap"/>
  3752.                       <xsl:call-template name="templ_prop_APA_GeneralClose"/>
  3753.                     </xsl:if>
  3754.                     <xsl:call-template name="templ_prop_Dot"/>
  3755.                   </xsl:if>
  3756.                 </xsl:variable>
  3757.  
  3758.                 <xsl:variable name="enclosedDateDot">
  3759.                   <xsl:if test="string-length($date)>0">
  3760.                     <xsl:call-template name="templ_prop_APA_GeneralOpen"/>
  3761.                     <xsl:value-of select="$date"/>
  3762.                     <xsl:call-template name="templ_prop_APA_GeneralClose"/>
  3763.                     <xsl:call-template name="templ_prop_Dot"/>
  3764.                   </xsl:if>
  3765.                 </xsl:variable>
  3766.  
  3767.                 <xsl:variable name="enclosedDateEmptyDot">
  3768.                   <xsl:if test="string-length($dateEmpty)>0">
  3769.                     <xsl:call-template name="templ_prop_APA_GeneralOpen"/>
  3770.                     <xsl:value-of select="$dateEmpty"/>
  3771.                     <xsl:call-template name="templ_prop_APA_GeneralClose"/>
  3772.                     <xsl:call-template name="templ_prop_Dot"/>
  3773.                   </xsl:if>
  3774.                 </xsl:variable>
  3775.  
  3776.                 <xsl:variable name="authorDot">
  3777.                   <xsl:call-template name="appendField_Dot">
  3778.                     <xsl:with-param name="field" select="$author"/>
  3779.                   </xsl:call-template>
  3780.                 </xsl:variable>
  3781.  
  3782.                 <xsl:variable name="theAuthor">
  3783.                   <xsl:choose>
  3784.                     <xsl:when test="string-length($author)>0">
  3785.                       <xsl:value-of select="$author"/>
  3786.                     </xsl:when>
  3787.                     <xsl:when test="string-length($ensufixEditorLF)>0">
  3788.                       <xsl:value-of select="$ensufixEditorLF"/>
  3789.                     </xsl:when>
  3790.                   </xsl:choose>
  3791.                 </xsl:variable>
  3792.  
  3793.                 <xsl:variable name="theAuthorDot">
  3794.                   <xsl:call-template name="appendField_Dot">
  3795.                     <xsl:with-param name="field" select="$theAuthor"/>
  3796.                   </xsl:call-template>
  3797.                 </xsl:variable>
  3798.  
  3799.                 <xsl:variable name="writeEditor">
  3800.                   <xsl:choose>
  3801.                     <xsl:when test="string-length($author)>0">Editor</xsl:when>
  3802.                   </xsl:choose>
  3803.                 </xsl:variable>
  3804.  
  3805.                 <xsl:variable name="theEditorAndTranslatorDot">
  3806.                   <xsl:call-template name="formatManySecondary">
  3807.  
  3808.                     <xsl:with-param name="name1" select="$writeEditor"/>
  3809.                     <xsl:with-param name="sufixS1">
  3810.                       <xsl:call-template name="templ_prop_ListSeparator"/>
  3811.                       <xsl:call-template name="templ_str_EditorShortCap"/>
  3812.                     </xsl:with-param>
  3813.                     <xsl:with-param name="sufixM1">
  3814.                       <xsl:call-template name="templ_prop_ListSeparator"/>
  3815.                       <xsl:call-template name="templ_str_EditorsShortCap"/>
  3816.                     </xsl:with-param>
  3817.  
  3818.                     <xsl:with-param name="name2">Translator</xsl:with-param>
  3819.                     <xsl:with-param name="sufixS2">
  3820.                       <xsl:call-template name="templ_prop_ListSeparator"/>
  3821.                       <xsl:call-template name="templ_str_TranslatorShortCap"/>
  3822.                     </xsl:with-param>
  3823.                     <xsl:with-param name="sufixM2">
  3824.                       <xsl:call-template name="templ_prop_ListSeparator"/>
  3825.                       <xsl:call-template name="templ_str_TranslatorsShortCap"/>
  3826.                     </xsl:with-param>
  3827.                   </xsl:call-template>
  3828.                 </xsl:variable>
  3829.  
  3830.  
  3831.                 <xsl:variable name="theEditorEncTemp">
  3832.                   <xsl:call-template name="formatManySecondary">
  3833.  
  3834.                     <xsl:with-param name="name1" select="$writeEditor"/>
  3835.                     <xsl:with-param name="sufixS1">
  3836.                       <xsl:call-template name="templ_prop_Space"/>
  3837.                       <xsl:call-template name="templ_prop_APA_GeneralOpen"/>
  3838.                       <xsl:call-template name="templ_str_EditorShortCap"/>
  3839.                       <xsl:call-template name="templ_prop_APA_GeneralClose"/>
  3840.                     </xsl:with-param>
  3841.                     <xsl:with-param name="sufixM1">
  3842.                       <xsl:call-template name="templ_prop_Space"/>
  3843.                       <xsl:call-template name="templ_prop_APA_GeneralOpen"/>
  3844.                       <xsl:call-template name="templ_str_EditorShortCap"/>
  3845.                       <xsl:call-template name="templ_prop_APA_GeneralClose"/>
  3846.                     </xsl:with-param>
  3847.  
  3848.                   </xsl:call-template>
  3849.                 </xsl:variable>
  3850.  
  3851.                 <xsl:variable name="prop_APA_GeneralOpen">
  3852.                   <xsl:call-template name="templ_prop_APA_GeneralOpen"/>
  3853.                 </xsl:variable>
  3854.                 <xsl:variable name="prop_APA_GeneralClose">
  3855.                   <xsl:call-template name="templ_prop_APA_GeneralClose"/>
  3856.                 </xsl:variable>
  3857.  
  3858.                 <xsl:variable name="theEditorEnc">
  3859.                   <xsl:if test="string-length($theEditorEncTemp)>0">
  3860.                     <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))"/>
  3861.                   </xsl:if>
  3862.                 </xsl:variable>
  3863.  
  3864.                 <xsl:variable name="theEditorEncDot">
  3865.                   <xsl:if test="string-length($theEditorEnc)>0">
  3866.                     <xsl:value-of select="$theEditorEnc"/>
  3867.                     <xsl:call-template name="templ_prop_Dot"/>
  3868.                   </xsl:if>
  3869.                 </xsl:variable>
  3870.  
  3871.                 <xsl:variable name="theBookAuthorAndEditor">
  3872.                   <xsl:call-template name="formatManySecondary">
  3873.  
  3874.                     <xsl:with-param name="name1">BookAuthor</xsl:with-param>
  3875.                     <xsl:with-param name="sufixS1"></xsl:with-param>
  3876.                     <xsl:with-param name="sufixM1"></xsl:with-param>
  3877.  
  3878.                     <xsl:with-param name="name2">Editor</xsl:with-param>
  3879.                     <xsl:with-param name="sufixS2">
  3880.                       <xsl:call-template name="templ_prop_Space"/>
  3881.                       <xsl:call-template name="templ_prop_APA_GeneralOpen"/>
  3882.                       <xsl:call-template name="templ_str_EditorShortCap"/>
  3883.                       <xsl:call-template name="templ_prop_APA_GeneralClose"/>
  3884.                     </xsl:with-param>
  3885.                     <xsl:with-param name="sufixM2">
  3886.                       <xsl:call-template name="templ_prop_Space"/>
  3887.                       <xsl:call-template name="templ_prop_APA_GeneralOpen"/>
  3888.                       <xsl:call-template name="templ_str_EditorsShortCap"/>
  3889.                       <xsl:call-template name="templ_prop_APA_GeneralClose"/>
  3890.                     </xsl:with-param>
  3891.  
  3892.                   </xsl:call-template>
  3893.                 </xsl:variable>
  3894.  
  3895.                 <xsl:variable name="theBookAuthorAndEditorDot">
  3896.                   <xsl:if test="string-length($theBookAuthorAndEditor)>0">
  3897.                     <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))"/>
  3898.                     <xsl:call-template name="templ_prop_Dot"/>
  3899.                   </xsl:if>
  3900.                 </xsl:variable>
  3901.  
  3902.                 <xsl:variable name="theBookAuthorAndEditor2">
  3903.                   <xsl:if test="string-length($theBookAuthorAndEditor)>0">
  3904.                     <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))"/>
  3905.                   </xsl:if>
  3906.                 </xsl:variable>
  3907.  
  3908.                 <xsl:variable name="i_bookTitlePagesDot">
  3909.                   <xsl:if test="string-length($bookTitle)>0">
  3910.                     <xsl:call-template name = "ApplyItalicFieldNS">
  3911.                      <xsl:with-param name = "data">
  3912.                       <xsl:choose>
  3913.                         <xsl:when test="string-length($volume)>0 or string-length($pages)>0 or string-length($translator)>0 or string-length($edition)>0">
  3914.                           <xsl:value-of select="$bookTitle"/>
  3915.                         </xsl:when>
  3916.                         <xsl:otherwise>
  3917.                           <xsl:value-of select="$bookTitleDot"/>
  3918.                         </xsl:otherwise>
  3919.                       </xsl:choose>
  3920.                      </xsl:with-param>
  3921.                     </xsl:call-template>
  3922.  
  3923.                     <xsl:if test="string-length($volume)>0 or string-length($pages)>0 or string-length($translator)>0 or string-length($edition)>0">
  3924.  
  3925.                       <xsl:call-template name="templ_prop_Space"/>
  3926.                       <xsl:call-template name="templ_prop_APA_GeneralOpen"/>
  3927.  
  3928.                       <xsl:if test="string-length($translator)>0">
  3929.                         <xsl:value-of select="$translator"/>
  3930.                         <xsl:call-template name="templ_prop_ListSeparator"/>
  3931.                         <xsl:if test="$cTranslators > 1">
  3932.                           <xsl:call-template name="templ_str_TranslatorsShortCap"/>
  3933.                         </xsl:if>
  3934.                         <xsl:if test="$cTranslators = 1">
  3935.                           <xsl:call-template name="templ_str_TranslatorShortCap"/>
  3936.                         </xsl:if>
  3937.  
  3938.                       </xsl:if>
  3939.  
  3940.                       <xsl:if test="string-length($edition)>0">
  3941.                         <xsl:if test="string-length($translator)>0">
  3942.                           <xsl:call-template name="templ_prop_ListSeparator"/>
  3943.                         </xsl:if>
  3944.  
  3945.                         <xsl:call-template name="StringFormat">
  3946.                           <xsl:with-param name="format">
  3947.                             <xsl:call-template name="templ_str_EditionShortUnCap"/>
  3948.                           </xsl:with-param>
  3949.                           <xsl:with-param name="parameters">
  3950.                             <t:params>
  3951.                               <t:param>
  3952.                                 <xsl:value-of select="$edition"/>
  3953.                               </t:param>
  3954.                             </t:params>
  3955.                           </xsl:with-param>
  3956.                         </xsl:call-template>
  3957.                       </xsl:if>
  3958.  
  3959.                       <xsl:if test="string-length($volume)>0">
  3960.                         <xsl:if test="string-length($translator)>0 or string-length($edition)>0">
  3961.                           <xsl:call-template name="templ_prop_ListSeparator"/>
  3962.                         </xsl:if>
  3963.                         <xsl:call-template name="StringFormat">
  3964.                           <xsl:with-param name="format">
  3965.                             <xsl:choose>
  3966.                               <xsl:when test="not(string-length($volume)=string-length(translate($volume, ',', '')))">
  3967.                                 <xsl:call-template name="templ_str_VolumesShortCap"/>
  3968.                               </xsl:when>
  3969.                               <xsl:when test="string-length($volume)=string-length(translate($volume, $prop_APA_Hyphens, ''))">
  3970.                                 <xsl:call-template name="templ_str_VolumeShortCap"/>
  3971.                               </xsl:when>
  3972.                               <xsl:otherwise>
  3973.                                 <xsl:call-template name="templ_str_VolumesShortCap"/>
  3974.                               </xsl:otherwise>
  3975.                             </xsl:choose>
  3976.                           </xsl:with-param>
  3977.                           <xsl:with-param name="parameters">
  3978.                             <t:params>
  3979.                               <t:param>
  3980.                                 <xsl:value-of select="$volume"/>
  3981.                               </t:param>
  3982.                             </t:params>
  3983.                           </xsl:with-param>
  3984.                         </xsl:call-template>
  3985.                       </xsl:if>
  3986.  
  3987.                       <xsl:if test="string-length($pages)>0">
  3988.                         <xsl:if test="string-length($translator)>0 or string-length($edition)>0 or string-length($volume)>0">
  3989.                           <xsl:call-template name="templ_prop_ListSeparator"/>
  3990.                         </xsl:if>
  3991.                         <xsl:value-of select="$ppPages"/>
  3992.                       </xsl:if>
  3993.  
  3994.                       <xsl:call-template name="templ_prop_APA_GeneralClose"/>
  3995.                       <xsl:call-template name="templ_prop_Dot"/>
  3996.  
  3997.                     </xsl:if>
  3998.                   </xsl:if>
  3999.                 </xsl:variable>
  4000.  
  4001.                 <xsl:variable name="theAuthorSoundRecordingDot">
  4002.                   <xsl:choose>
  4003.                     <xsl:when test="string-length($composerLF)>0">
  4004.                       <xsl:value-of select="$composerLF"/>
  4005.                     </xsl:when>
  4006.                     <xsl:when test="string-length($performerLF)>0">
  4007.                       <xsl:value-of select="$performerLF"/>
  4008.                     </xsl:when>
  4009.                     <xsl:when test="string-length($conductorLF)>0">
  4010.                       <xsl:value-of select="$conductorLF"/>
  4011.                     </xsl:when>
  4012.                   </xsl:choose>
  4013.                 </xsl:variable>
  4014.  
  4015.                 <xsl:variable name="SecondarySoundRecordingName">
  4016.                   <xsl:choose>
  4017.                     <xsl:when test="string-length($composer)>0">
  4018.                       <xsl:choose>
  4019.                         <xsl:when test="string-length($performer)>0">
  4020.                           <xsl:value-of select="$performer"/>
  4021.                         </xsl:when>
  4022.                         <xsl:when test="string-length($conductor)>0">
  4023.                           <xsl:value-of select="$conductor"/>
  4024.                         </xsl:when>
  4025.                       </xsl:choose>
  4026.                     </xsl:when>
  4027.  
  4028.                     <xsl:when test="string-length($performer)>0">
  4029.                       <xsl:if test="string-length($conductor)>0">
  4030.                         <xsl:value-of select="$conductor"/>
  4031.                       </xsl:if>
  4032.                     </xsl:when>
  4033.                   </xsl:choose>
  4034.                 </xsl:variable>
  4035.  
  4036.                 <xsl:variable name="thePerformerAndConductorDot">
  4037.                   <xsl:if test="string-length($SecondarySoundRecordingName)>0">
  4038.                     <xsl:call-template name="templ_prop_APA_SecondaryOpen"/>
  4039.  
  4040.                     <xsl:call-template name="StringFormat">
  4041.                       <xsl:with-param name="format">
  4042.                         <xsl:call-template name="templ_str_RecordedByCap"/>
  4043.                       </xsl:with-param>
  4044.                       <xsl:with-param name="parameters">
  4045.                         <t:params>
  4046.                           <t:param>
  4047.                             <xsl:value-of select="$SecondarySoundRecordingName"/>
  4048.                           </t:param>
  4049.                         </t:params>
  4050.                       </xsl:with-param>
  4051.                     </xsl:call-template>
  4052.  
  4053.                     <xsl:call-template name="templ_prop_APA_SecondaryClose"/>
  4054.                     <xsl:call-template name="templ_prop_Dot"/>
  4055.                   </xsl:if>
  4056.                 </xsl:variable>
  4057.  
  4058.                 <xsl:variable name="theAuthorPerformanceDot">
  4059.                   <xsl:choose>
  4060.                     <xsl:when test="string-length($writerLFDot)>0">
  4061.                       <xsl:value-of select="$writerLFDot"/>
  4062.                     </xsl:when>
  4063.                     <xsl:when test="string-length($ensufixDirectorLFDot)>0">
  4064.                       <xsl:value-of select="$ensufixDirectorLFDot"/>
  4065.                     </xsl:when>
  4066.                     <xsl:when test="string-length($ensufixPerformerLFDot)>0">
  4067.                       <xsl:value-of select="$ensufixPerformerLFDot"/>
  4068.                     </xsl:when>
  4069.                   </xsl:choose>
  4070.                 </xsl:variable>
  4071.  
  4072.                 <xsl:variable name="writePerfDirector">
  4073.                   <xsl:choose>
  4074.                     <xsl:when test="string-length($writer)>0">Director</xsl:when>
  4075.                   </xsl:choose>
  4076.                 </xsl:variable>
  4077.  
  4078.                 <xsl:variable name="writePerfPerformer">
  4079.                   <xsl:choose>
  4080.                     <xsl:when test="string-length($writer)>0 or string-length($director)>0">Performer</xsl:when>
  4081.                   </xsl:choose>
  4082.                 </xsl:variable>
  4083.  
  4084.  
  4085.                 <xsl:variable name="thePerformanceDirectorAndPerformerDot">
  4086.                   <xsl:call-template name="formatManySecondary">
  4087.  
  4088.                     <xsl:with-param name="name1" select="$writePerfDirector"/>
  4089.                     <xsl:with-param name="sufixS1">
  4090.                       <xsl:call-template name="templ_prop_ListSeparator"/>
  4091.                       <xsl:call-template name="templ_str_DirectorCap"/>
  4092.                     </xsl:with-param>
  4093.                     <xsl:with-param name="sufixM1">
  4094.                       <xsl:call-template name="templ_prop_ListSeparator"/>
  4095.                       <xsl:call-template name="templ_str_DirectorsCap"/>
  4096.                     </xsl:with-param>
  4097.  
  4098.                     <xsl:with-param name="name2" select="$writePerfPerformer"/>
  4099.                     <xsl:with-param name="sufixS2">
  4100.                       <xsl:call-template name="templ_prop_ListSeparator"/>
  4101.                       <xsl:call-template name="templ_str_PerformerCap"/>
  4102.                     </xsl:with-param>
  4103.                     <xsl:with-param name="sufixM2">
  4104.                       <xsl:call-template name="templ_prop_ListSeparator"/>
  4105.                       <xsl:call-template name="templ_str_PerformersCap"/>
  4106.                     </xsl:with-param>
  4107.  
  4108.                   </xsl:call-template>
  4109.                 </xsl:variable>
  4110.  
  4111.                 <xsl:variable name="theMiscAuthorDot">
  4112.                   <xsl:choose>
  4113.                     <xsl:when test="string-length($authorDot)>0">
  4114.                       <xsl:value-of select="$authorDot"/>
  4115.                     </xsl:when>
  4116.                     <xsl:when test="string-length($ensufixEditorLFDot)>0">
  4117.                       <xsl:value-of select="$ensufixEditorLFDot"/>
  4118.                     </xsl:when>
  4119.                   </xsl:choose>
  4120.                 </xsl:variable>
  4121.  
  4122.                 <xsl:variable name="writeMiscEditor">
  4123.                   <xsl:choose>
  4124.                     <xsl:when test="string-length($authorDot)>0">Editor</xsl:when>
  4125.                   </xsl:choose>
  4126.                 </xsl:variable>
  4127.  
  4128.  
  4129.                 <xsl:variable name="theMiscEditorAndTranslatorAndCompilerDot">
  4130.                   <xsl:call-template name="formatManySecondary">
  4131.  
  4132.                     <xsl:with-param name="name1" select="$writeMiscEditor"/>
  4133.                     <xsl:with-param name="sufixS1">
  4134.                       <xsl:call-template name="templ_prop_ListSeparator"/>
  4135.                       <xsl:call-template name="templ_str_EditorShortCap"/>
  4136.                     </xsl:with-param>
  4137.                     <xsl:with-param name="sufixM1">
  4138.                       <xsl:call-template name="templ_prop_ListSeparator"/>
  4139.                       <xsl:call-template name="templ_str_EditorsShortCap"/>
  4140.                     </xsl:with-param>
  4141.  
  4142.                     <xsl:with-param name="name2">Translator</xsl:with-param>
  4143.                     <xsl:with-param name="sufixS2">
  4144.                       <xsl:call-template name="templ_prop_ListSeparator"/>
  4145.                       <xsl:call-template name="templ_str_TranslatorShortCap"/>
  4146.                     </xsl:with-param>
  4147.                     <xsl:with-param name="sufixM2">
  4148.                       <xsl:call-template name="templ_prop_ListSeparator"/>
  4149.                       <xsl:call-template name="templ_str_TranslatorsShortCap"/>
  4150.                     </xsl:with-param>
  4151.  
  4152.                     <xsl:with-param name="name3">Compiler</xsl:with-param>
  4153.                     <xsl:with-param name="sufixS3">
  4154.                       <xsl:call-template name="templ_prop_ListSeparator"/>
  4155.                       <xsl:call-template name="templ_str_CompilerCap"/>
  4156.                     </xsl:with-param>
  4157.                     <xsl:with-param name="sufixM3">
  4158.                       <xsl:call-template name="templ_prop_ListSeparator"/>
  4159.                       <xsl:call-template name="templ_str_CompilersCap"/>
  4160.                     </xsl:with-param>
  4161.                   </xsl:call-template>
  4162.                 </xsl:variable>
  4163.  
  4164.  
  4165.                 <xsl:variable name="theFilmProducerAndWriterAndDirectorDot">
  4166.                   <xsl:call-template name="formatManyMain">
  4167.  
  4168.                     <xsl:with-param name="name1">ProducerName</xsl:with-param>
  4169.                     <xsl:with-param name="sufixS1">
  4170.                       <xsl:call-template name="templ_prop_Space"/>
  4171.                       <xsl:call-template name="templ_prop_APA_GeneralOpen"/>
  4172.                       <xsl:call-template name="templ_str_ProducerCap"/>
  4173.                       <xsl:call-template name="templ_prop_APA_GeneralClose"/>
  4174.                     </xsl:with-param>
  4175.                     <xsl:with-param name="sufixM1">
  4176.                       <xsl:call-template name="templ_prop_Space"/>
  4177.                       <xsl:call-template name="templ_prop_APA_GeneralOpen"/>
  4178.                       <xsl:call-template name="templ_str_ProducersCap"/>
  4179.                       <xsl:call-template name="templ_prop_APA_GeneralClose"/>
  4180.                     </xsl:with-param>
  4181.  
  4182.                     <xsl:with-param name="name2">Writer</xsl:with-param>
  4183.                     <xsl:with-param name="sufixS2">
  4184.                       <xsl:call-template name="templ_prop_Space"/>
  4185.                       <xsl:call-template name="templ_prop_APA_GeneralOpen"/>
  4186.                       <xsl:call-template name="templ_str_WriterCap"/>
  4187.                       <xsl:call-template name="templ_prop_APA_GeneralClose"/>
  4188.                     </xsl:with-param>
  4189.                     <xsl:with-param name="sufixM2">
  4190.                       <xsl:call-template name="templ_prop_Space"/>
  4191.                       <xsl:call-template name="templ_prop_APA_GeneralOpen"/>
  4192.                       <xsl:call-template name="templ_str_WritersCap"/>
  4193.                       <xsl:call-template name="templ_prop_APA_GeneralClose"/>
  4194.                     </xsl:with-param>
  4195.  
  4196.                     <xsl:with-param name="name3">Director</xsl:with-param>
  4197.                     <xsl:with-param name="sufixS3">
  4198.                       <xsl:call-template name="templ_prop_Space"/>
  4199.                       <xsl:call-template name="templ_prop_APA_GeneralOpen"/>
  4200.                       <xsl:call-template name="templ_str_DirectorCap"/>
  4201.                       <xsl:call-template name="templ_prop_APA_GeneralClose"/>
  4202.                     </xsl:with-param>
  4203.                     <xsl:with-param name="sufixM3">
  4204.                       <xsl:call-template name="templ_prop_Space"/>
  4205.                       <xsl:call-template name="templ_prop_APA_GeneralOpen"/>
  4206.                       <xsl:call-template name="templ_str_DirectorsCap"/>
  4207.                       <xsl:call-template name="templ_prop_APA_GeneralClose"/>
  4208.                     </xsl:with-param>
  4209.                   </xsl:call-template>
  4210.                 </xsl:variable>
  4211.  
  4212.  
  4213.                 <xsl:variable name="theInterviewInterviewerAndEditorAndTranslator">
  4214.                   <xsl:call-template name="formatManySecondary">
  4215.  
  4216.                     <xsl:with-param name="name1">Interviewer</xsl:with-param>
  4217.                     <xsl:with-param name="sufixS1">
  4218.                       <xsl:call-template name="templ_prop_ListSeparator"/>
  4219.                       <xsl:call-template name="templ_str_InterviewerCap"/>
  4220.                     </xsl:with-param>
  4221.                     <xsl:with-param name="sufixM1">
  4222.                       <xsl:call-template name="templ_prop_ListSeparator"/>
  4223.                       <xsl:call-template name="templ_str_InterviewersCap"/>
  4224.                     </xsl:with-param>
  4225.  
  4226.                     <xsl:with-param name="name2">Editor</xsl:with-param>
  4227.                     <xsl:with-param name="sufixS2">
  4228.                       <xsl:call-template name="templ_prop_ListSeparator"/>
  4229.                       <xsl:call-template name="templ_str_EditorCap"/>
  4230.                     </xsl:with-param>
  4231.                     <xsl:with-param name="sufixM2">
  4232.                       <xsl:call-template name="templ_prop_ListSeparator"/>
  4233.                       <xsl:call-template name="templ_str_EditorsCap"/>
  4234.                     </xsl:with-param>
  4235.  
  4236.                     <xsl:with-param name="name3">Translator</xsl:with-param>
  4237.                     <xsl:with-param name="sufixS3">
  4238.                       <xsl:call-template name="templ_prop_ListSeparator"/>
  4239.                       <xsl:call-template name="templ_str_TranslatorCap"/>
  4240.                     </xsl:with-param>
  4241.                     <xsl:with-param name="sufixM3">
  4242.                       <xsl:call-template name="templ_prop_ListSeparator"/>
  4243.                       <xsl:call-template name="templ_str_TranslatorsCap"/>
  4244.                     </xsl:with-param>
  4245.                   </xsl:call-template>
  4246.                 </xsl:variable>
  4247.  
  4248.                 <xsl:variable name="theInterviewInterviewer">
  4249.                   <xsl:call-template name="formatManySecondary">
  4250.  
  4251.                     <xsl:with-param name="name1">Interviewer</xsl:with-param>
  4252.                     <xsl:with-param name="sufixS1">
  4253.                       <xsl:call-template name="templ_prop_ListSeparator"/>
  4254.                       <xsl:call-template name="templ_str_InterviewerCap"/>
  4255.                     </xsl:with-param>
  4256.                     <xsl:with-param name="sufixM1">
  4257.                       <xsl:call-template name="templ_prop_ListSeparator"/>
  4258.                       <xsl:call-template name="templ_str_InterviewersCap"/>
  4259.                     </xsl:with-param>
  4260.                   </xsl:call-template>
  4261.                 </xsl:variable>
  4262.  
  4263.  
  4264.                 <xsl:variable name="theInternetSiteEditorAndProducerDot">
  4265.                   <xsl:call-template name="formatManySecondary">
  4266.  
  4267.                     <xsl:with-param name="name1" select="$writeEditor"/>
  4268.                     <xsl:with-param name="sufixS1">
  4269.                       <xsl:call-template name="templ_prop_ListSeparator"/>
  4270.                       <xsl:call-template name="templ_str_EditorCap"/>
  4271.                     </xsl:with-param>
  4272.                     <xsl:with-param name="sufixM1">
  4273.                       <xsl:call-template name="templ_prop_ListSeparator"/>
  4274.                       <xsl:call-template name="templ_str_EditorsCap"/>
  4275.                     </xsl:with-param>
  4276.  
  4277.                     <xsl:with-param name="name2">ProducerName</xsl:with-param>
  4278.                     <xsl:with-param name="sufixS2">
  4279.                       <xsl:call-template name="templ_prop_ListSeparator"/>
  4280.                       <xsl:call-template name="templ_str_ProducerCap"/>
  4281.                     </xsl:with-param>
  4282.                     <xsl:with-param name="sufixM2">
  4283.                       <xsl:call-template name="templ_prop_ListSeparator"/>
  4284.                       <xsl:call-template name="templ_str_ProducersCap"/>
  4285.                     </xsl:with-param>
  4286.  
  4287.                     <xsl:with-param name="special3">
  4288.                       <xsl:value-of select="$productionCompany"/>
  4289.                     </xsl:with-param>
  4290.                   </xsl:call-template>
  4291.                 </xsl:variable>
  4292.  
  4293.                 <xsl:variable name = "_albumTitleMedium">
  4294.                   <xsl:if test="string-length(b:AlbumTitle)>0">
  4295.                     <xsl:call-template name="StringFormat">
  4296.                       <xsl:with-param name="format">
  4297.                         <xsl:call-template name="templ_str_OnAlbumTitleCap"/>
  4298.                       </xsl:with-param>
  4299.  
  4300.                       <xsl:with-param name="parameters">
  4301.                         <t:params>
  4302.                           <t:param>
  4303.                             <xsl:call-template name = "ApplyItalicTitleNS">
  4304.                               <xsl:with-param name = "data">
  4305.                                 <xsl:value-of select="b:AlbumTitle"/>
  4306.                               </xsl:with-param>
  4307.                             </xsl:call-template>
  4308.                           </t:param>
  4309.                         </t:params>
  4310.                       </xsl:with-param>
  4311.                     </xsl:call-template>
  4312.                   </xsl:if>
  4313.  
  4314.                   <xsl:if test = "string-length(b:AlbumTitle)>0 and string-length(b:Medium)>0">
  4315.                     <xsl:call-template name="templ_prop_Space"/>
  4316.                   </xsl:if>
  4317.  
  4318.                   <xsl:if test = "string-length(b:Medium)>0">
  4319.                     <xsl:call-template name="templ_prop_APA_SecondaryOpen"/>
  4320.                     <xsl:value-of select="b:Medium"/>
  4321.                     <xsl:call-template name="templ_prop_APA_SecondaryClose"/>
  4322.                   </xsl:if>
  4323.                 </xsl:variable>
  4324.  
  4325.  
  4326.                 <xsl:variable name = "_albumTitleMediumDot">
  4327.                   <xsl:if test="string-length(normalize-space($_albumTitleMedium)) > 0">
  4328.                     <xsl:copy-of select="$_albumTitleMedium" />
  4329.                     <xsl:call-template name="need_Dot">
  4330.                       <xsl:with-param name="field" select ="$_albumTitleMedium"/>
  4331.                     </xsl:call-template>
  4332.                   </xsl:if>
  4333.                 </xsl:variable>
  4334.  
  4335.                 <xsl:variable name = "source">
  4336.                   <xsl:choose>
  4337.                     <xsl:when test="b:SourceType='Book'">
  4338.                       <xsl:choose>
  4339.                         <xsl:when test="string-length($theAuthorDot)>0">
  4340.                           <xsl:value-of select="$theAuthorDot"/>
  4341.  
  4342.                           <xsl:if test="string-length($enclosedDateDot)>0">
  4343.                             <xsl:call-template name="templ_prop_Space"/>
  4344.                             <xsl:value-of select="$enclosedDateDot"/>
  4345.                           </xsl:if>
  4346.  
  4347.                           <xsl:if test="string-length($i_titleEditionVolumeDot)>0">
  4348.                             <xsl:call-template name="templ_prop_Space"/>
  4349.                             <xsl:apply-templates select="msxsl:node-set($i_titleEditionVolumeDot)" mode="outputHtml"/>
  4350.                           </xsl:if>
  4351.  
  4352.                           <xsl:if test="string-length($theEditorAndTranslatorDot)>0">
  4353.                             <xsl:call-template name="templ_prop_Space"/>
  4354.                             <xsl:value-of select="$theEditorAndTranslatorDot"/>
  4355.                           </xsl:if>
  4356.  
  4357.                           <xsl:if test="string-length($tempCSCPu)>0">
  4358.                             <xsl:call-template name="templ_prop_Space"/>
  4359.                             <xsl:value-of select="$tempCSCPu"/>
  4360.                           </xsl:if>
  4361.                         </xsl:when>
  4362.  
  4363.                         <xsl:when test="string-length($theAuthorDot)=0">
  4364.                           <xsl:if test="string-length($i_titleEditionVolumeDot)>0">
  4365.                             <xsl:apply-templates select="msxsl:node-set($i_titleEditionVolumeDot)" mode="outputHtml"/>
  4366.                           </xsl:if>
  4367.  
  4368.                           <xsl:if test="string-length($enclosedDateDot)>0">
  4369.                             <xsl:if test="string-length($i_titleEditionVolumeDot)>0">
  4370.                               <xsl:call-template name="templ_prop_Space"/>
  4371.                             </xsl:if>
  4372.                             <xsl:value-of select="$enclosedDateDot"/>
  4373.                           </xsl:if>
  4374.  
  4375.                           <xsl:if test="string-length($theEditorAndTranslatorDot)>0">
  4376.                             <xsl:if test="string-length($i_titleEditionVolumeDot)>0 or string-length($enclosedDateDot)>0">
  4377.                               <xsl:call-template name="templ_prop_Space"/>
  4378.                             </xsl:if>
  4379.                             <xsl:value-of select="$theEditorAndTranslatorDot"/>
  4380.                           </xsl:if>
  4381.  
  4382.                           <xsl:if test="string-length($tempCSCPu)>0">
  4383.                             <xsl:if test="string-length($i_titleEditionVolumeDot)>0 or string-length($enclosedDateDot)>0 or string-length($theEditorAndTranslatorDot)>0">
  4384.                               <xsl:call-template name="templ_prop_Space"/>
  4385.                             </xsl:if>
  4386.                             <xsl:value-of select="$tempCSCPu"/>
  4387.                           </xsl:if>
  4388.                         </xsl:when>
  4389.                       </xsl:choose>
  4390.                     </xsl:when>
  4391.  
  4392.  
  4393.                     <xsl:when test="b:SourceType='BookSection'">
  4394.  
  4395.                       <xsl:if test="string-length($authorDot)>0">
  4396.                         <xsl:value-of select="$authorDot"/>
  4397.  
  4398.                         <xsl:if test="string-length($enclosedDateDot)>0">
  4399.                           <xsl:call-template name="templ_prop_Space"/>
  4400.                           <xsl:value-of select="$enclosedDateDot"/>
  4401.                         </xsl:if>
  4402.  
  4403.                         <xsl:if test="string-length($titleDot)>0">
  4404.                           <xsl:if test="string-length($authorDot)>0 or string-length($enclosedDateDot)>0">
  4405.                             <xsl:call-template name="templ_prop_Space"/>
  4406.                           </xsl:if>
  4407.                           <xsl:value-of select="$titleDot"/>
  4408.                         </xsl:if>
  4409.                       </xsl:if>
  4410.  
  4411.                       <xsl:if test="string-length($authorDot)=0">
  4412.                         <xsl:if test="string-length($titleDot)>0">
  4413.                           <xsl:value-of select="$titleDot"/>
  4414.                         </xsl:if>
  4415.  
  4416.                         <xsl:if test="string-length($enclosedDateDot)>0">
  4417.                           <xsl:if test="string-length($titleDot)>0">
  4418.                             <xsl:call-template name="templ_prop_Space"/>
  4419.                           </xsl:if>
  4420.                           <xsl:value-of select="$enclosedDateDot"/>
  4421.                         </xsl:if>
  4422.                       </xsl:if>
  4423.  
  4424.                       <xsl:if test="string-length($theBookAuthorAndEditor)>0">
  4425.                         <xsl:if test="string-length($authorDot)>0 or string-length($titleDot)>0 or string-length($enclosedDateDot)>0">
  4426.                           <xsl:call-template name="templ_prop_Space"/>
  4427.                         </xsl:if>
  4428.  
  4429.                         <xsl:variable name="str_InNameCap">
  4430.                           <xsl:call-template name="templ_str_InNameCap"/>
  4431.                         </xsl:variable>
  4432.  
  4433.                         <xsl:call-template name="StringFormat">
  4434.                           <xsl:with-param name="format" select="$str_InNameCap"/>
  4435.                           <xsl:with-param name="parameters">
  4436.                             <t:params>
  4437.                               <t:param>
  4438.                                 <xsl:if test="string-length($i_bookTitlePagesDot)>0">
  4439.                                   <xsl:value-of select="$theBookAuthorAndEditor2"/>
  4440.                                 </xsl:if>
  4441.  
  4442.                                 <xsl:if test="string-length($i_bookTitlePagesDot)=0">
  4443.                                   <xsl:value-of select="$theBookAuthorAndEditorDot"/>
  4444.                                 </xsl:if>
  4445.                               </t:param>
  4446.                             </t:params>
  4447.                           </xsl:with-param>
  4448.                         </xsl:call-template>
  4449.                       </xsl:if>
  4450.  
  4451.                       <xsl:if test="string-length($i_bookTitlePagesDot)>0">
  4452.                         <xsl:choose>
  4453.                           <xsl:when test="string-length($theBookAuthorAndEditor)>0">
  4454.                             <xsl:call-template name="templ_prop_ListSeparator"/>
  4455.                           </xsl:when>
  4456.                           <xsl:when test="string-length($authorDot)>0 or string-length($titleDot)>0 or string-length($theBookAuthorAndEditorDot)>0 or string-length($enclosedDateDot)>0">
  4457.                             <xsl:call-template name="templ_prop_Space"/>
  4458.                           </xsl:when>
  4459.                         </xsl:choose>
  4460.  
  4461.                         <xsl:variable name="str_InNameCap">
  4462.                           <xsl:call-template name="templ_str_InNameCap"/>
  4463.                         </xsl:variable>
  4464.  
  4465.                         <xsl:if test="string-length($theBookAuthorAndEditor)=0">
  4466.                           <xsl:call-template name="StringFormat">
  4467.                             <xsl:with-param name="format" select="$str_InNameCap"/>
  4468.  
  4469.                             <xsl:with-param name="parameters">
  4470.                               <t:params>
  4471.                                 <t:param>
  4472.                                   <xsl:copy-of select="$i_bookTitlePagesDot"/>
  4473.                                 </t:param>
  4474.                               </t:params>
  4475.                             </xsl:with-param>
  4476.                           </xsl:call-template>
  4477.                         </xsl:if>
  4478.  
  4479.                         <xsl:if test="string-length($theBookAuthorAndEditor)>0">
  4480.                           <xsl:apply-templates select="msxsl:node-set($i_bookTitlePagesDot)" mode="outputHtml"/>
  4481.                         </xsl:if>
  4482.                       </xsl:if>
  4483.  
  4484.                       <xsl:if test="string-length($tempCSCPu)>0">
  4485.                         <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">
  4486.                           <xsl:call-template name="templ_prop_Space"/>
  4487.                         </xsl:if>
  4488.                         <xsl:value-of select="$tempCSCPu"/>
  4489.                       </xsl:if>
  4490.                     </xsl:when>
  4491.  
  4492.  
  4493.                     <xsl:when test="b:SourceType='JournalArticle'">
  4494.  
  4495.                       <xsl:choose>
  4496.                         <xsl:when test="string-length($theAuthorDot)>0">
  4497.                           <xsl:value-of select="$theAuthorDot"/>
  4498.  
  4499.                           <xsl:if test="(string-length($issue)>0 or string-length($volume)>0) and string-length($enclosedDateDot)>0">
  4500.                             <xsl:call-template name="templ_prop_Space"/>
  4501.                             <xsl:value-of select="$enclosedDateDot"/>
  4502.                           </xsl:if>
  4503.  
  4504.                           <xsl:if test="(string-length($issue)=0 and string-length($volume)=0) and string-length($enclosedDateDot)>0">
  4505.                             <xsl:call-template name="templ_prop_Space"/>
  4506.                             <xsl:value-of select="$enclosedDateDot"/>
  4507.                           </xsl:if>
  4508.  
  4509.                           <xsl:if test="string-length($titleDot)>0">
  4510.                             <xsl:call-template name="templ_prop_Space"/>
  4511.                             <xsl:value-of select="$titleDot"/>
  4512.                           </xsl:if>
  4513.  
  4514.                           <xsl:if test="string-length($theEditorAndTranslatorDot)>0">
  4515.                             <xsl:call-template name="templ_prop_Space"/>
  4516.                             <xsl:value-of select="$theEditorAndTranslatorDot"/>
  4517.                           </xsl:if>
  4518.  
  4519.                           <xsl:if test="string-length($tempJVIP)>0">
  4520.                             <xsl:call-template name="templ_prop_Space"/>
  4521.                             <xsl:apply-templates select="msxsl:node-set($tempJVIP)" mode="outputHtml"/>
  4522.                           </xsl:if>
  4523.                         </xsl:when>
  4524.  
  4525.                         <xsl:otherwise>
  4526.                           <xsl:if test="string-length($titleDot)>0">
  4527.                             <xsl:value-of select="$titleDot"/>
  4528.                           </xsl:if>
  4529.  
  4530.                           <xsl:if test="(string-length($issue)>0 or string-length($volume)>0) and string-length($enclosedDateDot)>0">
  4531.                             <xsl:if test="string-length($titleDot)>0">
  4532.                               <xsl:call-template name="templ_prop_Space"/>
  4533.                             </xsl:if>
  4534.                             <xsl:value-of select="$enclosedDateDot"/>
  4535.                           </xsl:if>
  4536.  
  4537.                           <xsl:if test="(string-length($issue)=0 and string-length($volume)=0) and string-length($enclosedDateDot)>0">
  4538.                             <xsl:call-template name="templ_prop_Space"/>
  4539.                             <xsl:value-of select="$enclosedDateDot"/>
  4540.                           </xsl:if>
  4541.  
  4542.                           <xsl:if test="string-length($theEditorAndTranslatorDot)>0">
  4543.                             <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)">
  4544.                               <xsl:call-template name="templ_prop_Space"/>
  4545.                             </xsl:if>
  4546.                             <xsl:value-of select="$theEditorAndTranslatorDot"/>
  4547.                           </xsl:if>
  4548.  
  4549.                           <xsl:if test="string-length($tempJVIP)>0">
  4550.                             <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">
  4551.                               <xsl:call-template name="templ_prop_Space"/>
  4552.                             </xsl:if>
  4553.                             <xsl:apply-templates select="msxsl:node-set($tempJVIP)" mode="outputHtml"/>
  4554.                           </xsl:if>
  4555.                         </xsl:otherwise>
  4556.                       </xsl:choose>
  4557.                     </xsl:when>
  4558.  
  4559.  
  4560.                     <xsl:when test="b:SourceType='ArticleInAPeriodical'">
  4561.  
  4562.                       <xsl:choose>
  4563.                         <xsl:when test="string-length($theAuthorDot)>0">
  4564.                           <xsl:value-of select="$theAuthorDot"/>
  4565.  
  4566.                           <xsl:if test="string-length($enclosedDateDot)>0">
  4567.                             <xsl:call-template name="templ_prop_Space"/>
  4568.                             <xsl:value-of select="$enclosedDateDot"/>
  4569.                           </xsl:if>
  4570.  
  4571.                           <xsl:if test="string-length($titleDot)>0">
  4572.                             <xsl:call-template name="templ_prop_Space"/>
  4573.                             <xsl:value-of select="$titleDot"/>
  4574.                           </xsl:if>
  4575.  
  4576.                           <xsl:if test="string-length($theEditorAndTranslatorDot)>0">
  4577.                             <xsl:call-template name="templ_prop_Space"/>
  4578.                             <xsl:value-of select="$theEditorAndTranslatorDot"/>
  4579.                           </xsl:if>
  4580.  
  4581.                           <xsl:if test="string-length($tempPTVI)>0">
  4582.                             <xsl:call-template name="templ_prop_Space"/>
  4583.                             <xsl:apply-templates select="msxsl:node-set($tempPTVI)" mode="outputHtml"/>
  4584.                           </xsl:if>
  4585.                         </xsl:when>
  4586.  
  4587.                         <xsl:otherwise>
  4588.                           <xsl:if test="string-length($titleDot)>0">
  4589.                             <xsl:value-of select="$titleDot"/>
  4590.                           </xsl:if>
  4591.  
  4592.                           <xsl:if test="string-length($enclosedDateDot)>0">
  4593.                             <xsl:if test="string-length($titleDot)>0">
  4594.                               <xsl:call-template name="templ_prop_Space"/>
  4595.                             </xsl:if>
  4596.                             <xsl:value-of select="$enclosedDateDot"/>
  4597.                           </xsl:if>
  4598.  
  4599.                           <xsl:if test="string-length($theEditorAndTranslatorDot)>0">
  4600.                             <xsl:if test="string-length($titleDot)>0 or string-length($enclosedDateDot)>0">
  4601.                               <xsl:call-template name="templ_prop_Space"/>
  4602.                             </xsl:if>
  4603.                             <xsl:value-of select="$theEditorAndTranslatorDot"/>
  4604.                           </xsl:if>
  4605.  
  4606.                           <xsl:if test="string-length($tempPTVI)>0">
  4607.                             <xsl:if test="string-length($titleDot)>0 or string-length($enclosedDateDot)>0 or string-length($theEditorAndTranslatorDot)>0">
  4608.                               <xsl:call-template name="templ_prop_Space"/>
  4609.                             </xsl:if>
  4610.                             <xsl:apply-templates select="msxsl:node-set($tempPTVI)" mode="outputHtml"/>
  4611.                           </xsl:if>
  4612.                         </xsl:otherwise>
  4613.                       </xsl:choose>
  4614.                     </xsl:when>
  4615.  
  4616.  
  4617.                     <xsl:when test="b:SourceType='ConferenceProceedings'">
  4618.  
  4619.                       <xsl:choose>
  4620.                         <xsl:when test="string-length($theAuthorDot)>0">
  4621.                           <xsl:value-of select="$theAuthorDot"/>
  4622.  
  4623.                           <xsl:if test="string-length($enclosedDateDot)>0">
  4624.                             <xsl:call-template name="templ_prop_Space"/>
  4625.                             <xsl:value-of select="$enclosedDateDot"/>
  4626.                           </xsl:if>
  4627.  
  4628.                           <xsl:if test="string-length($titleDot)>0">
  4629.                             <xsl:call-template name="templ_prop_Space"/>
  4630.                             <xsl:value-of select="$titleDot"/>
  4631.                           </xsl:if>
  4632.  
  4633.                           <xsl:if test="string-length($theEditorEnc)>0">
  4634.                             <xsl:call-template name="templ_prop_Space"/>
  4635.  
  4636.                             <xsl:variable name="str_InNameCap">
  4637.                               <xsl:call-template name="templ_str_InNameCap"/>
  4638.                             </xsl:variable>
  4639.  
  4640.                             <xsl:call-template name="StringFormat">
  4641.                               <xsl:with-param name="format" select="$str_InNameCap"/>
  4642.                               <xsl:with-param name="parameters">
  4643.                                 <t:params>
  4644.                                   <t:param>
  4645.                                     <xsl:if test="string-length($conferenceNameDot)>0">
  4646.                                       <xsl:value-of select="$theEditorEnc"/>
  4647.                                       <xsl:call-template name="templ_prop_ListSeparator"/>
  4648.                                       <xsl:call-template name = "ApplyItalicTitleNS">
  4649.                                         <xsl:with-param name = "data">
  4650.                                           <xsl:choose>
  4651.                                             <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)))">
  4652.                                               <xsl:value-of select="$conferenceName"/>
  4653.                                             </xsl:when>
  4654.                                             <xsl:otherwise>
  4655.                                               <xsl:value-of select="$conferenceNameDot"/>
  4656.                                             </xsl:otherwise>
  4657.                                           </xsl:choose>
  4658.                                         </xsl:with-param>
  4659.                                       </xsl:call-template>
  4660.                                     </xsl:if>
  4661.  
  4662.                                     <xsl:if test="string-length($conferenceNameDot)=0">
  4663.                                       <xsl:value-of select="$theEditorEncDot"/>
  4664.                                     </xsl:if>
  4665.                                   </t:param>
  4666.                                 </t:params>
  4667.                               </xsl:with-param>
  4668.                             </xsl:call-template>
  4669.                           </xsl:if>
  4670.  
  4671.                           <xsl:if test="string-length($theEditorEnc)=0">
  4672.                             <xsl:if test="string-length($conferenceNameDot)>0">
  4673.                               <xsl:call-template name="templ_prop_Space"/>
  4674.                               <xsl:call-template name = "ApplyItalicTitleNS">
  4675.                                 <xsl:with-param name = "data">
  4676.                                   <xsl:choose>
  4677.                                     <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)))">
  4678.                                       <xsl:value-of select="$conferenceName"/>
  4679.                                     </xsl:when>
  4680.                                     <xsl:otherwise>
  4681.                                       <xsl:value-of select="$conferenceNameDot"/>
  4682.                                     </xsl:otherwise>
  4683.                                   </xsl:choose>
  4684.                                 </xsl:with-param>
  4685.                               </xsl:call-template>
  4686.                             </xsl:if>
  4687.                           </xsl:if>
  4688.  
  4689.                           <xsl:if test="string-length($volumeDot)>0 or string-length($pages)>0">
  4690.                             <xsl:if test="string-length($publisher)=0">
  4691.                               <xsl:call-template name="templ_prop_ListSeparator"/>
  4692.                             </xsl:if>
  4693.  
  4694.                             <xsl:if test="string-length($volumeDot)>0 and string-length($pages)=0">
  4695.                               <xsl:call-template name="templ_prop_Space"/>
  4696.                               <xsl:call-template name = "ApplyItalicFieldNS">
  4697.                                 <xsl:with-param name = "data">
  4698.                                   <xsl:value-of select="$volumeDot"/>
  4699.                                 </xsl:with-param>
  4700.                               </xsl:call-template>
  4701.                             </xsl:if>
  4702.  
  4703.                             <xsl:if test="string-length($volume)>0 and string-length($pages)>0">
  4704.                               <xsl:call-template name="templ_prop_Space"/>
  4705.                               <xsl:call-template name = "ApplyItalicFieldNS">
  4706.                                 <xsl:with-param name = "data">
  4707.                                   <xsl:value-of select="$volume"/>
  4708.                                 </xsl:with-param>
  4709.                               </xsl:call-template>
  4710.  
  4711.                               <xsl:if test="string-length($pages)>0">
  4712.                                 <xsl:call-template name="templ_prop_ListSeparator"/>
  4713.                                 <xsl:call-template name="appendField_Dot">
  4714.                                   <xsl:with-param name="field" select="$ppPages"/>
  4715.                                 </xsl:call-template>
  4716.                               </xsl:if>
  4717.                             </xsl:if>
  4718.  
  4719.                             <xsl:if test="string-length($volume)=0 and string-length($pages)>0">
  4720.                               <xsl:call-template name="templ_prop_Space"/>
  4721.                               <xsl:call-template name="templ_prop_APA_GeneralOpen"/>
  4722.                               <xsl:value-of select="$ppPages"/>
  4723.                               <xsl:call-template name="templ_prop_APA_GeneralClose"/>
  4724.                               <xsl:call-template name="templ_prop_Dot"/>
  4725.                             </xsl:if>
  4726.                           </xsl:if>
  4727.  
  4728.                           <xsl:if test="string-length($tempCP)>0">
  4729.                             <xsl:call-template name="templ_prop_Space"/>
  4730.                             <xsl:value-of select="$tempCP"/>
  4731.                           </xsl:if>
  4732.                         </xsl:when>
  4733.  
  4734.                         <xsl:otherwise>
  4735.                           <xsl:if test="string-length($titleDot)>0">
  4736.                             <xsl:value-of select="$titleDot"/>
  4737.                           </xsl:if>
  4738.  
  4739.                           <xsl:if test="string-length($enclosedDateDot)>0">
  4740.                             <xsl:if test="string-length($title)>0">
  4741.                               <xsl:call-template name="templ_prop_Space"/>
  4742.                             </xsl:if>
  4743.                             <xsl:value-of select="$enclosedDateDot"/>
  4744.                           </xsl:if>
  4745.  
  4746.                           <xsl:if test="string-length($conferenceNameDot)>0">
  4747.                             <xsl:if test="string-length($title)>0 or string-length($enclosedDateDot)>0">
  4748.                               <xsl:call-template name="templ_prop_Space"/>
  4749.                             </xsl:if>
  4750.                             <xsl:call-template name = "ApplyItalicFieldNS">
  4751.                               <xsl:with-param name = "data">
  4752.                                 <xsl:choose>
  4753.                                   <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)))">
  4754.                                     <xsl:value-of select="$conferenceName"/>
  4755.                                   </xsl:when>
  4756.                                   <xsl:otherwise>
  4757.                                     <xsl:value-of select="$conferenceNameDot"/>
  4758.                                   </xsl:otherwise>
  4759.                                 </xsl:choose>
  4760.                               </xsl:with-param>
  4761.                             </xsl:call-template>
  4762.                           </xsl:if>
  4763.  
  4764.                           <xsl:if test="string-length($volumeDot)>0 or string-length($pages)>0">
  4765.                             <xsl:if test="string-length($publisher)=0">
  4766.                               <xsl:call-template name="templ_prop_ListSeparator"/>
  4767.                             </xsl:if>
  4768.  
  4769.                             <xsl:if test="string-length($volumeDot)>0 and string-length($pages)=0">
  4770.                               <xsl:if test="string-length($title)>0 or string-length($enclosedDateDot)>0 or string-length($conferenceNameDot)>0">
  4771.                                 <xsl:call-template name="templ_prop_Space"/>
  4772.                               </xsl:if>
  4773.                               <xsl:call-template name = "ApplyItalicFieldNS">
  4774.                                 <xsl:with-param name = "data">
  4775.                                   <xsl:value-of select="$volumeDot"/>
  4776.                                 </xsl:with-param>
  4777.                               </xsl:call-template>
  4778.                             </xsl:if>
  4779.  
  4780.                             <xsl:if test="string-length($volume)>0 and string-length($pages)>0">
  4781.                               <xsl:if test="string-length($title)>0 or string-length($enclosedDateDot)>0 or string-length($conferenceNameDot)>0">
  4782.                                 <xsl:call-template name="templ_prop_Space"/>
  4783.                               </xsl:if>
  4784.  
  4785.                               <xsl:call-template name = "ApplyItalicFieldNS">
  4786.                                 <xsl:with-param name = "data">
  4787.                                   <xsl:value-of select="$volume"/>
  4788.                                 </xsl:with-param>
  4789.                               </xsl:call-template>
  4790.  
  4791.                               <xsl:if test="string-length($pages)>0">
  4792.                                 <xsl:call-template name="templ_prop_ListSeparator"/>
  4793.                                 <xsl:call-template name="appendField_Dot">
  4794.                                   <xsl:with-param name="field" select="$ppPages"/>
  4795.                                 </xsl:call-template>
  4796.                               </xsl:if>
  4797.                             </xsl:if>
  4798.  
  4799.                             <xsl:if test="string-length($volume)=0 and string-length($pages)>0">
  4800.                               <xsl:if test="string-length($title)>0 or string-length($enclosedDateDot)>0 or string-length($conferenceNameDot)>0">
  4801.                                 <xsl:call-template name="templ_prop_Space"/>
  4802.                               </xsl:if>
  4803.                               <xsl:call-template name="templ_prop_APA_GeneralOpen"/>
  4804.                               <xsl:value-of select="$ppPages"/>
  4805.                               <xsl:call-template name="templ_prop_APA_GeneralClose"/>
  4806.                               <xsl:call-template name="templ_prop_Dot"/>
  4807.                             </xsl:if>
  4808.                           </xsl:if>
  4809.  
  4810.                           <xsl:if test="string-length($tempCP)>0">
  4811.                             <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">
  4812.                               <xsl:call-template name="templ_prop_Space"/>
  4813.                             </xsl:if>
  4814.                             <xsl:value-of select="$tempCP"/>
  4815.                           </xsl:if>
  4816.                         </xsl:otherwise>
  4817.                       </xsl:choose>
  4818.                     </xsl:when>
  4819.  
  4820.  
  4821.                     <xsl:when test="b:SourceType='SoundRecording'">
  4822.  
  4823.                       <xsl:choose>
  4824.                         <xsl:when test="string-length($theAuthorSoundRecordingDot)>0">
  4825.                           <xsl:value-of select="$theAuthorSoundRecordingDot"/>
  4826.  
  4827.                           <xsl:if test="string-length($enclosedDateDot)>0">
  4828.                             <xsl:call-template name="templ_prop_Space"/>
  4829.                             <xsl:value-of select="$enclosedDateDot"/>
  4830.                           </xsl:if>
  4831.  
  4832.                           <xsl:if test="string-length($thePerformerAndConductorDot)>0">
  4833.                             <xsl:call-template name="templ_prop_Space"/>
  4834.                             <xsl:value-of select="$title"/>
  4835.                             <xsl:call-template name="templ_prop_Space"/>
  4836.                             <xsl:value-of select="$thePerformerAndConductorDot"/>
  4837.                           </xsl:if>
  4838.  
  4839.                           <xsl:if test="string-length($thePerformerAndConductorDot)=0">
  4840.                             <xsl:if test="string-length($titleDot)>0">
  4841.                               <xsl:call-template name="templ_prop_Space"/>
  4842.                               <xsl:value-of select="$titleDot"/>
  4843.                             </xsl:if>
  4844.                           </xsl:if>
  4845.  
  4846.                           <xsl:if test="string-length($_albumTitleMediumDot)>0">
  4847.                             <xsl:call-template name="templ_prop_Space"/>
  4848.                             <xsl:copy-of select="$_albumTitleMediumDot" />
  4849.                           </xsl:if>
  4850.  
  4851.                           <xsl:if test="string-length($tempCSCPr)>0">
  4852.                             <xsl:call-template name="templ_prop_Space"/>
  4853.                             <xsl:value-of select="$tempCSCPr"/>
  4854.                           </xsl:if>
  4855.                         </xsl:when>
  4856.  
  4857.                         <xsl:otherwise>
  4858.                           <xsl:if test="string-length($titleDot)>0">
  4859.                               <xsl:value-of select="$titleDot"/>
  4860.                           </xsl:if>
  4861.  
  4862.                           <xsl:if test="string-length($enclosedDateDot)>0">
  4863.                             <xsl:if test="string-length($titleDot)>0">
  4864.                               <xsl:call-template name="templ_prop_Space"/>
  4865.                             </xsl:if>
  4866.                             <xsl:value-of select="$enclosedDateDot"/>
  4867.                           </xsl:if>
  4868.  
  4869.                           <xsl:if test="string-length($thePerformerAndConductorDot)>0">
  4870.                             <xsl:if test="string-length($titleDot)>0 or string-length($enclosedDateDot)>0">
  4871.                               <xsl:call-template name="templ_prop_Space"/>
  4872.                             </xsl:if>
  4873.                             <xsl:value-of select="$thePerformerAndConductorDot"/>
  4874.                           </xsl:if>
  4875.  
  4876.                           <xsl:if test="string-length($_albumTitleMediumDot)>0">
  4877.                             <xsl:if test="string-length($titleDot)>0 or string-length($enclosedDateDot)>0 or string-length($thePerformerAndConductorDot)>0">
  4878.                               <xsl:call-template name="templ_prop_Space"/>
  4879.                             </xsl:if>
  4880.                             <xsl:copy-of select="$_albumTitleMediumDot" />
  4881.                           </xsl:if>
  4882.  
  4883.                           <xsl:if test="string-length($tempCSCPr)>0">
  4884.                             <xsl:if test="string-length($titleDot)>0 or string-length($enclosedDateDot)>0 or string-length($thePerformerAndConductorDot)>0 or string-length($_albumTitleMediumDot)>0">
  4885.                               <xsl:call-template name="templ_prop_Space"/>
  4886.                             </xsl:if>
  4887.                             <xsl:value-of select="$tempCSCPr"/>
  4888.                           </xsl:if>
  4889.                         </xsl:otherwise>
  4890.                       </xsl:choose>
  4891.                     </xsl:when>
  4892.  
  4893.  
  4894.                     <xsl:when test="b:SourceType='Performance'">
  4895.  
  4896.                       <xsl:choose>
  4897.                         <xsl:when test="string-length($theAuthorPerformanceDot)>0">
  4898.                           <xsl:value-of select="$theAuthorPerformanceDot"/>
  4899.  
  4900.                           <xsl:if test="string-length($enclosedDateDot)>0">
  4901.                             <xsl:call-template name="templ_prop_Space"/>
  4902.                             <xsl:value-of select="$enclosedDateDot"/>
  4903.                           </xsl:if>
  4904.  
  4905.                           <xsl:if test="string-length($titleDot)>0">
  4906.                             <xsl:call-template name="templ_prop_Space"/>
  4907.                             <xsl:call-template name = "ApplyItalicTitleNS">
  4908.                               <xsl:with-param name = "data">
  4909.                                 <xsl:value-of select="$titleDot"/>
  4910.                               </xsl:with-param>
  4911.                             </xsl:call-template>
  4912.                           </xsl:if>
  4913.  
  4914.                           <xsl:if test="string-length($thePerformanceDirectorAndPerformerDot)>0">
  4915.                             <xsl:call-template name="templ_prop_Space"/>
  4916.                             <xsl:value-of select="$thePerformanceDirectorAndPerformerDot"/>
  4917.                           </xsl:if>
  4918.  
  4919.                           <xsl:if test="string-length($tempTCSC)>0">
  4920.                             <xsl:call-template name="templ_prop_Space"/>
  4921.                             <xsl:value-of select="$tempTCSC"/>
  4922.                           </xsl:if>
  4923.                         </xsl:when>
  4924.  
  4925.                         <xsl:otherwise>
  4926.                           <xsl:if test="string-length($titleDot)>0">
  4927.                             <xsl:call-template name = "ApplyItalicTitleNS">
  4928.                               <xsl:with-param name = "data">
  4929.                                 <xsl:value-of select="$titleDot"/>
  4930.                               </xsl:with-param>
  4931.                             </xsl:call-template>
  4932.                           </xsl:if>
  4933.  
  4934.                           <xsl:if test="string-length($enclosedDateDot)>0">
  4935.                             <xsl:if test="string-length($titleDot)>0">
  4936.                               <xsl:call-template name="templ_prop_Space"/>
  4937.                             </xsl:if>
  4938.                             <xsl:value-of select="$enclosedDateDot"/>
  4939.                           </xsl:if>
  4940.  
  4941.                           <xsl:if test="string-length($tempTCSC)>0">
  4942.                             <xsl:if test="string-length($titleDot)>0 or string-length($enclosedDateDot)>0">
  4943.                               <xsl:call-template name="templ_prop_Space"/>
  4944.                             </xsl:if>
  4945.                             <xsl:value-of select="$tempTCSC"/>
  4946.                           </xsl:if>
  4947.                         </xsl:otherwise>
  4948.                       </xsl:choose>
  4949.                     </xsl:when>
  4950.  
  4951.  
  4952.                     <xsl:when test="b:SourceType='DocumentFromInternetSite'">
  4953.  
  4954.                       <xsl:choose>
  4955.                         <xsl:when test="string-length($theAuthorDot)>0">
  4956.                           <xsl:value-of select="$theAuthorDot"/>
  4957.  
  4958.                           <xsl:if test="string-length($enclosedDateDot)>0">
  4959.                             <xsl:call-template name="templ_prop_Space"/>
  4960.                             <xsl:value-of select="$enclosedDateDot"/>
  4961.                           </xsl:if>
  4962.  
  4963.                           <xsl:if test="string-length($titleDot)>0">
  4964.                             <xsl:call-template name="templ_prop_Space"/>
  4965.                             <xsl:call-template name = "ApplyItalicTitleNS">
  4966.                               <xsl:with-param name = "data">
  4967.                                 <xsl:value-of select="$titleDot"/>
  4968.                               </xsl:with-param>
  4969.                             </xsl:call-template>
  4970.                           </xsl:if>
  4971.  
  4972.                           <xsl:if test="string-length($theEditorAndTranslatorDot)>0">
  4973.                             <xsl:call-template name="templ_prop_Space"/>
  4974.                             <xsl:value-of select="$theEditorAndTranslatorDot"/>
  4975.                           </xsl:if>
  4976.                         </xsl:when>
  4977.  
  4978.                         <xsl:otherwise>
  4979.                           <xsl:if test="string-length($titleDot)>0">
  4980.                             <xsl:call-template name = "ApplyItalicTitleNS">
  4981.                               <xsl:with-param name = "data">
  4982.                                 <xsl:value-of select="$titleDot"/>
  4983.                               </xsl:with-param>
  4984.                             </xsl:call-template>
  4985.                           </xsl:if>
  4986.  
  4987.                           <xsl:if test="string-length($enclosedDateDot)>0">
  4988.                             <xsl:if test="string-length($titleDot)>0">
  4989.                               <xsl:call-template name="templ_prop_Space"/>
  4990.                             </xsl:if>
  4991.                             <xsl:value-of select="$enclosedDateDot"/>
  4992.                           </xsl:if>
  4993.  
  4994.                           <xsl:if test="string-length($theEditorAndTranslatorDot)>0">
  4995.                             <xsl:if test="string-length($titleDot)>0 or string-length($enclosedDateDot)>0">
  4996.                               <xsl:call-template name="templ_prop_Space"/>
  4997.                             </xsl:if>
  4998.                             <xsl:value-of select="$theEditorAndTranslatorDot"/>
  4999.                           </xsl:if>
  5000.                         </xsl:otherwise>
  5001.                       </xsl:choose>
  5002.                     </xsl:when>
  5003.  
  5004.  
  5005.                     <xsl:when test="b:SourceType='InternetSite'">
  5006.  
  5007.                       <xsl:choose>
  5008.                         <xsl:when test="string-length($theAuthorDot)>0">
  5009.                           <xsl:value-of select="$theAuthorDot"/>
  5010.  
  5011.                           <xsl:if test="string-length($enclosedDateDot)>0">
  5012.                             <xsl:call-template name="templ_prop_Space"/>
  5013.                             <xsl:value-of select="$enclosedDateDot"/>
  5014.                           </xsl:if>
  5015.  
  5016.                           <xsl:if test="string-length($tempTV)>0">
  5017.                             <xsl:call-template name="templ_prop_Space"/>
  5018.                             <xsl:apply-templates select="msxsl:node-set($tempTV)" mode="outputHtml"/>
  5019.                           </xsl:if>
  5020.  
  5021.                           <xsl:if test="string-length($theInternetSiteEditorAndProducerDot)>0">
  5022.                             <xsl:call-template name="templ_prop_Space"/>
  5023.                             <xsl:value-of select="$theInternetSiteEditorAndProducerDot"/>
  5024.                           </xsl:if>
  5025.                         </xsl:when>
  5026.  
  5027.                         <xsl:otherwise>
  5028.                           <xsl:if test="string-length($tempTV)>0">
  5029.                             <xsl:apply-templates select="msxsl:node-set($tempTV)" mode="outputHtml"/>
  5030.                           </xsl:if>
  5031.  
  5032.                           <xsl:if test="string-length($enclosedDateDot)>0">
  5033.                             <xsl:if test="string-length($tempTV)>0">
  5034.                               <xsl:call-template name="templ_prop_Space"/>
  5035.                             </xsl:if>
  5036.                             <xsl:value-of select="$enclosedDateDot"/>
  5037.                           </xsl:if>
  5038.  
  5039.                           <xsl:if test="string-length($theInternetSiteEditorAndProducerDot)>0">
  5040.                             <xsl:if test="string-length($tempTV)>0 or string-length($enclosedDateDot)>0">
  5041.                               <xsl:call-template name="templ_prop_Space"/>
  5042.                             </xsl:if>
  5043.                             <xsl:value-of select="$theInternetSiteEditorAndProducerDot"/>
  5044.                           </xsl:if>
  5045.                         </xsl:otherwise>
  5046.                       </xsl:choose>
  5047.                     </xsl:when>
  5048.  
  5049.  
  5050.                     <xsl:when test="b:SourceType='Case'">
  5051.  
  5052.                       <xsl:if test="string-length($title)>0">
  5053.                         <xsl:value-of select="$title"/>
  5054.                       </xsl:if>
  5055.  
  5056.                       <xsl:if test="string-length($caseNumber)>0">
  5057.                         <xsl:if test="string-length($title)>0">
  5058.                           <xsl:call-template name="templ_prop_ListSeparator"/>
  5059.                         </xsl:if>
  5060.                         <xsl:value-of select="$caseNumber"/>
  5061.                       </xsl:if>
  5062.  
  5063.                       <xsl:if test="string-length($court)>0 or string-length($dateCourt)>0">
  5064.                         <xsl:if test="string-length($title)>0 or string-length($caseNumber)>0">
  5065.                           <xsl:call-template name="templ_prop_Space"/>
  5066.                         </xsl:if>
  5067.  
  5068.                         <xsl:call-template name="templ_prop_APA_GeneralOpen"/>
  5069.  
  5070.                         <xsl:if test="string-length($court)>0">
  5071.                           <xsl:value-of select="$court"/>
  5072.                         </xsl:if>
  5073.  
  5074.                         <xsl:if test="string-length($dateCourt)>0">
  5075.                           <xsl:if test="string-length($court)>0">
  5076.                             <xsl:call-template name="templ_prop_Space"/>
  5077.                           </xsl:if>
  5078.                           <xsl:value-of select="$dateCourt"/>
  5079.                         </xsl:if>
  5080.  
  5081.                         <xsl:call-template name="templ_prop_APA_GeneralClose"/>
  5082.                       </xsl:if>
  5083.  
  5084.                       <xsl:if test="string-length($title)>0 or string-length($caseNumber)>0 or string-length($court)>0 or string-length($dateCourt)>0">
  5085.                         <xsl:call-template name="templ_prop_Dot"/>
  5086.                       </xsl:if>
  5087.                     </xsl:when>
  5088.  
  5089.  
  5090.                     <xsl:when test="b:SourceType='Patent'">
  5091.  
  5092.                       <xsl:if test="string-length($inventorLFDot)>0">
  5093.                         <xsl:value-of select="$inventorLFDot"/>
  5094.                       </xsl:if>
  5095.  
  5096.                       <xsl:if test="string-length($enclosedDateDot)>0">
  5097.                         <xsl:if test="string-length($inventorLFDot)>0">
  5098.                           <xsl:call-template name="templ_prop_Space"/>
  5099.                         </xsl:if>
  5100.                         <xsl:value-of select="$enclosedDateDot"/>
  5101.                       </xsl:if>
  5102.  
  5103.                       <xsl:if test="string-length($patentNumberDot)>0">
  5104.                         <xsl:call-template name = "ApplyItalicFieldNS">
  5105.                           <xsl:with-param name = "data">
  5106.                             <xsl:if test="string-length($inventorLFDot)>0 or string-length($enclosedDateDot)>0">
  5107.                               <xsl:call-template name="templ_prop_Space"/>
  5108.                             </xsl:if>
  5109.  
  5110.                             <xsl:if test="string-length($countryRegion)>0">
  5111.                               <xsl:value-of select="$countryRegion"/>
  5112.                               <xsl:call-template name="templ_prop_Space"/>
  5113.                             </xsl:if>
  5114.  
  5115.                             <xsl:variable name="str_PatentNumberShortCap">
  5116.                               <xsl:call-template name="templ_str_PatentNumberShortCap"/>
  5117.                             </xsl:variable>
  5118.  
  5119.                             <xsl:call-template name="StringFormatDot">
  5120.                               <xsl:with-param name="format" select="$str_PatentNumberShortCap"/>
  5121.                               <xsl:with-param name="parameters">
  5122.                                 <t:params>
  5123.                                   <t:param>
  5124.                                     <xsl:value-of select="$patentNumber"/>
  5125.                                   </t:param>
  5126.                                 </t:params>
  5127.                               </xsl:with-param>
  5128.                             </xsl:call-template>
  5129.                           </xsl:with-param>
  5130.                         </xsl:call-template>
  5131.                       </xsl:if>
  5132.                     </xsl:when>
  5133.  
  5134.  
  5135.                     <xsl:when test="b:SourceType='Misc'">
  5136.  
  5137.                       <xsl:choose>
  5138.                         <xsl:when test="string-length($theMiscAuthorDot)>0">
  5139.                           <xsl:value-of select="$theMiscAuthorDot"/>
  5140.  
  5141.                           <xsl:if test="string-length($enclosedDateDot)>0">
  5142.                             <xsl:call-template name="templ_prop_Space"/>
  5143.                             <xsl:value-of select="$enclosedDateDot"/>
  5144.                           </xsl:if>
  5145.  
  5146.                           <xsl:if test="string-length($titleDot)>0">
  5147.                             <xsl:call-template name="templ_prop_Space"/>
  5148.                             <xsl:value-of select="$titleDot"/>
  5149.                           </xsl:if>
  5150.  
  5151.                           <xsl:if test="string-length($tempPVIEP)>0">
  5152.                             <xsl:call-template name="templ_prop_Space"/>
  5153.                             <xsl:apply-templates select="msxsl:node-set($tempPVIEP)" mode="outputHtml"/>
  5154.                           </xsl:if>
  5155.  
  5156.                           <xsl:if test="string-length($theMiscEditorAndTranslatorAndCompilerDot)>0">
  5157.                             <xsl:call-template name="templ_prop_Space"/>
  5158.                             <xsl:value-of select="$theMiscEditorAndTranslatorAndCompilerDot"/>
  5159.                           </xsl:if>
  5160.  
  5161.                           <xsl:if test="string-length($tempCSCPu)>0">
  5162.                             <xsl:call-template name="templ_prop_Space"/>
  5163.                             <xsl:value-of select="$tempCSCPu"/>
  5164.                           </xsl:if>
  5165.                         </xsl:when>
  5166.  
  5167.                         <xsl:when test="string-length($theAuthorDot)=0">
  5168.                           <xsl:if test="string-length($titleDot)>0">
  5169.                             <xsl:value-of select="$titleDot"/>
  5170.                           </xsl:if>
  5171.  
  5172.                           <xsl:if test="string-length($enclosedDateDot)>0">
  5173.                             <xsl:if test="string-length($titleDot)>0">
  5174.                               <xsl:call-template name="templ_prop_Space"/>
  5175.                             </xsl:if>
  5176.                             <xsl:value-of select="$enclosedDateDot"/>
  5177.                           </xsl:if>
  5178.  
  5179.                           <xsl:if test="string-length($tempPVIEP)>0">
  5180.                             <xsl:if test="string-length($titleDot)>0 or string-length($enclosedDateDot)>0">
  5181.                               <xsl:call-template name="templ_prop_Space"/>
  5182.                             </xsl:if>
  5183.                             <xsl:apply-templates select="msxsl:node-set($tempPVIEP)" mode="outputHtml"/>
  5184.                           </xsl:if>
  5185.  
  5186.                           <xsl:if test="string-length($theMiscEditorAndTranslatorAndCompilerDot)>0">
  5187.                             <xsl:if test="string-length($titleDot)>0 or string-length($enclosedDateDot)>0 or string-length($tempPVIEP)>0">
  5188.                               <xsl:call-template name="templ_prop_Space"/>
  5189.                             </xsl:if>
  5190.                             <xsl:value-of select="$theMiscEditorAndTranslatorAndCompilerDot"/>
  5191.                           </xsl:if>
  5192.  
  5193.                           <xsl:if test="string-length($tempCSCPu)>0">
  5194.                             <xsl:if test="string-length($titleDot)>0 or string-length($enclosedDateDot)>0 or string-length($tempPVIEP)>0 or string-length($theMiscEditorAndTranslatorAndCompilerDot)>0">
  5195.                               <xsl:call-template name="templ_prop_Space"/>
  5196.                             </xsl:if>
  5197.                             <xsl:value-of select="$tempCSCPu"/>
  5198.                           </xsl:if>
  5199.                         </xsl:when>
  5200.                       </xsl:choose>
  5201.                     </xsl:when>
  5202.  
  5203.  
  5204.                     <xsl:when test="b:SourceType='ElectronicSource'">
  5205.  
  5206.                       <xsl:choose>
  5207.                         <xsl:when test="string-length($theMiscAuthorDot)>0">
  5208.                           <xsl:value-of select="$theMiscAuthorDot"/>
  5209.  
  5210.                           <xsl:if test="string-length($enclosedDateDot)>0">
  5211.                             <xsl:call-template name="templ_prop_Space"/>
  5212.                             <xsl:value-of select="$enclosedDateDot"/>
  5213.                           </xsl:if>
  5214.  
  5215.                           <xsl:if test="string-length($titleDot)>0">
  5216.                             <xsl:call-template name="templ_prop_Space"/>
  5217.                             <xsl:value-of select="$titleDot"/>
  5218.                           </xsl:if>
  5219.  
  5220.                           <xsl:if test="string-length($tempPVEP)>0">
  5221.                             <xsl:call-template name="templ_prop_Space"/>
  5222.                             <xsl:copy-of select="$tempPVEP"/>
  5223.                           </xsl:if>
  5224.  
  5225.                           <xsl:if test="string-length($theMiscEditorAndTranslatorAndCompilerDot)>0">
  5226.                             <xsl:call-template name="templ_prop_Space"/>
  5227.                             <xsl:value-of select="$theMiscEditorAndTranslatorAndCompilerDot"/>
  5228.                           </xsl:if>
  5229.  
  5230.                           <xsl:if test="string-length($tempCSCPu)>0">
  5231.                             <xsl:call-template name="templ_prop_Space"/>
  5232.                             <xsl:value-of select="$tempCSCPu"/>
  5233.                           </xsl:if>
  5234.                         </xsl:when>
  5235.  
  5236.                         <xsl:when test="string-length($theAuthorDot)=0">
  5237.                           <xsl:if test="string-length($titleDot)>0">
  5238.                             <xsl:value-of select="$titleDot"/>
  5239.                           </xsl:if>
  5240.  
  5241.                           <xsl:if test="string-length($enclosedDateDot)>0">
  5242.                             <xsl:if test="string-length($titleDot)>0">
  5243.                               <xsl:call-template name="templ_prop_Space"/>
  5244.                             </xsl:if>
  5245.                             <xsl:value-of select="$enclosedDateDot"/>
  5246.                           </xsl:if>
  5247.  
  5248.                           <xsl:if test="string-length($tempPVEP)>0">
  5249.                             <xsl:if test="string-length($titleDot)>0 or string-length($enclosedDateDot)>0">
  5250.                               <xsl:call-template name="templ_prop_Space"/>
  5251.                             </xsl:if>
  5252.                             <xsl:apply-templates select="msxsl:node-set($tempPVEP)" mode="outputHtml"/>
  5253.                           </xsl:if>
  5254.  
  5255.                           <xsl:if test="string-length($theMiscEditorAndTranslatorAndCompilerDot)>0">
  5256.                             <xsl:if test="string-length($titleDot)>0 or string-length($enclosedDateDot)>0 or string-length($tempPVEP)>0">
  5257.                               <xsl:call-template name="templ_prop_Space"/>
  5258.                             </xsl:if>
  5259.                             <xsl:value-of select="$theMiscEditorAndTranslatorAndCompilerDot"/>
  5260.                           </xsl:if>
  5261.  
  5262.                           <xsl:if test="string-length($tempCSCPu)>0">
  5263.                             <xsl:if test="string-length($titleDot)>0 or string-length($enclosedDateDot)>0 or string-length($tempPVEP)>0 or string-length($theMiscEditorAndTranslatorAndCompilerDot)>0">
  5264.                               <xsl:call-template name="templ_prop_Space"/>
  5265.                             </xsl:if>
  5266.                             <xsl:value-of select="$tempCSCPu"/>
  5267.                           </xsl:if>
  5268.                         </xsl:when>
  5269.                       </xsl:choose>
  5270.                     </xsl:when>
  5271.  
  5272.  
  5273.                     <xsl:when test="b:SourceType='Art'">
  5274.  
  5275.                       <xsl:if test="string-length($artistLFDot)>0">
  5276.                         <xsl:value-of select="$artistLFDot"/>
  5277.                       </xsl:if>
  5278.  
  5279.                       <xsl:if test="string-length($enclosedDateDot)>0">
  5280.                         <xsl:call-template name="templ_prop_Space"/>
  5281.                         <xsl:value-of select="$enclosedDateDot"/>
  5282.                       </xsl:if>
  5283.  
  5284.                       <xsl:if test="string-length($titleDot)>0">
  5285.                         <xsl:if test="string-length($artistLFDot)>0">
  5286.                           <xsl:call-template name="templ_prop_Space"/>
  5287.                         </xsl:if>
  5288.  
  5289.                         <xsl:if test="string-length($publicationTitleDot)=0">
  5290.                           <xsl:call-template name = "ApplyItalicTitleNS">
  5291.                             <xsl:with-param name = "data">
  5292.                               <xsl:value-of select="$titleDot"/>
  5293.                             </xsl:with-param>
  5294.                           </xsl:call-template>
  5295.                         </xsl:if>
  5296.  
  5297.                         <xsl:if test="string-length($publicationTitleDot)>0">
  5298.                           <xsl:value-of select="$titleDot"/>
  5299.                         </xsl:if>
  5300.                       </xsl:if>
  5301.  
  5302.                       <xsl:if test="string-length($publicationTitleDot)>0">
  5303.                         <xsl:if test="string-length($artistLFDot)>0 or string-length($titleDot)>0">
  5304.                           <xsl:call-template name="templ_prop_Space"/>
  5305.                         </xsl:if>
  5306.  
  5307.                         <xsl:call-template name = "ApplyItalicTitleNS">
  5308.                           <xsl:with-param name = "data">
  5309.                             <xsl:value-of select="$publicationTitleDot"/>
  5310.                           </xsl:with-param>
  5311.                         </xsl:call-template>
  5312.                       </xsl:if>
  5313.  
  5314.                       <xsl:if test="string-length($tempICSC)>0">
  5315.                         <xsl:if test="string-length($artistLFDot)>0 or string-length($titleDot)>0 or string-length($publicationTitleDot)>0">
  5316.                           <xsl:call-template name="templ_prop_Space"/>
  5317.                         </xsl:if>
  5318.                         <xsl:value-of select="$tempICSC"/>
  5319.                       </xsl:if>
  5320.                     </xsl:when>
  5321.  
  5322.  
  5323.                     <xsl:when test="b:SourceType='Report'">
  5324.  
  5325.                       <xsl:choose>
  5326.                         <xsl:when test="string-length($publisher)>0">
  5327.                           <xsl:if test="string-length($authorDot)>0">
  5328.                             <xsl:value-of select="$authorDot"/>
  5329.                           </xsl:if>
  5330.  
  5331.                           <xsl:if test="string-length($enclosedDateDot)>0">
  5332.                             <xsl:if test="string-length($authorDot)>0">
  5333.                               <xsl:call-template name="templ_prop_Space"/>
  5334.                             </xsl:if>
  5335.                             <xsl:value-of select="$enclosedDateDot"/>
  5336.                           </xsl:if>
  5337.  
  5338.                           <xsl:if test="string-length($titleDot)>0">
  5339.                             <xsl:if test="string-length($authorDot)>0 or string-length($enclosedDateDot)>0">
  5340.                               <xsl:call-template name="templ_prop_Space"/>
  5341.                             </xsl:if>
  5342.  
  5343.                             <xsl:call-template name = "ApplyItalicTitleNS">
  5344.                               <xsl:with-param name = "data">
  5345.                                 <xsl:value-of select="$titleDot"/>
  5346.                               </xsl:with-param>
  5347.                             </xsl:call-template>
  5348.                           </xsl:if>
  5349.  
  5350.                           <xsl:if test="string-length($tempID)>0">
  5351.                             <xsl:if test="string-length($authorDot)>0 or string-length($enclosedDateDot)>0 or string-length($titleDot)>0">
  5352.                               <xsl:call-template name="templ_prop_Space"/>
  5353.                             </xsl:if>
  5354.                             <xsl:value-of select="$tempID"/>
  5355.                           </xsl:if>
  5356.  
  5357.                           <xsl:if test="string-length($tempCP)>0">
  5358.                             <xsl:if test="string-length($authorDot)>0 or string-length($enclosedDateDot)>0 or string-length($titleDot)>0 or string-length($tempID)>0">
  5359.                               <xsl:call-template name="templ_prop_Space"/>
  5360.                             </xsl:if>
  5361.                             <xsl:value-of select="$tempCP"/>
  5362.                           </xsl:if>
  5363.                         </xsl:when>
  5364.  
  5365.                         <xsl:otherwise>
  5366.                           <xsl:if test="string-length($authorDot)>0">
  5367.                             <xsl:value-of select="$authorDot"/>
  5368.                           </xsl:if>
  5369.  
  5370.                           <xsl:if test="string-length($enclosedDateDot)>0">
  5371.                             <xsl:if test="string-length($authorDot)>0">
  5372.                               <xsl:call-template name="templ_prop_Space"/>
  5373.                             </xsl:if>
  5374.                             <xsl:value-of select="$enclosedDateDot"/>
  5375.                           </xsl:if>
  5376.  
  5377.                           <xsl:if test="string-length($titleDot)>0">
  5378.                             <xsl:if test="string-length($authorDot)>0 or string-length($enclosedDateDot)>0">
  5379.                               <xsl:call-template name="templ_prop_Space"/>
  5380.                             </xsl:if>
  5381.  
  5382.                             <xsl:call-template name = "ApplyItalicTitleNS">
  5383.                               <xsl:with-param name = "data">
  5384.                                 <xsl:value-of select="$titleDot"/>
  5385.                               </xsl:with-param>
  5386.                             </xsl:call-template>
  5387.                           </xsl:if>
  5388.  
  5389.                           <xsl:if test="string-length($tempRIDC)>0">
  5390.                             <xsl:if test="string-length($authorDot)>0 or string-length($enclosedDateDot)>0 or string-length($titleDot)>0">
  5391.                               <xsl:call-template name="templ_prop_Space"/>
  5392.                             </xsl:if>
  5393.                             <xsl:value-of select="$tempRIDC"/>
  5394.                           </xsl:if>
  5395.                         </xsl:otherwise>
  5396.                       </xsl:choose>
  5397.                     </xsl:when>
  5398.  
  5399.  
  5400.                     <xsl:when test="b:SourceType='Film'">
  5401.  
  5402.                       <xsl:choose>
  5403.                         <xsl:when test="string-length($theFilmProducerAndWriterAndDirectorDot)>0">
  5404.                           <xsl:value-of select="$theFilmProducerAndWriterAndDirectorDot"/>
  5405.  
  5406.                           <xsl:if test="string-length($enclosedDateDot)>0">
  5407.                             <xsl:call-template name="templ_prop_Space"/>
  5408.                             <xsl:value-of select="$enclosedDateDot"/>
  5409.                           </xsl:if>
  5410.  
  5411.                           <xsl:if test="string-length($title)>0">
  5412.                             <xsl:call-template name="templ_prop_Space"/>
  5413.                             <xsl:call-template name = "ApplyItalicTitleNS">
  5414.                               <xsl:with-param name = "data">
  5415.                                 <xsl:value-of select="$title"/>
  5416.                               </xsl:with-param>
  5417.                             </xsl:call-template>
  5418.                           </xsl:if>
  5419.  
  5420.                           <xsl:call-template name="templ_prop_Space"/>
  5421.                           <xsl:call-template name="templ_prop_APA_SecondaryOpen"/>
  5422.                           <xsl:call-template name="templ_str_MotionPictureCap"/>
  5423.                           <xsl:call-template name="templ_prop_APA_SecondaryClose"/>
  5424.                           <xsl:call-template name="templ_prop_Dot"/>
  5425.  
  5426.                           <xsl:if test="string-length($tempCD)>0">
  5427.                             <xsl:call-template name="templ_prop_Space"/>
  5428.                             <xsl:value-of select="$tempCD"/>
  5429.                           </xsl:if>
  5430.                         </xsl:when>
  5431.  
  5432.                         <xsl:otherwise>
  5433.                           <xsl:value-of select="$theFilmProducerAndWriterAndDirectorDot"/>
  5434.  
  5435.                           <xsl:if test="string-length($title)>0">
  5436.                             <xsl:call-template name = "ApplyItalicTitleNS">
  5437.                               <xsl:with-param name = "data">
  5438.                                 <xsl:value-of select="$title"/>
  5439.                               </xsl:with-param>
  5440.                             </xsl:call-template>
  5441.                           </xsl:if>
  5442.  
  5443.                           <xsl:if test="string-length($enclosedDateDot)>0">
  5444.                             <xsl:if test="string-length($title)>0">
  5445.                               <xsl:call-template name="templ_prop_Space"/>
  5446.                             </xsl:if>
  5447.                             <xsl:value-of select="$enclosedDateDot"/>
  5448.                           </xsl:if>
  5449.  
  5450.                           <xsl:call-template name="templ_prop_Space"/>
  5451.                           <xsl:call-template name="templ_prop_APA_SecondaryOpen"/>
  5452.                           <xsl:call-template name="templ_str_MotionPictureCap"/>
  5453.                           <xsl:call-template name="templ_prop_APA_SecondaryClose"/>
  5454.                           <xsl:call-template name="templ_prop_Dot"/>
  5455.  
  5456.                           <xsl:if test="string-length($tempCD)>0">
  5457.                             <xsl:call-template name="templ_prop_Space"/>
  5458.                             <xsl:value-of select="$tempCD"/>
  5459.                           </xsl:if>
  5460.                         </xsl:otherwise>
  5461.                       </xsl:choose>
  5462.                     </xsl:when>
  5463.  
  5464.  
  5465.                     <xsl:when test="b:SourceType='Interview'">
  5466.  
  5467.                       <xsl:choose>
  5468.                         <xsl:when test="string-length($broadcaster)=0">
  5469.                           <xsl:if test="string-length($intervieweeLFDot)>0">
  5470.                             <xsl:value-of select="$intervieweeLFDot"/>
  5471.                           </xsl:if>
  5472.  
  5473.                           <xsl:if test="string-length($enclosedDateDot)>0">
  5474.                             <xsl:if test="string-length($intervieweeLFDot)>0">
  5475.                               <xsl:call-template name="templ_prop_Space"/>
  5476.                             </xsl:if>
  5477.                             <xsl:value-of select="$enclosedDateDot"/>
  5478.                           </xsl:if>
  5479.  
  5480.                           <xsl:if test="string-length($interviewTitleDot)>0">
  5481.                             <xsl:if test="string-length($intervieweeLFDot)>0 or string-length($enclosedDateDot)>0">
  5482.                               <xsl:call-template name="templ_prop_Space"/>
  5483.                             </xsl:if>
  5484.                             <xsl:value-of select="$interviewTitleDot"/>
  5485.                           </xsl:if>
  5486.  
  5487.                           <xsl:if test="string-length($tempPrP)>0">
  5488.                             <xsl:if test="string-length($intervieweeLFDot)>0 or string-length($enclosedDateDot)>0 or string-length($interviewTitleDot)>0">
  5489.                               <xsl:call-template name="templ_prop_Space"/>
  5490.                             </xsl:if>
  5491.                             <xsl:apply-templates select="msxsl:node-set($tempPrP)" mode="outputHtml"/>
  5492.                           </xsl:if>
  5493.  
  5494.                           <xsl:if test="string-length($theInterviewInterviewerAndEditorAndTranslator)>0">
  5495.                             <xsl:if test="string-length($intervieweeLFDot)>0 or string-length($enclosedDateDot)>0 or string-length($interviewTitleDot)>0 or string-length($tempPrP)>0">
  5496.                               <xsl:call-template name="templ_prop_Space"/>
  5497.                             </xsl:if>
  5498.                             <xsl:value-of select="$theInterviewInterviewerAndEditorAndTranslator"/>
  5499.                           </xsl:if>
  5500.  
  5501.                           <xsl:if test="string-length($tempCSCPu)>0">
  5502.                             <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">
  5503.                               <xsl:call-template name="templ_prop_Space"/>
  5504.                             </xsl:if>
  5505.                             <xsl:value-of select="$tempCSCPu"/>
  5506.                           </xsl:if>
  5507.                         </xsl:when>
  5508.  
  5509.                         <xsl:otherwise>
  5510.                           <xsl:if test="string-length($intervieweeLFDot)>0">
  5511.                             <xsl:value-of select="$intervieweeLFDot"/>
  5512.                           </xsl:if>
  5513.  
  5514.                           <xsl:if test="string-length($enclosedDateDot)>0">
  5515.                             <xsl:if test="string-length($intervieweeLFDot)>0">
  5516.                               <xsl:call-template name="templ_prop_Space"/>
  5517.                             </xsl:if>
  5518.                             <xsl:value-of select="$enclosedDateDot"/>
  5519.                           </xsl:if>
  5520.  
  5521.                           <xsl:if test="string-length($interviewTitleDot)>0">
  5522.                             <xsl:if test="string-length($intervieweeLFDot)>0 or string-length($enclosedDateDot)>0">
  5523.                               <xsl:call-template name="templ_prop_Space"/>
  5524.                             </xsl:if>
  5525.                             <xsl:value-of select="$interviewTitleDot"/>
  5526.                           </xsl:if>
  5527.  
  5528.                           <xsl:if test="string-length($broadcastTitleDot)>0">
  5529.                             <xsl:if test="string-length($intervieweeLFDot)>0 or string-length($enclosedDateDot)>0 or string-length($interviewTitleDot)>0">
  5530.                               <xsl:call-template name="templ_prop_Space"/>
  5531.                             </xsl:if>
  5532.                             <xsl:call-template name = "ApplyItalicTitleNS">
  5533.                               <xsl:with-param name = "data">
  5534.                                 <xsl:value-of select="$broadcastTitleDot"/>
  5535.                               </xsl:with-param>
  5536.                             </xsl:call-template>
  5537.                           </xsl:if>
  5538.  
  5539.                           <xsl:if test="string-length($theInterviewInterviewer)>0">
  5540.                             <xsl:if test="string-length($intervieweeLFDot)>0 or string-length($enclosedDateDot)>0 or string-length($interviewTitleDot)>0 or string-length($broadcastTitleDot)>0">
  5541.                               <xsl:call-template name="templ_prop_Space"/>
  5542.                             </xsl:if>
  5543.                             <xsl:value-of select="$theInterviewInterviewer"/>
  5544.                           </xsl:if>
  5545.  
  5546.                           <xsl:if test="string-length($broadcasterDot)>0">
  5547.                             <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">
  5548.                               <xsl:call-template name="templ_prop_Space"/>
  5549.                             </xsl:if>
  5550.                             <xsl:value-of select="$broadcasterDot"/>
  5551.                           </xsl:if>
  5552.  
  5553.                           <xsl:if test="string-length($tempSC)>0">
  5554.                             <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">
  5555.                               <xsl:call-template name="templ_prop_Space"/>
  5556.                             </xsl:if>
  5557.                             <xsl:value-of select="$tempSC"/>
  5558.                           </xsl:if>
  5559.                         </xsl:otherwise>
  5560.                       </xsl:choose>
  5561.                     </xsl:when>
  5562.                   </xsl:choose>
  5563.                 </xsl:variable>
  5564.  
  5565.                 <xsl:if test="string-length($source)>0">
  5566.                   <xsl:copy-of select="$source"/>
  5567.  
  5568.                   <xsl:if test="string-length($doi)>0 or string-length($tempRDAFU)>0">
  5569.                     <xsl:call-template name="templ_prop_Space"/>
  5570.                   </xsl:if>
  5571.                 </xsl:if>
  5572.  
  5573.                 <xsl:choose>
  5574.                   <xsl:when test="string-length($doi)>0">
  5575.                     <xsl:value-of select="$doiPrefix"/>
  5576.                     <xsl:call-template name="templ_prop_Enum"/>
  5577.                     <xsl:value-of select="$doi"/>
  5578.                   </xsl:when>
  5579.                   <xsl:when test="string-length($tempRDAFU)>0">
  5580.                     <xsl:value-of select="$tempRDAFU"/>
  5581.                   </xsl:when>
  5582.                 </xsl:choose>
  5583.               </xsl:element>
  5584.              
  5585.             </xsl:for-each>
  5586.  
  5587.           </body>
  5588.         </html>
  5589.       </xsl:when>
  5590.     </xsl:choose>
  5591.   </xsl:template>
  5592.  
  5593.   <xsl:template name="sortedList">
  5594.     <xsl:param name="sourceRoot"/>
  5595.    
  5596.     <xsl:apply-templates select="msxsl:node-set($sourceRoot)/*">
  5597.      
  5598.       <xsl:sort select="b:SortingString" />
  5599.      
  5600.     </xsl:apply-templates>
  5601.    
  5602.   </xsl:template>
  5603.  
  5604.  
  5605.   <xsl:template match="*">
  5606.     <xsl:element name="{name()}" namespace="{namespace-uri()}">
  5607.       <xsl:for-each select="@*">
  5608.         <xsl:attribute name="{name()}" namespace="{namespace-uri()}">
  5609.           <xsl:value-of select="." />
  5610.         </xsl:attribute>
  5611.       </xsl:for-each>
  5612.       <xsl:apply-templates>
  5613.         <xsl:sort select="b:SortingString" />
  5614.        
  5615.       </xsl:apply-templates>
  5616.     </xsl:element>
  5617.   </xsl:template>
  5618.  
  5619.   <!-- This xsl:template must be kept as one line so that we don't get any end lines in our html that would
  5620.       be normalized to spaces.
  5621.       -->
  5622.   <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>
  5623.  
  5624.  
  5625.   <xsl:template match="text()">
  5626.     <xsl:value-of select="." />
  5627.   </xsl:template>
  5628.  
  5629.  
  5630.  
  5631.   <xsl:template name="MainContributors">
  5632.     <xsl:param name="SourceRoot"/>
  5633.     <xsl:choose>
  5634.       <xsl:when test="./b:SourceType='Book'">
  5635.         <xsl:choose>
  5636.           <xsl:when test="string-length(./b:Author/b:Author)>0">Author</xsl:when>
  5637.           <xsl:when test="string-length(./b:Author/b:Editor)>0">Editor</xsl:when>
  5638.         </xsl:choose>
  5639.       </xsl:when>
  5640.  
  5641.       <xsl:when test="./b:SourceType='BookSection'">
  5642.         <xsl:choose>
  5643.           <xsl:when test="string-length(./b:Author/b:Author)>0">Author</xsl:when>
  5644.         </xsl:choose>
  5645.       </xsl:when>
  5646.  
  5647.       <xsl:when test="./b:SourceType='JournalArticle'">
  5648.         <xsl:choose>
  5649.           <xsl:when test="string-length(./b:Author/b:Author)>0">Author</xsl:when>
  5650.           <xsl:when test="string-length(./b:Author/b:Editor)>0">Editor</xsl:when>
  5651.         </xsl:choose>
  5652.       </xsl:when>
  5653.  
  5654.       <xsl:when test="./b:SourceType='ArticleInAPeriodical'">
  5655.         <xsl:choose>
  5656.           <xsl:when test="string-length(./b:Author/b:Author)>0">Author</xsl:when>
  5657.           <xsl:when test="string-length(./b:Author/b:Editor)>0">Editor</xsl:when>
  5658.         </xsl:choose>
  5659.       </xsl:when>
  5660.  
  5661.       <xsl:when test="./b:SourceType='ConferenceProceedings'">
  5662.         <xsl:choose>
  5663.           <xsl:when test="string-length(./b:Author/b:Author)>0">Author</xsl:when>
  5664.           <xsl:when test="string-length(./b:Author/b:Editor)>0">Editor</xsl:when>
  5665.         </xsl:choose>
  5666.       </xsl:when>
  5667.  
  5668.       <xsl:when test="./b:SourceType='Report'">
  5669.         <xsl:choose>
  5670.           <xsl:when test="string-length(./b:Author/b:Author)>0">Author</xsl:when>
  5671.         </xsl:choose>
  5672.       </xsl:when>
  5673.  
  5674.       <xsl:when test="./b:SourceType='SoundRecording'">
  5675.         <xsl:choose>
  5676.           <xsl:when test="string-length(./b:Author/b:Composer)>0">Composer</xsl:when>
  5677.           <xsl:when test="string-length(./b:Author/b:Performer)>0">Performer</xsl:when>
  5678.           <xsl:when test="string-length(./b:Author/b:Conductor)>0">Conductor</xsl:when>
  5679.         </xsl:choose>
  5680.       </xsl:when>
  5681.  
  5682.       <xsl:when test="./b:SourceType='Performance'">
  5683.         <xsl:choose>
  5684.           <xsl:when test="string-length(./b:Author/b:Writer)>0">Writer</xsl:when>
  5685.           <xsl:when test="string-length(./b:Author/b:Director)>0">Director</xsl:when>
  5686.           <xsl:when test="string-length(./b:Author/b:Performer)>0">Performer</xsl:when>
  5687.         </xsl:choose>
  5688.       </xsl:when>
  5689.  
  5690.       <xsl:when test="./b:SourceType='Art'">
  5691.         <xsl:choose>
  5692.           <xsl:when test="string-length(./b:Author/b:Artist)>0">Artist</xsl:when>
  5693.         </xsl:choose>
  5694.       </xsl:when>
  5695.  
  5696.       <xsl:when test="./b:SourceType='DocumentFromInternetSite'">
  5697.         <xsl:choose>
  5698.           <xsl:when test="string-length(./b:Author/b:Author)>0">Author</xsl:when>
  5699.           <xsl:when test="string-length(./b:Author/b:Editor)>0">Editor</xsl:when>
  5700.         </xsl:choose>
  5701.       </xsl:when>
  5702.  
  5703.       <xsl:when test="./b:SourceType='InternetSite'">
  5704.         <xsl:choose>
  5705.           <xsl:when test="string-length(./b:Author/b:Author)>0">Author</xsl:when>
  5706.           <xsl:when test="string-length(./b:Author/b:Editor)>0">Editor</xsl:when>
  5707.         </xsl:choose>
  5708.       </xsl:when>
  5709.  
  5710.       <xsl:when test="./b:SourceType='Film'">
  5711.         <xsl:choose>
  5712.           <xsl:when test="string-length(./b:Author/b:ProducerName)>0">ProducerName</xsl:when>
  5713.           <xsl:when test="string-length(./b:Author/b:Writer)>0">Writer</xsl:when>
  5714.           <xsl:when test="string-length(./b:Author/b:Director)>0">Director</xsl:when>
  5715.         </xsl:choose>
  5716.       </xsl:when>
  5717.  
  5718.       <xsl:when test="./b:SourceType='Interview'">
  5719.         <xsl:choose>
  5720.           <xsl:when test="string-length(./b:Author/b:Interviewee)>0">Interviewee</xsl:when>
  5721.           <xsl:when test="string-length(./b:Author/b:Editor)>0">Editor</xsl:when>
  5722.           <xsl:when test="string-length(./b:Author/b:Translator)>0">Translator</xsl:when>
  5723.         </xsl:choose>
  5724.       </xsl:when>
  5725.  
  5726.       <xsl:when test="./b:SourceType='Patent'">
  5727.         <xsl:choose>
  5728.           <xsl:when test="string-length(./b:Author/b:Inventor)>0">Inventor</xsl:when>
  5729.         </xsl:choose>
  5730.       </xsl:when>
  5731.  
  5732.       <xsl:when test="./b:SourceType='ElectronicSource'">
  5733.         <xsl:choose>
  5734.           <xsl:when test="string-length(./b:Author/b:Author)>0">Author</xsl:when>
  5735.           <xsl:when test="string-length(./b:Author/b:Editor)>0">Editor</xsl:when>
  5736.         </xsl:choose>
  5737.       </xsl:when>
  5738.  
  5739.       <xsl:when test="./b:SourceType='Case'">
  5740.       </xsl:when>
  5741.  
  5742.       <xsl:when test="./b:SourceType='Misc'">
  5743.         <xsl:choose>
  5744.           <xsl:when test="string-length(./b:Author/b:Author)>0">Author</xsl:when>
  5745.           <xsl:when test="string-length(./b:Author/b:Editor)>0">Editor</xsl:when>
  5746.         </xsl:choose>
  5747.       </xsl:when>
  5748.     </xsl:choose>
  5749.   </xsl:template>
  5750.  
  5751.  
  5752.  
  5753.   <xsl:template name="populateMain">
  5754.     <xsl:param name="Type"/>
  5755.    
  5756.     <xsl:element name="{$Type}">
  5757.      
  5758.  
  5759.       <xsl:for-each select="/*[$Type]/b:Source">
  5760.        
  5761.         <xsl:variable name="MostImportantAuthorLocalName">
  5762.          
  5763.           <xsl:call-template name="MainContributors"/>
  5764.         </xsl:variable>
  5765.         <xsl:element name="{'b:Source'}">
  5766.          
  5767.           <xsl:if test="$Type='b:Citation'">
  5768.          
  5769.             <b:Title>
  5770.              
  5771.               <xsl:if test="string-length(b:Title)>0">
  5772.                 <xsl:value-of select="b:Title"/>
  5773.               </xsl:if>
  5774.              
  5775.               <xsl:if test="string-length(b:Title)=0">
  5776.                 <xsl:choose>
  5777.                   <xsl:when test="b:SourceType = 'Book' or
  5778.                                  b:SourceType = 'JournalArticle' or
  5779.                                  b:SourceType = 'ConferenceProceedings' or
  5780.                                  b:SourceType = 'Report' or
  5781.                                  b:SourceType = 'Performance' or
  5782.                                  b:SourceType = 'Film' or
  5783.                                  b:SourceType = 'Patent' or
  5784.                                  b:SourceType = 'Case'">
  5785.  
  5786.                     <xsl:value-of select="b:ShortTitle"/>
  5787.                   </xsl:when>
  5788.  
  5789.                   <xsl:when test="b:SourceType = 'BookSection'">
  5790.                     <xsl:variable name="shortTitle" select="b:ShortTitle"/>
  5791.                     <xsl:variable name="bookTitle" select="b:BookTitle"/>
  5792.  
  5793.                     <xsl:choose>
  5794.                       <xsl:when test="string-length($shortTitle)>0">
  5795.                         <xsl:value-of select="$shortTitle"/>
  5796.                       </xsl:when>
  5797.                       <xsl:when test="string-length($bookTitle)>0">
  5798.                         <xsl:value-of select="$bookTitle"/>
  5799.                       </xsl:when>
  5800.                     </xsl:choose>
  5801.  
  5802.                   </xsl:when>
  5803.  
  5804.                   <xsl:when test="b:SourceType = 'ArticleInAPeriodical'">
  5805.                     <xsl:variable name="shortTitle" select="b:ShortTitle"/>
  5806.                     <xsl:variable name="periodicalTitle" select="b:PeriodicalTitle"/>
  5807.  
  5808.                     <xsl:choose>
  5809.                       <xsl:when test="string-length($shortTitle)>0">
  5810.                         <xsl:value-of select="$shortTitle"/>
  5811.                       </xsl:when>
  5812.                       <xsl:when test="string-length($periodicalTitle)>0">
  5813.                         <xsl:value-of select="$periodicalTitle"/>
  5814.                       </xsl:when>
  5815.                     </xsl:choose>
  5816.                   </xsl:when>
  5817.  
  5818.                   <xsl:when test="b:SourceType = 'InternetSite' or
  5819.                                  b:SourceType = 'DocumentFromInternetSite'">
  5820.                     <xsl:variable name="shortTitle" select="b:ShortTitle"/>
  5821.                     <xsl:variable name="internetSiteTitle" select="b:InternetSiteTitle"/>
  5822.  
  5823.                     <xsl:choose>
  5824.                       <xsl:when test="string-length($shortTitle)>0">
  5825.                         <xsl:value-of select="$shortTitle"/>
  5826.                       </xsl:when>
  5827.                       <xsl:when test="string-length($internetSiteTitle)>0">
  5828.                         <xsl:value-of select="$internetSiteTitle"/>
  5829.                       </xsl:when>
  5830.                     </xsl:choose>
  5831.                   </xsl:when>
  5832.  
  5833.                   <xsl:when test="b:SourceType = 'ElectronicSource' or
  5834.                                  b:SourceType = 'Art' or
  5835.                                  b:SourceType = 'Misc'">
  5836.                     <xsl:variable name="shortTitle" select="b:ShortTitle"/>
  5837.                     <xsl:variable name="publicationTitle" select="b:PublicationTitle"/>
  5838.  
  5839.                     <xsl:choose>
  5840.                       <xsl:when test="string-length($shortTitle)>0">
  5841.                         <xsl:value-of select="$shortTitle"/>
  5842.                       </xsl:when>
  5843.                       <xsl:when test="string-length($publicationTitle)>0">
  5844.                         <xsl:value-of select="$publicationTitle"/>
  5845.                       </xsl:when>
  5846.                     </xsl:choose>
  5847.                   </xsl:when>
  5848.  
  5849.                   <xsl:when test="b:SourceType = 'SoundRecording'">
  5850.                     <xsl:variable name="shortTitle" select="b:ShortTitle"/>
  5851.                     <xsl:variable name="albumTitle" select="b:AlbumTitle"/>
  5852.  
  5853.                     <xsl:choose>
  5854.                       <xsl:when test="string-length($shortTitle)>0">
  5855.                         <xsl:value-of select="$shortTitle"/>
  5856.                       </xsl:when>
  5857.                       <xsl:when test="string-length($albumTitle)>0">
  5858.                         <xsl:value-of select="$albumTitle"/>
  5859.                       </xsl:when>
  5860.                     </xsl:choose>
  5861.                   </xsl:when>
  5862.  
  5863.                   <xsl:when test="b:SourceType = 'Interview'">
  5864.                     <xsl:variable name="shortTitle" select="b:ShortTitle"/>
  5865.                    
  5866.                     <xsl:variable name="broadcastTitle" select="b:BroadcastTitle"/>
  5867.                    
  5868.  
  5869.                     <xsl:choose>
  5870.                       <xsl:when test="string-length($shortTitle)>0">
  5871.                         <xsl:value-of select="$shortTitle"/>
  5872.                       </xsl:when>
  5873.                      
  5874.                       <xsl:when test="string-length($broadcastTitle)>0">
  5875.                         <xsl:value-of select="$broadcastTitle"/>
  5876.                       </xsl:when>
  5877.                      
  5878.                     </xsl:choose>
  5879.                   </xsl:when>
  5880.  
  5881.                 </xsl:choose>
  5882.               </xsl:if>
  5883.             </b:Title>
  5884.           </xsl:if>
  5885.  
  5886.           <b:SortingString>
  5887.             <xsl:variable name = "author0">
  5888.               <xsl:for-each select="./b:Author/*[local-name()=$MostImportantAuthorLocalName]">
  5889.                 <xsl:call-template name="formatPersonsAuthor"/>
  5890.               </xsl:for-each>
  5891.             </xsl:variable>
  5892.  
  5893.             <xsl:variable name = "author">
  5894.               <xsl:choose>
  5895.                 <xsl:when test="string-length(./b:Author/*[local-name()=$MostImportantAuthorLocalName]/b:Corporate) > 0">
  5896.                   <xsl:value-of select="./b:Author/*[local-name()=$MostImportantAuthorLocalName]/b:Corporate"/>
  5897.                 </xsl:when>
  5898.                 <xsl:when test="string-length($author0) > 0">
  5899.                   <xsl:value-of select="$author0"/>
  5900.                 </xsl:when>
  5901.               </xsl:choose>
  5902.             </xsl:variable>
  5903.  
  5904.             <xsl:variable name = "title">
  5905.               <xsl:choose>
  5906.                 <xsl:when test="b:SourceType = 'Patent'">
  5907.                   <xsl:if test="string-length(b:CountryRegion) > 0">
  5908.                     <xsl:text>&#32;</xsl:text>
  5909.                     <xsl:value-of select="b:CountryRegion"/>
  5910.                   </xsl:if>
  5911.                   <xsl:if test="string-length(b:PatentNumber) > 0">
  5912.                     <xsl:text>&#32;</xsl:text>
  5913.                     <xsl:value-of select="b:PatentNumber"/>
  5914.                   </xsl:if>
  5915.                 </xsl:when>
  5916.                 <xsl:when test="string-length(b:Title) > 0">
  5917.                   <xsl:text>&#32;</xsl:text>
  5918.                   <xsl:value-of select="b:Title"/>
  5919.                 </xsl:when>
  5920.               </xsl:choose>
  5921.             </xsl:variable>
  5922.  
  5923.             <xsl:if test="b:SourceType = 'Case'">
  5924.               <xsl:if test="string-length($title) > 0">
  5925.                 <xsl:value-of select="$title"/>
  5926.               </xsl:if>
  5927.               <xsl:if test="string-length(b:Year) > 0">
  5928.                 <xsl:text>&#32;</xsl:text>
  5929.                 <xsl:value-of select="b:Year"/>
  5930.               </xsl:if>
  5931.             </xsl:if>
  5932.  
  5933.             <xsl:if test="b:SourceType != 'Case'">
  5934.               <xsl:if test="string-length($author) > 0">
  5935.                 <xsl:text>&#32;</xsl:text>
  5936.                 <xsl:value-of select="$author"/>
  5937.  
  5938.                 <xsl:if test="string-length(b:Year) > 0">
  5939.                   <xsl:text>&#32;</xsl:text>
  5940.                   <xsl:value-of select="b:Year"/>
  5941.                 </xsl:if>
  5942.  
  5943.                 <xsl:if test="string-length($title) > 0">
  5944.                   <xsl:value-of select="$title"/>
  5945.                 </xsl:if>
  5946.               </xsl:if>
  5947.  
  5948.               <xsl:if test="string-length($author) = 0">
  5949.                 <xsl:if test="string-length($title) > 0">
  5950.                   <xsl:value-of select="$title"/>
  5951.                 </xsl:if>
  5952.  
  5953.                 <xsl:if test="string-length(b:Year) > 0">
  5954.                   <xsl:text>&#32;</xsl:text>
  5955.                   <xsl:value-of select="b:Year"/>
  5956.                 </xsl:if>
  5957.               </xsl:if>
  5958.             </xsl:if>
  5959.           </b:SortingString>
  5960.  
  5961.           <b:Author>
  5962.            
  5963.             <b:Main>
  5964.                 <xsl:if test="string-length(./b:Author/*[local-name()=$MostImportantAuthorLocalName]/b:Corporate)=0">
  5965.                   <b:NameList>
  5966.                     <xsl:for-each select="./b:Author/*[local-name()=$MostImportantAuthorLocalName]/b:NameList/b:Person">
  5967.                       <b:Person>
  5968.                        
  5969.                         <b:Last>
  5970.                           <xsl:value-of select="./b:Last"/>
  5971.                         </b:Last>
  5972.                         <b:First>
  5973.                           <xsl:value-of select="./b:First"/>
  5974.                         </b:First>
  5975.                         <b:Middle>
  5976.                           <xsl:value-of select="./b:Middle"/>
  5977.                         </b:Middle>
  5978.                       </b:Person>
  5979.                     </xsl:for-each>
  5980.                   </b:NameList>
  5981.                 </xsl:if>
  5982.                 <xsl:if test="string-length(./b:Author/*[local-name()=$MostImportantAuthorLocalName]/b:Corporate)>0">
  5983.                     <b:Corporate>
  5984.                       <xsl:value-of select="./b:Author/*[local-name()=$MostImportantAuthorLocalName]/b:Corporate"/>
  5985.                     </b:Corporate>
  5986.                 </xsl:if>
  5987.             </b:Main>
  5988.             <xsl:for-each select="./b:Author/*">
  5989.              
  5990.              
  5991.               <xsl:element name="{name()}" namespace="{namespace-uri()}">
  5992.                 <xsl:call-template name="copyNameNodes"/>
  5993.                
  5994.               </xsl:element>
  5995.              
  5996.             </xsl:for-each>
  5997.           </b:Author>
  5998.           <xsl:for-each select="*">
  5999.            
  6000.             <xsl:if test="name()!='Author' and not(name()='Title' and $Type='b:Citation')">
  6001.               <xsl:element name="{name()}" namespace="{namespace-uri()}">
  6002.                 <xsl:call-template name="copyNodes"/>
  6003.                
  6004.               </xsl:element>
  6005.             </xsl:if>
  6006.           </xsl:for-each>
  6007.         </xsl:element>
  6008.         <xsl:for-each select="../*">
  6009.          
  6010.           <xsl:if test="local-name()!='Source' and namespace-uri()='http://schemas.openxmlformats.org/officeDocument/2006/bibliography'">
  6011.             <xsl:element name="{name()}" namespace="{namespace-uri()}">
  6012.               <xsl:call-template name="copyNodes"/>
  6013.              
  6014.             </xsl:element>
  6015.           </xsl:if>
  6016.         </xsl:for-each>
  6017.       </xsl:for-each>
  6018.      
  6019.       <xsl:copy-of select="/*[$Type]/b:Locals"/>
  6020.     </xsl:element>
  6021.   </xsl:template>
  6022.  
  6023.  
  6024.   <xsl:template name="copyNameNodes">
  6025.     <xsl:if test="string-length(b:Corporate)=0">
  6026.         <b:NameList>
  6027.           <xsl:for-each select="b:NameList/b:Person">
  6028.            
  6029.             <b:Person>
  6030.              
  6031.               <xsl:if test="string-length(./b:Last)>0">
  6032.                
  6033.                 <b:Last>
  6034.                   <xsl:value-of select="./b:Last"/>
  6035.                 </b:Last>
  6036.               </xsl:if>
  6037.               <xsl:if test="string-length(./b:First)>0">
  6038.                 <b:First>
  6039.                   <xsl:value-of select="./b:First"/>
  6040.                 </b:First>
  6041.               </xsl:if>
  6042.               <xsl:if test="string-length(./b:Middle)>0">
  6043.                 <b:Middle>
  6044.                   <xsl:value-of select="./b:Middle"/>
  6045.                 </b:Middle>
  6046.               </xsl:if>
  6047.             </b:Person>
  6048.           </xsl:for-each>
  6049.         </b:NameList>
  6050.     </xsl:if>
  6051.     <xsl:if test="string-length(b:Corporate)>0">
  6052.         <b:Corporate>
  6053.           <xsl:value-of select="b:Corporate"/>
  6054.         </b:Corporate>
  6055.     </xsl:if>
  6056.   </xsl:template>
  6057.  
  6058.  
  6059.   <xsl:template name="copyNodes">
  6060.     <xsl:value-of select="."/>
  6061.  
  6062.   </xsl:template>
  6063.  
  6064.   <xsl:template name="copyNodes2">
  6065.     <xsl:for-each select="@*">
  6066.       <xsl:attribute name="{name()}" namespace="{namespace-uri()}">
  6067.         <xsl:value-of select="."/>
  6068.       </xsl:attribute>
  6069.     </xsl:for-each>
  6070.     <xsl:for-each select="*">
  6071.       <xsl:element name="{name()}" namespace="{namespace-uri()}">
  6072.         <xsl:call-template name="copyNodes2"/>
  6073.        
  6074.       </xsl:element>
  6075.     </xsl:for-each>
  6076.  
  6077.   </xsl:template>
  6078.  
  6079.   <xsl:template name="handleSpaces">
  6080.     <xsl:param name="field"/>
  6081.  
  6082.     <xsl:variable name="prop_NormalizeSpace">
  6083.       <xsl:call-template name="templ_prop_NormalizeSpace"/>
  6084.     </xsl:variable>
  6085.  
  6086.     <xsl:choose>
  6087.       <xsl:when test="$prop_NormalizeSpace='yes'">
  6088.         <xsl:value-of select="normalize-space($field)"/>
  6089.       </xsl:when>
  6090.       <xsl:otherwise>
  6091.         <xsl:value-of select="$field"/>
  6092.       </xsl:otherwise>
  6093.     </xsl:choose>
  6094.   </xsl:template>
  6095.  
  6096.  
  6097.   <xsl:template name="appendField_Dot">
  6098.     <xsl:param name="field"/>
  6099.  
  6100.     <xsl:variable name="temp">
  6101.       <xsl:call-template name="handleSpaces">
  6102.         <xsl:with-param name="field" select="$field"/>
  6103.       </xsl:call-template>
  6104.     </xsl:variable>
  6105.  
  6106.     <xsl:variable name="lastChar">
  6107.       <xsl:value-of select="substring($temp, string-length($temp))"/>
  6108.     </xsl:variable>
  6109.  
  6110.     <xsl:variable name="prop_EndChars">
  6111.       <xsl:call-template name="templ_prop_EndChars"/>
  6112.     </xsl:variable>
  6113.  
  6114.     <xsl:choose>
  6115.       <xsl:when test="string-length($temp) = 0">
  6116.       </xsl:when>
  6117.       <xsl:when test="contains($prop_EndChars, $lastChar)">
  6118.         <xsl:value-of select="$temp"/>
  6119.       </xsl:when>
  6120.       <xsl:otherwise>
  6121.         <xsl:value-of select="$temp"/>
  6122.         <xsl:call-template name="templ_prop_Dot"/>
  6123.       </xsl:otherwise>
  6124.     </xsl:choose>
  6125.  
  6126.   </xsl:template>
  6127.  
  6128.  
  6129.   <xsl:template name="appendFieldNoHandleSpaces_Dot">
  6130.     <xsl:param name="field"/>
  6131.  
  6132.     <xsl:variable name="lastChar">
  6133.       <xsl:value-of select="substring($field, string-length($field))"/>
  6134.     </xsl:variable>
  6135.  
  6136.     <xsl:variable name="prop_EndChars">
  6137.       <xsl:call-template name="templ_prop_EndChars"/>
  6138.     </xsl:variable>
  6139.  
  6140.     <xsl:choose>
  6141.       <xsl:when test="string-length($field) = 0">
  6142.       </xsl:when>
  6143.       <xsl:when test="contains($prop_EndChars, $lastChar)">
  6144.         <xsl:value-of select="$field"/>
  6145.       </xsl:when>
  6146.       <xsl:otherwise>
  6147.         <xsl:value-of select="$field"/>
  6148.         <xsl:call-template name="templ_prop_Dot"/>
  6149.       </xsl:otherwise>
  6150.     </xsl:choose>
  6151.  
  6152.   </xsl:template>
  6153.  
  6154.   <xsl:template name="templateCSC">
  6155.  
  6156.     <xsl:variable name="tempSPCR">
  6157.       <xsl:call-template name="templateC2">
  6158.         <xsl:with-param name="first" select="b:StateProvince"/>
  6159.         <xsl:with-param name="second" select="b:CountryRegion"/>
  6160.       </xsl:call-template>
  6161.     </xsl:variable>
  6162.  
  6163.     <xsl:variable name="city">
  6164.       <xsl:call-template name="handleSpaces">
  6165.         <xsl:with-param name="field" select="b:City"/>
  6166.       </xsl:call-template>
  6167.     </xsl:variable>
  6168.     <xsl:variable name="temp">
  6169.       <xsl:call-template name="templateC">
  6170.         <xsl:with-param name="first" select="$city"/>
  6171.         <xsl:with-param name="second" select="$tempSPCR"/>
  6172.       </xsl:call-template>
  6173.     </xsl:variable>
  6174.     <xsl:call-template name="handleSpaces">
  6175.       <xsl:with-param name="field" select="$temp"/>
  6176.     </xsl:call-template>
  6177.   </xsl:template>
  6178.  
  6179.   <xsl:template name="templateCSC2">
  6180.     <xsl:variable name="tempSPCR">
  6181.       <xsl:call-template name="templateC2">
  6182.         <xsl:with-param name="first" select="b:StateProvince"/>
  6183.         <xsl:with-param name="second" select="b:CountryRegion"/>
  6184.       </xsl:call-template>
  6185.     </xsl:variable>
  6186.  
  6187.     <xsl:variable name="city">
  6188.       <xsl:call-template name="handleSpaces">
  6189.         <xsl:with-param name="field" select="b:City"/>
  6190.       </xsl:call-template>
  6191.     </xsl:variable>
  6192.     <xsl:variable name="temp">
  6193.       <xsl:call-template name="templateC2">
  6194.         <xsl:with-param name="first" select="$city"/>
  6195.         <xsl:with-param name="second" select="$tempSPCR"/>
  6196.       </xsl:call-template>
  6197.     </xsl:variable>
  6198.     <xsl:call-template name="handleSpaces">
  6199.       <xsl:with-param name="field" select="$temp"/>
  6200.     </xsl:call-template>
  6201.   </xsl:template>
  6202.  
  6203.   <xsl:template name="templateA">
  6204.     <xsl:param name="first"/>
  6205.     <xsl:param name="second"/>
  6206.     <xsl:param name="third"/>
  6207.  
  6208.     <xsl:variable name="tempFirst">
  6209.       <xsl:call-template name="handleSpaces">
  6210.         <xsl:with-param name="field" select="$first"/>
  6211.       </xsl:call-template>
  6212.     </xsl:variable>
  6213.  
  6214.     <xsl:variable name="tempSecond">
  6215.       <xsl:call-template name="handleSpaces">
  6216.         <xsl:with-param name="field" select="$second"/>
  6217.       </xsl:call-template>
  6218.     </xsl:variable>
  6219.  
  6220.     <xsl:variable name="tempThird">
  6221.       <xsl:call-template name="handleSpaces">
  6222.         <xsl:with-param name="field" select="$third"/>
  6223.       </xsl:call-template>
  6224.     </xsl:variable>
  6225.  
  6226.     <xsl:variable name="temp">
  6227.       <xsl:if test="string-length($tempFirst)>0">
  6228.         <xsl:value-of select="$tempFirst"/>
  6229.       </xsl:if>
  6230.  
  6231.       <xsl:if test="string-length($tempFirst)>0 and string-length($tempSecond)>0">
  6232.         <xsl:call-template name="templ_prop_EnumSeparator"/>
  6233.       </xsl:if>
  6234.  
  6235.       <xsl:if test="string-length($tempSecond)>0">
  6236.         <xsl:value-of select="$tempSecond"/>
  6237.       </xsl:if>
  6238.  
  6239.       <xsl:if test="(string-length($tempFirst)>0 or string-length($tempSecond)>0) and string-length($tempThird)>0">
  6240.         <xsl:call-template name="templ_prop_ListSeparator"/>
  6241.       </xsl:if>
  6242.  
  6243.       <xsl:if test="string-length($tempThird)>0">
  6244.         <xsl:value-of select="$tempThird"/>
  6245.       </xsl:if>
  6246.     </xsl:variable>
  6247.  
  6248.     <xsl:call-template name="appendFieldNoHandleSpaces_Dot">
  6249.       <xsl:with-param name="field" select="$temp"/>
  6250.     </xsl:call-template>
  6251.   </xsl:template>
  6252.  
  6253.   <xsl:template name="templateB">
  6254.     <xsl:param name="first"/>
  6255.     <xsl:param name="second"/>
  6256.  
  6257.     <xsl:variable name="tempFirst">
  6258.       <xsl:call-template name="handleSpaces">
  6259.         <xsl:with-param name="field" select="$first"/>
  6260.       </xsl:call-template>
  6261.     </xsl:variable>
  6262.  
  6263.     <xsl:variable name="tempSecond">
  6264.       <xsl:call-template name="handleSpaces">
  6265.         <xsl:with-param name="field" select="$second"/>
  6266.       </xsl:call-template>
  6267.     </xsl:variable>
  6268.  
  6269.     <xsl:variable name="temp">
  6270.       <xsl:if test="string-length($tempFirst)>0">
  6271.         <xsl:value-of select="$tempFirst"/>
  6272.       </xsl:if>
  6273.  
  6274.       <xsl:if test="string-length($tempFirst)>0 and string-length($tempSecond)>0">
  6275.         <xsl:call-template name="templ_prop_EnumSeparator"/>
  6276.       </xsl:if>
  6277.  
  6278.       <xsl:if test="string-length($tempSecond)>0">
  6279.         <xsl:value-of select="$tempSecond"/>
  6280.       </xsl:if>
  6281.  
  6282.     </xsl:variable>
  6283.  
  6284.     <xsl:call-template name="appendFieldNoHandleSpaces_Dot">
  6285.       <xsl:with-param name="field" select="$temp"/>
  6286.     </xsl:call-template>
  6287.  
  6288.   </xsl:template>
  6289.  
  6290.   <xsl:template name="templateC">
  6291.     <xsl:param name="first"/>
  6292.     <xsl:param name="second"/>
  6293.  
  6294.     <xsl:variable name="tempFirst">
  6295.       <xsl:call-template name="handleSpaces">
  6296.         <xsl:with-param name="field" select="$first"/>
  6297.       </xsl:call-template>
  6298.     </xsl:variable>
  6299.  
  6300.     <xsl:variable name="tempSecond">
  6301.       <xsl:call-template name="handleSpaces">
  6302.         <xsl:with-param name="field" select="$second"/>
  6303.       </xsl:call-template>
  6304.     </xsl:variable>
  6305.  
  6306.     <xsl:variable name="temp">
  6307.       <xsl:if test="string-length($tempFirst)>0">
  6308.         <xsl:value-of select="$tempFirst"/>
  6309.       </xsl:if>
  6310.  
  6311.       <xsl:if test="string-length($tempFirst)>0 and string-length($tempSecond)>0">
  6312.         <xsl:call-template name="templ_prop_ListSeparator"/>
  6313.       </xsl:if>
  6314.  
  6315.       <xsl:if test="string-length($tempSecond)>0">
  6316.         <xsl:value-of select="$tempSecond"/>
  6317.       </xsl:if>
  6318.  
  6319.     </xsl:variable>
  6320.  
  6321.     <xsl:call-template name="appendFieldNoHandleSpaces_Dot">
  6322.       <xsl:with-param name="field" select="$temp"/>
  6323.     </xsl:call-template>
  6324.   </xsl:template>
  6325.  
  6326.   <xsl:template name="templateCItalic">
  6327.     <xsl:param name="first"/>
  6328.     <xsl:param name="second"/>
  6329.  
  6330.     <xsl:variable name="tempFirst">
  6331.       <xsl:call-template name="handleSpaces">
  6332.         <xsl:with-param name="field" select="$first"/>
  6333.       </xsl:call-template>
  6334.     </xsl:variable>
  6335.  
  6336.     <xsl:variable name="tempSecond">
  6337.       <xsl:call-template name="handleSpaces">
  6338.         <xsl:with-param name="field" select="$second"/>
  6339.       </xsl:call-template>
  6340.     </xsl:variable>
  6341.  
  6342.     <xsl:if test="string-length($tempFirst)>0">
  6343.      <xsl:call-template name = "ApplyItalicTitleNS">
  6344.       <xsl:with-param name = "data">
  6345.        <xsl:value-of select="$tempFirst"/>
  6346.       </xsl:with-param>
  6347.      </xsl:call-template>
  6348.     </xsl:if>
  6349.  
  6350.     <xsl:if test="string-length($tempFirst)>0 and string-length($tempSecond)>0">
  6351.       <xsl:call-template name="templ_prop_ListSeparator"/>
  6352.     </xsl:if>
  6353.  
  6354.     <xsl:if test="string-length($tempSecond)>0">
  6355.       <xsl:value-of select="$tempSecond"/>
  6356.     </xsl:if>
  6357.  
  6358.     <xsl:variable name="temp">
  6359.       <xsl:value-of select="$tempFirst"/>
  6360.       <xsl:value-of select="$tempSecond"/>
  6361.     </xsl:variable>
  6362.  
  6363.     <xsl:call-template name="need_Dot">
  6364.       <xsl:with-param name="field" select="$temp"/>
  6365.     </xsl:call-template>
  6366.   </xsl:template>
  6367.  
  6368.  
  6369.   <xsl:template name="templateC2">
  6370.     <xsl:param name="first"/>
  6371.     <xsl:param name="second"/>
  6372.  
  6373.     <xsl:variable name="tempFirst">
  6374.       <xsl:call-template name="handleSpaces">
  6375.         <xsl:with-param name="field" select="$first"/>
  6376.       </xsl:call-template>
  6377.     </xsl:variable>
  6378.  
  6379.     <xsl:variable name="tempSecond">
  6380.       <xsl:call-template name="handleSpaces">
  6381.         <xsl:with-param name="field" select="$second"/>
  6382.       </xsl:call-template>
  6383.     </xsl:variable>
  6384.  
  6385.     <xsl:variable name="temp">
  6386.       <xsl:if test="string-length($tempFirst)>0">
  6387.         <xsl:value-of select="$tempFirst"/>
  6388.       </xsl:if>
  6389.  
  6390.       <xsl:if test="string-length($tempFirst)>0 and string-length($tempSecond)>0">
  6391.         <xsl:call-template name="templ_prop_ListSeparator"/>
  6392.       </xsl:if>
  6393.  
  6394.       <xsl:if test="string-length($tempSecond)>0">
  6395.         <xsl:value-of select="$tempSecond"/>
  6396.       </xsl:if>
  6397.  
  6398.     </xsl:variable>
  6399.  
  6400.     <xsl:value-of select="$temp"/>
  6401.   </xsl:template>
  6402.  
  6403.   <xsl:template name="templateF">
  6404.     <xsl:param name="first"/>
  6405.     <xsl:param name="second"/>
  6406.     <xsl:param name="third"/>
  6407.     <xsl:param name="fourth"/>
  6408.     <xsl:param name="fifth"/>
  6409.     <xsl:param name="thirdNoItalic"/>
  6410.  
  6411.     <xsl:variable name="tempFirst">
  6412.       <xsl:call-template name="handleSpaces">
  6413.         <xsl:with-param name="field" select="$first"/>
  6414.       </xsl:call-template>
  6415.     </xsl:variable>
  6416.  
  6417.     <xsl:variable name="tempSecond">
  6418.       <xsl:call-template name="handleSpaces">
  6419.         <xsl:with-param name="field" select="$second"/>
  6420.       </xsl:call-template>
  6421.     </xsl:variable>
  6422.  
  6423.     <xsl:variable name="tempThird">
  6424.       <xsl:call-template name="handleSpaces">
  6425.         <xsl:with-param name="field" select="$third"/>
  6426.       </xsl:call-template>
  6427.     </xsl:variable>
  6428.  
  6429.     <xsl:variable name="tempFourth">
  6430.       <xsl:call-template name="handleSpaces">
  6431.         <xsl:with-param name="field" select="$fourth"/>
  6432.       </xsl:call-template>
  6433.     </xsl:variable>
  6434.  
  6435.     <xsl:variable name="tempFifth">
  6436.       <xsl:call-template name="handleSpaces">
  6437.         <xsl:with-param name="field" select="$fifth"/>
  6438.       </xsl:call-template>
  6439.     </xsl:variable>
  6440.  
  6441.     <xsl:variable name="temp">
  6442.       <xsl:if test="string-length($tempFirst)>0">
  6443.         <xsl:call-template name = "ApplyItalicTitleNS">
  6444.           <xsl:with-param name = "data">
  6445.             <xsl:value-of select="$tempFirst"/>
  6446.           </xsl:with-param>
  6447.         </xsl:call-template>
  6448.       </xsl:if>
  6449.  
  6450.       <xsl:if test="string-length($tempSecond)>0">
  6451.         <xsl:call-template name = "ApplyItalicFieldNS">
  6452.           <xsl:with-param name = "data">
  6453.             <xsl:if test="string-length($tempFirst)>0">
  6454.               <xsl:call-template name="templ_prop_ListSeparator"/>
  6455.             </xsl:if>
  6456.             <xsl:value-of select="$tempSecond"/>
  6457.           </xsl:with-param>
  6458.         </xsl:call-template>
  6459.       </xsl:if>
  6460.  
  6461.       <xsl:if test="string-length($tempThird)>0">
  6462.         <xsl:if test = "$thirdNoItalic = 'yes'">
  6463.           <xsl:call-template name="templ_prop_APA_GeneralOpen"/>
  6464.           <xsl:value-of select="$tempThird"/>
  6465.           <xsl:call-template name="templ_prop_APA_GeneralClose"/>
  6466.         </xsl:if>
  6467.         <xsl:if test = "$thirdNoItalic != 'yes'">
  6468.           <xsl:call-template name = "ApplyItalicFieldNS">
  6469.             <xsl:with-param name = "data">
  6470.               <xsl:call-template name="templ_prop_APA_GeneralOpen"/>
  6471.               <xsl:value-of select="$tempThird"/>
  6472.               <xsl:call-template name="templ_prop_APA_GeneralClose"/>
  6473.             </xsl:with-param>
  6474.           </xsl:call-template>
  6475.         </xsl:if>
  6476.       </xsl:if>
  6477.  
  6478.       <xsl:if test="string-length($tempFourth)>0">
  6479.         <xsl:call-template name = "ApplyItalicFieldNS">
  6480.           <xsl:with-param name = "data">
  6481.             <xsl:if test="(string-length($tempFirst)>0 or string-length($tempSecond)>0) or string-length($tempThird)>0">
  6482.               <xsl:call-template name="templ_prop_ListSeparator"/>
  6483.             </xsl:if>
  6484.             <xsl:value-of select="$tempFourth"/>
  6485.           </xsl:with-param>
  6486.         </xsl:call-template>
  6487.       </xsl:if>
  6488.  
  6489.       <xsl:if test="string-length($tempFifth)>0">
  6490.         <xsl:if test="(string-length($tempFirst)>0 or string-length($tempSecond)>0) or string-length($tempThird)>0 or string-length($tempFourth)>0">
  6491.           <xsl:call-template name="templ_prop_ListSeparator"/>
  6492.         </xsl:if>
  6493.  
  6494.         <xsl:value-of select="$tempFifth"/>
  6495.       </xsl:if>
  6496.     </xsl:variable>
  6497.  
  6498.     <xsl:copy-of select="$temp"/>
  6499.  
  6500.     <xsl:variable name="lastChar">
  6501.       <xsl:value-of select="substring($temp, string-length($temp))"/>
  6502.     </xsl:variable>
  6503.  
  6504.     <xsl:variable name="prop_EndChars">
  6505.       <xsl:call-template name="templ_prop_EndChars"/>
  6506.     </xsl:variable>
  6507.  
  6508.     <xsl:choose>
  6509.       <xsl:when test="string-length($temp) = 0">
  6510.       </xsl:when>
  6511.       <xsl:when test="contains($prop_EndChars, $lastChar)">
  6512.       </xsl:when>
  6513.       <xsl:otherwise>
  6514.         <xsl:call-template name="templ_prop_Dot"/>
  6515.       </xsl:otherwise>
  6516.     </xsl:choose>
  6517.   </xsl:template>
  6518.  
  6519.   <xsl:template name="templateG">
  6520.     <xsl:param name="first"/>
  6521.     <xsl:param name="second"/>
  6522.     <xsl:param name="third"/>
  6523.     <xsl:param name="fourth"/>
  6524.     <xsl:param name="addSpace"/>
  6525.  
  6526.     <xsl:variable name="tempFirst">
  6527.       <xsl:call-template name="handleSpaces">
  6528.         <xsl:with-param name="field" select="$first"/>
  6529.       </xsl:call-template>
  6530.     </xsl:variable>
  6531.  
  6532.     <xsl:variable name="tempSecond">
  6533.       <xsl:call-template name="handleSpaces">
  6534.         <xsl:with-param name="field" select="$second"/>
  6535.       </xsl:call-template>
  6536.     </xsl:variable>
  6537.  
  6538.     <xsl:variable name="tempThird">
  6539.       <xsl:call-template name="handleSpaces">
  6540.         <xsl:with-param name="field" select="$third"/>
  6541.       </xsl:call-template>
  6542.     </xsl:variable>
  6543.  
  6544.     <xsl:variable name="tempFourth">
  6545.       <xsl:call-template name="handleSpaces">
  6546.         <xsl:with-param name="field" select="$fourth"/>
  6547.       </xsl:call-template>
  6548.     </xsl:variable>
  6549.  
  6550.     <xsl:variable name="temp">
  6551.       <xsl:if test="string-length($tempFirst)>0">
  6552.         <xsl:call-template name = "ApplyItalicTitleNS">
  6553.           <xsl:with-param name = "data">
  6554.             <xsl:value-of select="$tempFirst"/>
  6555.           </xsl:with-param>
  6556.         </xsl:call-template>
  6557.       </xsl:if>
  6558.  
  6559.       <xsl:if test="string-length($tempSecond)>0">
  6560.         <xsl:call-template name = "ApplyItalicFieldNS">
  6561.           <xsl:with-param name = "data">
  6562.             <xsl:if test="string-length($tempFirst)>0">
  6563.               <xsl:call-template name="templ_prop_ListSeparator"/>
  6564.             </xsl:if>
  6565.             <xsl:value-of select="$tempSecond"/>
  6566.           </xsl:with-param>
  6567.         </xsl:call-template>
  6568.       </xsl:if>
  6569.  
  6570.       <xsl:if test="string-length($tempThird)>0">
  6571.         <xsl:call-template name="templ_prop_APA_GeneralOpen"/>
  6572.         <xsl:value-of select="$tempThird"/>
  6573.         <xsl:call-template name="templ_prop_APA_GeneralClose"/>
  6574.       </xsl:if>
  6575.  
  6576.       <xsl:if test="string-length($tempFourth)>0">
  6577.         <xsl:if test="(string-length($tempFirst)>0 or string-length($tempSecond)>0) or string-length($tempThird)>0">
  6578.           <xsl:call-template name="templ_prop_ListSeparator"/>
  6579.         </xsl:if>
  6580.  
  6581.         <xsl:value-of select="$tempFourth"/>
  6582.       </xsl:if>
  6583.  
  6584.     </xsl:variable>
  6585.  
  6586.     <xsl:copy-of select="$temp"/>
  6587.  
  6588.     <xsl:variable name="lastChar">
  6589.       <xsl:value-of select="substring($temp, string-length($temp))"/>
  6590.     </xsl:variable>
  6591.  
  6592.     <xsl:variable name="prop_EndChars">
  6593.       <xsl:call-template name="templ_prop_EndChars"/>
  6594.     </xsl:variable>
  6595.  
  6596.     <xsl:choose>
  6597.       <xsl:when test="string-length($temp) = 0">
  6598.       </xsl:when>
  6599.       <xsl:when test="contains($prop_EndChars, $lastChar)">
  6600.       </xsl:when>
  6601.       <xsl:otherwise>
  6602.         <xsl:call-template name="templ_prop_Dot"/>
  6603.       </xsl:otherwise>
  6604.     </xsl:choose>
  6605.  
  6606.   </xsl:template>
  6607.  
  6608.   <xsl:template name="templateH">
  6609.     <xsl:param name="first"/>
  6610.     <xsl:param name="second"/>
  6611.  
  6612.     <xsl:variable name="tempFirst">
  6613.       <xsl:call-template name="handleSpaces">
  6614.         <xsl:with-param name="field" select="$first"/>
  6615.       </xsl:call-template>
  6616.     </xsl:variable>
  6617.  
  6618.     <xsl:variable name="tempSecond">
  6619.       <xsl:call-template name="handleSpaces">
  6620.         <xsl:with-param name="field" select="$second"/>
  6621.       </xsl:call-template>
  6622.     </xsl:variable>
  6623.  
  6624.     <xsl:variable name="temp">
  6625.       <xsl:if test="string-length($tempFirst)>0">
  6626.         <xsl:call-template name = "ApplyItalicTitleNS">
  6627.          <xsl:with-param name = "data">
  6628.           <xsl:value-of select="$tempFirst"/>
  6629.        </xsl:with-param>
  6630.       </xsl:call-template>
  6631.       </xsl:if>
  6632.  
  6633.       <xsl:if test="string-length($tempFirst)>0 and string-length($tempSecond)>0">
  6634.         <xsl:call-template name="templ_prop_ListSeparator"/>
  6635.       </xsl:if>
  6636.  
  6637.       <xsl:if test="string-length($tempSecond)>0">
  6638.         <xsl:value-of select="$tempSecond"/>
  6639.       </xsl:if>
  6640.  
  6641.     </xsl:variable>
  6642.  
  6643.     <xsl:apply-templates select="msxsl:node-set($temp)" mode="outputHtml"/>
  6644.  
  6645.     <xsl:variable name="lastChar">
  6646.       <xsl:value-of select="substring($temp, string-length($temp))"/>
  6647.     </xsl:variable>
  6648.  
  6649.     <xsl:variable name="prop_EndChars">
  6650.       <xsl:call-template name="templ_prop_EndChars"/>
  6651.     </xsl:variable>
  6652.  
  6653.     <xsl:choose>
  6654.       <xsl:when test="string-length($temp) = 0">
  6655.       </xsl:when>
  6656.       <xsl:when test="contains($prop_EndChars, $lastChar)">
  6657.       </xsl:when>
  6658.       <xsl:otherwise>
  6659.         <xsl:call-template name="templ_prop_Dot"/>
  6660.       </xsl:otherwise>
  6661.     </xsl:choose>
  6662.  
  6663.   </xsl:template>
  6664.  
  6665.   <xsl:template name="formatDateCore">
  6666.     <xsl:param name="day"/>
  6667.     <xsl:param name="month"/>
  6668.     <xsl:param name="year"/>
  6669.     <xsl:param name="displayND"/>
  6670.  
  6671.     <xsl:param name="DMY"/>
  6672.     <xsl:param name="DM"/>
  6673.     <xsl:param name="MY"/>
  6674.     <xsl:param name="DY"/>
  6675.  
  6676.     <xsl:choose>
  6677.       <xsl:when test="string-length($year)=0">
  6678.         <xsl:if test="$displayND = 'yes'">
  6679.           <xsl:call-template name="templ_str_NoDateShortUnCap"/>
  6680.         </xsl:if>
  6681.       </xsl:when>
  6682.       <xsl:otherwise>
  6683.         <xsl:call-template name="formatDateCorePrivate">
  6684.           <xsl:with-param name="day" select="$day"/>
  6685.           <xsl:with-param name="month" select="$month"/>
  6686.           <xsl:with-param name="year" select="$year"/>
  6687.  
  6688.           <xsl:with-param name="DMY" select="$DMY"/>
  6689.           <xsl:with-param name="DM" select="$DM"/>
  6690.           <xsl:with-param name="MY" select="$MY"/>
  6691.           <xsl:with-param name="DY" select="$DY"/>
  6692.         </xsl:call-template>
  6693.       </xsl:otherwise>
  6694.     </xsl:choose>
  6695.  
  6696.   </xsl:template>
  6697.  
  6698.  
  6699.   <xsl:template name="formatDate">
  6700.     <xsl:param name="appendSpace"/>
  6701.     <xsl:call-template name="formatDateCore">
  6702.       <xsl:with-param name="day">
  6703.         <xsl:call-template name="handleSpaces">
  6704.           <xsl:with-param name="field" select="b:Day"/>
  6705.         </xsl:call-template>
  6706.       </xsl:with-param>
  6707.       <xsl:with-param name="month">
  6708.         <xsl:call-template name="handleSpaces">
  6709.           <xsl:with-param name="field" select="b:Month"/>
  6710.         </xsl:call-template>
  6711.       </xsl:with-param>
  6712.       <xsl:with-param name="year">
  6713.         <xsl:call-template name="handleSpaces">
  6714.           <xsl:with-param name="field" select="b:Year"/>
  6715.         </xsl:call-template>
  6716.       </xsl:with-param>
  6717.  
  6718.       <xsl:with-param name="DMY">
  6719.         <xsl:call-template name="templ_prop_APA_Date_DMY"/>
  6720.       </xsl:with-param>
  6721.       <xsl:with-param name="DM">
  6722.         <xsl:call-template name="templ_prop_APA_Date_DM"/>
  6723.       </xsl:with-param>
  6724.       <xsl:with-param name="MY">
  6725.         <xsl:call-template name="templ_prop_APA_Date_MY"/>
  6726.       </xsl:with-param>
  6727.       <xsl:with-param name="DY">
  6728.         <xsl:call-template name="templ_prop_APA_Date_DY"/>
  6729.       </xsl:with-param>
  6730.  
  6731.       <xsl:with-param name="displayND">yes</xsl:with-param>
  6732.     </xsl:call-template>
  6733.   </xsl:template>
  6734.  
  6735.   <xsl:template name="formatDateEmpty">
  6736.     <xsl:param name="appendSpace"/>
  6737.     <xsl:call-template name="formatDateCore">
  6738.       <xsl:with-param name="day">
  6739.         <xsl:call-template name="handleSpaces">
  6740.           <xsl:with-param name="field" select="b:Day"/>
  6741.         </xsl:call-template>
  6742.       </xsl:with-param>
  6743.       <xsl:with-param name="month">
  6744.         <xsl:call-template name="handleSpaces">
  6745.           <xsl:with-param name="field" select="b:Month"/>
  6746.         </xsl:call-template>
  6747.       </xsl:with-param>
  6748.       <xsl:with-param name="year">
  6749.         <xsl:call-template name="handleSpaces">
  6750.           <xsl:with-param name="field" select="b:Year"/>
  6751.         </xsl:call-template>
  6752.       </xsl:with-param>
  6753.  
  6754.       <xsl:with-param name="DMY">
  6755.         <xsl:call-template name="templ_prop_APA_Date_DMY"/>
  6756.       </xsl:with-param>
  6757.       <xsl:with-param name="DM">
  6758.         <xsl:call-template name="templ_prop_APA_Date_DM"/>
  6759.       </xsl:with-param>
  6760.       <xsl:with-param name="MY">
  6761.         <xsl:call-template name="templ_prop_APA_Date_MY"/>
  6762.       </xsl:with-param>
  6763.       <xsl:with-param name="DY">
  6764.         <xsl:call-template name="templ_prop_APA_Date_DY"/>
  6765.       </xsl:with-param>
  6766.  
  6767.       <xsl:with-param name="displayND">no</xsl:with-param>
  6768.     </xsl:call-template>
  6769.   </xsl:template>
  6770.  
  6771.   <xsl:template name="formatDateAccessed">
  6772.     <xsl:call-template name="formatDateCore">
  6773.       <xsl:with-param name="day">
  6774.         <xsl:call-template name="handleSpaces">
  6775.           <xsl:with-param name="field" select="b:DayAccessed"/>
  6776.         </xsl:call-template>
  6777.       </xsl:with-param>
  6778.       <xsl:with-param name="month">
  6779.         <xsl:call-template name="handleSpaces">
  6780.           <xsl:with-param name="field" select="b:MonthAccessed"/>
  6781.         </xsl:call-template>
  6782.       </xsl:with-param>
  6783.       <xsl:with-param name="year">
  6784.         <xsl:call-template name="handleSpaces">
  6785.           <xsl:with-param name="field" select="b:YearAccessed"/>
  6786.         </xsl:call-template>
  6787.       </xsl:with-param>
  6788.  
  6789.       <xsl:with-param name="DMY">
  6790.         <xsl:call-template name="templ_prop_APA_DateAccessed_DMY"/>
  6791.       </xsl:with-param>
  6792.       <xsl:with-param name="DM">
  6793.         <xsl:call-template name="templ_prop_APA_DateAccessed_DM"/>
  6794.       </xsl:with-param>
  6795.       <xsl:with-param name="MY">
  6796.         <xsl:call-template name="templ_prop_APA_DateAccessed_MY"/>
  6797.       </xsl:with-param>
  6798.       <xsl:with-param name="DY">
  6799.         <xsl:call-template name="templ_prop_APA_DateAccessed_DY"/>
  6800.       </xsl:with-param>
  6801.  
  6802.       <xsl:with-param name="displayND">no</xsl:with-param>
  6803.     </xsl:call-template>
  6804.   </xsl:template>
  6805.  
  6806.   <xsl:template name="formatDateCourt">
  6807.     <xsl:call-template name="formatDateCore">
  6808.       <xsl:with-param name="day">
  6809.         <xsl:call-template name="handleSpaces">
  6810.           <xsl:with-param name="field" select="b:Day"/>
  6811.         </xsl:call-template>
  6812.       </xsl:with-param>
  6813.       <xsl:with-param name="month">
  6814.         <xsl:call-template name="handleSpaces">
  6815.           <xsl:with-param name="field" select="b:Month"/>
  6816.         </xsl:call-template>
  6817.       </xsl:with-param>
  6818.       <xsl:with-param name="year">
  6819.         <xsl:call-template name="handleSpaces">
  6820.           <xsl:with-param name="field" select="b:Year"/>
  6821.         </xsl:call-template>
  6822.       </xsl:with-param>
  6823.  
  6824.       <xsl:with-param name="DMY">
  6825.         <xsl:call-template name="templ_prop_APA_DateCourt_DMY"/>
  6826.       </xsl:with-param>
  6827.       <xsl:with-param name="DM">
  6828.         <xsl:call-template name="templ_prop_APA_DateCourt_DM"/>
  6829.       </xsl:with-param>
  6830.       <xsl:with-param name="MY">
  6831.         <xsl:call-template name="templ_prop_APA_DateCourt_MY"/>
  6832.       </xsl:with-param>
  6833.       <xsl:with-param name="DY">
  6834.         <xsl:call-template name="templ_prop_APA_DateCourt_DY"/>
  6835.       </xsl:with-param>
  6836.     </xsl:call-template>
  6837.   </xsl:template>
  6838.  
  6839.   <xsl:template name="templateCPY">
  6840.     <xsl:call-template name="templateA">
  6841.       <xsl:with-param name="first" select="b:City"/>
  6842.       <xsl:with-param name="second" select="b:Publisher"/>
  6843.       <xsl:with-param name="third" select="b:Year"/>
  6844.     </xsl:call-template>
  6845.   </xsl:template>
  6846.  
  6847.   <xsl:template name="templateRIDC">
  6848.     <xsl:call-template name='PrintList'>
  6849.         <xsl:with-param name="list">
  6850.             <Items>
  6851.                 <TextItem>
  6852.                     <xsl:value-of select ="b:ThesisType"/>
  6853.                 </TextItem>
  6854.                 <TextItem>
  6855.                     <xsl:value-of select ="b:Institution"/>
  6856.                 </TextItem>
  6857.                 <TextItem>
  6858.                     <xsl:value-of select ="b:Department"/>
  6859.                 </TextItem>
  6860.                 <TextItem>
  6861.                     <xsl:value-of select ="b:City"/>
  6862.                 </TextItem>
  6863.             </Items>
  6864.         </xsl:with-param>
  6865.     </xsl:call-template>
  6866.   </xsl:template>
  6867.  
  6868.   <xsl:template name="templateCSCPu">
  6869.     <xsl:variable name="csc">
  6870.       <xsl:call-template name="templateCSC2"/>
  6871.     </xsl:variable>
  6872.     <xsl:call-template name="templateB">
  6873.       <xsl:with-param name="first" select="$csc"/>
  6874.       <xsl:with-param name="second" select="b:Publisher"/>
  6875.     </xsl:call-template>
  6876.   </xsl:template>
  6877.  
  6878.   <xsl:template name="templateCSCPr">
  6879.     <xsl:variable name="csc">
  6880.       <xsl:call-template name="templateCSC2"/>
  6881.     </xsl:variable>
  6882.  
  6883.     <xsl:variable name="producerName">
  6884.       <xsl:call-template name="formatProducerName"/>
  6885.     </xsl:variable>
  6886.  
  6887.     <xsl:variable name="prod">
  6888.       <xsl:choose>
  6889.         <xsl:when test="string-length($producerName)>0">
  6890.           <xsl:value-of select="$producerName"/>
  6891.         </xsl:when>
  6892.         <xsl:otherwise>
  6893.           <xsl:value-of select="b:ProductionCompany"/>
  6894.         </xsl:otherwise>
  6895.       </xsl:choose>
  6896.     </xsl:variable>
  6897.  
  6898.     <xsl:call-template name="templateB">
  6899.       <xsl:with-param name="first" select="$csc"/>
  6900.       <xsl:with-param name="second" select="$prod"/>
  6901.     </xsl:call-template>
  6902.   </xsl:template>
  6903.  
  6904.  
  6905.   <xsl:template name="templateID">
  6906.     <xsl:call-template name="templateC">
  6907.       <xsl:with-param name="first" select="b:Institution"/>
  6908.       <xsl:with-param name="second" select="b:Department"/>
  6909.     </xsl:call-template>
  6910.   </xsl:template>
  6911.  
  6912.   <xsl:template name="templateCP">
  6913.     <xsl:call-template name="templateB">
  6914.       <xsl:with-param name="first" select="b:City"/>
  6915.       <xsl:with-param name="second" select="b:Publisher"/>
  6916.     </xsl:call-template>
  6917.   </xsl:template>
  6918.  
  6919.   <xsl:template name="templateTCSC">
  6920.     <xsl:variable name="csc">
  6921.       <xsl:call-template name="templateCSC2"/>
  6922.     </xsl:variable>
  6923.     <xsl:call-template name="templateC">
  6924.       <xsl:with-param name="first" select="b:Theater"/>
  6925.       <xsl:with-param name="second" select="$csc"/>
  6926.     </xsl:call-template>
  6927.   </xsl:template>
  6928.  
  6929.   <xsl:template name="templateICSC">
  6930.     <xsl:variable name="csc">
  6931.       <xsl:call-template name="templateCSC2"/>
  6932.     </xsl:variable>
  6933.     <xsl:call-template name="templateC">
  6934.       <xsl:with-param name="first" select="b:Institution"/>
  6935.       <xsl:with-param name="second" select="$csc"/>
  6936.     </xsl:call-template>
  6937.   </xsl:template>
  6938.  
  6939.   <xsl:template name="templateCD">
  6940.     <xsl:call-template name="templateB">
  6941.       <xsl:with-param name="first" select="b:CountryRegion"/>
  6942.       <xsl:with-param name="second" select="b:Distributor"/>
  6943.     </xsl:call-template>
  6944.   </xsl:template>
  6945.  
  6946.   <xsl:template name="templateCPPn">
  6947.     <xsl:variable name="patentTemp">
  6948.       <xsl:call-template name="handleSpaces">
  6949.         <xsl:with-param name="field" select="b:PatentNumber"/>
  6950.       </xsl:call-template>
  6951.     </xsl:variable>
  6952.  
  6953.     <xsl:variable name="str_PatentCap">
  6954.       <xsl:call-template name="templ_str_PatentCap"/>
  6955.     </xsl:variable>
  6956.  
  6957.     <xsl:variable name="patent">
  6958.       <xsl:choose>
  6959.         <xsl:when test="string-length($patentTemp)>0">
  6960.           <xsl:call-template name="StringFormat">
  6961.             <xsl:with-param name="format" select="$str_PatentCap"/>
  6962.             <xsl:with-param name="parameters">
  6963.               <t:params>
  6964.                 <t:param>
  6965.                   <xsl:value-of select="$patentTemp"/>
  6966.                 </t:param>
  6967.               </t:params>
  6968.             </xsl:with-param>
  6969.           </xsl:call-template>
  6970.         </xsl:when>
  6971.       </xsl:choose>
  6972.     </xsl:variable>
  6973.     <xsl:call-template name="templateB">
  6974.       <xsl:with-param name="first" select="b:CountryRegion"/>
  6975.       <xsl:with-param name="second" select="$patent"/>
  6976.     </xsl:call-template>
  6977.   </xsl:template>
  6978.  
  6979.   <xsl:template name="templateCC">
  6980.     <xsl:call-template name="templateB">
  6981.       <xsl:with-param name="first" select="b:CountryRegion"/>
  6982.       <xsl:with-param name="second" select="b:Court"/>
  6983.     </xsl:call-template>
  6984.   </xsl:template>
  6985.  
  6986.   <xsl:template name="templateTV">
  6987.     <xsl:call-template name="templateCItalic">
  6988.       <xsl:with-param name="first" select="b:Title"/>
  6989.       <xsl:with-param name="second" select="b:Version"/>
  6990.     </xsl:call-template>
  6991.   </xsl:template>
  6992.  
  6993.   <xsl:template name="templateSC">
  6994.     <xsl:call-template name="templateC">
  6995.       <xsl:with-param name="first" select="b:Station"/>
  6996.       <xsl:with-param name="second" select="b:City"/>
  6997.     </xsl:call-template>
  6998.   </xsl:template>
  6999.  
  7000.  
  7001.   <xsl:template name="templatePVEP">
  7002.     <xsl:call-template name="templateF">
  7003.       <xsl:with-param name="first" select="b:PublicationTitle"/>
  7004.       <xsl:with-param name="second" select="b:Volume"/>
  7005.       <xsl:with-param name="third" select="b:Edition"/>
  7006.      
  7007.       <xsl:with-param name="fifth" select="b:Pages"/>
  7008.       <xsl:with-param name="thirdNoItalic" select="'yes'"/>
  7009.     </xsl:call-template>
  7010.   </xsl:template>
  7011.  
  7012.   <xsl:template name="templatePVIEP">
  7013.     <xsl:call-template name="templateF">
  7014.       <xsl:with-param name="first" select="b:PublicationTitle"/>
  7015.       <xsl:with-param name="second" select="b:Volume"/>
  7016.       <xsl:with-param name="third" select="b:Issue"/>
  7017.       <xsl:with-param name="fourth" select="b:Edition"/>
  7018.       <xsl:with-param name="fifth" select="b:Pages"/>
  7019.     </xsl:call-template>
  7020.   </xsl:template>
  7021.  
  7022.   <xsl:template name="templateJVIP">
  7023.     <xsl:call-template name="templateG">
  7024.       <xsl:with-param name="first" select="b:JournalName"/>
  7025.       <xsl:with-param name="second" select="b:Volume"/>
  7026.       <xsl:with-param name="third" select="b:Issue"/>
  7027.       <xsl:with-param name="fourth" select="b:Pages"/>
  7028.     </xsl:call-template>
  7029.   </xsl:template>
  7030.  
  7031.   <xsl:template name="templatePTVI">
  7032.     <xsl:param name="pages"/>
  7033.     <xsl:call-template name="templateG">
  7034.       <xsl:with-param name="first" select="b:PeriodicalTitle"/>
  7035.       <xsl:with-param name="second" select="b:Volume"/>
  7036.       <xsl:with-param name="third" select="b:Issue"/>
  7037.       <xsl:with-param name="fourth" select="$pages"/>
  7038.       <xsl:with-param name="addSpace" select="'yes'"/>
  7039.     </xsl:call-template>
  7040.   </xsl:template>
  7041.  
  7042.   <xsl:template name="templatePrP">
  7043.     <xsl:call-template name="templateH">
  7044.       <xsl:with-param name="first" select="b:BroadcastTitle"/>
  7045.       <xsl:with-param name="second" select="b:Pages"/>
  7046.     </xsl:call-template>
  7047.   </xsl:template>
  7048.  
  7049.  
  7050.  
  7051.  
  7052.  
  7053.   <xsl:template name="templateRDAFU">
  7054.  
  7055.  
  7056.     <xsl:variable name="dac">
  7057.       <xsl:call-template name="formatDateAccessed"/>
  7058.     </xsl:variable>
  7059.  
  7060.     <xsl:variable name="internetSiteTitleAndURL">
  7061.  
  7062.       <xsl:if test="string-length(b:InternetSiteTitle)>0">
  7063.         <xsl:if test="string-length(b:URL)>0">
  7064.           <xsl:value-of select="b:InternetSiteTitle"/>
  7065.         </xsl:if>
  7066.         <xsl:if test="string-length(b:URL)=0">
  7067.           <xsl:call-template name="appendField_Dot">
  7068.             <xsl:with-param name="field" select="b:InternetSiteTitle"/>
  7069.           </xsl:call-template>
  7070.         </xsl:if>
  7071.       </xsl:if>
  7072.  
  7073.       <xsl:if test="string-length(b:InternetSiteTitle)>0 and string-length(b:URL)>0">
  7074.         <xsl:call-template name="templ_prop_EnumSeparator"/>
  7075.       </xsl:if>
  7076.  
  7077.       <xsl:if test="string-length(b:URL)>0">
  7078.         <xsl:value-of select="b:URL"/>
  7079.       </xsl:if>
  7080.     </xsl:variable>
  7081.  
  7082.     <xsl:variable name="str_RetrievedFromCap">
  7083.       <xsl:call-template name="templ_str_RetrievedFromCap"/>
  7084.     </xsl:variable>
  7085.  
  7086.     <xsl:variable name="str_RetrievedCap">
  7087.       <xsl:call-template name="templ_str_RetrievedCap"/>
  7088.     </xsl:variable>
  7089.  
  7090.     <xsl:variable name="str_FromCap">
  7091.       <xsl:call-template name="templ_str_FromCap"/>
  7092.     </xsl:variable>
  7093.  
  7094.     <xsl:variable name="temp">
  7095.       <xsl:choose>
  7096.         <xsl:when test="string-length($dac)>0 and string-length($internetSiteTitleAndURL)>0">
  7097.           <xsl:call-template name="StringFormat">
  7098.             <xsl:with-param name="format" select="$str_RetrievedFromCap"/>
  7099.             <xsl:with-param name="parameters">
  7100.               <t:params>
  7101.                 <t:param>
  7102.                   <xsl:value-of select="$dac"/>
  7103.                 </t:param>
  7104.                 <t:param>
  7105.                   <xsl:value-of select="$internetSiteTitleAndURL"/>
  7106.                 </t:param>
  7107.               </t:params>
  7108.             </xsl:with-param>
  7109.           </xsl:call-template>
  7110.         </xsl:when>
  7111.  
  7112.         <xsl:when test="string-length($dac)>0">
  7113.           <xsl:call-template name="StringFormat">
  7114.             <xsl:with-param name="format" select="$str_RetrievedCap"/>
  7115.             <xsl:with-param name="parameters">
  7116.               <t:params>
  7117.                 <t:param>
  7118.                   <xsl:value-of select="$dac"/>
  7119.                 </t:param>
  7120.               </t:params>
  7121.             </xsl:with-param>
  7122.           </xsl:call-template>
  7123.         </xsl:when>
  7124.  
  7125.         <xsl:when test="string-length($internetSiteTitleAndURL)>0">
  7126.           <xsl:call-template name="StringFormat">
  7127.             <xsl:with-param name="format" select="$str_FromCap"/>
  7128.             <xsl:with-param name="parameters">
  7129.               <t:params>
  7130.                 <t:param>
  7131.                   <xsl:value-of select="$internetSiteTitleAndURL"/>
  7132.                 </t:param>
  7133.               </t:params>
  7134.             </xsl:with-param>
  7135.           </xsl:call-template>
  7136.         </xsl:when>
  7137.       </xsl:choose>
  7138.     </xsl:variable>
  7139.     <xsl:value-of select="$temp"/>
  7140.   </xsl:template>
  7141.  
  7142.   <xsl:template name="handleHyphens">
  7143.     <xsl:param name="name"/>
  7144.  
  7145.     <xsl:variable name="prop_APA_Hyphens">
  7146.       <xsl:call-template name="templ_prop_Hyphens"/>
  7147.     </xsl:variable>
  7148.  
  7149.     <xsl:if test="string-length($name)>=2">
  7150.       <xsl:choose>
  7151.         <xsl:when test="contains($prop_APA_Hyphens, substring($name, 1, 1))">
  7152.           <xsl:value-of select="substring($name, 1, 2)"/>
  7153.           <xsl:call-template name="templ_prop_DotInitial"/>
  7154.  
  7155.           <xsl:call-template name="handleHyphens">
  7156.             <xsl:with-param name="name" select="substring($name, 3)"/>
  7157.           </xsl:call-template>
  7158.         </xsl:when>
  7159.  
  7160.         <xsl:otherwise>
  7161.           <xsl:call-template name="handleHyphens">
  7162.             <xsl:with-param name="name" select="substring($name, 2)"/>
  7163.           </xsl:call-template>
  7164.         </xsl:otherwise>
  7165.       </xsl:choose>
  7166.  
  7167.     </xsl:if>
  7168.  
  7169.   </xsl:template>
  7170.  
  7171.   <xsl:template name="formatNameInitial">
  7172.     <xsl:param name="name"/>
  7173.     <xsl:variable name="temp">
  7174.       <xsl:call-template name="handleSpaces">
  7175.         <xsl:with-param name="field" select="$name"/>
  7176.       </xsl:call-template>
  7177.     </xsl:variable>
  7178.  
  7179.     <xsl:variable name="prop_APA_Hyphens">
  7180.       <xsl:call-template name="templ_prop_Hyphens"/>
  7181.     </xsl:variable>
  7182.  
  7183.     <xsl:if test="string-length($temp)>0">
  7184.  
  7185.       <xsl:variable name="tempWithoutSpaces">
  7186.         <xsl:value-of select="translate($temp, '&#32;&#160;', '')"/>
  7187.        
  7188.       </xsl:variable>
  7189.  
  7190.       <xsl:if test="not(contains($prop_APA_Hyphens, substring($tempWithoutSpaces, 1, 1)))">
  7191.         <xsl:value-of select="substring($tempWithoutSpaces, 1, 1)"/>
  7192.         <xsl:call-template name="templ_prop_DotInitial"/>
  7193.       </xsl:if>
  7194.  
  7195.       <xsl:call-template name="handleHyphens">
  7196.         <xsl:with-param name="name" select="$tempWithoutSpaces"/>
  7197.       </xsl:call-template>
  7198.     </xsl:if>
  7199.   </xsl:template>
  7200.  
  7201.  
  7202.  
  7203.   <xsl:template name="formatNameOneItem">
  7204.     <xsl:param name="format"/>
  7205.  
  7206.     <xsl:choose>
  7207.       <xsl:when test="$format = 'F'">
  7208.         <xsl:value-of select="b:First"/>
  7209.       </xsl:when>
  7210.       <xsl:when test="$format = 'L'">
  7211.         <xsl:value-of select="b:Last"/>
  7212.       </xsl:when>
  7213.       <xsl:when test="$format = 'M'">
  7214.         <xsl:value-of select="b:Middle"/>
  7215.       </xsl:when>
  7216.       <xsl:when test="$format = 'f'">
  7217.         <xsl:call-template name="formatNameInitial">
  7218.           <xsl:with-param name="name" select="b:First"/>
  7219.         </xsl:call-template>
  7220.       </xsl:when>
  7221.       <xsl:when test="$format = 'm'">
  7222.         <xsl:call-template name="formatNameInitial">
  7223.           <xsl:with-param name="name" select="b:Middle"/>
  7224.         </xsl:call-template>
  7225.       </xsl:when>
  7226.       <xsl:when test="$format = 'l'">
  7227.         <xsl:call-template name="formatNameInitial">
  7228.           <xsl:with-param name="name" select="b:Last"/>
  7229.         </xsl:call-template>
  7230.       </xsl:when>
  7231.     </xsl:choose>
  7232.  
  7233.   </xsl:template>
  7234.  
  7235.  
  7236.   <xsl:template name="formatMainAuthor">
  7237.     <xsl:call-template name="formatNameCore">
  7238.       <xsl:with-param name="FML">
  7239.         <xsl:call-template name="templ_prop_APA_MainAuthors_FML"/>
  7240.       </xsl:with-param>
  7241.       <xsl:with-param name="FM">
  7242.         <xsl:call-template name="templ_prop_APA_MainAuthors_FM"/>
  7243.       </xsl:with-param>
  7244.       <xsl:with-param name="ML">
  7245.         <xsl:call-template name="templ_prop_APA_MainAuthors_ML"/>
  7246.       </xsl:with-param>
  7247.       <xsl:with-param name="FL">
  7248.         <xsl:call-template name="templ_prop_APA_MainAuthors_FL"/>
  7249.       </xsl:with-param>
  7250.       <xsl:with-param name="upperLast">no</xsl:with-param>
  7251.       <xsl:with-param name="withDot">yes</xsl:with-param>
  7252.  
  7253.     </xsl:call-template>
  7254.   </xsl:template>
  7255.  
  7256.  
  7257.   <xsl:template name="formatSecondaryName">
  7258.     <xsl:call-template name="formatNameCore">
  7259.       <xsl:with-param name="FML">
  7260.         <xsl:call-template name="templ_prop_APA_SecondaryAuthors_FML"/>
  7261.       </xsl:with-param>
  7262.       <xsl:with-param name="FM">
  7263.         <xsl:call-template name="templ_prop_APA_SecondaryAuthors_FM"/>
  7264.       </xsl:with-param>
  7265.       <xsl:with-param name="ML">
  7266.         <xsl:call-template name="templ_prop_APA_SecondaryAuthors_ML"/>
  7267.       </xsl:with-param>
  7268.       <xsl:with-param name="FL">
  7269.         <xsl:call-template name="templ_prop_APA_SecondaryAuthors_FL"/>
  7270.       </xsl:with-param>
  7271.       <xsl:with-param name="upperLast">no</xsl:with-param>
  7272.       <xsl:with-param name="withDot">yes</xsl:with-param>
  7273.     </xsl:call-template>
  7274.   </xsl:template>
  7275.  
  7276.   <xsl:variable name="maxBibAuthors" select="7"/>
  7277.  
  7278.   <xsl:template name="formatPersonSeperator">
  7279.     <xsl:param name="isLast"/>
  7280.  
  7281.     <xsl:variable name="cPeople" select="count(../b:Person)"/>
  7282.  
  7283.     <xsl:if test="position() = $cPeople - 1">
  7284.       <xsl:if test="$cPeople &lt;= $maxBibAuthors">
  7285.         <xsl:variable name="noCommaBeforeAnd">
  7286.           <xsl:call-template name="templ_prop_NoCommaBeforeAnd" />
  7287.         </xsl:variable>
  7288.         <xsl:choose>
  7289.           <xsl:when test="$noCommaBeforeAnd != 'yes'">
  7290.             <xsl:call-template name="templ_prop_AuthorsSeparator"/>
  7291.           </xsl:when>
  7292.           <xsl:otherwise>
  7293.             <xsl:call-template name="templ_prop_Space"/>
  7294.           </xsl:otherwise>
  7295.         </xsl:choose>
  7296.  
  7297.         <xsl:if test="string-length($isLast)=0 or $isLast=true()">
  7298.           <xsl:call-template name="templ_prop_APA_BeforeLastAuthor"/>
  7299.           <xsl:call-template name="templ_prop_Space"/>
  7300.         </xsl:if>
  7301.       </xsl:if>
  7302.  
  7303.       <xsl:if test="$cPeople > $maxBibAuthors">
  7304.         <xsl:call-template name="templ_prop_Dot"/>
  7305.         <xsl:call-template name="templ_prop_Space"/>
  7306.         <xsl:call-template name="templ_prop_Dot"/>
  7307.         <xsl:call-template name="templ_prop_Space"/>
  7308.         <xsl:call-template name="templ_prop_Dot"/>
  7309.         <xsl:call-template name="templ_prop_Space"/>
  7310.       </xsl:if>
  7311.     </xsl:if>
  7312.  
  7313.     <xsl:if test="position() &lt; $cPeople - 1 and position() &lt; $maxBibAuthors">
  7314.       <xsl:call-template name="templ_prop_AuthorsSeparator"/>
  7315.     </xsl:if>
  7316.   </xsl:template>
  7317.  
  7318.   <xsl:template name="formatPersonsAuthor">
  7319.     <xsl:if test="string-length(b:Corporate)=0">
  7320.       <xsl:for-each select="b:NameList/b:Person">
  7321.         <xsl:if test="position() &lt; $maxBibAuthors or position() = last()">
  7322.           <xsl:call-template name="formatMainAuthor"/>
  7323.         </xsl:if>
  7324.         <xsl:call-template name="formatPersonSeperator"/>
  7325.       </xsl:for-each>
  7326.     </xsl:if>
  7327.  
  7328.     <xsl:if test="string-length(b:Corporate)>0">
  7329.         <xsl:value-of select="b:Corporate"/>
  7330.     </xsl:if>
  7331.   </xsl:template>
  7332.  
  7333.   <xsl:template name="formatPersons">
  7334.     <xsl:if test="string-length(b:Corporate)=0">
  7335.       <xsl:for-each select="b:NameList/b:Person">
  7336.         <xsl:if test="position() &lt; $maxBibAuthors or position() = last()">
  7337.           <xsl:call-template name="formatSecondaryName"/>
  7338.         </xsl:if>
  7339.         <xsl:call-template name="formatPersonSeperator"/>
  7340.       </xsl:for-each>
  7341.     </xsl:if>
  7342.  
  7343.     <xsl:if test="string-length(b:Corporate)>0">
  7344.       <xsl:value-of select="b:Corporate"/>
  7345.     </xsl:if>
  7346.   </xsl:template>
  7347.  
  7348.   <xsl:template name="formatPersons2">
  7349.     <xsl:param name="name"/>
  7350.     <xsl:param name="before"/>
  7351.     <xsl:param name="isLast"/>
  7352.  
  7353.     <xsl:if test="string-length(b:Author/*[local-name()=$name]/b:Corporate)=0">
  7354.       <xsl:for-each select="b:Author/*[local-name()=$name]/b:NameList/b:Person">
  7355.         <xsl:if test="position() = 1">
  7356.           <xsl:if test="$before=true() and $isLast=true() and count(../b:Person) = 1">
  7357.             <xsl:call-template name="templ_prop_APA_BeforeLastAuthor"/>
  7358.             <xsl:call-template name="templ_prop_Space"/>
  7359.           </xsl:if>
  7360.           <xsl:call-template name="formatSecondaryName"/>
  7361.         </xsl:if>
  7362.         <xsl:if test="(position() &lt; $maxBibAuthors or position() = last()) and position() != 1">
  7363.           <xsl:call-template name="formatSecondaryName"/>
  7364.         </xsl:if>
  7365.         <xsl:call-template name="formatPersonSeperator">
  7366.           <xsl:with-param name="isLast" select="$isLast"/>
  7367.         </xsl:call-template>
  7368.       </xsl:for-each>
  7369.     </xsl:if>
  7370.  
  7371.     <xsl:if test="string-length(b:Author/*[local-name()=$name]/b:Corporate)>0">
  7372.         <xsl:value-of select="b:Author/*[local-name()=$name]/b:Corporate"/>
  7373.     </xsl:if>
  7374.   </xsl:template>
  7375.  
  7376.   <xsl:template name="formatPersonsAuthor2">
  7377.     <xsl:param name="name"/>
  7378.     <xsl:param name="before"/>
  7379.     <xsl:param name="isLast"/>
  7380.  
  7381.     <xsl:if test="string-length(b:Author/*[local-name()=$name]/b:Corporate)=0">
  7382.       <xsl:for-each select="b:Author/*[local-name()=$name]/b:NameList/b:Person">
  7383.         <xsl:if test="position() = 1">
  7384.           <xsl:if test="$before=true() and $isLast=true() and count(../b:Person) = 1">
  7385.             <xsl:call-template name="templ_prop_APA_BeforeLastAuthor"/>
  7386.             <xsl:call-template name="templ_prop_Space"/>
  7387.           </xsl:if>
  7388.           <xsl:call-template name="formatMainAuthor"/>
  7389.         </xsl:if>
  7390.         <xsl:if test="(position() &lt; $maxBibAuthors or position() = last()) and position() != 1">
  7391.           <xsl:call-template name="formatMainAuthor"/>
  7392.         </xsl:if>
  7393.         <xsl:call-template name="formatPersonSeperator">
  7394.           <xsl:with-param name="isLast" select="$isLast"/>
  7395.         </xsl:call-template>
  7396.       </xsl:for-each>
  7397.     </xsl:if>
  7398.  
  7399.     <xsl:if test="string-length(b:Author/*[local-name()=$name]/b:Corporate)>0">
  7400.       <xsl:value-of select="b:Author/*[local-name()=$name]/b:Corporate"/>
  7401.     </xsl:if>
  7402.   </xsl:template>
  7403.  
  7404.   <xsl:template name="formatProducerName">
  7405.     <xsl:for-each select="b:Author/b:ProducerName">
  7406.       <xsl:call-template name="formatPersons"/>
  7407.     </xsl:for-each>
  7408.   </xsl:template>
  7409.  
  7410.   <xsl:template name="formatAuthor">
  7411.     <xsl:for-each select="b:Author/b:Author">
  7412.       <xsl:call-template name="formatPersonsAuthor"/>
  7413.     </xsl:for-each>
  7414.   </xsl:template>
  7415.  
  7416.   <xsl:template name="formatEditorLF">
  7417.     <xsl:for-each select="b:Author/b:Editor">
  7418.       <xsl:call-template name="formatPersonsAuthor"/>
  7419.     </xsl:for-each>
  7420.   </xsl:template>
  7421.  
  7422.   <xsl:template name="formatTranslator">
  7423.     <xsl:for-each select="b:Author/b:Translator">
  7424.       <xsl:call-template name="formatPersons"/>
  7425.     </xsl:for-each>
  7426.   </xsl:template>
  7427.  
  7428.   <xsl:template name="formatManySecondary">
  7429.  
  7430.     <xsl:param name="useSquareBrackets"/>
  7431.  
  7432.     <xsl:param name="name1"/>
  7433.     <xsl:param name="sufixS1"/>
  7434.     <xsl:param name="sufixM1"/>
  7435.  
  7436.     <xsl:param name="name2"/>
  7437.     <xsl:param name="sufixS2"/>
  7438.     <xsl:param name="sufixM2"/>
  7439.  
  7440.     <xsl:param name="name3"/>
  7441.     <xsl:param name="sufixS3"/>
  7442.     <xsl:param name="sufixM3"/>
  7443.  
  7444.         <xsl:param name="special3"/>
  7445.    
  7446.         <xsl:variable name="count1">
  7447.             <xsl:if test="string-length($name1)>0">
  7448.                 <xsl:if  test="string-length(b:Author/*[local-name()=$name1]/b:Corporate)>0">
  7449.                     <xsl:text>1</xsl:text>
  7450.                 </xsl:if>
  7451.                 <xsl:if  test="string-length(b:Author/*[local-name()=$name1]/b:Corporate)=0">
  7452.                     <xsl:value-of select="count(b:Author/*[local-name()=$name1]/b:NameList/b:Person)"/>
  7453.                 </xsl:if>
  7454.             </xsl:if>
  7455.             <xsl:if test="string-length($name1)=0">
  7456.                 <xsl:text>0</xsl:text>
  7457.             </xsl:if>
  7458.         </xsl:variable>
  7459.  
  7460.         <xsl:variable name="count2">
  7461.             <xsl:if test="string-length($name2)>0">
  7462.                 <xsl:if  test="string-length(b:Author/*[local-name()=$name2]/b:Corporate)>0">
  7463.                     <xsl:text>1</xsl:text>
  7464.                 </xsl:if>
  7465.                 <xsl:if  test="string-length(b:Author/*[local-name()=$name2]/b:Corporate)=0">
  7466.                     <xsl:value-of select="count(b:Author/*[local-name()=$name2]/b:NameList/b:Person)"/>
  7467.                 </xsl:if>
  7468.             </xsl:if>
  7469.             <xsl:if test="string-length($name2)=0">
  7470.                 <xsl:text>0</xsl:text>
  7471.             </xsl:if>
  7472.         </xsl:variable>
  7473.  
  7474.         <xsl:variable name="count3">
  7475.             <xsl:choose>
  7476.                 <xsl:when test="string-length($name3)>0">
  7477.                     <xsl:if  test="string-length(b:Author/*[local-name()=$name3]/b:Corporate)>0">
  7478.                         <xsl:text>1</xsl:text>
  7479.                     </xsl:if>
  7480.                     <xsl:if  test="string-length(b:Author/*[local-name()=$name3]/b:Corporate)=0">
  7481.                         <xsl:value-of select="count(b:Author/*[local-name()=$name3]/b:NameList/b:Person)"/>
  7482.                     </xsl:if>
  7483.                 </xsl:when>
  7484.                 <xsl:when test="string-length($special3)>0">
  7485.                     <xsl:text>1</xsl:text>
  7486.                 </xsl:when>
  7487.                 <xsl:otherwise>
  7488.                     <xsl:text>0</xsl:text>
  7489.                 </xsl:otherwise>
  7490.             </xsl:choose>
  7491.         </xsl:variable>
  7492.  
  7493.         <xsl:if test="$count1 + $count2 + $count3 > 0">
  7494.  
  7495.             <xsl:choose>
  7496.                 <xsl:when test = "$useSquareBrackets = 'yes'">
  7497.                     <xsl:call-template name="templ_prop_APA_SecondaryOpen"/>
  7498.                 </xsl:when>
  7499.                 <xsl:otherwise>
  7500.                     <xsl:call-template name="templ_prop_APA_GeneralOpen"/>
  7501.                 </xsl:otherwise>
  7502.             </xsl:choose>
  7503.  
  7504.             <xsl:if test="$count1 > 0">
  7505.                 <xsl:call-template name="formatPersons2">
  7506.                     <xsl:with-param name="name" select="$name1"/>
  7507.                     <xsl:with-param name="before" select="false()"/>
  7508.                     <xsl:with-param name="isLast" select="$count2 + $count3 = 0"/>
  7509.                 </xsl:call-template>
  7510.  
  7511.                 <xsl:if test="$count1 = 1">
  7512.                     <xsl:if test="string-length($sufixS1)>0">
  7513.                         <xsl:value-of select="$sufixS1"/>
  7514.                     </xsl:if>
  7515.                 </xsl:if>
  7516.  
  7517.                 <xsl:if test="$count1 > 1">
  7518.                     <xsl:if test="string-length($sufixM1)>0">
  7519.                         <xsl:value-of select="$sufixM1"/>
  7520.                     </xsl:if>
  7521.                 </xsl:if>
  7522.             </xsl:if>
  7523.  
  7524.             <xsl:if test="$count2 > 0">
  7525.            
  7526.                 <xsl:if test="$count1 > 0">
  7527.                     <xsl:call-template name="templ_prop_AuthorsSeparator"/>
  7528.                 </xsl:if>
  7529.            
  7530.                 <xsl:call-template name="formatPersons2">
  7531.                     <xsl:with-param name="name" select="$name2"/>
  7532.                     <xsl:with-param name="before" select="$count1>0"/>
  7533.                     <xsl:with-param name="isLast" select="$count3=0"/>
  7534.                 </xsl:call-template>
  7535.  
  7536.                 <xsl:if test="$count2 = 1">
  7537.                     <xsl:if test="string-length($sufixS2)>0">
  7538.                         <xsl:value-of select="$sufixS2"/>
  7539.                     </xsl:if>
  7540.                 </xsl:if>
  7541.  
  7542.                 <xsl:if test="$count2 > 1">
  7543.                     <xsl:if test="string-length($sufixM2)>0">
  7544.                         <xsl:value-of select="$sufixM2"/>
  7545.                     </xsl:if>
  7546.                 </xsl:if>
  7547.             </xsl:if>
  7548.            
  7549.             <xsl:choose>
  7550.                 <xsl:when test="$count3 > 0 and string-length($special3) = 0">
  7551.                
  7552.                     <xsl:if test="$count1 + $count2 > 0">
  7553.                         <xsl:call-template name="templ_prop_AuthorsSeparator"/>
  7554.                     </xsl:if>
  7555.                
  7556.                     <xsl:call-template name="formatPersons2">
  7557.                         <xsl:with-param name="name" select="$name3"/>
  7558.                         <xsl:with-param name="before" select="$count1+$count2>0"/>
  7559.                         <xsl:with-param name="isLast" select="true()"/>
  7560.                     </xsl:call-template>
  7561.  
  7562.                     <xsl:if test="$count3 = 1">
  7563.                         <xsl:if test="string-length($sufixS3)>0">
  7564.                             <xsl:value-of select="$sufixS3"/>
  7565.                         </xsl:if>
  7566.                     </xsl:if>
  7567.  
  7568.                     <xsl:if test="$count3 > 1">
  7569.                         <xsl:if test="string-length($sufixM3)>0">
  7570.                             <xsl:value-of select="$sufixM3"/>
  7571.                         </xsl:if>
  7572.                     </xsl:if>
  7573.                 </xsl:when>
  7574.  
  7575.                 <xsl:when test="string-length($special3) > 0">
  7576.                     <xsl:if test="$count1 + $count2">
  7577.                         <xsl:call-template name="templ_prop_AuthorsSeparator"/>
  7578.                         <xsl:call-template name="templ_prop_APA_BeforeLastAuthor"/>
  7579.                         <xsl:call-template name="templ_prop_Space"/>
  7580.                     </xsl:if>
  7581.  
  7582.                     <xsl:value-of select="$special3"/>
  7583.  
  7584.                 </xsl:when>
  7585.             </xsl:choose>
  7586.  
  7587.             <xsl:choose>
  7588.                 <xsl:when test = "$useSquareBrackets = 'yes'">
  7589.                     <xsl:call-template name="templ_prop_APA_SecondaryClose"/>
  7590.                 </xsl:when>
  7591.                 <xsl:otherwise>
  7592.                     <xsl:call-template name="templ_prop_APA_GeneralClose"/>
  7593.                 </xsl:otherwise>
  7594.             </xsl:choose>
  7595.  
  7596.         </xsl:if>
  7597.  
  7598.        
  7599.     </xsl:template>
  7600.  
  7601.  
  7602.     <xsl:template name="formatManyMain">
  7603.    
  7604.         <xsl:param name="name1"/>
  7605.         <xsl:param name="sufixS1"/>
  7606.         <xsl:param name="sufixM1"/>
  7607.  
  7608.         <xsl:param name="name2"/>
  7609.         <xsl:param name="sufixS2"/>
  7610.         <xsl:param name="sufixM2"/>
  7611.  
  7612.         <xsl:param name="name3"/>
  7613.         <xsl:param name="sufixS3"/>
  7614.         <xsl:param name="sufixM3"/>
  7615.    
  7616.         <xsl:variable name="count1">
  7617.             <xsl:if test="string-length($name1)>0">
  7618.                 <xsl:if test="string-length(b:Author/*[local-name()=$name1]/b:Corporate)>0">
  7619.                     <xsl:text>1</xsl:text>
  7620.                 </xsl:if>
  7621.                 <xsl:if test="string-length(b:Author/*[local-name()=$name1]/b:Corporate)=0">
  7622.                     <xsl:value-of select="count(b:Author/*[local-name()=$name1]/b:NameList/b:Person)"/>
  7623.                 </xsl:if>
  7624.             </xsl:if>
  7625.             <xsl:if test="string-length($name1)=0">
  7626.                 <xsl:text>0</xsl:text>
  7627.             </xsl:if>
  7628.         </xsl:variable>
  7629.  
  7630.         <xsl:variable name="count2">
  7631.             <xsl:if test="string-length($name2)>0">
  7632.                 <xsl:if  test="string-length(b:Author/*[local-name()=$name2]/b:Corporate)>0">
  7633.                     <xsl:text>1</xsl:text>
  7634.                 </xsl:if>
  7635.                 <xsl:if  test="string-length(b:Author/*[local-name()=$name2]/b:Corporate)=0">
  7636.                     <xsl:value-of select="count(b:Author/*[local-name()=$name2]/b:NameList/b:Person)"/>
  7637.                 </xsl:if>
  7638.             </xsl:if>
  7639.             <xsl:if test="string-length($name2)=0">
  7640.                 <xsl:text>0</xsl:text>
  7641.             </xsl:if>
  7642.         </xsl:variable>
  7643.  
  7644.         <xsl:variable name="count3">
  7645.             <xsl:if test="string-length($name3)>0">
  7646.                 <xsl:if  test="string-length(b:Author/*[local-name()=$name3]/b:Corporate)>0">
  7647.                     <xsl:text>1</xsl:text>
  7648.                 </xsl:if>
  7649.                 <xsl:if  test="string-length(b:Author/*[local-name()=$name3]/b:Corporate)=0">
  7650.                     <xsl:value-of select="count(b:Author/*[local-name()=$name3]/b:NameList/b:Person)"/>
  7651.                 </xsl:if>
  7652.             </xsl:if>
  7653.             <xsl:if test="string-length($name3)=0">
  7654.                 <xsl:text>0</xsl:text>
  7655.             </xsl:if>
  7656.         </xsl:variable>
  7657.  
  7658.         <xsl:if test="$count1 + $count2 + $count3 > 0">
  7659.  
  7660.             <xsl:if test="$count1 > 0">
  7661.                 <xsl:call-template name="formatPersonsAuthor2">
  7662.                     <xsl:with-param name="name" select="$name1"/>
  7663.                     <xsl:with-param name="before" select="false()"/>
  7664.                     <xsl:with-param name="isLast" select="$count2 + $count3 = 0"/>
  7665.                 </xsl:call-template>
  7666.  
  7667.                 <xsl:if test="$count1 = 1">
  7668.                     <xsl:if test="string-length($sufixS1)>0">
  7669.                         <xsl:value-of select="$sufixS1"/>
  7670.                     </xsl:if>
  7671.                 </xsl:if>
  7672.  
  7673.                 <xsl:if test="$count1 > 1">
  7674.                     <xsl:if test="string-length($sufixM1)>0">
  7675.                         <xsl:value-of select="$sufixM1"/>
  7676.                     </xsl:if>
  7677.                 </xsl:if>
  7678.             </xsl:if>
  7679.  
  7680.             <xsl:if test="$count2 > 0">
  7681.            
  7682.                 <xsl:if test="$count1 > 0">
  7683.                     <xsl:call-template name="templ_prop_AuthorsSeparator"/>
  7684.                 </xsl:if>
  7685.            
  7686.                 <xsl:call-template name="formatPersonsAuthor2">
  7687.                     <xsl:with-param name="name" select="$name2"/>
  7688.                     <xsl:with-param name="before" select="$count1>0"/>
  7689.                     <xsl:with-param name="isLast" select="$count3=0"/>
  7690.                 </xsl:call-template>
  7691.  
  7692.                 <xsl:if test="$count2 = 1">
  7693.                     <xsl:if test="string-length($sufixS2)>0">
  7694.                         <xsl:value-of select="$sufixS2"/>
  7695.                     </xsl:if>
  7696.                 </xsl:if>
  7697.  
  7698.                 <xsl:if test="$count2 > 1">
  7699.                     <xsl:if test="string-length($sufixM2)>0">
  7700.                         <xsl:value-of select="$sufixM2"/>
  7701.                     </xsl:if>
  7702.                 </xsl:if>
  7703.             </xsl:if>
  7704.  
  7705.             <xsl:if test="$count3 > 0">
  7706.            
  7707.                 <xsl:if test="$count1 + $count2 > 0">
  7708.                     <xsl:call-template name="templ_prop_AuthorsSeparator"/>
  7709.                 </xsl:if>
  7710.            
  7711.                 <xsl:call-template name="formatPersonsAuthor2">
  7712.                     <xsl:with-param name="name" select="$name3"/>
  7713.                     <xsl:with-param name="before" select="$count1+$count2>0"/>
  7714.                     <xsl:with-param name="isLast" select="true()"/>
  7715.                 </xsl:call-template>
  7716.  
  7717.                 <xsl:if test="$count3 = 1">
  7718.                     <xsl:if test="string-length($sufixS3)>0">
  7719.                         <xsl:value-of select="$sufixS3"/>
  7720.                     </xsl:if>
  7721.                 </xsl:if>
  7722.  
  7723.                 <xsl:if test="$count3 > 1">
  7724.                     <xsl:if test="string-length($sufixM3)>0">
  7725.                         <xsl:value-of select="$sufixM3"/>
  7726.                     </xsl:if>
  7727.                 </xsl:if>
  7728.             </xsl:if>
  7729.  
  7730.             <xsl:call-template name="templ_prop_Dot"/>
  7731.  
  7732.         </xsl:if>
  7733.  
  7734.        
  7735.     </xsl:template>
  7736.  
  7737.     <xsl:template name="formatPerformerLF">
  7738.         <xsl:for-each select="b:Author/b:Performer">
  7739.             <xsl:call-template name="formatPersonsAuthor"/>
  7740.         </xsl:for-each>
  7741.     </xsl:template>
  7742.  
  7743.     <xsl:template name="formatConductorLF">
  7744.         <xsl:for-each select="b:Author/b:Conductor">
  7745.             <xsl:call-template name="formatPersonsAuthor"/>
  7746.         </xsl:for-each>
  7747.     </xsl:template>
  7748.  
  7749.     <xsl:template name="formatComposerLF">
  7750.         <xsl:for-each select="b:Author/b:Composer">
  7751.             <xsl:call-template name="formatPersonsAuthor"/>
  7752.         </xsl:for-each>
  7753.     </xsl:template>
  7754.  
  7755.     <xsl:template name="formatArtistLF">
  7756.         <xsl:for-each select="b:Author/b:Artist">
  7757.             <xsl:call-template name="formatPersonsAuthor"/>
  7758.         </xsl:for-each>
  7759.     </xsl:template>
  7760.  
  7761.  
  7762.     <xsl:template name="formatInventorLF">
  7763.         <xsl:for-each select="b:Author/b:Inventor">
  7764.             <xsl:call-template name="formatPersonsAuthor"/>
  7765.         </xsl:for-each>
  7766.     </xsl:template>
  7767.  
  7768.  
  7769.     <xsl:template name="formatIntervieweeLF">
  7770.         <xsl:for-each select="b:Author/b:Interviewee">
  7771.             <xsl:call-template name="formatPersonsAuthor"/>
  7772.         </xsl:for-each>
  7773.     </xsl:template>
  7774.  
  7775.     <xsl:template name="formatDirectorLF">
  7776.         <xsl:for-each select="b:Author/b:Director">
  7777.             <xsl:call-template name="formatPersonsAuthor"/>
  7778.         </xsl:for-each>
  7779.     </xsl:template>
  7780.  
  7781.     <xsl:template name="formatWriterLF">
  7782.         <xsl:for-each select="b:Author/b:Writer">
  7783.             <xsl:call-template name="formatPersonsAuthor"/>
  7784.         </xsl:for-each>
  7785.     </xsl:template>
  7786.  
  7787.     <xsl:template name="formatPerformer">
  7788.         <xsl:for-each select="b:Author/b:Performer">
  7789.             <xsl:call-template name="formatPersons"/>
  7790.         </xsl:for-each>
  7791.     </xsl:template>
  7792.  
  7793.     <xsl:template name="formatConductor">
  7794.         <xsl:for-each select="b:Author/b:Conductor">
  7795.             <xsl:call-template name="formatPersons"/>
  7796.         </xsl:for-each>
  7797.     </xsl:template>
  7798.  
  7799.     <xsl:template name="formatComposer">
  7800.         <xsl:for-each select="b:Author/b:Composer">
  7801.             <xsl:call-template name="formatPersons"/>
  7802.         </xsl:for-each>
  7803.     </xsl:template>
  7804.  
  7805.     <xsl:template name="formatWriter">
  7806.         <xsl:for-each select="b:Author/b:Writer">
  7807.             <xsl:call-template name="formatPersons"/>
  7808.         </xsl:for-each>
  7809.     </xsl:template>
  7810.  
  7811.     <xsl:template name="formatDirector">
  7812.         <xsl:for-each select="b:Author/b:Director">
  7813.             <xsl:call-template name="formatPersons"/>
  7814.         </xsl:for-each>
  7815.     </xsl:template>
  7816.  
  7817.     <xsl:template name="need_Dot">
  7818.         <xsl:param name="field"/>
  7819.  
  7820.         <xsl:variable name="temp">
  7821.             <xsl:call-template name="handleSpaces">
  7822.                 <xsl:with-param name="field" select="$field"/>
  7823.             </xsl:call-template>
  7824.         </xsl:variable>
  7825.  
  7826.         <xsl:variable name="lastChar">
  7827.             <xsl:value-of select="substring($temp, string-length($temp))"/>
  7828.         </xsl:variable>
  7829.  
  7830.         <xsl:variable name="prop_EndChars">
  7831.             <xsl:call-template name="templ_prop_EndChars"/>
  7832.         </xsl:variable>
  7833.  
  7834.         <xsl:choose>
  7835.             <xsl:when test="string-length($temp) = 0">
  7836.             </xsl:when>
  7837.             <xsl:when test="contains($prop_EndChars, $lastChar)">
  7838.             </xsl:when>
  7839.             <xsl:otherwise>
  7840.                 <xsl:call-template name="templ_prop_Dot"/>
  7841.             </xsl:otherwise>
  7842.         </xsl:choose>
  7843.     </xsl:template>
  7844.  
  7845.     <xsl:template name="formatNameCore">
  7846.         <xsl:param name="FML"/>
  7847.         <xsl:param name="FM"/>
  7848.         <xsl:param name="ML"/>
  7849.         <xsl:param name="FL"/>
  7850.         <xsl:param name="upperLast"/>
  7851.         <xsl:param name="withDot"/>
  7852.  
  7853.         <xsl:variable name="first">
  7854.             <xsl:call-template name="handleSpaces">
  7855.                 <xsl:with-param name="field" select="b:First"/>
  7856.             </xsl:call-template>
  7857.         </xsl:variable>
  7858.  
  7859.         <xsl:variable name="middle">
  7860.             <xsl:call-template name="handleSpaces">
  7861.                 <xsl:with-param name="field" select="b:Middle"/>
  7862.             </xsl:call-template>
  7863.         </xsl:variable>
  7864.  
  7865.         <xsl:variable name="last">
  7866.             <xsl:call-template name="handleSpaces">
  7867.                 <xsl:with-param name="field" select="b:Last"/>
  7868.             </xsl:call-template>
  7869.         </xsl:variable>
  7870.        
  7871.         <xsl:variable name="format">
  7872.             <xsl:choose>
  7873.                 <xsl:when test="string-length($first) = 0 and string-length($middle) = 0 and string-length($last) = 0 ">
  7874.                 </xsl:when>
  7875.                 <xsl:when test="string-length($first) = 0 and string-length($middle) = 0 and string-length($last) != 0 ">
  7876.                     <xsl:call-template name="templ_prop_SimpleAuthor_L" />
  7877.                 </xsl:when>
  7878.                 <xsl:when test="string-length($first) = 0 and string-length($middle) != 0 and string-length($last) = 0 ">
  7879.           <xsl:call-template name="templ_prop_SimpleAuthor_M" />
  7880.                 </xsl:when>
  7881.                 <xsl:when test="string-length($first) = 0 and string-length($middle) != 0 and string-length($last) != 0 ">
  7882.                     <xsl:value-of select="$ML"/>
  7883.                 </xsl:when>
  7884.                 <xsl:when test="string-length($first) != 0 and string-length($middle) = 0 and string-length($last) = 0 ">
  7885.                     <xsl:call-template name="templ_prop_SimpleAuthor_F" />
  7886.                 </xsl:when>
  7887.                 <xsl:when test="string-length($first) != 0 and string-length($middle) = 0 and string-length($last) != 0 ">
  7888.                     <xsl:value-of select="$FL"/>
  7889.                 </xsl:when>
  7890.                 <xsl:when test="string-length($first) != 0 and string-length($middle) != 0 and string-length($last) = 0 ">
  7891.                     <xsl:value-of select="$FM"/>
  7892.                 </xsl:when>
  7893.                 <xsl:when test="string-length($first) != 0 and string-length($middle) != 0 and string-length($last) != 0 ">
  7894.                     <xsl:value-of select="$FML"/>
  7895.                 </xsl:when>
  7896.             </xsl:choose>
  7897.         </xsl:variable>
  7898.        
  7899.         <xsl:call-template name="StringFormatName">
  7900.             <xsl:with-param name="format" select="$format"/>
  7901.             <xsl:with-param name="upperLast" select="$upperLast"/>
  7902.             <xsl:with-param name="withDot" select="$withDot"/>
  7903.         </xsl:call-template>
  7904.        
  7905.     </xsl:template>
  7906.  
  7907.     <xsl:template name="formatDateCorePrivate">
  7908.         <xsl:param name="DMY"/>
  7909.         <xsl:param name="DM"/>
  7910.         <xsl:param name="MY"/>
  7911.         <xsl:param name="DY"/>
  7912.  
  7913.         <xsl:param name="day"/>
  7914.         <xsl:param name="month"/>
  7915.         <xsl:param name="year"/>
  7916.        
  7917.         <xsl:param name="withDot"/>
  7918.        
  7919.         <xsl:variable name="format">
  7920.             <xsl:choose>
  7921.                 <xsl:when test="string-length($day) = 0 and string-length($month) = 0 and string-length($year) = 0 ">
  7922.                 </xsl:when>
  7923.                 <xsl:when test="string-length($day) = 0 and string-length($month) = 0 and string-length($year) != 0 ">
  7924.                     <xsl:call-template name="templ_prop_SimpleDate_Y" />
  7925.                 </xsl:when>
  7926.                 <xsl:when test="string-length($day) = 0 and string-length($month) != 0 and string-length($year) = 0 ">
  7927.                 </xsl:when>
  7928.                 <xsl:when test="string-length($day) = 0 and string-length($month) != 0 and string-length($year) != 0 ">
  7929.                     <xsl:value-of select="$MY"/>
  7930.                 </xsl:when>
  7931.                 <xsl:when test="string-length($day) != 0 and string-length($month) = 0 and string-length($year) = 0 ">
  7932.                 </xsl:when>
  7933.                 <xsl:when test="string-length($day) != 0 and string-length($month) = 0 and string-length($year) != 0 ">
  7934.                     <xsl:call-template name="templ_prop_SimpleDate_Y" />
  7935.                 </xsl:when>
  7936.                 <xsl:when test="string-length($day) != 0 and string-length($month) != 0 and string-length($year) = 0 ">
  7937.                 </xsl:when>
  7938.                 <xsl:when test="string-length($day) != 0 and string-length($month) != 0 and string-length($year) != 0 ">
  7939.                     <xsl:value-of select="$DMY"/>
  7940.                 </xsl:when>
  7941.             </xsl:choose>
  7942.         </xsl:variable>
  7943.        
  7944.         <xsl:call-template name="StringFormatDate">
  7945.             <xsl:with-param name="format" select="$format"/>
  7946.  
  7947.             <xsl:with-param name="day" select="$day"/>
  7948.             <xsl:with-param name="month" select="$month"/>
  7949.             <xsl:with-param name="year" select="$year"/>
  7950.  
  7951.             <xsl:with-param name="withDot" select="$withDot"/>
  7952.         </xsl:call-template>
  7953.        
  7954.     </xsl:template>
  7955.  
  7956.     <xsl:template name="StringFormatName">
  7957.         <xsl:param name="format" />
  7958.         <xsl:param name="withDot" />
  7959.         <xsl:param name="upperLast"/>
  7960.  
  7961.     <xsl:variable name="prop_EndChars">
  7962.       <xsl:call-template name="templ_prop_EndChars"/>
  7963.     </xsl:variable>
  7964.  
  7965.     <xsl:choose>
  7966.             <xsl:when test="$format = ''"></xsl:when>
  7967.             <xsl:when test="substring($format, 1, 2) = '%%'">
  7968.                 <xsl:text>%</xsl:text>
  7969.                 <xsl:call-template name="StringFormatName">
  7970.                     <xsl:with-param name="format" select="substring($format, 3)" />
  7971.                     <xsl:with-param name="withDot" select="$withDot" />
  7972.                     <xsl:with-param name="upperLast" select="$upperLast" />
  7973.                 </xsl:call-template>
  7974.        
  7975.                 <xsl:if test="string-length($format)=2 and withDot = 'yes' and not(contains($prop_EndChars, '%'))">
  7976.                     <xsl:call-template name="templ_prop_Dot"/>
  7977.                 </xsl:if>
  7978.             </xsl:when>
  7979.             <xsl:when test="substring($format, 1, 1) = '%'">
  7980.                 <xsl:variable name="what" select="substring($format, 2, 1)" />
  7981.                
  7982.                 <xsl:choose>
  7983.                     <xsl:when test="(what = 'l' or what = 'L') and upperLast = 'yes'">
  7984.                         <span style='text-transform: uppercase;'>
  7985.                             <xsl:call-template name="formatNameOneItem">
  7986.                                 <xsl:with-param name="format" select="$what"/>
  7987.                             </xsl:call-template>
  7988.                         </span>
  7989.                     </xsl:when>
  7990.                     <xsl:otherwise>
  7991.                         <xsl:call-template name="formatNameOneItem">
  7992.                             <xsl:with-param name="format" select="$what"/>
  7993.                         </xsl:call-template>
  7994.                     </xsl:otherwise>
  7995.                 </xsl:choose>
  7996.                 <xsl:call-template name="StringFormatName">
  7997.                     <xsl:with-param name="format" select="substring($format, 3)" />
  7998.                     <xsl:with-param name="withDot" select="$withDot" />
  7999.                     <xsl:with-param name="upperLast" select="$upperLast" />
  8000.                 </xsl:call-template>
  8001.                 <xsl:if test="string-length($format)=2 and withDot='yes'">
  8002.                     <xsl:variable name="temp2">
  8003.                         <xsl:call-template name="handleSpaces">
  8004.                             <xsl:with-param name="field">
  8005.                                 <xsl:call-template name="formatNameOneItem">
  8006.                                     <xsl:with-param name="format" select="$what"/>
  8007.                                 </xsl:call-template>
  8008.                             </xsl:with-param>
  8009.                         </xsl:call-template>
  8010.                     </xsl:variable>            
  8011.                     <xsl:variable name="lastChar">
  8012.                         <xsl:value-of select="substring($temp2, string-length($temp2))"/>
  8013.                     </xsl:variable>
  8014.                     <xsl:if test="not(contains($prop_EndChars, $lastChar))">
  8015.                         <xsl:call-template name="templ_prop_Dot"/>
  8016.                     </xsl:if>
  8017.                 </xsl:if>
  8018.             </xsl:when>
  8019.             <xsl:otherwise>
  8020.                 <xsl:value-of select="substring($format, 1, 1)" />
  8021.                 <xsl:call-template name="StringFormatName">
  8022.                     <xsl:with-param name="format" select="substring($format, 2)" />
  8023.                     <xsl:with-param name="withDot" select="$withDot" />
  8024.                     <xsl:with-param name="upperLast" select="$upperLast" />
  8025.                 </xsl:call-template>
  8026.                 <xsl:if test="string-length($format)=1">
  8027.                     <xsl:if test="withDot = 'yes' and not(contains($prop_EndChars, $format))">
  8028.                         <xsl:call-template name="templ_prop_Dot"/>
  8029.                     </xsl:if>
  8030.                 </xsl:if>
  8031.             </xsl:otherwise>
  8032.         </xsl:choose>
  8033.     </xsl:template>
  8034.  
  8035.     <xsl:template name="StringFormatDate">
  8036.         <xsl:param name="format" />
  8037.        
  8038.         <xsl:param name="day"/>
  8039.         <xsl:param name="month"/>
  8040.         <xsl:param name="year"/>       
  8041.        
  8042.         <xsl:param name="withDot" />
  8043.  
  8044.     <xsl:variable name="prop_EndChars">
  8045.       <xsl:call-template name="templ_prop_EndChars"/>
  8046.     </xsl:variable>
  8047.  
  8048.     <xsl:choose>
  8049.             <xsl:when test="$format = ''"></xsl:when>
  8050.             <xsl:when test="substring($format, 1, 2) = '%%'">
  8051.                 <xsl:text>%</xsl:text>
  8052.                 <xsl:call-template name="StringFormatDate">
  8053.                     <xsl:with-param name="format" select="substring($format, 3)" />
  8054.                     <xsl:with-param name="day" select="$day"/>
  8055.                     <xsl:with-param name="month" select="$month"/>
  8056.                     <xsl:with-param name="year" select="$year"/>
  8057.                     <xsl:with-param name="withDot" select="$withDot" />
  8058.                 </xsl:call-template>
  8059.                 <xsl:if test="string-length($format)=2 and withDot = 'yes' and not(contains($prop_EndChars, '%'))">
  8060.                     <xsl:call-template name="templ_prop_Dot"/>
  8061.                 </xsl:if>
  8062.             </xsl:when>
  8063.             <xsl:when test="substring($format, 1, 1) = '%'">
  8064.                 <xsl:variable name="what" select="substring($format, 2, 1)" />
  8065.                 <xsl:choose>
  8066.                     <xsl:when test="$what = 'D'">
  8067.                         <xsl:value-of select="$day"/>
  8068.                     </xsl:when>
  8069.                     <xsl:when test="$what = 'M'">
  8070.                         <xsl:value-of select="$month"/>
  8071.                     </xsl:when>
  8072.                     <xsl:when test="$what = 'Y'">
  8073.                         <xsl:value-of select="$year"/>
  8074.                     </xsl:when>
  8075.                 </xsl:choose>
  8076.                 <xsl:call-template name="StringFormatDate">
  8077.                     <xsl:with-param name="format" select="substring($format, 3)" />
  8078.                     <xsl:with-param name="day" select="$day"/>
  8079.                     <xsl:with-param name="month" select="$month"/>
  8080.                     <xsl:with-param name="year" select="$year"/>
  8081.                     <xsl:with-param name="withDot" select="$withDot" />
  8082.                 </xsl:call-template>
  8083.                 <xsl:if test="string-length($format)=2 and withDot='yes'">
  8084.                     <xsl:variable name="temp2">
  8085.                         <xsl:call-template name="handleSpaces">
  8086.                             <xsl:with-param name="field">
  8087.                                 <xsl:call-template name="formatNameOneItem">
  8088.                                     <xsl:with-param name="format" select="$what"/>
  8089.                                 </xsl:call-template>
  8090.                             </xsl:with-param>
  8091.                         </xsl:call-template>
  8092.                     </xsl:variable>            
  8093.                     <xsl:variable name="lastChar">
  8094.                         <xsl:value-of select="substring($temp2, string-length($temp2))"/>
  8095.                     </xsl:variable>
  8096.                     <xsl:if test="not(contains($prop_EndChars, $lastChar))">
  8097.                         <xsl:call-template name="templ_prop_Dot"/>
  8098.                     </xsl:if>
  8099.                 </xsl:if>
  8100.             </xsl:when>
  8101.             <xsl:otherwise>
  8102.                 <xsl:value-of select="substring($format, 1, 1)" />
  8103.                 <xsl:call-template name="StringFormatDate">
  8104.                     <xsl:with-param name="format" select="substring($format, 2)" />
  8105.                     <xsl:with-param name="day" select="$day"/>
  8106.                     <xsl:with-param name="month" select="$month"/>
  8107.                     <xsl:with-param name="year" select="$year"/>
  8108.                     <xsl:with-param name="withDot" select="$withDot" />
  8109.                 </xsl:call-template>
  8110.                 <xsl:if test="string-length($format)=1">
  8111.                     <xsl:if test="withDot = 'yes' and not(contains($prop_EndChars, $format))">
  8112.                         <xsl:call-template name="templ_prop_Dot"/>
  8113.                     </xsl:if>
  8114.                 </xsl:if>
  8115.             </xsl:otherwise>
  8116.         </xsl:choose>
  8117.     </xsl:template>
  8118.  
  8119.     <xsl:template name="PrintSpaceAndList">
  8120.         <xsl:param name="list"/>
  8121.  
  8122.         <xsl:variable name="result">
  8123.             <xsl:call-template name="PrintList">
  8124.                 <xsl:with-param name="list" select="$list" />
  8125.             </xsl:call-template>
  8126.         </xsl:variable>
  8127.  
  8128.         <xsl:if test="string-length($result) > 0">
  8129.             <xsl:call-template name="templ_prop_Space" />
  8130.             <xsl:copy-of select="$result" />
  8131.         </xsl:if>
  8132.     </xsl:template>
  8133.  
  8134.     <xsl:template name="PrintList">
  8135.         <xsl:param name="list"/>
  8136.  
  8137.         <xsl:call-template name="PrintList2">
  8138.             <xsl:with-param name="list" select="$list" />
  8139.             <xsl:with-param name="index" select="'1'" />
  8140.             <xsl:with-param name="nextSeparator">
  8141.                 <xsl:call-template name="templ_prop_ListSeparator"/>
  8142.             </xsl:with-param>
  8143.             <xsl:with-param name="textDisplayed" select="''" />
  8144.         </xsl:call-template>
  8145.     </xsl:template>
  8146.  
  8147.     <xsl:template name="PrintList2">
  8148.         <xsl:param name="list"/>
  8149.         <xsl:param name="index"/>
  8150.         <xsl:param name="nextSeparator"/>
  8151.         <xsl:param name="lastTextDisplayed"/>
  8152.  
  8153.        
  8154.  
  8155.         <xsl:choose>
  8156.             <xsl:when test="$index > count(msxsl:node-set($list)/*/*)">
  8157.                 <xsl:call-template name="need_Dot">
  8158.                     <xsl:with-param name="field" select ="$lastTextDisplayed"/>
  8159.                 </xsl:call-template>
  8160.             </xsl:when>
  8161.             <xsl:when test="local-name(msxsl:node-set($list)/*/*[$index]) = 'TextItem'">
  8162.                 <xsl:variable name="item">
  8163.                     <xsl:value-of select="msxsl:node-set($list)/*/*[$index]" />
  8164.                 </xsl:variable>
  8165.  
  8166.                 <xsl:if test="string-length($item) > 0 and string-length($lastTextDisplayed) > 0">
  8167.                     <xsl:value-of select = "$nextSeparator" />
  8168.                 </xsl:if>
  8169.  
  8170.                 <xsl:if test="string-length($item) > 0">
  8171.                     <xsl:value-of select = "$item" />
  8172.                 </xsl:if>
  8173.  
  8174.                 <xsl:call-template name="PrintList2">
  8175.                     <xsl:with-param name="list" select="$list" />
  8176.                     <xsl:with-param name="index" select="$index + 1" />
  8177.                     <xsl:with-param name="nextSeparator">
  8178.                         <xsl:choose>
  8179.                             <xsl:when test="string-length($item) > 0 and string-length($lastTextDisplayed) > 0">
  8180.                                 <xsl:call-template name="templ_prop_ListSeparator"/>
  8181.                             </xsl:when>
  8182.                             <xsl:otherwise>
  8183.                                 <xsl:value-of select="$nextSeparator" />
  8184.                             </xsl:otherwise>
  8185.                         </xsl:choose>
  8186.                     </xsl:with-param>
  8187.                     <xsl:with-param name="lastTextDisplayed">
  8188.                         <xsl:choose>
  8189.                             <xsl:when test="string-length($item) > 0">
  8190.                                 <xsl:value-of select="$item" />
  8191.                             </xsl:when>
  8192.                             <xsl:otherwise>
  8193.                                 <xsl:value-of select="$lastTextDisplayed" />
  8194.                             </xsl:otherwise>
  8195.                         </xsl:choose>
  8196.                     </xsl:with-param>
  8197.                 </xsl:call-template>                   
  8198.             </xsl:when>
  8199.             <xsl:when test="local-name(msxsl:node-set($list)/*/*[$index]) = 'GroupSeparator'">
  8200.                 <xsl:call-template name="PrintList2">
  8201.                     <xsl:with-param name="list" select="$list" />
  8202.                     <xsl:with-param name="index" select="$index + 1" />
  8203.                     <xsl:with-param name="nextSeparator">
  8204.                         <xsl:call-template name="templ_prop_GroupSeparator"/>
  8205.                     </xsl:with-param>
  8206.                     <xsl:with-param name="lastTextDisplayed" select="$lastTextDisplayed" />
  8207.                 </xsl:call-template>           
  8208.             </xsl:when>
  8209.             <xsl:when test="local-name(msxsl:node-set($list)/*/*[$index]) = 'CopyItem'">
  8210.                 <xsl:variable name="item">
  8211.                     <xsl:copy-of select="msxsl:node-set($list)/*/*[$index]" />
  8212.                 </xsl:variable>
  8213.  
  8214.                 <xsl:if test="string-length($item) > 0 and string-length($lastTextDisplayed) > 0">
  8215.                     <xsl:value-of select = "$nextSeparator" />
  8216.                 </xsl:if>
  8217.  
  8218.                 <xsl:if test="string-length($item) > 0">
  8219.                     <xsl:copy-of select = "msxsl:node-set($item)/*[1]" />
  8220.                 </xsl:if>
  8221.  
  8222.                 <xsl:call-template name="PrintList2">
  8223.                     <xsl:with-param name="list" select="$list" />
  8224.                     <xsl:with-param name="index" select="$index + 1" />
  8225.                     <xsl:with-param name="nextSeparator">
  8226.                         <xsl:choose>
  8227.                             <xsl:when test="string-length($item) > 0 and string-length($lastTextDisplayed) > 0">
  8228.                                 <xsl:call-template name="templ_prop_ListSeparator"/>
  8229.                             </xsl:when>
  8230.                             <xsl:otherwise>
  8231.                                 <xsl:value-of select="$nextSeparator" />
  8232.                             </xsl:otherwise>
  8233.                         </xsl:choose>
  8234.                     </xsl:with-param>
  8235.                     <xsl:with-param name="lastTextDisplayed">
  8236.                         <xsl:choose>
  8237.                             <xsl:when test="string-length(msxsl:node-set($item)/*[1]) > 0">
  8238.                                 <xsl:value-of select="msxsl:node-set($item)/*[1]" />
  8239.                             </xsl:when>
  8240.                             <xsl:otherwise>
  8241.                                 <xsl:value-of select="$lastTextDisplayed" />
  8242.                             </xsl:otherwise>
  8243.                         </xsl:choose>
  8244.                     </xsl:with-param>
  8245.                 </xsl:call-template>
  8246.             </xsl:when>
  8247.         </xsl:choose>
  8248.  
  8249.     </xsl:template>
  8250.  
  8251.     <xsl:template name="ApplyItalicTitleNS">
  8252.         <xsl:param name="data" />
  8253.  
  8254.         <xsl:variable name="prop_NoItalics">
  8255.           <xsl:call-template name="templ_prop_NoItalics"/>
  8256.         </xsl:variable>
  8257.  
  8258.         <xsl:choose>
  8259.             <xsl:when test = "$prop_NoItalics = 'yes'">
  8260.                 <xsl:variable name = "prop_TitleOpen">
  8261.                     <xsl:call-template name="templ_prop_TitleOpen"/>
  8262.                 </xsl:variable>
  8263.                 <xsl:variable name = "prop_TitleClose">
  8264.                     <xsl:call-template name="templ_prop_TitleClose"/>
  8265.                 </xsl:variable>
  8266.                 <xsl:variable name = "prop_OpenQuote">
  8267.                     <xsl:call-template name="templ_prop_OpenQuote"/>
  8268.                 </xsl:variable>
  8269.                 <xsl:variable name = "prop_CloseQuote">
  8270.                     <xsl:call-template name="templ_prop_CloseQuote"/>
  8271.                 </xsl:variable>
  8272.                 <xsl:choose>
  8273.                     <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
  8274.                                   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))">
  8275.                         <xsl:call-template name="templ_prop_TitleOpen"/>
  8276.                         <xsl:copy-of select="msxsl:node-set($data)" />
  8277.                         <xsl:call-template name="templ_prop_TitleClose"/>
  8278.                     </xsl:when>
  8279.                     <xsl:when test = "string-length($prop_TitleOpen) > 0 and string-length($prop_TitleClose) > 0 and
  8280.                                   not(starts-with($data, $prop_TitleOpen) or (substring($data, string-length($data) - string-length($prop_TitleClose)) = $prop_TitleClose))">
  8281.                         <xsl:call-template name="templ_prop_TitleOpen"/>
  8282.                         <xsl:copy-of select="msxsl:node-set($data)" />
  8283.                         <xsl:call-template name="templ_prop_TitleClose"/>
  8284.                     </xsl:when>
  8285.                     <xsl:otherwise>
  8286.                         <xsl:copy-of select="msxsl:node-set($data)" />
  8287.                     </xsl:otherwise>
  8288.                 </xsl:choose>
  8289.             </xsl:when>
  8290.             <xsl:otherwise>
  8291.                 <i xmlns="http://www.w3.org/TR/REC-html40">
  8292.                     <xsl:copy-of select="msxsl:node-set($data)" />
  8293.                 </i>
  8294.             </xsl:otherwise>
  8295.         </xsl:choose>
  8296.     </xsl:template>
  8297.  
  8298.     <xsl:template name="ApplyItalicFieldNS">
  8299.         <xsl:param name="data" />
  8300.  
  8301.         <xsl:variable name="prop_NoItalics">
  8302.           <xsl:call-template name="templ_prop_NoItalics"/>
  8303.         </xsl:variable>
  8304.  
  8305.         <xsl:choose>
  8306.             <xsl:when test = "$prop_NoItalics = 'yes'">
  8307.                 <xsl:copy-of select="msxsl:node-set($data)" />
  8308.             </xsl:when>
  8309.             <xsl:otherwise>
  8310.                 <i xmlns="http://www.w3.org/TR/REC-html40">
  8311.                 <xsl:copy-of select="msxsl:node-set($data)" />
  8312.                 </i>
  8313.             </xsl:otherwise>
  8314.         </xsl:choose>
  8315.     </xsl:template>
  8316.  
  8317. </xsl:stylesheet>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement