Hi All,
I have encountered an issue where Japanese/Chinese period add a space at the
end of sentences because it is a double byte character. The translated data is
stored a database. The issue that I am having is due to this space the
superscripted bibliography references will fall on the line below the sentences
they are associated with and appear as stragglers. The documents are displayed
in a two-column format.
How can I remove the space using my XSL-FO stylesheet? I provide snippets of
the XML and XSL.
Thanks in advance for your help.
Regards,
H. Burke
========XML========
<<para>採血管は常...保存します。血清または血漿は採血後 2 時間以内に血球成分から分離します。<superscript><bibref
xref="bibTMB38970614"/></superscript></para>
This is the English equivalent:
<para>Tubes of blood are... contact with cells within two hours from the time
of collection. <superscript><bibref xref="bibTMB389614"/></superscript></para>
========XSL========
This is the Bibliography Reference (<bibref>) template. I placed the
"keep-with-previous.within-line" with value "always" in fo:basic-link and
superscript template but it doesn't make a difference.
<!--======+Bibliography Reference (bibref) Template+======-->
<xsl:template match="bibref">
<xsl:variable name="xref" select="@xref"/>
<xsl:for-each select="//bibliography/bibliomixed">
<xsl:if test="@id = $xref">
<fo:basic-link internal-destination="{generate-id(.)}"
keep-with-previous.within-line="always">
<xsl:value-of select="count(preceding-sibling::bibliomixed)+1"/>
</fo:basic-link>
</xsl:if>
</xsl:for-each>
</xsl:template>
This is the Bibliography Reference (<bibref>) template. I placed the
"keep-with-previous.within-line" with value "always" in fo:basic-link but it
doesn't make a difference.
<!--======+Superscript template+======-->
<xsl:template match="superscript">
<fo:inline font-size="5.0pt" vertical-align="super" baseline-shift="1mm"
keep-with-previous.within-line="always">
<xsl:apply-templates/>
</fo:inline>
</xsl:template>
<!--======+Paragraph Template+======-->
<xsl:template match="para">
<fo:block font-size="8pt" text-align="justify">
<xsl:apply-templates/>
</fo:block>
</xsl:template>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--