RE: FOPException

2002-03-01 Thread Xie, David (IPCG-NJ)
Hi Jeremias,

I checked the log file: "localhost_log.2002-03-01.txt" today.  It indicates out 
of memory error (see message below).  I am going to request more memory on my 
machine.  I hope it will resolve the
FOPException error.  Thanks for your help.

David  

Error message log:

2002-03-01 10:26:03 StandardWrapperValve[Fop]: Servlet.service() for servlet 
Fop threw exception
javax.servlet.ServletException: Servlet execution threw an exception
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)
- Root Cause -
java.lang.OutOfMemoryError
<>





-Original Message-
From: Jeremias Maerki [mailto:[EMAIL PROTECTED]
Sent: Friday, March 01, 2002 2:54 AM
To: [EMAIL PROTECTED]
Subject: Re: FOPException


It seems you're not the only one. I have just posted an answer to a
similar problem to the fop-dev list. Follow the link below for my answer.

http://marc.theaimsgroup.com/?l=fop-dev&m=101496883317389&w=2

> 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.

Cheers,
Jeremias Märki

mailto:[EMAIL PROTECTED]

OUTLINE AG
Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern
Tel. +41 41 317 2020 - Fax +41 41 317 2029
Internet http://www.outline.ch




Re: OT:: XML -> MS Word??

2002-03-01 Thread Stephen Clarke
Hi Max,
Interspersed below.
- Original Message -
From: "Max Dunn" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 01, 2002 8:14 PM
Subject: RE: OT:: XML -> MS Word??


> Also, one simple direct means of getting XML into Word (easy, but the
> styles don't generally persist well) is simply to use XSLT -> HTML,
> which Word imports.

Yes. I'd thought of that. But surely 'don't generally persist well' is an
understatement. It's only by being a stylistic perfectionist that I got me
into this mess in the first place. hehe.
>
> I've seen several resumes/book proposals that people did that way...
>
Really? Interesting. Well, I'm doing my HTML version right now, so I'll try
the import and see. Thanks.
--
Best,
SC.




Re: OT:: XML -> MS Word??

2002-03-01 Thread Stephen Clarke
- Original Message -
From: "Matt Savino" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 01, 2002 8:02 PM
Subject: Re: OT:: XML -> MS Word??


> I'ts not unreasonable at all.

Wow. Three replies already. Not unreasonable. What a surprise.

> You can convert your XML to RTF, which
> Word will display. You won't have access to all 7,562,443 features in a
> full-fledged Word doc.

You're kidding about the number right? Who exactly counted all those
features.

>This means your resume may not be able to email
> itself to everyone in the viewer's address book or delete their dll
> files, but you can probably get by.
>
hahahaha. Some disappointments are worse than others. But this one is just
too much.

Thanks Matt. I'll look into it.

--
Best,
S.



Re: OT:: XML -> MS Word??

2002-03-01 Thread David Wood
I'm afraid I have extensive experience scripting MS Word. It's not
something I like to talk about much, but sometimes the painful memories do
surface...

I think the RTF idea is a good one, because it will help you avoid having
anything to do with programming Word. But let's just say you wanted to for
the sake of argument...

These days they're building an entire Visual Basic mini-IDE into word, and
you can use VB to access almost every aspect of Word's byzantine feature
set through the MSWord DOM, at the COM level. I think the best way to
describe it is that this DOM is to object oriented programming what
penetrating your forehead with a power drill is to psychotherapy.

However, if you manage to claw your way through to getting what you need
operating, the next thing you will discover is that VB is mind-bogglingly
slow.  How slow, you ask? Well, I was processing two-page word documents
into a database, XML-izing different parts to preserve formating and
storing them into different fields. Trivial. This program wouldn't take
more than 200ms to run on any decent system. On MS Word, on my PIII/500,
it took 30 *seconds* per document. While it was running, it rendered the
computer basically useless, and it couldn't be stopped without killing the
task.

In theory, it's a great system, and it's trivial to access the database or
the filesystem or XML classes alike from inside the word processor. It's
very powerful.  Microsoft has even written and published a tutorial of
sorts where they explain how to go _from_ MSWord to XML using these
techniques (it's on MSDN, sorry no URL handy). Although the compiled VB
executable in that example crashes on startup...

In practice, the implementation is a raving nightmare, and you should
avoid it at all costs. Not to mention the security implications of it all,
which by now have been well explored to the tune of many billions of
dollars in damages worldwide...

On Fri, 1 Mar 2002, Stephen Clarke wrote:

> Hi all,
>
> OK. So much for pdf. Does anyone know if there is any way of turning an XML
> into MS Word format? I don't think word is scriptable, is it? VBScript,
> perhaps?
>
> Just wondering.
>
> Sorry. The very thought is rather distastefull , isn't it. But who knows.
>
> See. Just for fun I did my resume in pdf using fop. But now everybody keeps
> asking me for the same thing in MS Word format. Argh. Very annoying. So I
> want to be able to change my XML and have it reflected automatically in both
> word and pdf.
>
> This could be a contender for the most twisted idea of all time.
> --
> Best
> SC.
>




RE: OT:: XML -> MS Word??

2002-03-01 Thread Max Dunn
Also, one simple direct means of getting XML into Word (easy, but the
styles don't generally persist well) is simply to use XSLT -> HTML,
which Word imports.

I've seen several resumes/book proposals that people did that way...

Max

-Original Message-
From: Matt Savino [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 01, 2002 11:55 AM
To: [EMAIL PROTECTED]
Subject: Re: OT:: XML -> MS Word??


I'ts not unreasonable at all. You can convert your XML to RTF, which
Word will display. You won't have access to all the 7,562,443 features
in a full-fledged Word doc, but you can probably get by.

-Matt

Stephen Clarke wrote:
> 
> Hi all,
> 
> OK. So much for pdf. Does anyone know if there is any way of turning
an XML
> into MS Word format? I don't think word is scriptable, is it?
VBScript,
> perhaps?
> 
> Just wondering.
> 
> Sorry. The very thought is rather distastefull , isn't it. But who
knows.
> 
> See. Just for fun I did my resume in pdf using fop. But now everybody
keeps
> asking me for the same thing in MS Word format. Argh. Very annoying.
So I
> want to be able to change my XML and have it reflected automatically
in both
> word and pdf.
> 
> This could be a contender for the most twisted idea of all time.
> --
> Best
> SC.



Re: OT:: XML -> MS Word??

2002-03-01 Thread Matt Savino
I'ts not unreasonable at all. You can convert your XML to RTF, which
Word will display. You won't have access to all 7,562,443 features in a
full-fledged Word doc. This means your resume may not be able to email
itself to everyone in the viewer's address book or delete their dll
files, but you can probably get by.

By the way, I just signed up my home account to this list. Does anyone
know how to get the last 100 messages? The help-bot says ot put the
message number in like this - <[EMAIL PROTECTED]>.
Where do I find the message number?

-Matt




Stephen Clarke wrote:
> 
> Hi all,
> 
> OK. So much for pdf. Does anyone know if there is any way of turning an XML
> into MS Word format? I don't think word is scriptable, is it? VBScript,
> perhaps?
> 
> Just wondering.
> 
> Sorry. The very thought is rather distastefull , isn't it. But who knows.
> 
> See. Just for fun I did my resume in pdf using fop. But now everybody keeps
> asking me for the same thing in MS Word format. Argh. Very annoying. So I
> want to be able to change my XML and have it reflected automatically in both
> word and pdf.
> 
> This could be a contender for the most twisted idea of all time.
> --
> Best
> SC.


Re: OT:: XML -> MS Word??

2002-03-01 Thread Matt Savino
I'ts not unreasonable at all. You can convert your XML to RTF, which
Word will display. You won't have access to all the 7,562,443 features
in a full-fledged Word doc, but you can probably get by.

-Matt

Stephen Clarke wrote:
> 
> Hi all,
> 
> OK. So much for pdf. Does anyone know if there is any way of turning an XML
> into MS Word format? I don't think word is scriptable, is it? VBScript,
> perhaps?
> 
> Just wondering.
> 
> Sorry. The very thought is rather distastefull , isn't it. But who knows.
> 
> See. Just for fun I did my resume in pdf using fop. But now everybody keeps
> asking me for the same thing in MS Word format. Argh. Very annoying. So I
> want to be able to change my XML and have it reflected automatically in both
> word and pdf.
> 
> This could be a contender for the most twisted idea of all time.
> --
> Best
> SC.


RE: : XML -> MS Word??

2002-03-01 Thread Jain, Ankur A (CAP, VFS)
Hi All,
I dont know if word is scriptable or not
but if you need a format that is the MS word compatible
try this http://www.jfor.org/  
it converts XML documents conforming to the XSL-FO specification to RTF 
format.

Chill,
Ankur

-Original Message-
From: Stephen Clarke [mailto:[EMAIL PROTECTED]
Sent: Friday, March 01, 2002 2:52 PM
To: fop
Subject: OT:: XML -> MS Word??


Hi all,

OK. So much for pdf. Does anyone know if there is any way of turning an XML
into MS Word format? I don't think word is scriptable, is it? VBScript,
perhaps?

Just wondering.

Sorry. The very thought is rather distastefull , isn't it. But who knows.

See. Just for fun I did my resume in pdf using fop. But now everybody keeps
asking me for the same thing in MS Word format. Argh. Very annoying. So I
want to be able to change my XML and have it reflected automatically in both
word and pdf.

This could be a contender for the most twisted idea of all time.
--
Best
SC.


OT:: XML -> MS Word??

2002-03-01 Thread Stephen Clarke
Hi all,

OK. So much for pdf. Does anyone know if there is any way of turning an XML
into MS Word format? I don't think word is scriptable, is it? VBScript,
perhaps?

Just wondering.

Sorry. The very thought is rather distastefull , isn't it. But who knows.

See. Just for fun I did my resume in pdf using fop. But now everybody keeps
asking me for the same thing in MS Word format. Argh. Very annoying. So I
want to be able to change my XML and have it reflected automatically in both
word and pdf.

This could be a contender for the most twisted idea of all time.
--
Best
SC.



Re: FopServlet question

2002-03-01 Thread Matt Savino
Make sure you're stylesheet has both XSLT and FO namespaces. I know I
fought with this one for a day or two:


http://www.w3.org/1999/XSL/Transform";
xmlns:fo="http://www.w3.org/1999/XSL/Format";>

...

If that doesn't work, you might try attaching the xsl and xml files to
this list.

-Matt




> TJ Smith wrote:
> 
> Hello
> My application requires servlet generated pdf from input xsl and xml
> files.  In fact, the application seems to be exactly what is described
> in the document http://xml.apache.org/fop/embedding.html as
> 
> http://blah.blah.blah/fop/servlet/FopServlet?xml=/home/path/to/xmlfile.xml&xsl=/home/path/to/xslfile.xsl
> 
> I am using fop 20.3 and cannot get the FopServlet included with that
> release  to create the pdf via the url as above.  I constanly get a
> massive error trace listing containing the error:
> 
> java.lang.reflect.InvocationTargetException:
> org.apache.fop.apps.FOPException: stylesheet requires attribute:
> version
> my style sheet DOES have a version - so I'm a bit lost as to what is
> going on here!
> 
> I should add that FopServlet works fine when invoked with the url:
> http://blah.blah.blah/fop/servlet/FopServlet?fo=blah.fo
> 
> Any suggestions would be appreciated!
> 
> TJ


FopServlet question

2002-03-01 Thread TJ Smith



Hello
My application requires servlet generated pdf from 
input xsl and xml files.  In fact, the application seems to be exactly what 
is described in the document http://xml.apache.org/fop/embedding.html 
as
 
http://blah.blah.blah/fop/servlet/FopServlet?xml=/home/path/to/xmlfile.xml&xsl=/home/path/to/xslfile.xsl
 
I am using fop 20.3 and cannot get the FopServlet 
included with that release  to create the pdf via the url as above.  I 
constanly get a massive error trace listing containing the error: 
 
java.lang.reflect.InvocationTargetException: 
org.apache.fop.apps.FOPException: stylesheet requires attribute: 
version
my style sheet DOES have a version - so I'm a bit 
lost as to what is going on here!
 
I should add that FopServlet works fine when 
invoked with the url:
http://blah.blah.blah/fop/servlet/FopServlet?fo=blah.fo
 
Any suggestions would be appreciated!
 
TJ


Re: Relative position elements

2002-03-01 Thread Chuck Paussa
Sebastien,
They are on block-container. I don't know about block but here's some 
code I use:



Chuck Paussa
Sebastien Foucault wrote:
Hello,
Are relative position attributes implemented in fop (either on block 
element or on block-container element) ?
If so how to make them work ?

Thank's in advance
--
Sébastien Foucault




Re: Drawing a line at bottom of a table-row

2002-03-01 Thread Chuck Paussa
Olivier,
You were trying to match a table cell border with a fo:block border that 
sits in a cell

Try the attached code
Chuck Paussa
Olivier Rossel wrote:
I have a 3 cells in a row in a table.
I wish to draw a line at the bottom of the row.
I tried 
but it didn't work.
Is it a FO normal behaviour?
If i i use ,
it is okay.
But if one of my cell is empty, the bottom-line is REALLY misplaced.
Using the attribute 'empty-cells="show"' at the declaration of the 
table makes the
thing better, the line is almost at the same level with the 
bottom-border of the
non-empty cells.

Here is the code i use:
  
   
Project: 

   
   
AC/Series: 

   
   
AC/Models: 

   
   
  

And the result can be seen at:
http://www.anyware-tech.com/test.pdf
Anyone ever had this problem?


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

	
		
		
		
		
		
	
		
			Project:   Blah Blah 
		
		
			AC/Series: Blah Blah  
		
		
			AC/Models: Blah Blah  
		
		
			 
		
	
		
	

		
	



RE: Using FOP from ASP

2002-03-01 Thread David Wood
Of course - this is purely a quick fix.

Good luck with your COM wrangling. I'm sure a lot of people would be
interested in that.

-David

On Fri, 1 Mar 2002 [EMAIL PROTECTED] wrote:

> David wrote:
> ...
> >ResultCode = Shell.Run(commandline,,True) ' True = Wait for FOP to finish
>
> If you use this method for a whole batch of transformations it's going to be
> inefficient because none of the objects get re-used.
> My latest plan is to write a small java class that will tranform a list of
> fo files using the same driver & renderer objects. It might even be possible
> to register this class as a COM object, which would be great. If it works &
> if you're interested...
>
> Regards,
> Tom
>




FOP on Websphere Test Environment

2002-03-01 Thread Shaikh, Mehmood
Hi,
Has anyone tried to run FOP on WTE 3.5 on NT? If so, can you help me
install.

Thanks

Mehmood Shaikh




Drawing a line at bottom of a table-row

2002-03-01 Thread Olivier Rossel
I have a 3 cells in a row in a table.
I wish to draw a line at the bottom of the row.
I tried 
but it didn't work.
Is it a FO normal behaviour?
If i i use ,
it is okay.
But if one of my cell is empty, the bottom-line is REALLY misplaced.
Using the attribute 'empty-cells="show"' at the declaration of the table 
makes the
thing better, the line is almost at the same level with the 
bottom-border of the
non-empty cells.

Here is the code i use:
  
   
Project: 

   
   
AC/Series: 

   
   
AC/Models: 

   

   
  

And the result can be seen at:
http://www.anyware-tech.com/test.pdf
Anyone ever had this problem?


RE: XMLSpy - FOP

2002-03-01 Thread Arved Sandstrom
-Original Message-
From: Savino, Matt C [mailto:[EMAIL PROTECTED]
Sent: February 28, 2002 3:20 PM
To: '[EMAIL PROTECTED]'
Subject: RE: XMLSpy - FOP

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.
[ SNIP ]

-End Of Original Message-

Anyone who has interest should track the mailing list for that project,
which is available off the project page:
https://sourceforge.net/projects/xslfo-proc/. I can think of some stuff
already, which is best discussed there.

If you need a break from Java and just want to get back into Perl or C,
you're welcome. Also, this is an opportunity to come up to speed with XSL
implementation while waiting for the FOP redesign to reach a less critical
stage.

If it's an either/or situation please stick with FOP and try to help out
with the maintenance branch.

Regards,
AHS



RE: Using FOP from ASP

2002-03-01 Thread TSchutzerWeissmann
David wrote:
...
>ResultCode = Shell.Run(commandline,,True) ' True = Wait for FOP to finish

If you use this method for a whole batch of transformations it's going to be
inefficient because none of the objects get re-used. 
My latest plan is to write a small java class that will tranform a list of
fo files using the same driver & renderer objects. It might even be possible
to register this class as a COM object, which would be great. If it works &
if you're interested...

Regards,
Tom


Relative position elements

2002-03-01 Thread Sebastien Foucault
Hello,

Are relative position attributes implemented in fop (either on block 
element or on block-container element) ?
If so how to make them work ?


Thank's in advance
--
Sébastien Foucault



AW: Just a quick one.

2002-03-01 Thread S. Jayaraman
OOps. Sorry .. forgot to add.
The indent=0 not put for the first column.
And lucky for me, the tables did not have borders printed. I admit that it
would have been horrible to look at.
Rgds
Jay

-Ursprüngliche Nachricht-
Von: S. Jayaraman [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 1. März 2002 09:24
An: [EMAIL PROTECTED]
Betreff: AW: Just a quick one.


I had the same problem. But since I did not use XSL, with Java I could
recognize the situation and put indent=0 for the the fo:block in the table
cell. I know this is a work around only. Let us hope for a proper solution.
Rgds
Jay


-Ursprüngliche Nachricht-
Von: Paul Campbell [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 1. März 2002 02:08
An: [EMAIL PROTECTED]
Betreff: Just a quick one.



Page numbers, and table borders.

 Okay, but  or  or
  Any Ideas?  I know it's been asked before, but I been
through
the docs twice, and have come out empty handed.

Table borders.  My documents are built on nested lists, with inherited
indents.
I placed a table in a list item and it aligns to the absolute left not the
list
start indent.  Worse than that, the text in the table cell aligns properly,
so
it looks a mess.  Anyone suggestions about how to align the table border to
the
actual table contents or force it in a bit?

Is it worth it to rewrite my XSLT to base the document on a table model
instead?  Like the usual HTML stuff?

Thanks

Paul



Re: Just a quick one.

2002-03-01 Thread Jeremias Maerki
>  Okay, but  or  or
>   Any Ideas?  I know it's been asked before, but I been through
> the docs twice, and have come out empty handed.

See here:
http://marc.theaimsgroup.com/?l=fop-dev&m=101283582111404&w=2

Alex! Your FAQ needs to be made available again! :-)

Cheers,
Jeremias Märki

mailto:[EMAIL PROTECTED]

OUTLINE AG
Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern
Tel. +41 41 317 2020 - Fax +41 41 317 2029
Internet http://www.outline.ch



AW: Just a quick one.

2002-03-01 Thread S. Jayaraman
I had the same problem. But since I did not use XSL, with Java I could
recognize the situation and put indent=0 for the the fo:block in the table
cell. I know this is a work around only. Let us hope for a proper solution.
Rgds
Jay


-Ursprüngliche Nachricht-
Von: Paul Campbell [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 1. März 2002 02:08
An: [EMAIL PROTECTED]
Betreff: Just a quick one.



Page numbers, and table borders.

 Okay, but  or  or
  Any Ideas?  I know it's been asked before, but I been
through
the docs twice, and have come out empty handed.

Table borders.  My documents are built on nested lists, with inherited
indents.
I placed a table in a list item and it aligns to the absolute left not the
list
start indent.  Worse than that, the text in the table cell aligns properly,
so
it looks a mess.  Anyone suggestions about how to align the table border to
the
actual table contents or force it in a bit?

Is it worth it to rewrite my XSLT to base the document on a table model
instead?  Like the usual HTML stuff?

Thanks

Paul



AW: FOP Servlet in Quiet MODE

2002-03-01 Thread S. Jayaraman
I know the worst-case alternative. Edit the source and recompile.
But it does not display that many messages that it should harm the
performance, unless there are a number of warnings or errors (like font not
supported, etc.)
Rgds
Jay


-Ursprüngliche Nachricht-
Von: Xie, David (IPCG-NJ) [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 28. Februar 2002 22:27
An: '[EMAIL PROTECTED]'
Betreff: FOP Servlet in Quiet MODE


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: FOPException

2002-03-01 Thread Jeremias Maerki
It seems you're not the only one. I have just posted an answer to a
similar problem to the fop-dev list. Follow the link below for my answer.

http://marc.theaimsgroup.com/?l=fop-dev&m=101496883317389&w=2

> 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.

Cheers,
Jeremias Märki

mailto:[EMAIL PROTECTED]

OUTLINE AG
Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern
Tel. +41 41 317 2020 - Fax +41 41 317 2029
Internet http://www.outline.ch



Re: FOP Servlet in Quiet MODE

2002-03-01 Thread Jeremias Maerki
Have a look at the following page:
http://xml.apache.org/fop/embedding.html

In the examples section there's a sample on how to set up the LogKit
Logger. One thing you can do is log.setPriority(Priority.WARN) or
log.setPriority(Priority.ERROR). Even better is to use a FileTarget
insteam of the StreamTarget. Something like:
target = new FileTarget(mylogfile, true, formatter);

> 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,

I hope this helps!

Cheers,
Jeremias Märki

mailto:[EMAIL PROTECTED]

OUTLINE AG
Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern
Tel. +41 41 317 2020 - Fax +41 41 317 2029
Internet http://www.outline.ch



RE: Displaying characters in PDF

2002-03-01 Thread Keen Tim
Well, I've finally had a chance to look at this. Here's what happened:

FWIW I'm using FOP 0.20.3 (the latest binary release).

If I try an encoding of 'cp1252' or 'windows-1252' in the xml file I get
an error saying that the encoding is not supported. Not happy with this
I added the latest xerces.jar (1.4.4) to CLASSPATH and it worked with an
encoding of 'windows-1252'. The same happened when I added
xercesImpl.jar (Xerces-2.0.0) to CLASSPATH.

Thank you Rainer, once again, for your help with this problem.

I've copied this to the dev list so a developer can pick this up and
change whatever it is they need to change if they so desire.

Cheers

Tim

-Original Message-
From: Keen Tim 
Sent: Tuesday, 5 February 2002 9:25
To: [EMAIL PROTECTED]
Subject: RE: Displaying characters in PDF


Rainer,

I think you hit the nail on the head. Initially the character encoding
of the source was not supported by the xml-parser of fop. This led me to
use iso-8859-1 just to get it working. As you suggest this is probably
not the appropriate encoding.

As you guessed the most likely source of this data is a windows editor,
so on your sound advice I looked at those web sites and will try
'cp1252' and 'windows-1252'.

Thanks, once again, for your help. If I have any more problems I will
certainly let you (and others) know.

Cheers

Tim




-Original Message-
From: Rainer Garus [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 5 February 2002 7:07
To: [EMAIL PROTECTED]
Subject: RE: Displaying characters in PDF


> I'm fairly dumb when it comes to fonts. My problem is that I don't
> control the source of the character and I would expect that in most
> cases the characters that are a problem are in ANSI set from 127-255.
> From what you're saying I'll have to pre-parse the string and replace
it
> with the matching character in Adobe. Is that right? Is there another
> way?

If the character encoding of the source is supported by the xml-parser
of fop then you have to do nothing. The xml-parser maps the characters
to the correct unicode values. Fop use the xerces parser, see
http://xml.apache.org/xerces-j/faq-general.html#faq-8 for the supported
encodings.

What character encoding do you use? It seems to be an extended ascii
encoding which contains printable characters in the interval 128 .. 159,
so it is not iso-8895-1. You can try cp1252 (latin 1 windows) (see
http://czyborra.com/charsets/iso8859.html).

Rainer Garus




The information in this e-mail together with any attachments is
intended only for the person or entity to which it is addressed
and may contain confidential and/or privileged material.

Any form of review, disclosure, modification, distribution
and/or publication of this e-mail message is prohibited.  

If you have received this message in error, you are asked to
inform the sender as quickly as possible and delete this message
and any copies of this message from your computer and/or your
computer system network.  






The information in this e-mail together with any attachments is
intended only for the person or entity to which it is addressed
and may contain confidential and/or privileged material.

Any form of review, disclosure, modification, distribution
and/or publication of this e-mail message is prohibited.  

If you have received this message in error, you are asked to
inform the sender as quickly as possible and delete this message
and any copies of this message from your computer and/or your
computer system network.  




Just a quick one.

2002-03-01 Thread Paul Campbell

Page numbers, and table borders.

 Okay, but  or  or
  Any Ideas?  I know it's been asked before, but I been through
the docs twice, and have come out empty handed.

Table borders.  My documents are built on nested lists, with inherited indents.
I placed a table in a list item and it aligns to the absolute left not the list
start indent.  Worse than that, the text in the table cell aligns properly, so
it looks a mess.  Anyone suggestions about how to align the table border to the
actual table contents or force it in a bit? 

Is it worth it to rewrite my XSLT to base the document on a table model
instead?  Like the usual HTML stuff?

Thanks

Paul