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

Solution for word wrapping

Subject: Solution for word wrapping
From: wahmed001@xxxxxxxxxxxx (Wajihuddin Ahmed)
Date: Mon, 11 Jun 2001 15:52:25 -0400
fop line wrap
Hi,

I have 2 questions.

1. I am stuck in a situation that i have very narrow columns and need to wrap words around.

In the archive i have read a thread that word wrapping can be minimized to some extent by using word-spacing and/or letter-spacing. The postings were about an year old.  

Can someone please provide an example.  I need the hand holding as i am very new to XSL FO.  BTW what does the FO recommendation state about word wrapping?


2. In the following code i am getting an error.  Why am i not allowed for-each at this position?

Code:
<fo:table-body>
 <xsl:for-each select="OBIPurchaseOrder/PurchaseOrder/PODetail/LineItem">
  <fo:table-row>
   <fo:table-cell>
    <fo:block><xsl:call-template name="AcctCode"/></fo:block>
   </fo:table-cell>
   .........

<xsl:template name="AcctCode">
   <xsl:foreach select="./Distribution/DistributionAttr">
    <xsl:value-of select="AcctSegValue"/>
    <xsl:text>-</xsl:text>
   </xsl:foreach>
 </xsl:template>

Error:
D:\wahmed\projects\fop>java org.apache.fop.apps.Fop -xml po.xml -xsl po5.fo -pdf po.pdf
FOP 0.18.1-DEV
file:///D:/wahmed/projects/fop/po5.fo; Line 119; Column 58; javax.xml.transform.TransformerConfigurationException: xsl:foreach is not allowed in this position in the stylesheet!
using SAX parser org.apache.xerces.parsers.SAXParser



Thanks

-Wajih
__________________________________________________________________
Get your own FREE, personal Netscape Webmail account today at http://webmail.netscape.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.