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

white space with word wrapping

Subject: white space with word wrapping
From: Jay Ron <jayvron@xxxxxxxxx>
Date: Tue, 26 Mar 2002 10:59:32 -0800 (PST)
word white space
Hope someone will help!!!

The following is not doing the word wrapping.  When I
pass <cellValue> without the space translation then
the word wrapping take place....

Thanks
Jay

<fo:table-cell padding="0.6pt" border="0.5pt solid
black" column-number="1">
		      					<fo:block background-color="#FFFFCC"
color="black" font-size="10pt" text-align="left"
font-family="sans-serif">
  <xsl:variable name="cellValue"
select="translate(cell1,' ','&#160;')"/>
	        					<xsl:call-template name="text_wrapper">	
<xsl:with-param name="Text" select="$cellValue"/>
</xsl:call-template> 
		        				</fo:block>		        			</fo:table-cell>


<xsl:template name="text_wrapper">
<xsl:param name="Text"/>
<xsl:choose>
<xsl:when test="string-length($Text)">	    
<xsl:value-of select="substring($Text,1,30)"/>
				      <xsl:call-template name="wrapper_helper">
<xsl:with-param name="Text"
select="substring($Text,31)"/>				</xsl:call-template>
</xsl:when>
<xsl:otherwise>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
				
<xsl:template name="wrapper_helper">
<xsl:param name="Text"/>
<xsl:value-of select="substring($Text,1,30)"/>   
<xsl:call-template name="text_wrapper">
<xsl:with-param name="Text"
select="substring($Text,31)"/>
</xsl:call-template>
</xsl:template>

__________________________________________________
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards®
http://movies.yahoo.com/

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.