long word wrapping problem solved in Fop-0.20.1 ???

2002-03-25 Thread Jie Wang
Title: long word wrapping problem solved in Fop-0.20.1 ???





I have a word 12345678 and the space defined in
table-column is 1 inch then it spills over. If the words are spaced out
,then wrapping occurs 1 2 3 4 5 6 7 8.
So you see, fo:block wrap-option=wrap in Fop-0.20.1 is still not working ?


I would be glad if anyone of you could help me out.


Thanks,
Jie


-Original Message-
From: J.Pietschmann [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 25, 2002 11:30 AM
To: [EMAIL PROTECTED]
Subject: Re: Adding columns using XSL



Josh Campbell wrote:
 I've got a column of numbers being pulled out of XML that I want to 
 total at the bottom of the page using the XSL.
 I don't know how many rows of figures will be generated so need 
 something that can just take all the values in a column and add them up
Check out the sum() function:
 http://www.w3.org/TR/xpath#section-Number-Functions
If your XML is something like this
 records
 record
 namefoo/nameprice99.0/price
 record
 /record
 namebar/nameprice100.0/price
 /record
 /records
use it like
 xsl:template match=records
 xsl:textTotal: /xsl:text
 xsl:value-of select=sum(record/price)/
 /xsl:template
If your problem is more complicated, ask on the XSL list
(http://www.mulberrytech.com/xsl/xsl-list/), because you
have an XSLT problem rather than a FOP problem. Provide
some more details: a relevant snippet of your XML, and how
to derive the total you are after. If your computation
involves something like price*quantity per record, look
into the list archives first.


J.Pietschmann






long word wrapping problem solved in Fop-0.20.1 ???

2002-03-22 Thread Jie Wang
Title: long word wrapping problem solved in Fop-0.20.1 ???





I have a word 12345678 and the space defined in
table-column is 1 inch then it spills over. If the words are spaced out
,then wrapping occurs 1 2 3 4 5 6 7 8.
So you see, fo:block wrap-option=wrap in Fop-0.20.1 is still not working ?


I would be glad if anyone of you could help me out.


Thanks,
Jie


-Original Message-
From: Saif Khaja [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 22, 2002 1:33 PM
To: [EMAIL PROTECTED]
Subject: Re: fo:basic-link on svg image



I have SVG working in FOP, and it works great (except some minor issues, 
which is out of scope of this mail here). And I didnt post the complete svg 
code in my previous mail.


Here it is what I was trying to achieve. Each rect in this svg image would 
point to a different bookmark in the same PDF document (as shown in comments 
in the svg code).



!--  SVG code = --
fo:block xmlns:fo=http://www.w3.org/1999/XSL/Format
fo:instream-foreign-object xmlns:svg=http://www.w3.org/2000/svg


svg:svg width=600 height=400


svg:rect x=20 y=20 width=100 height=200
style=stroke:rgb(0,0,0);stroke-width:1/


!-- This RECT links to book mark - 1 --
svg:rect x=15 y=30 width=110 height=50
style=stroke:rgb(0,0,0);stroke-width:1;fill:rgb(60,237,248)/


!-- This RECT links to book mark - 2 --
svg:rect x=15 y=90 width=110 height=50
style=stroke:rgb(0,0,0);stroke-width:1;fill:rgb(60,237,248)/


!-- This RECT links to book mark - 3 --
svg:rect x=15 y=150 width=110 height=50
style=stroke:rgb(0,0,0);stroke-width:1;fill:rgb(60,237,248)/


svg:text x=75 y=50 
style=fill:rgb(0,0,0);font-size:10;font-family:Andale MonoLTUE/svg:text


/svg:svg


/fo:instream-foreign-object
/fo:block



Now, is there any way I can provide links (either external or internal) to 
an SVG image inside a pdf document.


Thanks,
Saif.





From: Joerg Pietschmann [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: FOP User [EMAIL PROTECTED]
Subject: Re: fo:basic-link on svg image
Date: Fri, 22 Mar 2002 11:09:21 +0100

Saif Khaja [EMAIL PROTECTED] wrote:
  fo:basic-link internal-destination=mark1
  svg:rect x=100 y=100 width=100 height=200/
  fo:basic-link
If you want to embed SVG data into a FO document, you have
to use a fo:instream-foreign-object.
Furthermore, i vaguely remember that you need a top level
svg:svg element.

Therefore, try:
 fo:instream-foreign-object
 svg:svg width=10mm height=20mm viewBox=0 0 101 201
 svg:rect x=0 y=0 width=100 height=200/
 /svg:svg
 /fo:instream-foreign-object

I think it would be a good idea to try the embedded SVG
code in a SVG viewer first in order to see whether it works
and embed it only after you got it working. It may still be
tricky to manage the window/viewport issues, documentation
is very scarce.
Assistance to get your SVG working is more likely to be found
on other lists. If you use Batik as standalone viewer, you
could try batik-user.

J.Pietschmann





_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.