Fop examples on web - another update

2003-01-07 Thread Darrel Riekhof
Just deployed, www.webappcore.com/fop, details of update:
Fixed version, 0.20.5rc.
Fixed advanced/giro.fo
Made images available to fo/images.fo and fo/bgimage.fo.  This was a 
little tricker than I thought.  The two fo files reference their images 
as ./../../graphics.  Tomcat thinks that . is TOMCAT_HOME/webapps, so I 
had to put /graphics as a sibling dir to the TOMCAT_HOME dir, can't 
include the images in my WAR file.  Not sure of best way to fix resolve 
this, but this will work for now.  Also included a couple of JAI jars to 
let fo/images.fo work.

svg/external PDF generates, but its having problems finding some of the 
svg resources, trace below.  I tried moving the svgs around, but 
couldn't find a place to put them that would make trace go away.

I'm wondering if there is a way to re-write all the external resource 
references in the fo examples so that they would work better with a web 
application, as well as a regular application.

Darrel
[ERROR] Error while creating area : Error with image URL: boxes.svg (No 
such file or directory) and no base URL is specified
[ERROR] Error while creating area : Error with image URL: multi.svg (No 
such file or directory) and no base URL is specified
[ERROR] Error while creating area : Error with image URL: view.svg (No 
such file or directory) and no base URL is specified
[ERROR] svg graphic could not be built: null:-1
An I/O error occured while processing the URI 'file:ref.svg#FOP' 
specified on the element use
org.apache.batik.bridge.BridgeException: null:-1
An I/O error occured while processing the URI 'file:ref.svg#FOP' 
specified on the element use
   at 
org.apache.batik.bridge.BridgeContext.getReferencedElement(BridgeContext.java:457)
   at 
org.apache.batik.bridge.SVGUseElementBridge.createGraphicsNode(SVGUseElementBridge.java:79)
   at 
org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(GVTBuilder.java:182)
   at 
org.apache.batik.bridge.GVTBuilder.buildComposite(GVTBuilder.java:148)
   at 
org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(GVTBuilder.java:188)
   at 
org.apache.batik.bridge.GVTBuilder.buildComposite(GVTBuilder.java:148)
   at org.apache.batik.bridge.GVTBuilder.build(GVTBuilder.java:76)
   at 
org.apache.fop.render.pdf.PDFRenderer.renderSVGDocument(PDFRenderer.java:513)


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


status of txt rendering was: RE: blanks and TXTRenderer

2003-01-07 Thread alex elsholz
Hi,

 but I doubt that it is high on anybody's priority list.

;-)

yes it seems the txt rendering has a very mean status.

in my opinion the txtrenderer is good to retail the fop output
(for example to send it directly to a printer using the escape 
sequences, because many printres couldnt handle graphic
print and so i couldnt use the awtrenderer. i must handle it
with an own xsl (no fo)). 

alex

-- 
+++ GMX - Mail, Messaging  more  http://www.gmx.net +++
NEU: Mit GMX ins Internet. Rund um die Uhr für 1 ct/ Min. surfen!


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



problem with table header

2003-01-07 Thread Mihael Knezevic
hi,

i got a little problem with table rendering.

my problem:

i have a table with a header row. as i dynamically generate the content
of the headers i don't know how long the text for the header will be. so
i sometimes get a very long header, which breaks into a second header
row. now i would like to generally make the header 2 rows wide. how do i
do this? i tried the attribute number-rows-spanned but it didn't work
(could also be my mistake). is it supported by fop?

if it is supported, could someone give a small example?

thanx in advance.

mk

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problem: Expanding tables and background colours

2003-01-07 Thread Chris Rowe

I don't want to set the background colour of the table because I want 
to highlight only certain columns. I'm setting the background colour of 
the table cell...

fo:table-cell background-color=#cde8f7
fo:block text-align=right
xsl:value-of select=Amount /
/fo:block
/fo:table-cell

But I can't find a way for the last table cell to stretch to the full 
height of the table. Any ideas?

Cheers,
Chris
- Original Message -
from: Joerg Pietschmann [EMAIL PROTECTED]
date: Monday, January 6, 2003 9:33 pm
subject: Re: Problem: Expanding tables and background colours

 On Monday 06 January 2003 17:42, Chris Rowe wrote:
  I have a table of fixed height which can contain a varying 
 number of
  lines of data. I've set the background colour of some columns in 
 order to highlight them. I need a way to make sure the 
 highlighting of the
  columns continues all the way to the bottom of the table.
 
 Have you tried
 fo:table background-color=...
 or
 fo:block background-color=...
   fo:table ...
 (Well, I didn't)
 
 J.Pietschmann
 
 ---
 --
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problem: Expanding tables and background colours

2003-01-07 Thread VipinJ

As you know there is an option :
number-columns-spanned=no

Eg :

fo:table-cell number-columns-spanned=6
   fo:block font-size=12pt  font-weight=boldxsl:value-of select
=./accountDesc//fo:block
/fo:table-cell
This is used for a cell to occupy multiple columns.

I belive there is an option called
number-rows-spanned
Please use that after reference...





  
Chris Rowe  
  
[EMAIL PROTECTED]To: [EMAIL PROTECTED] 
 
ange.netcc:
  
 Subject: Re: Problem: Expanding 
tables and   
01/07/03 background colours 
  
02:50 PM
  
Please  
  
respond to  
  
fop-user
  

  

  





I don't want to set the background colour of the table because I want
to highlight only certain columns. I'm setting the background colour
of
the table cell...

fo:table-cell background-color=#cde8f7
fo:block text-align=right
xsl:value-of select=Amount /
/fo:block
/fo:table-cell

But I can't find a way for the last table cell to stretch to the full
height of the table. Any ideas?

Cheers,
Chris
- Original Message -
from: Joerg Pietschmann [EMAIL PROTECTED]
date: Monday, January 6, 2003 9:33 pm
subject: Re: Problem: Expanding tables and background colours

 On Monday 06 January 2003 17:42, Chris Rowe wrote:
  I have a table of fixed height which can contain a varying
 number of
  lines of data. I've set the background colour of some columns in
 order to highlight them. I need a way to make sure the
 highlighting of the
  columns continues all the way to the bottom of the table.

 Have you tried
 fo:table background-color=...
 or
 fo:block background-color=...
   fo:table ...
 (Well, I didn't)

 J.Pietschmann

 ---
 --
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: blanks and txtrenderer

2003-01-07 Thread Fabrizio Tringali
I don't know why, but I solve the problem of inserted empty lines 
specifying   line-height=10pt   for each row in tables

hope this help

From: alex elsholz [EMAIL PROTECTED]

 Hi,
 
 i've problems with the layout using the txt-renderer. sometimes
 one blank comes to 3, sometimes to 10, sometimes to one.
 Sometimes empty lines were inserted. When i use the pdf or the awt
 renderer it works fine. has anybody an idea?
 
 alex


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



SVG Text to PDF Text using FOP 2.0.5rc

2003-01-07 Thread Eric Prevost
Does somebody knows how convert an SVG text to an PDF with text.

when i try it  using this fo:block my result is a good pdf but with line
art.


fo:block
fo:external-graphic src='testfont001.svg'/
/fo:block

my svg :
style type=text/css![CDATA[
text.t1 {font-family:'Arial',sans-serif;font-size:40;fill:#00}
]]/style
g id=Page_1
text class=t1tspan x=1588 y=149SOP/tspantspan x=1672 y
=149
/tspantspan x=1730 y=149:/tspantspan x=1741 y
=149
/tspantspan x=1815 y=149LX/tspantspan x=1864 y
=149-/tspan
/text
text class=t1tspan x=227 y=3282C:/tspan/text
text class=t1tspan x=445,501,561,621,677 y
=559TYVEK/tspan/text
/g
/svg


E.P.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: problem with table header

2003-01-07 Thread J.Pietschmann
Mihael Knezevic wrote:
i have a table with a header row. as i dynamically generate the content
of the headers i don't know how long the text for the header will be. so
i sometimes get a very long header, which breaks into a second header
row. now i would like to generally make the header 2 rows wide. how do i
do this? i tried the attribute number-rows-spanned but it didn't work
(could also be my mistake). is it supported by fop?
I don't understand. Table rows have to be put into the table
explicitely, therefore a long header (whatever you mean with
this) will never break into a second header row. I guess
you got a header table cell with two lines, which is something
different.
Row spanning is implemented, but you can't span more than one
table row if there is only one.
Can you reformulate your question and perhaps show a small
snippet of your FO code demonstrating your current approach?
J.Pietschmann

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Problem: Expanding tables and background colours

2003-01-07 Thread J.Pietschmann
Chris Rowe wrote:
But I can't find a way for the last table cell to stretch to the full 
height of the table. Any ideas?
Last cell or last table row?
You can try to add height=100% on the last fo:table-row, however,
I don't know whether this is implemented and will work the way it
is expected to work.
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: FOP completes rendering when using lo-res graphics, but not with hi-res

2003-01-07 Thread J.Pietschmann
Graham Hannington wrote:
Is there some memory restriction here?  I'd really like to use those
high-res graphics (in total, the _printonly PNGs amount to 1.58MB).
Probably. You should get a MemoryOverflowException somewhere, check
whatever logs you have.
Try to give more memory to the JVM, see the FOP FAQ for more hints.
J.Pietschmann

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: problem with table header

2003-01-07 Thread Mihael Knezevic
sorry for my poor explanation of my problem.

you are right with your assumption that i set explicitly the header and
that it won't break into a second row but in a second line in the same
cell. i wasn't that clear to me 'till now.

but the problem remains: i got different table header height because it
sometimes needs one and sometimes two lines for the header.

is there a possibility to say that i want the header (table cell from
header) as high as two lines (relativ or absolut value) so that there
all will look alike?

-Original Message-
From: J.Pietschmann [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 07, 2003 2:08 PM
To: [EMAIL PROTECTED]
Subject: Re: problem with table header


Mihael Knezevic wrote:
 i have a table with a header row. as i dynamically generate the 
 content of the headers i don't know how long the text for the header 
 will be. so i sometimes get a very long header, which breaks into a 
 second header row. now i would like to generally make the header 2 
 rows wide. how do i do this? i tried the attribute number-rows-spanned

 but it didn't work (could also be my mistake). is it supported by fop?

I don't understand. Table rows have to be put into the table
explicitely, therefore a long header (whatever you mean with
this) will never break into a second header row. I guess
you got a header table cell with two lines, which is something
different. Row spanning is implemented, but you can't span more than one
table row if there is only one. Can you reformulate your question and
perhaps show a small snippet of your FO code demonstrating your current
approach?

J.Pietschmann



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: problem with table header

2003-01-07 Thread J.Pietschmann
Mihael Knezevic wrote:
but the problem remains: i got different table header height because it
sometimes needs one and sometimes two lines for the header.
is there a possibility to say that i want the header (table cell from
header) as high as two lines (relativ or absolut value) so that there
all will look alike?
You can set the height property on the fo:table-row in the header.
As a rule of thumb, use twice the font size, for example
height=2*12pt. You can alos use one of the property functions
to retrive the current font size, look it up in the XSL spec.
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: problem with table header

2003-01-07 Thread Mihael Knezevic
thanx. i'll try it.

-Original Message-
From: J.Pietschmann [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 07, 2003 3:11 PM
To: [EMAIL PROTECTED]
Subject: Re: problem with table header


Mihael Knezevic wrote:
 but the problem remains: i got different table header height because 
 it sometimes needs one and sometimes two lines for the header.
 
 is there a possibility to say that i want the header (table cell from
 header) as high as two lines (relativ or absolut value) so that there 
 all will look alike?

You can set the height property on the fo:table-row in the header. As a
rule of thumb, use twice the font size, for example height=2*12pt. You
can alos use one of the property functions to retrive the current font
size, look it up in the XSL spec.

J.Pietschmann


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: FOP completes rendering when using lo-res graphics, but not w ith hi-res

2003-01-07 Thread Graham Hannington
 Probably. You should get a MemoryOverflowException somewhere, check
 whatever logs you have.
 Try to give more memory to the JVM, see the FOP FAQ for more hints.


Thank you so much!

I added -Xmx200m between the java and -cp in fop.bat, and now FOP
completely renders my document with high-res graphics! :-)

(The FOP FAQ, at http://xml.apache.org/fop/faq.html, has a memory settings
of the JVM hyperlink that, not that helpfully, points to the FOP home
page.)

Where would that MemoryOverflowException be reported?  I'm currently
forwarding FOP messages to a log file, but it doesn't contain any such
error.

On that subject, is there any way to get FOP to report the .fo source line
number at which an error occurs?  All my log contains is errors such as:

[ERROR] children of list-blocks must be list-items

A line number would sure make it easier to track down errors in my (1.5MB)
.fo file.


Thanks again for the memory tip, that's made my day :-).

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problem: Expanding tables and background colours

2003-01-07 Thread Chris Bowditch
Hi Chris,
did you try using
fo:table-column column-number=1 background-color=#cde8f7/
Regards,
Chris

From: Chris Rowe [EMAIL PROTECTED]
I don't want to set the background colour of the table because I want
to highlight only certain columns. I'm setting the background colour of
the table cell...
fo:table-cell background-color=#cde8f7
fo:block text-align=right
xsl:value-of select=Amount /
/fo:block
/fo:table-cell
But I can't find a way for the last table cell to stretch to the full
height of the table. Any ideas?
Cheers,
Chris
- Original Message -
from: Joerg Pietschmann [EMAIL PROTECTED]
date: Monday, January 6, 2003 9:33 pm
subject: Re: Problem: Expanding tables and background colours
 On Monday 06 January 2003 17:42, Chris Rowe wrote:
  I have a table of fixed height which can contain a varying
 number of
  lines of data. I've set the background colour of some columns in
 order to highlight them. I need a way to make sure the
 highlighting of the
  columns continues all the way to the bottom of the table.

 Have you tried
 fo:table background-color=...
 or
 fo:block background-color=...
   fo:table ...
 (Well, I didn't)

 J.Pietschmann

 ---
 --
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

_
STOP MORE SPAM with the new MSN 8 and get 2 months FREE* 
http://join.msn.com/?page=features/junkmail

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: FOP completes rendering when using lo-res graphics, but not w ith hi-res

2003-01-07 Thread J.Pietschmann
Graham Hannington wrote:
(The FOP FAQ, at http://xml.apache.org/fop/faq.html, has a memory settings
of the JVM hyperlink that, not that helpfully, points to the FOP home
page.)
This will be fixed once the site is regenerated.
Where would that MemoryOverflowException be reported?  I'm currently
forwarding FOP messages to a log file, but it doesn't contain any such
error.
It depends how you run FOP. Check the facility which catches
the stderr output of the process.
On that subject, is there any way to get FOP to report the .fo source line
number at which an error occurs?
No. You are invited to add this feature.
J.Pietschmann

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


A question about tables

2003-01-07 Thread bhati001
I am using Fop in a servlet based application to generate pdfs using xslt.

I wanted to post a question on this list to inquire whether dynamic table
resizing has been built into fop. The reason is that my data is xml and I
generate my pdfs at runtime, so i really do not know the length or even the
number of columns that my pdf is going to have.

Please let me know.

Thanks,

B.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: A question about tables

2003-01-07 Thread Graham Hannington
Not a direct answer to your question, I'm afraid, but here's what I do in my
HTML-FO stylesheet, for tables whose column widths are not specified:

xsl:variable name=width
select=concat(format-number(floor(number(substring-before($column-width,
'mm')) div count(html:tr[child::html:td][1]/html:td)), '#'), 'mm') /
xsl:for-each select=html:tr[child::html:td][1]/html:td
  fo:table-column
xsl:attribute name=column-widthxsl:value-of select=$width
//xsl:attribute
  /fo:table-column
/xsl:for-each

($column-width is a predefined string variable that contains the width of
the printable area on the page: say, 160mm)

Basically, this divides the available width by the number of td (table
cell) tags in a table row, and then outputs a fo:table-column tag for each
table column.

If you can determine from your XML how many columns are in your table, then
you can at least specify equal column widths, as above.

(The above XSL snippet assumes that the row does not contain spanned cells.
Any advice on improving this gratefully received.)

Graham Hannington

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problem: Expanding tables and background colours

2003-01-07 Thread Chris Rowe

I've had another go trying to get fo:table-column column-number=1 
background-color=#cde8f7/ to work but the highlighted column still 
doesn't stretch to the bottom of the table. The background colour stops 
when the text stops. If I print too many extra blank lines then the 
table expands - is there a way to force the table to stop expanding?

Thanks,
Chris


- Original Message -
from: Chris Bowditch [EMAIL PROTECTED]
date: Tuesday, January 7, 2003 2:29 pm
subject: Re: Problem: Expanding tables and background colours

 Hi Chris,
 
 did you try using
 
 fo:table-column column-number=1 background-color=#cde8f7/
 
 Regards,
 
 Chris
 
 
 From: Chris Rowe [EMAIL PROTECTED]
 
 
 I don't want to set the background colour of the table because I want
 to highlight only certain columns. I'm setting the background 
 colour of
 the table cell...
 
  fo:table-cell background-color=#cde8f7
  fo:block text-align=right
  xsl:value-of select=Amount /
  /fo:block
  /fo:table-cell
 
 But I can't find a way for the last table cell to stretch to the full
 height of the table. Any ideas?
 
 Cheers,
 Chris
 - Original Message -
 from: Joerg Pietschmann [EMAIL PROTECTED]
 date: Monday, January 6, 2003 9:33 pm
 subject: Re: Problem: Expanding tables and background colours
 
   On Monday 06 January 2003 17:42, Chris Rowe wrote:
I have a table of fixed height which can contain a varying
   number of
lines of data. I've set the background colour of some 
 columns in
   order to highlight them. I need a way to make sure the
   highlighting of the
columns continues all the way to the bottom of the table.
  
   Have you tried
   fo:table background-color=...
   or
   fo:block background-color=...
 fo:table ...
   (Well, I didn't)
  
   J.Pietschmann
  
   ---
 
   --
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 
 --
 ---
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 _
 STOP MORE SPAM with the new MSN 8 and get 2 months FREE* 
 http://join.msn.com/?page=features/junkmail
 
 
 ---
 --
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Gradients with svg

2003-01-07 Thread Debra Mendelson, CCE
I have a simple svg file that works fine with an SVG viewer.  The
interesting part is that it has a gradient for a fill.

When I run it through fop 0.20.4 the gradient does not come up.  Am I doing
something wrong?

SVG FILE (simple.svg)
?xml version=1.0 standalone=no?
!DOCTYPE svg PUBLIC -//W3C//DTD SVG 2802//EN

http://www.w3.org/TR/2000/CR-SVG-2802/DTD/svg-2802.dtd;
svg width=600 height=500 xml:space=preserve
linearGradient id=fill1 gradientTransform=rotate(105)
stop offset=0% style=stop-color:#FF/
stop offset=30% style=stop-color:#AA/
stop offset=85% style=stop-color:#00/
/linearGradient
g style=fill:red; stroke:#00
rect x=0 y=0 width=150 height=150/
/g
g style=fill:url('#fill1'); stroke:#00
rect x=50 y=50 width=150 height=150/
/g
/svg

FO FILE
?xml version=1.0 encoding=utf-8?
fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
fo:layout-master-set
fo:simple-page-master master-name=simple
page-height=29.7cm
page-width=21cm
margin-top=1cm
margin-bottom=2cm
margin-left=2.5cm
margin-right=2.5cm
fo:region-body margin-top=3cm/
fo:region-before extent=3cm/
fo:region-after extent=1.5cm/
/fo:simple-page-master
/fo:layout-master-set
fo:page-sequence master-reference=simple
fo:flow flow-name=xsl-region-body
fo:block text-align=centersimple 
gradient/fo:block
fo:block space-before.optimum=15pt
fo:external-graphic 
src=file:simple.svg/
/fo:block
/fo:flow !-- closes the flow element--
/fo:page-sequence !-- closes the page-sequence --
/fo:root


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Combining JavaScript with Fop application

2003-01-07 Thread J.Pietschmann
Meir wrote:
this question for the people that have or using the Fop application
(http://xml.apache.org/fop/)
i did read the manual and did read some of the news groups msg's but i
didn't understand
how can i use JavaScript with Fop ? in the .xsl file that creating the
xsl-fo ?
do i need program new extension ? is there any extension?
FOP uses by default Xalan for XSLT. Xalan has an extension
element for defining JS functions. You have to look into the
Xalan docs for details.
However, why do you think you need JS in your transformation?
Unles you want to use XSLT as an do-all kitchen sink, this
is usually unnecessary.
The XSL list
  http://www.mulberrytech.com/xsl/xsl-list/
deals in more details with XSLT specific questions.
J.Pietschmann

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Combining JavaScript with Fop application

2003-01-07 Thread Matthew L. Avizinis
What you're writing about here is how to use Javascript with Xalan.  When
you run FOP from the command line, it is transparent to the user that it is
calling and running Xalan to create the fo file before FOP itself runs on
the fo file.  If you look at the Xalan page of apache.org, you'll see a
number of examples of how to use Javascript.  If you need any more help
after that, just send another message and I'll be glad to help, as I use
Java and Javascript extension functions to Xalan in my own work.
   Matthew L. Avizinis mailto:[EMAIL PROTECTED]
Gleim Publications, Inc.
   4201 NW 95th Blvd.
 Gainesville, FL 32606
(352)-375-0772 ext. 101
  www.gleim.com http://www.gleim.com


 -Original Message-
 From: Meir [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, January 08, 2003 2:14 PM
 To: [EMAIL PROTECTED]
 Subject: Combining JavaScript with Fop application


 Hello
 this question for the people that have or using the Fop application
 (http://xml.apache.org/fop/)
 i did read the manual and did read some of the news groups msg's but i
 didn't understand
 how can i use JavaScript with Fop ? in the .xsl file that creating the
 xsl-fo ?
 do i need program new extension ? is there any extension?
 im really in dead end here
 can someone give me please example ? or some derection for me to
 understand
 how to use js with Fop?
 thank for the help



 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Combining JavaScript with Fop application

2003-01-07 Thread Meir
Hello
tnx for the fast reply .
well i have some custom functions i need to operate on xml nodes .and maybe
i will need more js support
for formatting date ,time , numbers in all sorts of  NOT standard ways .
any way i only found in Xalan site only this example for using js , but i
did not understand how can i combine my
custom js scripts .( do i need to program new extension in java?? )
 http://xml.apache.org/xalan-j/extensions.html#supported-lang
tnx for the help



- Original Message -
From: J.Pietschmann [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, January 07, 2003 1:40 PM
Subject: Re: Combining JavaScript with Fop application


 Meir wrote:
  this question for the people that have or using the Fop application
  (http://xml.apache.org/fop/)
  i did read the manual and did read some of the news groups msg's but i
  didn't understand
  how can i use JavaScript with Fop ? in the .xsl file that creating the
  xsl-fo ?
  do i need program new extension ? is there any extension?

 FOP uses by default Xalan for XSLT. Xalan has an extension
 element for defining JS functions. You have to look into the
 Xalan docs for details.
 However, why do you think you need JS in your transformation?
 Unles you want to use XSLT as an do-all kitchen sink, this
 is usually unnecessary.
 The XSL list
http://www.mulberrytech.com/xsl/xsl-list/
 deals in more details with XSLT specific questions.

 J.Pietschmann




 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Combining JavaScript with Fop application

2003-01-07 Thread Meir
Hello
well yeah i know the process of using xml--xslt--fo--pdf
and its working just fine , but the problem is when i try to combine js in
my xslt file
the xsl file that creates the xsl-fo file from the xml data 
from the  one example i found in
http://xml.apache.org/xalan-j/extensions.html#supported-lang
i did not understand how can i make my own js script ... what is the process
( for dummy's)
live examples will be very helpful..
thanks!

- Original Message -
From: Matthew L. Avizinis [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, January 07, 2003 1:40 PM
Subject: RE: Combining JavaScript with Fop application


 What you're writing about here is how to use Javascript with Xalan.  When
 you run FOP from the command line, it is transparent to the user that it
is
 calling and running Xalan to create the fo file before FOP itself runs on
 the fo file.  If you look at the Xalan page of apache.org, you'll see a
 number of examples of how to use Javascript.  If you need any more help
 after that, just send another message and I'll be glad to help, as I use
 Java and Javascript extension functions to Xalan in my own work.
Matthew L. Avizinis mailto:[EMAIL PROTECTED]
 Gleim Publications, Inc.
4201 NW 95th Blvd.
  Gainesville, FL 32606
 (352)-375-0772 ext. 101
   www.gleim.com http://www.gleim.com


  -Original Message-
  From: Meir [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, January 08, 2003 2:14 PM
  To: [EMAIL PROTECTED]
  Subject: Combining JavaScript with Fop application
 
 
  Hello
  this question for the people that have or using the Fop application
  (http://xml.apache.org/fop/)
  i did read the manual and did read some of the news groups msg's but i
  didn't understand
  how can i use JavaScript with Fop ? in the .xsl file that creating the
  xsl-fo ?
  do i need program new extension ? is there any extension?
  im really in dead end here
  can someone give me please example ? or some derection for me to
  understand
  how to use js with Fop?
  thank for the help
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]