Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <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">
- <xsl:output method="html" encoding="us-ascii"/>
- <xsl:template match="/">
- <xsl:choose>
- <xsl:when test="b:Version">
- <xsl:text>2006.5.07</xsl:text>
- </xsl:when>
- <xsl:when test="b:OfficeStyleKey">
- <xsl:text>APA</xsl:text>
- </xsl:when>
- <xsl:when test="b:XslVersion">
- <xsl:text>6</xsl:text>
- </xsl:when>
- <xsl:when test="b:StyleNameLocalized">
- <!-- name definitions -->
- </xsl:when>
- <xsl:when test="b:GetImportantFields">
- <!-- deleted part -->
- </xsl:when>
- <xsl:when test="b:Citation">
- <!-- deleted part -->
- </xsl:when>
- <xsl:when test="b:Bibliography">
- <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">
- <head>
- <style>
- p.MsoBibliography, li.MsoBibliography, div.MsoBibliography
- </style>
- </head>
- <body>
- <xsl:variable name="ListPopulatedWithMain">
- <xsl:call-template name="populateMain">
- <xsl:with-param name="Type">b:Bibliography</xsl:with-param>
- </xsl:call-template>
- </xsl:variable>
- <xsl:variable name="sList">
- <xsl:call-template name="sortedList">
- <xsl:with-param name="sourceRoot">
- <xsl:copy-of select="$ListPopulatedWithMain"/>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:variable>
- <xsl:for-each select="msxsl:node-set($sList)/b:Bibliography/b:Source">
- <xsl:variable name="LCID">
- <xsl:choose>
- <xsl:when test="b:LCID='0' or b:LCID='' or not(b:LCID)">
- <xsl:value-of select="/*/b:Locals/b:DefaultLCID"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="b:LCID"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="dir">
- <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$LCID]/b:Properties/b:Direction"/>
- </xsl:variable>
- <xsl:variable name="uppercase" select="'ABCDEFGHIJKLMNOPQRSTUVWXYZ'"/>
- <xsl:variable name="lowercase" select="'abcdefghijklmnopqrstuvwxyz'"/>
- <xsl:element name="p">
- <xsl:attribute name="lang">
- <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$LCID]/@Culture"/>
- </xsl:attribute>
- <xsl:attribute name="dir">
- <xsl:value-of select="$dir"/>
- </xsl:attribute>
- <xsl:attribute name="class">
- <xsl:value-of select="'MsoBibliography'"/>
- </xsl:attribute>
- <xsl:attribute name="style">
- <xsl:choose>
- <xsl:when test="translate($dir,$uppercase,$lowercase)='rtl'">
- <xsl:value-of select="'margin-right:.5in;text-indent:-.5in'"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="'margin-left:.5in;text-indent:-.5in'"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:attribute>
- <xsl:variable name="prevBook">
- <xsl:value-of select="position()-1"/>
- </xsl:variable>
- <xsl:variable name="cEditors">
- <xsl:value-of select="count(b:Author/b:Editor/b:NameList/b:Person)"/>
- </xsl:variable>
- <!-- [deleted part] defintion of lots of other variables -->
- <xsl:variable name="tempRDAFU">
- <xsl:call-template name="templateRDAFU"/>
- </xsl:variable>
- <!-- [deletet part] defintion of lots of other variables -->
- <xsl:when test="string-length($doi)>0">
- <xsl:value-of select="$doiPrefix"/>
- <xsl:call-template name="templ_prop_Enum"/>
- <xsl:value-of select="$doi"/>
- </xsl:when>
- <xsl:when test="string-length($tempRDAFU)>0">
- <xsl:value-of select="$tempRDAFU"/>
- </xsl:when>
- </xsl:choose>
- </xsl:element>
- </xsl:for-each>
- </body>
- </html>
- </xsl:when>
- </xsl:choose>
- </xsl:template>
- <xsl:template name="templateRDAFU">
- <xsl:variable name="dac">
- <xsl:call-template name="formatDateAccessed"/>
- </xsl:variable>
- <xsl:variable name="internetSiteTitleAndURL">
- <xsl:if test="string-length(b:InternetSiteTitle)>0">
- <xsl:if test="string-length(b:URL)>0">
- <xsl:value-of select="b:InternetSiteTitle"/>
- </xsl:if>
- <xsl:if test="string-length(b:URL)=0">
- <xsl:call-template name="appendField_Dot">
- <xsl:with-param name="field" select="b:InternetSiteTitle"/>
- </xsl:call-template>
- </xsl:if>
- </xsl:if>
- <xsl:if test="string-length(b:InternetSiteTitle)>0 and string-length(b:URL)>0">
- <xsl:call-template name="templ_prop_EnumSeparator"/>
- </xsl:if>
- <xsl:if test="string-length(b:URL)>0">
- <xsl:value-of select="b:URL"/>
- </xsl:if>
- </xsl:variable>
- <xsl:variable name="str_RetrievedFromCap">
- <xsl:call-template name="templ_str_RetrievedFromCap"/>
- </xsl:variable>
- <xsl:variable name="str_RetrievedCap">
- <xsl:call-template name="templ_str_RetrievedCap"/>
- </xsl:variable>
- <xsl:variable name="str_FromCap">
- <xsl:call-template name="templ_str_FromCap"/>
- </xsl:variable>
- <xsl:variable name="temp">
- <xsl:choose>
- <xsl:when test="string-length($dac)>0 and string-length($internetSiteTitleAndURL)>0">
- <xsl:call-template name="StringFormat">
- <xsl:with-param name="format" select="$str_RetrievedFromCap"/>
- <xsl:with-param name="parameters">
- <t:params>
- <t:param>
- <xsl:value-of select="$dac"/>
- </t:param>
- <t:param>
- <xsl:value-of select="$internetSiteTitleAndURL"/>
- </t:param>
- </t:params>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:when>
- <xsl:when test="string-length($dac)>0">
- <xsl:call-template name="StringFormat">
- <xsl:with-param name="format" select="$str_RetrievedCap"/>
- <xsl:with-param name="parameters">
- <t:params>
- <t:param>
- <xsl:value-of select="$dac"/>
- </t:param>
- </t:params>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:when>
- <xsl:when test="string-length($internetSiteTitleAndURL)>0">
- <xsl:call-template name="StringFormat">
- <xsl:with-param name="format" select="$str_FromCap"/>
- <xsl:with-param name="parameters">
- <t:params>
- <t:param>
- <xsl:value-of select="$internetSiteTitleAndURL"/>
- </t:param>
- </t:params>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:when>
- </xsl:choose>
- </xsl:variable>
- <xsl:value-of select="$temp"/>
- </xsl:template>
- <xsl:template name="formatDateAccessed">
- <xsl:call-template name="formatDateCore">
- <xsl:with-param name="day">
- <xsl:call-template name="handleSpaces">
- <xsl:with-param name="field" select="b:DayAccessed"/>
- </xsl:call-template>
- </xsl:with-param>
- <xsl:with-param name="month">
- <xsl:call-template name="handleSpaces">
- <xsl:with-param name="field" select="b:MonthAccessed"/>
- </xsl:call-template>
- </xsl:with-param>
- <xsl:with-param name="year">
- <xsl:call-template name="handleSpaces">
- <xsl:with-param name="field" select="b:YearAccessed"/>
- </xsl:call-template>
- </xsl:with-param>
- <xsl:with-param name="DMY">
- <xsl:call-template name="templ_prop_APA_DateAccessed_DMY"/>
- </xsl:with-param>
- <xsl:with-param name="DM">
- <xsl:call-template name="templ_prop_APA_DateAccessed_DM"/>
- </xsl:with-param>
- <xsl:with-param name="MY">
- <xsl:call-template name="templ_prop_APA_DateAccessed_MY"/>
- </xsl:with-param>
- <xsl:with-param name="DY">
- <xsl:call-template name="templ_prop_APA_DateAccessed_DY"/>
- </xsl:with-param>
- <xsl:with-param name="displayND">no</xsl:with-param>
- </xsl:call-template>
- </xsl:template>
- <xsl:template name="formatDateCore">
- <xsl:param name="day"/>
- <xsl:param name="month"/>
- <xsl:param name="year"/>
- <xsl:param name="displayND"/>
- <xsl:param name="DMY"/>
- <xsl:param name="DM"/>
- <xsl:param name="MY"/>
- <xsl:param name="DY"/>
- <xsl:choose>
- <xsl:when test="string-length($year)=0">
- <xsl:if test="$displayND = 'yes'">
- <xsl:call-template name="templ_str_NoDateShortUnCap"/>
- </xsl:if>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="formatDateCorePrivate">
- <xsl:with-param name="day" select="$day"/>
- <xsl:with-param name="month" select="$month"/>
- <xsl:with-param name="year" select="$year"/>
- <xsl:with-param name="DMY" select="$DMY"/>
- <xsl:with-param name="DM" select="$DM"/>
- <xsl:with-param name="MY" select="$MY"/>
- <xsl:with-param name="DY" select="$DY"/>
- </xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
- <xsl:template name="formatDateCorePrivate">
- <xsl:param name="DMY"/>
- <xsl:param name="DM"/>
- <xsl:param name="MY"/>
- <xsl:param name="DY"/>
- <xsl:param name="day"/>
- <xsl:param name="month"/>
- <xsl:param name="year"/>
- <xsl:param name="withDot"/>
- <xsl:variable name="format">
- <xsl:choose>
- <xsl:when test="string-length($day) = 0 and string-length($month) = 0 and string-length($year) = 0 ">
- </xsl:when>
- <xsl:when test="string-length($day) = 0 and string-length($month) = 0 and string-length($year) != 0 ">
- <xsl:call-template name="templ_prop_SimpleDate_Y" />
- </xsl:when>
- <xsl:when test="string-length($day) = 0 and string-length($month) != 0 and string-length($year) = 0 ">
- </xsl:when>
- <xsl:when test="string-length($day) = 0 and string-length($month) != 0 and string-length($year) != 0 ">
- <xsl:value-of select="$MY"/>
- </xsl:when>
- <xsl:when test="string-length($day) != 0 and string-length($month) = 0 and string-length($year) = 0 ">
- </xsl:when>
- <xsl:when test="string-length($day) != 0 and string-length($month) = 0 and string-length($year) != 0 ">
- <xsl:call-template name="templ_prop_SimpleDate_Y" />
- </xsl:when>
- <xsl:when test="string-length($day) != 0 and string-length($month) != 0 and string-length($year) = 0 ">
- </xsl:when>
- <xsl:when test="string-length($day) != 0 and string-length($month) != 0 and string-length($year) != 0 ">
- <xsl:value-of select="$DMY"/>
- </xsl:when>
- </xsl:choose>
- </xsl:variable>
- <xsl:call-template name="StringFormatDate">
- <xsl:with-param name="format" select="$format"/>
- <xsl:with-param name="day" select="$day"/>
- <xsl:with-param name="month" select="$month"/>
- <xsl:with-param name="year" select="$year"/>
- <xsl:with-param name="withDot" select="$withDot"/>
- </xsl:call-template>
- </xsl:template>
- <xsl:template name="StringFormatDate">
- <xsl:param name="format" />
- <xsl:param name="day"/>
- <xsl:param name="month"/>
- <xsl:param name="year"/>
- <xsl:param name="withDot" />
- <xsl:variable name="prop_EndChars">
- <xsl:call-template name="templ_prop_EndChars"/>
- </xsl:variable>
- <xsl:choose>
- <xsl:when test="$format = ''"></xsl:when>
- <xsl:when test="substring($format, 1, 2) = '%%'">
- <xsl:text>%</xsl:text>
- <xsl:call-template name="StringFormatDate">
- <xsl:with-param name="format" select="substring($format, 3)" />
- <xsl:with-param name="day" select="$day"/>
- <xsl:with-param name="month" select="$month"/>
- <xsl:with-param name="year" select="$year"/>
- <xsl:with-param name="withDot" select="$withDot" />
- </xsl:call-template>
- <xsl:if test="string-length($format)=2 and withDot = 'yes' and not(contains($prop_EndChars, '%'))">
- <xsl:call-template name="templ_prop_Dot"/>
- </xsl:if>
- </xsl:when>
- <xsl:when test="substring($format, 1, 1) = '%'">
- <xsl:variable name="what" select="substring($format, 2, 1)" />
- <xsl:choose>
- <xsl:when test="$what = 'D'">
- <xsl:value-of select="$day"/>
- </xsl:when>
- <xsl:when test="$what = 'M'">
- <xsl:value-of select="$month"/>
- </xsl:when>
- <xsl:when test="$what = 'Y'">
- <xsl:value-of select="$year"/>
- </xsl:when>
- </xsl:choose>
- <xsl:call-template name="StringFormatDate">
- <xsl:with-param name="format" select="substring($format, 3)" />
- <xsl:with-param name="day" select="$day"/>
- <xsl:with-param name="month" select="$month"/>
- <xsl:with-param name="year" select="$year"/>
- <xsl:with-param name="withDot" select="$withDot" />
- </xsl:call-template>
- <xsl:if test="string-length($format)=2 and withDot='yes'">
- <xsl:variable name="temp2">
- <xsl:call-template name="handleSpaces">
- <xsl:with-param name="field">
- <xsl:call-template name="formatNameOneItem">
- <xsl:with-param name="format" select="$what"/>
- </xsl:call-template>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:variable>
- <xsl:variable name="lastChar">
- <xsl:value-of select="substring($temp2, string-length($temp2))"/>
- </xsl:variable>
- <xsl:if test="not(contains($prop_EndChars, $lastChar))">
- <xsl:call-template name="templ_prop_Dot"/>
- </xsl:if>
- </xsl:if>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="substring($format, 1, 1)" />
- <xsl:call-template name="StringFormatDate">
- <xsl:with-param name="format" select="substring($format, 2)" />
- <xsl:with-param name="day" select="$day"/>
- <xsl:with-param name="month" select="$month"/>
- <xsl:with-param name="year" select="$year"/>
- <xsl:with-param name="withDot" select="$withDot" />
- </xsl:call-template>
- <xsl:if test="string-length($format)=1">
- <xsl:if test="withDot = 'yes' and not(contains($prop_EndChars, $format))">
- <xsl:call-template name="templ_prop_Dot"/>
- </xsl:if>
- </xsl:if>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
- <xsl:template name="appendField_Dot">
- <xsl:param name="field"/>
- <xsl:variable name="temp">
- <xsl:call-template name="handleSpaces">
- <xsl:with-param name="field" select="$field"/>
- </xsl:call-template>
- </xsl:variable>
- <xsl:variable name="lastChar">
- <xsl:value-of select="substring($temp, string-length($temp))"/>
- </xsl:variable>
- <xsl:variable name="prop_EndChars">
- <xsl:call-template name="templ_prop_EndChars"/>
- </xsl:variable>
- <xsl:choose>
- <xsl:when test="string-length($temp) = 0">
- </xsl:when>
- <xsl:when test="contains($prop_EndChars, $lastChar)">
- <xsl:value-of select="$temp"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$temp"/>
- <xsl:call-template name="templ_prop_Dot"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
- <xsl:template name="templ_prop_EnumSeparator" >
- <xsl:param name="LCID" />
- <xsl:variable name="_LCID">
- <xsl:call-template name="localLCID">
- <xsl:with-param name="LCID" select="$LCID"/>
- </xsl:call-template>
- </xsl:variable>
- <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:General/b:EnumSeparator"/>
- </xsl:template>
- <xsl:template name="templ_str_RetrievedFromCap" >
- <xsl:param name="LCID" />
- <xsl:variable name="_LCID">
- <xsl:call-template name="localLCID">
- <xsl:with-param name="LCID" select="$LCID"/>
- </xsl:call-template>
- </xsl:variable>
- <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:RetrievedFromCap"/>
- </xsl:template>
- <xsl:template name="templ_str_RetrievedCap" >
- <xsl:param name="LCID" />
- <xsl:variable name="_LCID">
- <xsl:call-template name="localLCID">
- <xsl:with-param name="LCID" select="$LCID"/>
- </xsl:call-template>
- </xsl:variable>
- <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:RetrievedCap"/>
- </xsl:template>
- <xsl:template name="templ_str_FromCap" >
- <xsl:param name="LCID" />
- <xsl:variable name="_LCID">
- <xsl:call-template name="localLCID">
- <xsl:with-param name="LCID" select="$LCID"/>
- </xsl:call-template>
- </xsl:variable>
- <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:FromCap"/>
- </xsl:template>
- <xsl:template name="StringFormatName">
- <xsl:param name="format" />
- <xsl:param name="withDot" />
- <xsl:param name="upperLast"/>
- <xsl:variable name="prop_EndChars">
- <xsl:call-template name="templ_prop_EndChars"/>
- </xsl:variable>
- <xsl:choose>
- <xsl:when test="$format = ''"></xsl:when>
- <xsl:when test="substring($format, 1, 2) = '%%'">
- <xsl:text>%</xsl:text>
- <xsl:call-template name="StringFormatName">
- <xsl:with-param name="format" select="substring($format, 3)" />
- <xsl:with-param name="withDot" select="$withDot" />
- <xsl:with-param name="upperLast" select="$upperLast" />
- </xsl:call-template>
- <xsl:if test="string-length($format)=2 and withDot = 'yes' and not(contains($prop_EndChars, '%'))">
- <xsl:call-template name="templ_prop_Dot"/>
- </xsl:if>
- </xsl:when>
- <xsl:when test="substring($format, 1, 1) = '%'">
- <xsl:variable name="what" select="substring($format, 2, 1)" />
- <xsl:choose>
- <xsl:when test="(what = 'l' or what = 'L') and upperLast = 'yes'">
- <span style='text-transform: uppercase;'>
- <xsl:call-template name="formatNameOneItem">
- <xsl:with-param name="format" select="$what"/>
- </xsl:call-template>
- </span>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="formatNameOneItem">
- <xsl:with-param name="format" select="$what"/>
- </xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:call-template name="StringFormatName">
- <xsl:with-param name="format" select="substring($format, 3)" />
- <xsl:with-param name="withDot" select="$withDot" />
- <xsl:with-param name="upperLast" select="$upperLast" />
- </xsl:call-template>
- <xsl:if test="string-length($format)=2 and withDot='yes'">
- <xsl:variable name="temp2">
- <xsl:call-template name="handleSpaces">
- <xsl:with-param name="field">
- <xsl:call-template name="formatNameOneItem">
- <xsl:with-param name="format" select="$what"/>
- </xsl:call-template>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:variable>
- <xsl:variable name="lastChar">
- <xsl:value-of select="substring($temp2, string-length($temp2))"/>
- </xsl:variable>
- <xsl:if test="not(contains($prop_EndChars, $lastChar))">
- <xsl:call-template name="templ_prop_Dot"/>
- </xsl:if>
- </xsl:if>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="substring($format, 1, 1)" />
- <xsl:call-template name="StringFormatName">
- <xsl:with-param name="format" select="substring($format, 2)" />
- <xsl:with-param name="withDot" select="$withDot" />
- <xsl:with-param name="upperLast" select="$upperLast" />
- </xsl:call-template>
- <xsl:if test="string-length($format)=1">
- <xsl:if test="withDot = 'yes' and not(contains($prop_EndChars, $format))">
- <xsl:call-template name="templ_prop_Dot"/>
- </xsl:if>
- </xsl:if>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
- <xsl:template name="handleSpaces">
- <xsl:param name="field"/>
- <xsl:variable name="prop_NormalizeSpace">
- <xsl:call-template name="templ_prop_NormalizeSpace"/>
- </xsl:variable>
- <xsl:choose>
- <xsl:when test="$prop_NormalizeSpace='yes'">
- <xsl:value-of select="normalize-space($field)"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$field"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
- <xsl:template name="templ_prop_APA_DateAccessed_DMY" >
- <xsl:param name="LCID" />
- <xsl:variable name="_LCID">
- <xsl:call-template name="localLCID">
- <xsl:with-param name="LCID" select="$LCID"/>
- </xsl:call-template>
- </xsl:variable>
- <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:APA/b:DateAccessed/b:DMY"/>
- </xsl:template>
- <xsl:template name="templ_prop_APA_DateAccessed_DM" >
- <xsl:param name="LCID" />
- <xsl:variable name="_LCID">
- <xsl:call-template name="localLCID">
- <xsl:with-param name="LCID" select="$LCID"/>
- </xsl:call-template>
- </xsl:variable>
- <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:APA/b:DateAccessed/b:DM"/>
- </xsl:template>
- <xsl:template name="templ_prop_APA_DateAccessed_MY" >
- <xsl:param name="LCID" />
- <xsl:variable name="_LCID">
- <xsl:call-template name="localLCID">
- <xsl:with-param name="LCID" select="$LCID"/>
- </xsl:call-template>
- </xsl:variable>
- <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:APA/b:DateAccessed/b:MY"/>
- </xsl:template>
- <xsl:template name="templ_prop_APA_DateAccessed_DY" >
- <xsl:param name="LCID" />
- <xsl:variable name="_LCID">
- <xsl:call-template name="localLCID">
- <xsl:with-param name="LCID" select="$LCID"/>
- </xsl:call-template>
- </xsl:variable>
- <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:APA/b:DateAccessed/b:DY"/>
- </xsl:template>
- <xsl:template name="templ_str_NoDateShortUnCap" >
- <xsl:param name="LCID" />
- <xsl:variable name="_LCID">
- <xsl:call-template name="localLCID">
- <xsl:with-param name="LCID" select="$LCID"/>
- </xsl:call-template>
- </xsl:variable>
- <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:Strings/b:NoDateShortUnCap"/>
- </xsl:template>
- <xsl:template name="templ_prop_SimpleDate_Y" >
- <xsl:text>%Y</xsl:text>
- </xsl:template>
- <xsl:template name="templ_prop_EndChars" >
- <xsl:param name="LCID" />
- <xsl:variable name="_LCID">
- <xsl:call-template name="localLCID">
- <xsl:with-param name="LCID" select="$LCID"/>
- </xsl:call-template>
- </xsl:variable>
- <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:General/b:EndChars"/>
- </xsl:template>
- <xsl:template name="templ_prop_Dot" >
- <xsl:param name="LCID" />
- <xsl:variable name="_LCID">
- <xsl:call-template name="localLCID">
- <xsl:with-param name="LCID" select="$LCID"/>
- </xsl:call-template>
- </xsl:variable>
- <xsl:value-of select="/*/b:Locals/b:Local[@LCID=$_LCID]/b:General/b:Dot"/>
- </xsl:template>
- <xsl:template name="formatNameOneItem">
- <xsl:param name="format"/>
- <xsl:choose>
- <xsl:when test="$format = 'F'">
- <xsl:value-of select="b:First"/>
- </xsl:when>
- <xsl:when test="$format = 'L'">
- <xsl:value-of select="b:Last"/>
- </xsl:when>
- <xsl:when test="$format = 'M'">
- <xsl:value-of select="b:Middle"/>
- </xsl:when>
- <xsl:when test="$format = 'f'">
- <xsl:call-template name="formatNameInitial">
- <xsl:with-param name="name" select="b:First"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:when test="$format = 'm'">
- <xsl:call-template name="formatNameInitial">
- <xsl:with-param name="name" select="b:Middle"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:when test="$format = 'l'">
- <xsl:call-template name="formatNameInitial">
- <xsl:with-param name="name" select="b:Last"/>
- </xsl:call-template>
- </xsl:when>
- </xsl:choose>
- </xsl:template>
- <xsl:template name="localLCID">
- <xsl:param name="LCID"/>
- <xsl:variable name="_LCID1">
- <xsl:choose>
- <xsl:when test="$LCID!='0' and $LCID!=''">
- <xsl:value-of select="$LCID"/>
- </xsl:when>
- <xsl:when test="/b:Citation">
- <xsl:value-of select="/*/b:Locals/b:DefaultLCID"/>
- </xsl:when>
- <xsl:when test="b:LCID">
- <xsl:value-of select="b:LCID"/>
- </xsl:when>
- <xsl:when test="../b:LCID">
- <xsl:value-of select="../b:LCID"/>
- </xsl:when>
- <xsl:when test="../../b:LCID">
- <xsl:value-of select="../../b:LCID"/>
- </xsl:when>
- <xsl:when test="../../../b:LCID">
- <xsl:value-of select="../../../b:LCID"/>
- </xsl:when>
- <xsl:when test="../../../../b:LCID">
- <xsl:value-of select="../../../../b:LCID"/>
- </xsl:when>
- <xsl:when test="../../../../b:LCID">
- <xsl:value-of select="../../../../b:LCID"/>
- </xsl:when>
- <xsl:when test="../../../../../b:LCID">
- <xsl:value-of select="../../../../../b:LCID"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="/*/b:Locals/b:DefaultLCID"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:choose>
- <xsl:when test="$_LCID1!='0' and string-length($_LCID1)>0">
- <xsl:value-of select="$_LCID1"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="/*/b:Locals/b:DefaultLCID"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
- <xsl:template name="templ_prop_NormalizeSpace" >
- <xsl:param name="LCID" />
- <xsl:variable name="_LCID">
- <xsl:call-template name="localLCID">
- <xsl:with-param name="LCID" select="$LCID"/>
- </xsl:call-template>
- </xsl:variable>
- <xsl:text>no</xsl:text>
- </xsl:template>
- </xsl:stylesheet>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement