[xsl] Japanese/Chinese period

Subject: [xsl] Japanese/Chinese period
From: Horace Burke <xmlmarkup@xxxxxxxxx>
Date: Mon, 17 Aug 2009 10:02:05 -0700 (PDT)
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.

H. Burke


<<para>f!h!g.!c/e88...d?e-cc>cch!f8c>cc/h!f<?c/f!h!e> 2
fid;%ec+h!gfecc	ei"cc>cc<superscript><bibref

This is the English equivalent:
<para>Tubes of blood are... contact with cells within two hours from the time
of collection. <superscript><bibref


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(.)}"
	     <xsl:value-of select="count(preceding-sibling::bibliomixed)+1"/>

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"

<!--======+Paragraph Template+======-->
<xsl:template match="para">
   <fo:block font-size="8pt" text-align="justify">

Do You
Tired of spam?  Yahoo! Mail has the best spam protection around

Current Thread