RE: [xsl] Solution for word wrapping

Subject: RE: [xsl] Solution for word wrapping
From: "Clapham, Paul" <pclapham@xxxxxxxxxxxxx>
Date: Mon, 11 Jun 2001 15:13:44 -0700
Sorry, I can't help you with XSL-FO.  For your second question:  does your
program really say "xsl:foreach", which is what you posted, or does it say


-----Original Message-----
From: wahmed001@xxxxxxxxxxxx [mailto:wahmed001@xxxxxxxxxxxx]
Sent: June 11, 2001 12:52
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: [xsl] Solution for word wrapping


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

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

 <xsl:for-each select="OBIPurchaseOrder/PurchaseOrder/PODetail/LineItem">
    <fo:block><xsl:call-template name="AcctCode"/></fo:block>

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

D:\wahmed\projects\fop>java org.apache.fop.apps.Fop -xml po.xml -xsl
-pdf po.pdf
FOP 0.18.1-DEV
file:///D:/wahmed/projects/fop/; 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



 XSL-List info and archive:

Current Thread