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. 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Problem with separate dat, Martin Honnen | Thread | Re: [xsl] Japanese/Chinese period, Tony Graham |
Re: [xsl] Problem with separate dat, Martin Honnen | Date | Re: [xsl] How to strip off all <xsd, Wendell Piez |
Month |