Closed ailie-s closed 2 years ago
Possible solution (appears to work for EAC v2 Tag Library):
<xsl:template name="secondpage">
<fo:block font-weight="bold" space-after="6pt" padding-before="-50pt">
<xsl:for-each** select="tei:docTitle/tei:titlePart">
<xsl:choose>
<xsl:when test="not(position() ne last())">
<xsl:value-of select="."/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="."/>
<xsl:text> </xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
<xsl:text>, </xsl:text>
<xsl:value-of select="tei:docEdition"/>
</fo:block>
[...]
Resolved in #92 - thanks @ailie-s !
There is an additional space appearing between the title and edition on page 2 of the tag library. EG: Encoded Archival Context - Corporate Bodies, Persons, and Families (EAC-CPF) Tag Library draft Version EAC-CPF 2.0 , 2021 Edition
Creator of issue
The issue relates to
Wanted change/feature
Reporting a bug
Suggested Solution
<xsl:text> </xsl:text>
in the below code from tagLibray2pdf.xsl file, however this also removed the space between the main and additional titles.<xsl:template name="secondpage">
<fo:block font-weight="bold" space-after="6pt" padding-before="-50pt">
<xsl:for-each** select="tei:docTitle/tei:titlePart">
<xsl:value-of select="."/>
<xsl:text> </xsl:text>
</xsl:for-each>
<xsl:text>, </xsl:text>
<xsl:value-of select="tei:docEdition"/>
</fo:block>
Steps to Reproduce (for bugs)
1. 2. 3. 4.
Context
Your Environment can be a clue to a bug