Re: XMLSpy - FOP

2002-02-28 Thread Peter B. West
Matt,
I'm sure Arved will have something to say about this, but are you 
subscribed to SourceForge's xslfo-proc list?  Have you seen Arved's perl 
prototyping code?  This is a *difficult* problem.  A large part of the 
spec can be implemented relatively easily, but if you get the design of 
the first, say, 85% wrong, the last 15% becomes well-nigh impossible.

I *have* been living off savings and credit cards for over 12 months 
now, initially struggling with the original code base before deciding to 
start from scratch, and I can say that I am beginning to get a handle on 
the design.  Good luck.

Peter
Savino, Matt C wrote:
I'm 99% sure there is a huge corporate demand for an FO-PDF engine right
NOW. Those guys at RenderX are nice but unresponsive, their product is on
par with FOP at best, and the're too busy to breathe selling $5k/CPU
licenses! 

I'm about ready to quit and starting working on one myself. Anyone who knows
the PDF spec inside and out and can live off savings or credit cards for 6
months is welcome to join.



Re: markers

2002-02-28 Thread Christian Geisert
Savino, Matt C wrote:
So that's two new jar files, logging errors, no benchmarking output and
broken markers in .20.3. Looks like I'm going to have to live w/o

Hey you forgot removed PNG support ;-)
Which benchmarking output do you mean ? There is some info if you invoke 
fop with the -d switch.

keep-with-next until the redesign.
Matt Savino

Christian



RE: XMLSpy - FOP

2002-02-28 Thread Savino, Matt C
Thanks Peter. I'm really glad to hear some positive news about the redesign!
I'll try to get on that list and check out the code. I like reading Perl,
it's therapeutic when you have to deal with Java all day long. I'm sure FOP
is a very tough problem. I regretted the tone of that last email as soon as
I spit it out. I'm just not having a very great day. I know from watching
the fop-dev list for the last year or so that all the active players on FOP
are very concientious, hard-working and know what they're doing. Maybe you
can look at my little outburst as a rare window into the frustrations that
some of the end users are feeling but have the tact to withhold.

Just to give you an idea of my personal situation w/FOP, I work for a
company of about 27,000 people. In the course of fighting to convince the
higher-ups that we could do our little project just fine without Cognos or
Crystal Reports, I've sort of become the chief FOP evangelist/programmer.
(When you looked at our requirements and resources, building really did make
more sense than buying--which is the whole promise of J2EE right?) We're
trying to pull together a corporate culture that could have entire separate
teams working on similar projects who didn't even know of the other's
existstence. People are starting to look at my PDF solution. I'm just afraid
they're going to look behind the curtain and see that I can't generate five
10-page reports at once (or one 100-page report) on one instance of Weblogic
running on $80k worth of hardware--w/o running out of memory or coming to a
standstill. I like where it sounds like you're going with the memory issues.
I don't think the speed is a showstopper, but those out of memory issues
sure are. I've upped my max-heap size to 768M. Anyone know of major pitfalls
to this? (I have 1GB available per instance.) 

I guess even the roughest non-binding ETA on the redesign might help some of
us sleep better at night - 6 mos? 1 year? 2 years? more? And just out of
curiosity, why are you starving to finish this - love? future consulting
gigs? both?

Thanks again, that's all the rambling I have in me for now. 


Matt Savino
Senior Systems Analyst
Quest Diagnostics Clinical Trials



> -Original Message-
> From: Peter B. West [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, February 27, 2002 4:43 PM
> To: [EMAIL PROTECTED]
> Subject: Re: XMLSpy - FOP
> 
> 
> Matt,
> 
> I'm sure Arved will have something to say about this, but are you 
> subscribed to SourceForge's xslfo-proc list?  Have you seen 
> Arved's perl 
> prototyping code?  This is a *difficult* problem.  A large 
> part of the 
> spec can be implemented relatively easily, but if you get the 
> design of 
> the first, say, 85% wrong, the last 15% becomes well-nigh impossible.
> 
> I *have* been living off savings and credit cards for over 12 months 
> now, initially struggling with the original code base before 
> deciding to 
> start from scratch, and I can say that I am beginning to get 
> a handle on 
> the design.  Good luck.
> 
> Peter
> 
> Savino, Matt C wrote:
> 
> >I'm 99% sure there is a huge corporate demand for an FO-PDF 
> engine right
> >NOW. Those guys at RenderX are nice but unresponsive, their 
> product is on
> >par with FOP at best, and the're too busy to breathe selling $5k/CPU
> >licenses! 
> >
> >I'm about ready to quit and starting working on one myself. 
> Anyone who knows
> >the PDF spec inside and out and can live off savings or 
> credit cards for 6
> >months is welcome to join.
> >
> 
> 
> 



Re: markers

2002-02-28 Thread Bart Locanthi
Hey you forgot removed PNG support ;-)
is this because of the jimi license problem?
hey maybe there's a freeware imaging package that isn't so insistent on 
OutputStreams? i hate having to convert bytes to chars for use in JSP.



RE: XMLSpy - FOP

2002-02-28 Thread Arved Sandstrom
-Original Message-
From: Savino, Matt C [mailto:[EMAIL PROTECTED]
Sent: February 27, 2002 9:15 PM
To: '[EMAIL PROTECTED]'
Subject: RE: XMLSpy - FOP

Thanks Peter. I'm really glad to hear some positive news about the redesign!
I'll try to get on that list and check out the code. I like reading Perl,
it's therapeutic when you have to deal with Java all day long. I'm sure FOP
is a very tough problem. I regretted the tone of that last email as soon as
I spit it out. I'm just not having a very great day. I know from watching
the fop-dev list for the last year or so that all the active players on FOP
are very concientious, hard-working and know what they're doing. Maybe you
can look at my little outburst as a rare window into the frustrations that
some of the end users are feeling but have the tact to withhold.
[ SNIP ]

-End Of Original Message-

Hi, Matt

Let me clarify. The redesign is what Keiron & Karen (primarily) are working
on. It is a redesign for FOP.

What I started last fall is another project, which is intended to produce a
C/C++ XSL-FO formatter. This is called xslfo-proc, and is on Sourceforge. I
had a number of reasons for diverting my energies from FOP, and they had to
do with limited free time last summer (due to intense real work) and a
general burnout with how complicated FOP had gotten. xslfo-proc got off to a
slow start, mainly because the company I was working for in real life went
bust in October, and it's only this month that I got back into it.

I did enough UML design last fall to realise that that was a waste of time.
So a month ago I started working on a Perl prototype. I uploaded the first
code yesterday but please don't expect this to actually be doing any layout
yet. There is a lot there already, though, and at my current pace I expect
to have some pretty good layout happening within a month.

I have no intentions of abandoning FOP, but the redesign for FOP was and is
critical, and only so many people can usefully do that - two max, IMO. When
the redesign started I was out of the loop, so now I am waiting like
everyone else. In the meantime I am devoting most of my efforts to
xslfo-proc - it has a different approach and I hope it complements FOP
rather than competes with it. My intention further down the road is to fold
it back into Apache when the codebase is mature, there is a community built
up around it, and the time is right.

I'll second one specific comment of Peter's very strongly. I also believe
that an XSL formatter project that is going to succeed has to tackle the
whole problem. Formatting is not very modular, in other words. Not
everything needs to be implemented right away but it sure needs to be
considered, and a place for everything needs to be built in. The existing
FOP shows us that retrofitting doesn't work.

I'll welcome your interest in the xslfo-proc project if you feel like a
break from Java. I don't mind admitting that since I work with Java every
day in real life that the opportunity to get back to Perl (and C down the
road) was not an unpleasant thought. :-)

Regards,
Arved



Re: XMLSpy - FOP

2002-02-28 Thread Peter B. West
Savino, Matt C wrote:
 I regretted the tone of that last email as soon as
I spit it out. I'm just not having a very great day. I know from watching
the fop-dev list for the last year or so that all the active players on FOP
are very concientious, hard-working and know what they're doing. Maybe you
can look at my little outburst as a rare window into the frustrations that
some of the end users are feeling but have the tact to withhold.
I think your comments will be read in that light.
...
 I've sort of become the chief FOP evangelist/programmer.
...  People are starting to look at my PDF solution. I'm just afraid
they're going to look behind the curtain and see that I can't generate five
10-page reports at once (or one 100-page report) on one instance of Weblogic
running on $80k worth of hardware--w/o running out of memory or coming to a
standstill.
So basically, the nuts are on the anvil?  I hope no-one reads this 
mailing list.

I guess even the roughest non-binding ETA on the redesign might help some of
us sleep better at night - 6 mos?
***
1 year?
*** My guess.  I think the design is getting towards critical mass.  See 
my other post responding to Arved.

2 years? more? And just out of
curiosity, why are you starving to finish this - love? future consulting
gigs? both?
Things slowed down a lot after dot.con, and here in Brisbane they were 
slow to start with.  I have a (voluntary) application for FOP, and I had 
a need to learn Java to spruce up my skill set.  Future consulting?  I 
suppose I can dream.

Peter


Re: XMLSpy - FOP

2002-02-28 Thread C Brian O'Kelley
Random question, but is there incentive for a company to hire someone to 
enhance FOP and release the updates to the public domain? Are most of the 
developers employed to do this, or is this done in their free time?
Brian

On Wed, 27 February 2002, "Peter B. West" wrote:

> 
> Savino, Matt C wrote:
> 
> >  I regretted the tone of that last email as soon as
> >I spit it out. I'm just not having a very great day. I know from watching
> >the fop-dev list for the last year or so that all the active players on FOP
> >are very concientious, hard-working and know what they're doing. Maybe you
> >can look at my little outburst as a rare window into the frustrations that
> >some of the end users are feeling but have the tact to withhold.
> >
> I think your comments will be read in that light.
> 
> >...
> >  I've sort of become the chief FOP evangelist/programmer.
> > ...  People are starting to look at my PDF solution. I'm just afraid
> >they're going to look behind the curtain and see that I can't generate five
> >10-page reports at once (or one 100-page report) on one instance of Weblogic
> >running on $80k worth of hardware--w/o running out of memory or coming to a
> >standstill.
> >
> So basically, the nuts are on the anvil?  I hope no-one reads this 
> mailing list.
> 
> >
> >I guess even the roughest non-binding ETA on the redesign might help some of
> >us sleep better at night - 6 mos?
> >
> ***
> 
> > 1 year?
> >
> *** My guess.  I think the design is getting towards critical mass.  See 
> my other post responding to Arved.
> 
> > 2 years? more? And just out of
> >curiosity, why are you starving to finish this - love? future consulting
> >gigs? both?
> >
> Things slowed down a lot after dot.con, and here in Brisbane they were 
> slow to start with.  I have a (voluntary) application for FOP, and I had 
> a need to learn Java to spruce up my skill set.  Future consulting?  I 
> suppose I can dream.
> 
> Peter




Re: XMLSpy - FOP

2002-02-28 Thread Peter B. West
Arved et al,
To clarify further: there are three re-design efforts going on.  Keiron 
& Karen in Java, building on the existing code base.  Arved doing a 
ground-up redesign in Perl (protptyping) and C or C++, as he has 
discussed.  Me, in Java, doing a ground-up.

Do not despair.  If Flannery O'Connor is to be believed, Everything That 
Rises Must Converge.  I believe that these design efforts will, if not 
converge, at least cross-fertilise one another considerably.  You will 
probably have noticed that there is a lot of cross-talk between the 
principals.  At the end of the day, I think that the best ideas will 
shake together in the bottom of the pan.

However, I would hope for more.  I can conceive of no reason why a 
common design will not work in Java, C, C++, Perl or any other language 
of choice.  Implementation details may differ, but the same overall 
design should be realisable in any useful language.  In that sense, I 
disagree with Arved.  I think his work *is* contributing to the redesign 
of FOP.  Obviously, I think mine is too.

So, if you decide to get involved in xslfo-proc, the effort will not be 
wasted in terms of helping bring FOP to completion.

Let me just strongly endorse Arved's comment about the oxymoronic "UML 
design", as in "design by UML".  What a bizarre idea.  It must be 
something consultants do.

Peter
Arved Sandstrom wrote:
Hi, Matt
Let me clarify. The redesign is what Keiron & Karen (primarily) are working
on. It is a redesign for FOP.
What I started last fall is another project, which is intended to produce a
C/C++ XSL-FO formatter. This is called xslfo-proc, and is on Sourceforge. ...
I did enough UML design last fall to realise that that was a waste of time.
So a month ago I started working on a Perl prototype. I uploaded the first
code yesterday ... I expect
to have some pretty good layout happening within a month.
I have no intentions of abandoning FOP, but the redesign for FOP was and is
critical, and only so many people can usefully do that - two max, IMO. ... I am 
devoting most of my efforts to
xslfo-proc - it has a different approach and I hope it complements FOP
rather than competes with it.
I'll second one specific comment of Peter's very strongly. I also believe
that an XSL formatter project that is going to succeed has to tackle the
whole problem. Formatting is not very modular, in other words. Not
everything needs to be implemented right away but it sure needs to be
considered, and a place for everything needs to be built in. The existing
FOP shows us that retrofitting doesn't work.



Re: dynamic image in PDF

2002-02-28 Thread Jeremias Maerki
> I have a servlet which creates imagery. I want to embed this in a PDF 
> document and I've been playing around with FOP in JSP. I can get PDF 
> generated but only on static image references, using external-
> graphic. What I need to know is - is there anyway of generating the image 
> dynamically, with the reference to the servlet embedded in the .fo ? 
> 
> I can see there is a fo:instream- foreign-object but the examples just show 
> examples of SVG. Is there anyway to extend this and if so, doesanyone have 
> examples ?

I haven't tested what you do, but I think you should be able to specify
a full URL with parameters and all in the "src" attribute of
"external-graphic" that will call your servlet to get the image. Or do
you get any error messages?

Cheers,
Jeremias Märki

mailto:[EMAIL PROTECTED]

OUTLINE AG
Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern
Fon +41 41 317 20 20 - Fax +41 41 317 20 29
Internet http://www.outline.ch



Re: Have anyone used FOA tool

2002-02-28 Thread Jeremias Maerki
> I am having problem with bringing up the main window "Formatting Object
> Authoring Tool window".  All the other windows come up ok.

That's probably the wrong spot to ask. http://foa.sourceforge.net/

Cheers,
Jeremias Märki

mailto:[EMAIL PROTECTED]

OUTLINE AG
Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern
Fon +41 41 317 20 20 - Fax +41 41 317 20 29
Internet http://www.outline.ch



SV: dynamic image in PDF

2002-02-28 Thread Magnus Rydin
I think he wanted to use a javax.activation.DataSource or equalent to be
able to write an image held in memory directly without storing it, but I
could be wrong :)

WR

-Ursprungligt meddelande-
Från: Jeremias Maerki [mailto:[EMAIL PROTECTED] 
Skickat: den 28 februari 2002 08:20
Till: [EMAIL PROTECTED]
Ämne: Re: dynamic image in PDF


> I have a servlet which creates imagery. I want to embed this in a PDF 
> document and I've been playing around with FOP in JSP. I can get PDF 
> generated but only on static image references, using external- 
> graphic. What I need to know is - is there anyway of generating the 
> image dynamically, with the reference to the servlet embedded in the 
> .fo ?
> 
> I can see there is a fo:instream- foreign-object but the examples just

> show examples of SVG. Is there anyway to extend this and if so, 
> doesanyone have examples ?

I haven't tested what you do, but I think you should be able to specify
a full URL with parameters and all in the "src" attribute of
"external-graphic" that will call your servlet to get the image. Or do
you get any error messages?

Cheers,
Jeremias Märki

mailto:[EMAIL PROTECTED]

OUTLINE AG
Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern
Fon +41 41 317 20 20 - Fax +41 41 317 20 29
Internet http://www.outline.ch



Re: markers

2002-02-28 Thread Etwin van Krimpen
Arved,

I would appreciate that. One of the reasons to turn to (at this moment
evaluation-version of) XEP is that XEP works fine with marker-retrieve
marker.

Regards, Etwin

- Original Message -
From: "Arved Sandstrom" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, February 27, 2002 12:41 AM
Subject: RE: markers


> Hi, Bart
>
> I took markers up to a certain point last summer. I didn't have the
property
> re-parenting happening yet, but in terms of retrieving the right marker
> probably about half the retrieve-position/retrieve-boundary combos were
> already functional. The example file glossary.xml stems from that period.
>
> We had an injection of code just about that time that was generally held
to
> be higher priority, including by me, and this broke the partial marker
> support. I don't think anything has happened since, and so you are
probably
> seeing the effects of this, not doing anything wrong in your FO.
>
> I am loathe to invest any effort in marker support in the maintenance
> branch, unless Karen and/or Keiron were to indicate that they do not
expect
> functional markers in the rewrite for at least another 3 months (by which
I
> mean I'd be happy to actually write that code if they indicate that I
could
> reasonably expect to be doing so within 3 months). If it looks like there
> won't be any markers in the rewrite for quite a while then I'd be happy to
> look at getting them back into the maintenance branch because it wouldn't
be
> wasted effort.
>
> Regards,
> Arved Sandstrom
>
> -Original Message-
> From: Bart Locanthi [mailto:[EMAIL PROTECTED]
> Sent: February 26, 2002 7:26 PM
> To: [EMAIL PROTECTED]
> Subject: markers
>
>
> does fop support markers? i'm having trouble getting them to work.
>
> my input looks like
> ...
> 
>   
> 
>   chapter one
>   ...
> 
>   
>   
> 
>   chapter two
> ...
>
> note that the markers share a common great-grandparent.
>
> the error message i get from any fop-0.20.[23] is:
>
> [ERROR]: fo:marker must be an initial child,and 'marker-class-name' must
> be unique for same parent.
>
> i'm following all the rules, i think, but no joy.
>
> sounds like a simple misconception on my part but i'm stumped.
>



RE: dynamic image in PDF

2002-02-28 Thread Samimi, Ashkan (Contractor)
I have the same problem. The "src" attribute of "external-graphic" accepts
only "file:." value not a full URL.

Ashkan

-Original Message-
From: Jeremias Maerki [mailto:[EMAIL PROTECTED]
Sent: 28 February 2002 07:20
To: [EMAIL PROTECTED]
Subject: Re: dynamic image in PDF


> I have a servlet which creates imagery. I want to embed this in a PDF
document and I've been playing around with FOP in JSP. I can get PDF
generated but only on static image references, using external-
> graphic. What I need to know is - is there anyway of generating the image
dynamically, with the reference to the servlet embedded in the .fo ? 
> 
> I can see there is a fo:instream- foreign-object but the examples just
show examples of SVG. Is there anyway to extend this and if so, doesanyone
have examples ?

I haven't tested what you do, but I think you should be able to specify
a full URL with parameters and all in the "src" attribute of
"external-graphic" that will call your servlet to get the image. Or do
you get any error messages?

Cheers,
Jeremias Märki

mailto:[EMAIL PROTECTED]

OUTLINE AG
Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern
Fon +41 41 317 20 20 - Fax +41 41 317 20 29
Internet http://www.outline.ch


RE: How to preserve break line ?

2002-02-28 Thread Samimi, Ashkan (Contractor)
Has anybody a solution for this: 


With Fop_0_15_0 I could make : 
< fo:block white-space-collapse="false " > 
line 1 

line 3 
< / fo:block > 

and I observed : 
line 1 

line 3 

but with the higher versions of Fop, I obtain: 
line 1 
line 3 

Is it possible to preserve the break line? 

Regards




Re: dynamic image in PDF

2002-02-28 Thread Jeremias Maerki
> I have the same problem. The "src" attribute of "external-graphic" accepts
> only "file:." value not a full URL.

I've just tried it and it works (0.20.3CVS). Well, at least without
parameters because I have nothing like that ready at the moment. Could
provide the error message that you get?

Cheers,
Jeremias Märki

mailto:[EMAIL PROTECTED]

OUTLINE AG
Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern
Fon +41 41 317 20 20 - Fax +41 41 317 20 29
Internet http://www.outline.ch



Re: XMLSpy - FOP

2002-02-28 Thread Heinz Grimm
Savino, Matt C wrote:

>Has anyone gotten FO transformations to work on XMLSpy w/FOP .20.2? No
>matter what I try I keep getting the following error:
>
>"Output of external XSL converter:
>
>The filename, directory name, or volume label syntax is incorrect."
>

Hi Matt,

I had similar problems on Windows NT, when using FOP 0.20.1 and
FOP 0.20.3rc. It works fine on Windows 2000, according to XMLSpy
support it's a known bug, that FO-transformation doesn't work on Windows
NT. Or is this problem specific to 0.20.2?

Heinz


RE: XMLSpy - FOP

2002-02-28 Thread Arved Sandstrom
-Original Message-
From: Peter B. West [mailto:[EMAIL PROTECTED]
Sent: February 27, 2002 11:47 PM
To: [EMAIL PROTECTED]
Cc: fop-dev
Subject: Re: XMLSpy - FOP

[ SNIP ]
Let me just strongly endorse Arved's comment about the oxymoronic "UML
design", as in "design by UML".  What a bizarre idea.  It must be
something consultants do.

-End Of Original Message-

I should add, I attempted and rejected the use of UML in this particular
instance. As I look back at it, this was more the fault of trying to use UML
modelling tools on a 17" screen; by the time all the menus and side windows
and toolbars have occupied screen real-estate you have a little
quarter-screen window where you can visualize about 2 entire classes or a
third of a reasonably useful sequence diagram. :-) So I gave up...the tools
and my monitor failed, not the notation. I suspect that if I had used pencil
and bristol board and/or a whteboard then UML would have worked out better.

I consider prototyping in a high-level language to be detailed design
anyway, which is what I really wanted to get at. I don't think there are too
many mysteries about the high-level design of an XSL formatter anyway; you
draw a couple of blocks and label them Formatter, Renderer, etc etc. :-) OK,
OK, maybe not quite that simplistic, but by the time you get down to the
problem areas in an XSL formatter it's detailed design.

I don't discourage the use of UML but to be honest I've not seen it used
much in real life for anything except class diagrams, or capturing
requirements, and fairly abstract at that. I will likely end up describing
the final prototype with class diagrams and some dynamic diagrams for
documentation purposes, but I (personally) gain little from using UML over a
prototype.

Where the UML will come in most likely is when I look at the "final"
prototype and make a determination as to how to port its lessons to C or
C++. Right now I am leaning towards C.

Regards,
AHS



calling fop from java

2002-02-28 Thread Fischer Tibor
hi
i would like to call the fop's transformation procedure from a running 
java application, to create pdf  realtime

how is it possible??
what method sholud i call??
Thanks,
Fishy



Re: calling fop from java

2002-02-28 Thread Alexandre Denes dos Santos
Use:

Driver driver = new Driver(InputStream in, OutputStream out);
driver.setRenderer(Driver.RENDER_PDF);

driver.run();

where in is the inputStream to the fo file that you will render and
out is the outputstream where the pdf content will be write to.

The package is org.apache.fop.apps.

Hope that helps.

Denes



- Original Message - 
From: "Fischer Tibor" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 28, 2002 10:50 AM
Subject: calling fop from java


> hi
> 
> i would like to call the fop's transformation procedure from a running 
> java application, to create pdf  realtime
> 
> how is it possible??
> what method sholud i call??
> 
> Thanks,
> Fishy
> 
> 



Re: calling fop from java

2002-02-28 Thread Fischer Tibor
that's ok,
sorry but i didn't said, that i have an xml, and an xsl file, and i have 
to generate the pdf from them

Fishy
Alexandre Denes dos Santos wrote:
Use:
Driver driver = new Driver(InputStream in, OutputStream out);
driver.setRenderer(Driver.RENDER_PDF);
driver.run();
where in is the inputStream to the fo file that you will render and
out is the outputstream where the pdf content will be write to.
The package is org.apache.fop.apps.
Hope that helps.
Denes

- Original Message - 
From: "Fischer Tibor" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 28, 2002 10:50 AM
Subject: calling fop from java


hi
i would like to call the fop's transformation procedure from a running 
java application, to create pdf  realtime

how is it possible??
what method sholud i call??
Thanks,
Fishy







Re: calling fop from java

2002-02-28 Thread Fischer Tibor
and what i forgot again, i only get 3 existing filenames (xml, xsl, and 
output pdf)

Fishy
Fischer Tibor wrote:
that's ok,
sorry but i didn't said, that i have an xml, and an xsl file, and i 
have to generate the pdf from them

Fishy
Alexandre Denes dos Santos wrote:
Use:
Driver driver = new Driver(InputStream in, OutputStream out);
driver.setRenderer(Driver.RENDER_PDF);
driver.run();
where in is the inputStream to the fo file that you will render and
out is the outputstream where the pdf content will be write to.
The package is org.apache.fop.apps.
Hope that helps.
Denes

- Original Message - From: "Fischer Tibor" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 28, 2002 10:50 AM
Subject: calling fop from java

hi
i would like to call the fop's transformation procedure from a 
running java application, to create pdf  realtime

how is it possible??
what method sholud i call??
Thanks,
Fishy










Re: calling fop from java

2002-02-28 Thread Alexandre Denes dos Santos
I´m working in something like that.

I have an servlet filter that calls a JSP page that will return an xml file
with a set of pre-defined tags. This xml file will be transformed into a fo
stream with xalan using a xsl file with the fo definition of my tags. This
fo stream will be then rendered with fop. (I hope that the English is
correct...)

I'm sending the code for the filter, the xsl that I have and a xml example
for my tags. It´s is working, but the tags are still very limited because
I´m still in the begining of the project.

I´m also working in a wysiwyg tool to create the xsl file.

Hope that helps.

Denes

- Original Message -
From: "Fischer Tibor" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 28, 2002 11:06 AM
Subject: Re: calling fop from java


> that's ok,
> sorry but i didn't said, that i have an xml, and an xsl file, and i have
> to generate the pdf from them
>
> Fishy
>
> Alexandre Denes dos Santos wrote:
>
> >Use:
> >
> >Driver driver = new Driver(InputStream in, OutputStream out);
> >driver.setRenderer(Driver.RENDER_PDF);
> >
> >driver.run();
> >
> >where in is the inputStream to the fo file that you will render and
> >out is the outputstream where the pdf content will be write to.
> >
> >The package is org.apache.fop.apps.
> >
> >Hope that helps.
> >
> >Denes
> >
> >
> >
> >- Original Message -
> >From: "Fischer Tibor" <[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>
> >Sent: Thursday, February 28, 2002 10:50 AM
> >Subject: calling fop from java
> >
> >
> >>hi
> >>
> >>i would like to call the fop's transformation procedure from a running
> >>java application, to create pdf  realtime
> >>
> >>how is it possible??
> >>what method sholud i call??
> >>
> >>Thanks,
> >>Fishy
> >>
> >>
> >
> >
> >
> >
> >
>


teste.fo
Description: Binary data


FopFilter.java
Description: Binary data


http://www.w3.org/1999/XSL/Transform"; version="1.0">




   http://www.w3.org/1999/XSL/Format";>
  
  
 
 
 
	  
		
  		Table 1: with header
	  


 
  
   



  

	 
  
  

  




  table examples





  Page 




   



  
  		
		
		
		
		
		

		
		
			
			  
  Col.1
			  
			
			
			  
  Col.2
			  
			
			
			  
  Col.3
			  
			
			
			  
  Col.4
			  
			
			
			  
  Col.5
			  
			
			
			  
  Col.6
			  
			
		 
		
		
		  
		
  



	
 
  



  
  
  
  
  





report.dtd
Description: Binary data


RE: calling fop from java

2002-02-28 Thread Samimi, Ashkan (Contractor)
Try this: This is by the way a part of my servlet.


parser = new DOMParser();
parser.parse("invoice1.xsl");
document = parser.getDocument();
Driver FOPDriver = new Driver();
ByteArrayOutputStream out = new ByteArrayOutputStream();

 
FOPDriver.addElementMapping("org.apache.fop.fo.StandardElementMapping");
 
FOPDriver.addElementMapping("org.apache.fop.svg.SVGElementMapping");
 
FOPDriver.addElementMapping("org.apache.fop.extensions.ExtensionElementMappi
ng");
 
FOPDriver.addPropertyList("org.apache.fop.fo.StandardPropertyListMapping");
 
FOPDriver.addPropertyList("org.apache.fop.svg.SVGPropertyListMapping");
 
FOPDriver.addPropertyList("org.apache.fop.extensions.ExtensionPropertyListMa
pping");
FOPDriver.buildFOTree(document);
FOPDriver.setOutputStream(out);
FOPDriver.setRenderer(FOPDriver.RENDER_PDF);
FOPDriver.format();
FOPDriver.render();
byte[] content = out.toByteArray();
response.setContentType("application/pdf");
response.setContentLength(content.length);
response.getOutputStream().write(content);
response.getOutputStream().flush();




-Original Message-
From: Alexandre Denes dos Santos [mailto:[EMAIL PROTECTED]
Sent: 28 February 2002 14:23
To: [EMAIL PROTECTED]
Subject: Re: calling fop from java


I´m working in something like that.

I have an servlet filter that calls a JSP page that will return an xml file
with a set of pre-defined tags. This xml file will be transformed into a fo
stream with xalan using a xsl file with the fo definition of my tags. This
fo stream will be then rendered with fop. (I hope that the English is
correct...)

I'm sending the code for the filter, the xsl that I have and a xml example
for my tags. It´s is working, but the tags are still very limited because
I´m still in the begining of the project.

I´m also working in a wysiwyg tool to create the xsl file.

Hope that helps.

Denes

- Original Message -
From: "Fischer Tibor" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 28, 2002 11:06 AM
Subject: Re: calling fop from java


> that's ok,
> sorry but i didn't said, that i have an xml, and an xsl file, and i have
> to generate the pdf from them
>
> Fishy
>
> Alexandre Denes dos Santos wrote:
>
> >Use:
> >
> >Driver driver = new Driver(InputStream in, OutputStream out);
> >driver.setRenderer(Driver.RENDER_PDF);
> >
> >driver.run();
> >
> >where in is the inputStream to the fo file that you will render and
> >out is the outputstream where the pdf content will be write to.
> >
> >The package is org.apache.fop.apps.
> >
> >Hope that helps.
> >
> >Denes
> >
> >
> >
> >- Original Message -
> >From: "Fischer Tibor" <[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>
> >Sent: Thursday, February 28, 2002 10:50 AM
> >Subject: calling fop from java
> >
> >
> >>hi
> >>
> >>i would like to call the fop's transformation procedure from a running
> >>java application, to create pdf  realtime
> >>
> >>how is it possible??
> >>what method sholud i call??
> >>
> >>Thanks,
> >>Fishy
> >>
> >>
> >
> >
> >
> >
> >
>


Re: calling fop from java

2002-02-28 Thread Fischer Tibor
making html, from xsl and xml, with xalan, takes one row in java source
are you sure, that there isn't a simplier way to do that with xml, xsl 
-> pdf???

please write down, what classes do you import
thanks
Fishy

Samimi, Ashkan (Contractor) wrote:
Try this: This is by the way a part of my servlet.
   parser = new DOMParser();
   parser.parse("invoice1.xsl");
   document = parser.getDocument();
   Driver FOPDriver = new Driver();
   ByteArrayOutputStream out = new ByteArrayOutputStream();
FOPDriver.addElementMapping("org.apache.fop.fo.StandardElementMapping");
FOPDriver.addElementMapping("org.apache.fop.svg.SVGElementMapping");
FOPDriver.addElementMapping("org.apache.fop.extensions.ExtensionElementMappi
ng");
FOPDriver.addPropertyList("org.apache.fop.fo.StandardPropertyListMapping");
FOPDriver.addPropertyList("org.apache.fop.svg.SVGPropertyListMapping");
FOPDriver.addPropertyList("org.apache.fop.extensions.ExtensionPropertyListMa
pping");
   FOPDriver.buildFOTree(document);
   FOPDriver.setOutputStream(out);
   FOPDriver.setRenderer(FOPDriver.RENDER_PDF);
   FOPDriver.format();
   FOPDriver.render();
   byte[] content = out.toByteArray();
   response.setContentType("application/pdf");
response.setContentLength(content.length);
response.getOutputStream().write(content);
response.getOutputStream().flush();

-Original Message-
From: Alexandre Denes dos Santos [mailto:[EMAIL PROTECTED]
Sent: 28 February 2002 14:23
To: [EMAIL PROTECTED]
Subject: Re: calling fop from java
I´m working in something like that.
I have an servlet filter that calls a JSP page that will return an xml file
with a set of pre-defined tags. This xml file will be transformed into a fo
stream with xalan using a xsl file with the fo definition of my tags. This
fo stream will be then rendered with fop. (I hope that the English is
correct...)
I'm sending the code for the filter, the xsl that I have and a xml example
for my tags. It´s is working, but the tags are still very limited because
I´m still in the begining of the project.
I´m also working in a wysiwyg tool to create the xsl file.
Hope that helps.
Denes
- Original Message -
From: "Fischer Tibor" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 28, 2002 11:06 AM
Subject: Re: calling fop from java

that's ok,
sorry but i didn't said, that i have an xml, and an xsl file, and i have
to generate the pdf from them
Fishy
Alexandre Denes dos Santos wrote:
Use:
Driver driver = new Driver(InputStream in, OutputStream out);
driver.setRenderer(Driver.RENDER_PDF);
driver.run();
where in is the inputStream to the fo file that you will render and
out is the outputstream where the pdf content will be write to.
The package is org.apache.fop.apps.
Hope that helps.
Denes

- Original Message -
From: "Fischer Tibor" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 28, 2002 10:50 AM
Subject: calling fop from java

hi
i would like to call the fop's transformation procedure from a running
java application, to create pdf  realtime
how is it possible??
what method sholud i call??
Thanks,
Fishy








AW: calling fop from java

2002-02-28 Thread S. Jayaraman
Hi

This is an extract from the site:   http://xml.apache.org/fop/embedding.html

  Driver driver = new Driver();
  driver.setRenderer(Driver.RENDER_PDF);
  InputHandler inputHandler = new XSLTInputHandler(xmlFile, xslFile);
  XMLReader parser = inputHandler.getParser();
  driver.setOutputStream(new FileOutputStream(outFile));
  driver.render(parser, inputHandler.getInputSource());



The above code should do it.
Rgds
Jay


-Ursprüngliche Nachricht-
Von: Fischer Tibor [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 28. Februar 2002 15:07
An: [EMAIL PROTECTED]
Betreff: Re: calling fop from java


that's ok,
sorry but i didn't said, that i have an xml, and an xsl file, and i have
to generate the pdf from them

Fishy

Alexandre Denes dos Santos wrote:

>Use:
>
>Driver driver = new Driver(InputStream in, OutputStream out);
>driver.setRenderer(Driver.RENDER_PDF);
>
>driver.run();
>
>where in is the inputStream to the fo file that you will render and
>out is the outputstream where the pdf content will be write to.
>
>The package is org.apache.fop.apps.
>
>Hope that helps.
>
>Denes
>
>
>
>- Original Message -
>From: "Fischer Tibor" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Thursday, February 28, 2002 10:50 AM
>Subject: calling fop from java
>
>
>>hi
>>
>>i would like to call the fop's transformation procedure from a running
>>java application, to create pdf  realtime
>>
>>how is it possible??
>>what method sholud i call??
>>
>>Thanks,
>>Fishy
>>
>>
>
>
>
>
>




Re: AW: calling fop from java

2002-02-28 Thread Fischer Tibor
Thanks for everybody's help
Fishy
S. Jayaraman wrote:
Hi
This is an extract from the site:   http://xml.apache.org/fop/embedding.html
 Driver driver = new Driver();
 driver.setRenderer(Driver.RENDER_PDF);
 InputHandler inputHandler = new XSLTInputHandler(xmlFile, xslFile);
 XMLReader parser = inputHandler.getParser();
 driver.setOutputStream(new FileOutputStream(outFile));
 driver.render(parser, inputHandler.getInputSource());

The above code should do it.
Rgds
Jay
-Ursprüngliche Nachricht-
Von: Fischer Tibor [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 28. Februar 2002 15:07
An: [EMAIL PROTECTED]
Betreff: Re: calling fop from java
that's ok,
sorry but i didn't said, that i have an xml, and an xsl file, and i have
to generate the pdf from them
Fishy
Alexandre Denes dos Santos wrote:
Use:
Driver driver = new Driver(InputStream in, OutputStream out);
driver.setRenderer(Driver.RENDER_PDF);
driver.run();
where in is the inputStream to the fo file that you will render and
out is the outputstream where the pdf content will be write to.
The package is org.apache.fop.apps.
Hope that helps.
Denes

- Original Message -
From: "Fischer Tibor" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 28, 2002 10:50 AM
Subject: calling fop from java

hi
i would like to call the fop's transformation procedure from a running
java application, to create pdf  realtime
how is it possible??
what method sholud i call??
Thanks,
Fishy









How to expand blocks in table in table ?

2002-02-28 Thread Torsten Krämer

I need to show a set ( a lot of ) of key-value pairs layed out in grid.
I took a table, in each cell I put a block with border and background 
set into which goes a new table with 2 rows each one cell.
First cell holds the key wich is in smaller font, and the value .

If the conent is to big for one line a linebreak is inserted an the cell
gets bigger. Fine. Only the other cells of the top-level-table will not 
expand even with space-after.optimum and  space-after set to 0. 



Question:

How can I get the cells (and nesting blocks) of one row to be 
the same height ?


Thanx, torsten k.

mailto:[EMAIL PROTECTED]

Code::
##

  




  

  

  
  

  
Name
  


  
Alberts
asldkfjalöskdfjaölskdfjöalksdfjöalksdjfölakdsfjalökdsfj
  

  

  



  

  
  

  
Vorname
  


  
Volker
  

  

  

...


##


Using FOP from ASP

2002-02-28 Thread TSchutzerWeissmann
>  I'm using FOP in a Windows environment and I want if possible to be able
> to process a large batch of .fo files using a script. The easiest way for
> me to do this is to use FOP as a COM object.
> Can I do this?
> So far I've tried:
> - including the path to fop.jar in my classpath variable
> - using javareg.exe to register org.apache.fop.apps.Driver as
> fop.apps.Driver
> - creating a new ActiveXObject "fop.apps.Driver"
> but object isn't created.
> 
> Your help is much appreciated.
> Tom
> 
> 
> 


Re: Using FOP from ASP

2002-02-28 Thread Bertrand Delacretaz
On Thursday 28 February 2002 16:58, [EMAIL PROTECTED] 
wrote:
> >  I'm using FOP in a Windows environment and I want if possible to
> > be able to process a large batch of .fo files using a script. The
> > easiest way for me to do this is to use FOP as a COM object.
> > Can I do this?

Not out-of-the box AFAIK, only MS-specific java programs will work as 
COM objects, or you need a COM-to-java bridge which is not very common 
and usually fairly hard to setup.

It might be much easier to simply call FOP as an external process, 
something like "java . . .  org.apache.fop.apps.Fop".

Another option would be to use FOP over an HTTP interface: configure 
FOP as an HTTP servlet (using Cocoon for example) and call it from your 
ASP code: 

-ASP sends HTTP request to FOP backend
-FOP responds with a PDF document which ASP can use

Depending on your configuration FOP or Cocoon might have to make 
another request to your app to get the input XML - sounds a little 
complicated but is not hard to do once you get a clear picture of the 
interactions.

This would give you a much more modular solution, and much less 
configuration headaches.

Hope this helps!
-- 
 Bertrand Delacrétaz (codeconsult.ch, jfor.org)

 buzzwords: XML, java, XSLT, cocoon, mentoring/teaching/coding.
 disclaimer: eternity is very long. mostly towards the end. get ready.







RE: Using FOP from ASP

2002-02-28 Thread TSchutzerWeissmann
Bertrand wrote:

>Another option would be to use FOP over an HTTP interface: configure 
>FOP as an HTTP servlet (using Cocoon for example) and call it from your 
>ASP code: 

That sounds a much saner way of doing things, although I don't know much
java :-& In fact I was contemplating it anyway as a means of giving users
access to the pdf documents on demand. 
The trouble is every month or so we have to print out the whole bunch (about
600) of the things to post off to clients, which is why I need a sturdy
batch process.

thanks for your help
Tom


Re: Using FOP from ASP

2002-02-28 Thread Bertrand Delacretaz
On Thursday 28 February 2002 17:26, [EMAIL PROTECTED] 
wrote:
> Bertrand wrote:
> >Another option would be to use FOP over an HTTP interface: configure
> >FOP as an HTTP servlet (using Cocoon for example) and call it from
> > your ASP code:
>
> That sounds a much saner way of doing things, although I don't know
> much java :-& 

You don't need to know java to configure Cocoon with FOP: it's out of 
the box in the standard installation, if you get Cocoon to run you're 
in business and you have a dynamic HTTP-to-PDF server which can take a 
lot of different data sources as input.

Then, to configure Cocoon you will need to understand the sitemap 
concept, it's not that hard for simple things, and it's XML-based, no 
programming needed.

The skills you will need to get Cocoon running are more in the area of 
"life at the command-line", configuring stuff through XML files and 
using text-based log files to troubleshoot your installation.

>. . .
> The trouble is every month or so we have to print out the whole bunch
> (about 600) of the things to post off to clients, which is why I need
> a sturdy batch process.

Existing examples of Cocoon sites show that it is ready for production. 
Depending on the complexity of your documents, FOP's memory 
requirements might get in the way, but that's a problem you will have 
anyway. 

Cocoon also has a command-line mode which I do not know well, but I 
think could allow you to generate your PDF docs to files directly.

Hope this helps!
-- 
 Bertrand Delacrétaz (codeconsult.ch, jfor.org)

 buzzwords: XML, java, XSLT, cocoon, mentoring/teaching/coding.
 disclaimer: eternity is very long. mostly towards the end. get ready.


Re: How to expand blocks in table in table ?

2002-02-28 Thread Chuck Paussa
Torsten,
You'll have to calculate how many lines are going to result from your 
comment text (Use length(.) on every comment and find the max number of 
lines in the xsl)

Then do a white-space-collapse="false" and insert that many 
 
entries after the comments that do not meet the line wrap requirement. 
I've attached an example.

Chuck Paussa
Torsten Krämer wrote:
I need to show a set ( a lot of ) of key-value pairs layed out in grid.
I took a table, in each cell I put a block with border and background 
set into which goes a new table with 2 rows each one cell.
First cell holds the key wich is in smaller font, and the value .

If the conent is to big for one line a linebreak is inserted an the cell
gets bigger. Fine. Only the other cells of the top-level-table will not 
expand even with space-after.optimum and  space-after set to 0. 


Question:
How can I get the cells (and nesting blocks) of one row to be 
the same height ?

Thanx, torsten k.
mailto:[EMAIL PROTECTED]
Code::
##

 
   
   
   
   
 
   
 
   
 
 
   
 
   Name
 
   
   
 
   Alberts
asldkfjalöskdfjaölskdfjöalksdfjöalksdjfölakdsfjalökdsfj
 
   
 
   
 
   
   
space-before.optimum="2mm">
 
   border-color="#aa" border-width="0.5pt"
   padding-start="2mm" space-after="0.25mm"
   space-after.optimum="0.25mm" space-end="2mm"
   space-start="2mm" start-indent="3mm">
   
 space-after.optimum="0.25mm" table-layout="fixed">
 
   space-after="0.25mm" space-after.optimum="0.25mm"/>
 
space-after.optimum="0.25mm">
   
 
   Vorname
 
   
   
space-after.optimum="0.25mm">
 
   
 space-after="0.25mm"
space-after.optimum="0.25mm">Volker
 
   
 
   
 
   
...

##


http://www.w3.org/1999/XSL/Format";>
	
		
			
		
	
	
		

	
		
		
		
		
			

	
		
			
			

	
		Name
	


	
		Alberts asldkfjal?fja?dfj?sdfj?sdjf?dsfjal?fj
	

			
		
	


	
		
			
			

	
		Vorname
	


	
		 Volker 
 
	

			
		
	

			
		
	

		
	



RE: XMLSpy - FOP

2002-02-28 Thread Savino, Matt C
> > So basically, the nuts are on the anvil?  I hope no-one reads this 
> > mailing list.

Or just run a search on Google in a few days. 

Better not put any fudges on your resume that can be contradicted by any
post you've *ever* made to a newsgroup, mailing list or website. At least
not if you have an uncommon name like mine.


Matt Savino
Senior Systems Analyst
Quest Diagnostics Clinical Trials



> -Original Message-
> From: C Brian O'Kelley [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, February 27, 2002 7:05 PM
> To: [EMAIL PROTECTED]
> Subject: Re: XMLSpy - FOP
> 
> 
> Random question, but is there incentive for a company to hire 
> someone to enhance FOP and release the updates to the public 
> domain? Are most of the developers employed to do this, or is 
> this done in their free time?
> Brian
> 
> On Wed, 27 February 2002, "Peter B. West" wrote:
> 
> > 
> > Savino, Matt C wrote:
> > 
> > >  I regretted the tone of that last email as soon as
> > >I spit it out. I'm just not having a very great day. I 
> know from watching
> > >the fop-dev list for the last year or so that all the 
> active players on FOP
> > >are very concientious, hard-working and know what they're 
> doing. Maybe you
> > >can look at my little outburst as a rare window into the 
> frustrations that
> > >some of the end users are feeling but have the tact to withhold.
> > >
> > I think your comments will be read in that light.
> > 
> > >...
> > >  I've sort of become the chief FOP evangelist/programmer.
> > > ...  People are starting to look at my PDF solution. I'm 
> just afraid
> > >they're going to look behind the curtain and see that I 
> can't generate five
> > >10-page reports at once (or one 100-page report) on one 
> instance of Weblogic
> > >running on $80k worth of hardware--w/o running out of 
> memory or coming to a
> > >standstill.
> > >
> > So basically, the nuts are on the anvil?  I hope no-one reads this 
> > mailing list.
> > 
> > >
> > >I guess even the roughest non-binding ETA on the redesign 
> might help some of
> > >us sleep better at night - 6 mos?
> > >
> > ***
> > 
> > > 1 year?
> > >
> > *** My guess.  I think the design is getting towards 
> critical mass.  See 
> > my other post responding to Arved.
> > 
> > > 2 years? more? And just out of
> > >curiosity, why are you starving to finish this - love? 
> future consulting
> > >gigs? both?
> > >
> > Things slowed down a lot after dot.con, and here in 
> Brisbane they were 
> > slow to start with.  I have a (voluntary) application for 
> FOP, and I had 
> > a need to learn Java to spruce up my skill set.  Future 
> consulting?  I 
> > suppose I can dream.
> > 
> > Peter
> 
> 
> 



Re: XMLSpy - FOP

2002-02-28 Thread Chuck Paussa
Matt,
Put this line at the top of your batch file:
@echo "1:[ %1 ] 2: [ %2 ] 3: [ %3 ] 4: [ %4 ] 5: [ %5 ] 6: [ %6 ] 7: [ 
%7 ] 8: [ %8 ] 9: [ %9 ]" > t.out

Then look at t.out to see what XMLSpy is sending to the batch file. Then 
try the same sequence from the command line to figure out what's going 
on and tweak the batch file to make it work. (That's how I made the 
batch file in the first place.)

This is what I get:
1:[ -q ]
2: [ -xml ]
3: [ "C:\Fop-0.20.1\tmp.xml" ]
4: [ -xsl ]
5: [ "C:\Fop-0.20.1\pdf_master.xsl" ]
6: [ -pdf ]
7: [ "C:\Fop-0.20.1\Output.pdf" ]
8: [  ]
9: [  ]
Chuck Paussa
Savino, Matt C wrote:
Thanks Chuck, I see I can actually use your workaround to go straight from
XML-PDF with XMLSpy. But my problem right now is I can't even get XMLSpy to
run FOP on an FO file that I know works. I just get that same error every
time. (Regular XSL transformation works fine by the way.) I keep thinking
there's a space in my file path or something, but I can't find any. I'll let
you know when I figure it out.
By the way I was working on this because I wanted to get your markers
example going. I finally just did it on the command line. It looks pretty
cool. I'm trying to figure out if I can use it to solve my adding
'(Continued)' to table headers problem or my spearately numbered sub-section
problem.
Matt Savino
Senior Systems Analyst
Quest Diagnostics Clinical Trials
-Original Message-
From: Chuck Paussa [mailto:[EMAIL PROTECTED]
Let's see
Path to FOP bat file = C:\Fop-0.20.1\fopx.bat
fopx.bat file =
saxon -o test.fo %3 pdf_master.xsl
@java -Xms256m -Xmx256m -cp 
build\fop.jar;lib\batik.jar;lib\xalan-2.0.0.jar;lib\xerces-1.2
.3.jar;lib\avalon-framework-4.0.jar;lib\logkit-1.0b4.jar;lib\j
imi-1.0.jar 
org.apache.fop.apps.Fop -c conf/userconfig.xml %1 -fo test.fo %6 %7 %8

I guess I sort of got it to work but I had to go through an 
intermediate 
.fo file and I hard coded the xsl

Chuck
Savino, Matt C wrote:
Has anyone gotten FO transformations to work on XMLSpy w/FOP 

.20.2? No
matter what I try I keep getting the following error:
"Output of external XSL converter:
The filename, directory name, or volume label syntax is incorrect."
thx a lot,
Matt Savino
Senior Systems Analyst
Quest Diagnostics Clinical Trials




Re: Using FOP from ASP

2002-02-28 Thread David Wood
I just set up FOP to run from ASP/VBScript, using WScript.Shell...
Unfortunately, it's non-trivial if you want to monitor FOP's output to
know if it succeeds or fails. I can talk about that if anyone's
interested but it'll get long...

However, to simply use the Run method to blindly run FOP, it shouldn't be
so bad... (disclaimer: untested code)

--

' Execute FOP to render a PDF. We execute it via a command-line
' interface provided via the Windows Scripting Host.
Dim Shell
Set Shell = Server.CreateObject("WScript.Shell")
Shell.CurrentDirectory = FOPDirectory ' Full path to where you put it...
' Now we have to generate a command line which will take our raw XML,
' process it with our template, and produce a PDF in the proper location.
Dim commandline
commandline = "fop.bat"
commandline = commandline & " -xml " & XMLFilename ' Set vars accordingly...
commandline = commandline & " -xsl " & XSLFilename
commandline = commandline & " -pdf " & PDFFilename

' Now we have our command line. Let's execute it.
Dim ResultCode
ResultCode = Shell.Run(commandline,,True) ' True = Wait for FOP to finish

--

BTW, I'd suggest upgrading to the newest version of MS Scripting if you
haven't already.


On Thu, 28 Feb 2002 [EMAIL PROTECTED] wrote:

> >  I'm using FOP in a Windows environment and I want if possible to be able
> > to process a large batch of .fo files using a script. The easiest way for
> > me to do this is to use FOP as a COM object.
> > Can I do this?
> > So far I've tried:
> > - including the path to fop.jar in my classpath variable
> > - using javareg.exe to register org.apache.fop.apps.Driver as
> > fop.apps.Driver
> > - creating a new ActiveXObject "fop.apps.Driver"
> > but object isn't created.
> >
> > Your help is much appreciated.
> > Tom
> >
> >
> >
>




FOPException

2002-02-28 Thread Xie, David (IPCG-NJ)
Hi All,

I am getting a FOPException error when I sent large number of requests to FOP 
servlet.  I checked the FOPException.java, and can't figure out what is causing 
this problem.  What confuses me is of the
100 pdf requests sent, majority of them came back successful, only a few gave 
me FOPException error.  Would anyone please explain to me why this is 
happening?  Thanks in advance.

David 


Error message:

org.apache.fop.apps.FOPException
at org.apache.fop.apps.Driver.render(Driver.java:429)
at org.apache.fop.apps.Driver.run(Driver.java:508)
at org.apache.fop.tools.servlet.FopServlet.renderFO(FopServlet.java:178)
at 
org.apache.fop.tools.servlet.FopServlet.renderXml_Xsl(FopServlet.java :203)
at org.apache.fop.tools.servlet.FopServlet.doGet(FopServlet.java:150)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown Source)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown 
Source)
at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
at org.apache.catalina.core.StandardContextValve.invoke(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
at org.apache.catalina.core.StandardContext.invoke(Unknown Source)
at org.apache.catalina.core.StandardHostValve.invoke(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(Unknown 
Source)
at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
at org.apache.catalina.valves.ErrorReportValve.invoke(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
at org.apache.catalina.valves.AccessLogValve.invoke(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
at org.apache.catalina.core.StandardEngineValve.invoke(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
at org.apache.catalina.connector.http.HttpProcessor.process(Unknown 
Source)
at org.apache.catalina.connector.http.HttpProcessor.run(Unknown Source)
at java.lang.Thread.run(Thread.java:484)

-

java.lang.NullPointerException
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1094)
at org.apache.fop.apps.Driver.render(Driver.java:424)
at org.apache.fop.apps.Driver.run(Driver.java:508)
at org.apache.fop.tools.servlet.FopServlet.renderFO(FopServlet.java:178)
at 
org.apache.fop.tools.servlet.FopServlet.renderXml_Xsl(FopServlet.java:203)
at org.apache.fop.tools.servlet.FopServlet.doGet(FopServlet.java:150)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown Source)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown 
Source)
at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
at org.apache.catalina.core.StandardContextValve.invoke(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
at org.apache.catalina.core.StandardContext.invoke(Unknown Source)
at org.apache.catalina.core.StandardHostValve.invoke(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(Unknown 
Source)
at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
at org.apache.catalina.valves.E

RE: XMLSpy - FOP

2002-02-28 Thread Savino, Matt C
Arved, I'd love to help out with the Perl prototyping if you have any pieces
that make sense to break off. I hear you about the UML. I think on some
projects it's more about control than functional necessity. 

I'm protyping an HTML ad-hoc query builder right now. Once I get the user
interface signed off, I just start fleshing the thing out until I get to the
database. Here's the sequence I'm planning--HTML mockup->add JavaScript
(button, form manipulation)->move to JSP->add Java code->add live
Data->factor out from JSP the things that make sense into the Java middle
layer (beans, maybe taglibs, output servlet, obvious things like Database
Manager and value objects may be factored out sooner). I'm at stage 3, I'll
let you know how it comes out. IMO, developing in JSP sure beats recompiling
and bouncing the web app every time (although I just discovered how to do
that w/o rebooting Weblogic). And I'll take some logic in my JSP over HTML
in my Java classes any day.

I realize this doesn't work on huge projects. And I think on things like
workflow, modeling makes a lot of sense. But I believe there's some
threshold, where the bulk of the complication is in the presentation, beyond
which UML becomes more of a burden than a help. On my project, the mockup IS
80-90% of the model. I'm sure there are some top-down project manager
Rational Unified Process/PEP types shuddering at the thought of a cowboy
developer like me using the above process. I get the exact same shudder
thinking about this project if we were starting design at the middle layer
with a bunch of UML that mandates solutions (EJB, Design Patterns) before we
clearly see the problem.

I'm also on this new kick where I'm really big on breaking the logic into
pieces and dispersing them over as many different technologies as possible
(where it makes sene of course). Ideally when this little query tool is
done, we will have user interface presentation logic in JavaScript/CSS/JSP,
business and utility logic in middle-tier Java classes, data extraction and
security logic in SQL stored procedures, and output presentation logic in
XSLT (forked to HTML, PDF, XML, CSV). Now we have built-in modularity and
multiple simple-interface "pinch-off" points w/o having to spend time
contriving modularity schemes to force on the design.

Very little of this relates to FOP by the way. I just like to ramble, it
helps me think.

-Matt




> -Original Message-
> From: Arved Sandstrom [mailto:[EMAIL PROTECTED]
> Sent: Thursday, February 28, 2002 3:03 AM
> To: [EMAIL PROTECTED]
> Subject: RE: XMLSpy - FOP
> 
> 
> -Original Message-
> From: Peter B. West [mailto:[EMAIL PROTECTED]
> Sent: February 27, 2002 11:47 PM
> To: [EMAIL PROTECTED]
> Cc: fop-dev
> Subject: Re: XMLSpy - FOP
> 
> [ SNIP ]
> Let me just strongly endorse Arved's comment about the oxymoronic "UML
> design", as in "design by UML".  What a bizarre idea.  It must be
> something consultants do.
> 
> -End Of Original Message-
> 
> I should add, I attempted and rejected the use of UML in this 
> particular
> instance. As I look back at it, this was more the fault of 
> trying to use UML
> modelling tools on a 17" screen; by the time all the menus 
> and side windows
> and toolbars have occupied screen real-estate you have a little
> quarter-screen window where you can visualize about 2 entire 
> classes or a
> third of a reasonably useful sequence diagram. :-) So I gave 
> up...the tools
> and my monitor failed, not the notation. I suspect that if I 
> had used pencil
> and bristol board and/or a whteboard then UML would have 
> worked out better.
> 
> I consider prototyping in a high-level language to be detailed design
> anyway, which is what I really wanted to get at. I don't 
> think there are too
> many mysteries about the high-level design of an XSL 
> formatter anyway; you
> draw a couple of blocks and label them Formatter, Renderer, 
> etc etc. :-) OK,
> OK, maybe not quite that simplistic, but by the time you get 
> down to the
> problem areas in an XSL formatter it's detailed design.
> 
> I don't discourage the use of UML but to be honest I've not 
> seen it used
> much in real life for anything except class diagrams, or capturing
> requirements, and fairly abstract at that. I will likely end 
> up describing
> the final prototype with class diagrams and some dynamic diagrams for
> documentation purposes, but I (personally) gain little from 
> using UML over a
> prototype.
> 
> Where the UML will come in most likely is when I look at the "final"
> prototype and make a determination as to how to port its 
> lessons to C or
> C++. Right now I am leaning towards C.
> 
> Regards,
> AHS
> 
> 



Is it possible?

2002-02-28 Thread andrbozz
I'm looking to use fop to render this document.
I would like to know if is possible to render this document with fop.
Thanks in advance and i'm sorry for my bad english.

730cmod.pdf
Description: Adobe PDF document


FOP Servlet in Quiet MODE

2002-02-28 Thread Xie, David (IPCG-NJ)
Hi all,

Would anyone please tell me how to run FOP servlet in quiet mode?  I believe 
the messages displayed on console is draging down the overall performance.  
Your input is greatly appreciated.  Thanks,

David  



RE: Is it possible?

2002-02-28 Thread Savino, Matt C
I don't see why not. It would be an a lot of work, but not impossible. I
assume you want to fill in the values as well? The only thing I see that I
can't speak for sure about is the background image at the top of the page.
But I guess you could always make the whole header an image if you have to.

Here's a lab report we do in FOP that is not as graphically involved as your
doc, but may give you an idea.

Good luck,
-matt



> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Thursday, February 28, 2002 1:13 PM
> To: [EMAIL PROTECTED]
> Subject: Is it possible?
> 
> 
> I'm looking to use fop to render this document.
> I would like to know if is possible to render this document with fop.
> Thanks in advance and i'm sorry for my bad english.
> 



SampleLabReport.pdf
Description: Binary data