[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Japanese/Chinese period

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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.