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

Getting Extra space while converting to Text using XSL

Subject: Getting Extra space while converting to Text using XSLT FO
From: Leena Sharma <leena.s@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 15 Jul 2004 12:19:08 +0530
leena sharma
Hi ALl,
I am giving Text in my XSL in <fo:block> and doing that XSLT to generate
Text file. But its giving extra space in between the words.
This is also not consistent between all words. How to over come this
problem? Below is formatting file which I am using.
I have posted this earlier but its not coming in list.
Thanks 
Leena 
leena.s@xxxxxxxxxxxxxxxxxxx

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:fo="http://www.w3.org/1999/XSL/Format"
    version='1.0'>
<xsl:output method="text" indent="no"/>
    <xsl:template match="DocGenJob">
        <fo:root>
            <fo:layout-master-set>
                 <fo:simple-page-master master-name="mainPage"
                     page-height="300mm" page-width="20cm">
                 
                     <fo:region-body region-name="xsl-region-body"
text-align="start"/>
                     <fo:region-before region-name="xsl-region-before"
extent="20mm"/>
                     <fo:region-after region-name="xsl-region-after"
extent="20mm"/>
                 </fo:simple-page-master>
             </fo:layout-master-set>

             <fo:page-sequence master-reference="mainPage">
             <fo:static-content flow-name="xsl-region-before">
  		  <fo:block text-align="right">
		    page  <fo:page-number/> of <fo:page-number-citation
ref-id="content_terminator"/>
	    </fo:block>
	  </fo:static-content>
  
		<fo:flow  flow-name="xsl-region-body" text-align="start">
			 <fo:block>&#xA0;</fo:block>. 
			<fo:block text-align="start" space-before="6pt">
			<xsl:text>Testing the data for Exta spaces
</xsl:text>
			</fo:block>

                     <fo:block id="content_terminator"/>    
                   </fo:flow>
             </fo:page-sequence>

        </fo:root>
    </xsl:template>
</xsl:stylesheet>
*********************************************************************
Disclaimer: The information in this e-mail and any attachments is
confidential / privileged. It is intended solely for the addressee or
addressees. If you are not the addressee indicated in this message, you may
not copy or deliver this message to anyone. In such case, you should destroy
this message and kindly notify the sender by reply email. Please advise
immediately if you or your employer does not consent to Internet email for
messages of this kind.
*********************************************************************

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.