Currently, when I insert a reference, Word automatically inserts a space before the citation. I have already edited the .xsl code to make the reference number superscript, but I do not see what I need to delete to remove the space.
Any and all help would be much appreciated.
Please find the relevant edited code below:
<xsl:for-each select="b:Citation">
<xsl:variable name="SourceType">
<xsl:value-of select="b:Source/b:SourceType"/>
</xsl:variable>
<xsl:choose>
<xsl:when test="$SourceType = 'Book' or
$SourceType = 'BookSection' or
$SourceType = 'Film' or
$SourceType = 'Case' or
$SourceType = 'JournalArticle' or
$SourceType = 'ArticleInAPeriodical' or
$SourceType = 'Misc' or
$SourceType = 'ElectronicSource' or
$SourceType = 'Report' or
$SourceType = 'DocumentFromInternetSite' or
$SourceType = 'Art' or
$SourceType = 'SoundRecording' or
$SourceType = 'Performance' or
$SourceType = 'Interview' or
$SourceType = 'InternetSite' or
$SourceType = 'Patent' or
$SourceType = 'ConferenceProceedings' ">
<html xmlns="http://www.w3.org/TR/REC-html40">
<body><xsl:element name="sup">
<xsl:variable name ="cPages">
<xsl:value-of select="count(b:Pages)" />
</xsl:variable>
<xsl:variable name ="initValueOfPages">
<xsl:value-of select="b:Pages"/>
</xsl:variable>
<xsl:variable name ="pages">
<xsl:choose>
<xsl:when test="contains($initValueOfPages, '-')">
<xsl:value-of select="concat('pp. ',$initValueOfPages)"/>
</xsl:when>
<xsl:when test="contains($initValueOfPages, ',')">
<xsl:value-of select="concat('pp. ',$initValueOfPages)"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="concat('p. ',$initValueOfPages)"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:if test="b:FirstAuthor">
<xsl:call-template name ="templ_prop_SecondaryOpen"/>
</xsl:if>
<xsl:call-template name="RefOrder"/>
<xsl:if test="count(b:Pages)>0">
<xsl:call-template name="displayPageOrPages" >
<xsl:with-param name="pages" select ="$pages"/>
</xsl:call-template>
</xsl:if>
<xsl:if test="b:LastAuthor">
<xsl:call-template name="templ_prop_SecondaryClose"/>
</xsl:if>
<xsl:if test="not(b:LastAuthor)">
<xsl:call-template name="templ_prop_ListSeparator"/>
<xsl:call-template name ="templ_prop_Space"/>
</xsl:if>
</xsl:element></body>
</html>
</xsl:when>
</xsl:choose>
</xsl:for-each>
</xsl:template>