RE: FOP help please...

2001-08-08 Thread James Telfer

Try:
java -jar fop.jar

Invocation used to be handled by fop.bat/fop.sh, but I think this is now
obsolete. (?) Either way, the above works.

JT

-Original Message-
From: Charlie Wu [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 09, 2001 2:52 PM
To: '[EMAIL PROTECTED]'
Subject: FW: FOP help please...


 <>  <> 


Hi there:
 
I downloaded the latest FOP from xml.apache.org and was trying to run
some simple tests from the commandline.. The documentation says you
should just run:
 
FOP fo_inputfile pdf_outputfile (see
http://xml.apache.org/fop/running.html
 )
 
but I can't find a FOP.exe or FOP unix binary anywhere.. and since this
is java I suspect there isn't any FOP anywhere anyway.. so I searched
google.com and looked for commandline examples and found many references
to calling org.apache.fop.apps.CommandLine - but then when I checked
this against the fop.jar there's NO CLASS with that name!! I couuld only
find Command, CommandLineStarter, and CommandLineOptions.. 
 
So what gives 
 
Can someone please help me out???
 
Thanks
 
Charlie



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

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




FW: FOP help please...

2001-08-08 Thread Charlie Wu

 <>  <> 


Hi there:
 
I downloaded the latest FOP from xml.apache.org and was trying to run
some simple tests from the commandline.. The documentation says you
should just run:
 
FOP fo_inputfile pdf_outputfile (see
http://xml.apache.org/fop/running.html
 )
 
but I can't find a FOP.exe or FOP unix binary anywhere.. and since this
is java I suspect there isn't any FOP anywhere anyway.. so I searched
google.com and looked for commandline examples and found many references
to calling org.apache.fop.apps.CommandLine - but then when I checked
this against the fop.jar there's NO CLASS with that name!! I couuld only
find Command, CommandLineStarter, and CommandLineOptions.. 
 
So what gives 
 
Can someone please help me out???
 
Thanks
 
Charlie

begin 600 Charlie Wu.vcf
M0D5'24XZ5D-!4D0-"E9%4E-)3TXZ,BXQ#0I..E=U.T-H87)L:64-"D9..D-H
M87)L:64@5W4-"D]21SI"&UL+F%P86-H92YO&UL+F%P86-H92YO


Adding Bookmarks on Fop page......

2001-08-08 Thread sunitha nair

hi all,
how can i add book mark on my pdf page.I
mean chapter index on left side of my pdf page
which link to the corresponding chapters,which
will be showed on the screen.Index will remain always 
same on the page and only the content frame will
change.
please help me.
regards
sunitha


Do You Yahoo!?
Send a newsletter, share photos & files, conduct polls, organize chat events. Visit 
http://in.groups.yahoo.com.

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




Re: FOP Servlets being invoked twice -- MSIE 5.50.4522.1800 problem

2001-08-08 Thread Paul Furbacher


On Wednesday, August 8, 2001, Alex McLintock <[EMAIL PROTECTED]> wrote:

> ... but now I have a problem with a particular build of IE. Basically 
> the PDF doesn't appear -
> in fact neither does acrobat reader
> The problem occurs on the IE version 5.50.4522.1800 and not with other 
> IE5.5 versions, eg.
> 5.50.4134.0600.
>
> (Incidently the data is submitted to the servlet using Post - 
> apparently this is
> the cause of the bug in IE)

Not sure what bug you are talking about here, but I don't
think your problem is associated with doPost().

> [...]

> So folks - what are your servlet experiences?

We don't serve up PDF via FOP (yet) but we do let users download
PDFs which we have just cranked out by some other rickety process.
This worked quite well for several years, when all of a sudden, it
didn't.  We first isolated the problem to both MSIE 5.50.4522.1800
and oddly enough, NS 6.0, both on Win2k systems.

Weblogic was showing a socket exception error message in
the command console window.  We tried all the usual server side
tricks (e.g., res.setContentLength(), and so on), but they had no
effect.

We hunted everywhere for an explanation, and essentially
found none.  Posting to various newsgroups led no where.
However, while I was stumbling around on Microsoft's site, I
somehow wound up on their updates page, and noticed that
I hadn't updated much in the last however many months.  One
of the first things I updated was second or third release of
patches to MSIE  5.50.4522.1800.  I believe it was the Q299618
patch that restored the ability to download using MSIE 5.50.4522.1800.
Currently, the "About MSIE" (or whatever it's called in the Windows
version) lists the following updates:

  SP1; Q286043; Q299618

Note that this latest patch appeared on MS's "Critical Updates" page.

Also note, MSIE on MacOS X never showed this problem.  Neither did
OmniGroup's OmniWeb for MacOS X.


Paul Furbacher
http://www.teamb.com



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




Re: Keeping list-item-label and list-item-body together update

2001-08-08 Thread Serge Pagop

Hi everybody,
I want to know where I can have a FO tutorials?
thanks..

Serge...


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




Re: Keeping list-item-label and list-item-body together update

2001-08-08 Thread Don Wellington

Ooops. Screwed up.  The child nodes should have their
areas removed before the current node removes its
areas.

public void removeAreas() {
 // still to do
 int numChildren = this.children.size();
 for(int i = 0; i < numChildren; i++) {
 FONode fo = (FONode) children.elementAt(i);
 fo.removeAreas();
 }
 Area parentArea;
 int numAreas = this.allAreas.size();
 for(int i=0; i < numAreas; i++) {
  parentArea =
   ((Area)allAreas.elementAt(i)).getParent();
  parentArea.removeChild
   ((Area)allAreas.elementAt(i));
}
 this.marker = 0;
 }


--- Don Wellington <[EMAIL PROTECTED]> wrote:
> Hi all-
> 
> I have list-item-label and list-item-body kept
> together on the same page.  I will need a lesson in
> the etiquette of presenting the changes.  Should I
> send the full class files to this list?  Attempt to
> diff the class files?  A little advice woudl be
> good.
> 
> As for what I did:
> 
> FONode.java
> 
> 1) Added a protected Vector allAreas = new Vector()
> 
> 2) Filled in removeAreas() with
> public void removeAreas() {
>   // still to do
>   Area parentArea;
>   int numAreas = this.allAreas.size();
> for(int i=0; i < numAreas; i++) {
>   parentArea =  
>  ((Area)allAreas.elementAt(i)).getParent();
>   parentArea.removeChild
>  ((Area)allAreas.elementAt(i));
> }
> int numChildren = this.children.size();
> for(int i = 0; i < numChildren; i++) {
>   FONode fo = (FONode) children.elementAt(i);
>   fo.removeAreas();
> }
> this.marker = 0;
> }
> 
> Problem: How to set marker so that if layout is
> called
> again area will be recreated, but IDs will not. Or,
> how to remove IDs related to above areas as well. 0
> seems to work right now, but maybe markers needed to
> be enumerated?
> 
> Changes to Block.java:
> 
> 1) In layout() after this.blockArea is created
> added:
>   allAreas.add(this.blockArea);
> 
> Changes to ListItemLabel.java:
> 1) In layout():
> if(this.marker == START) {
>   String id = this.properties.get("id").getString();
>  
>   
>   area.getIDReferences().initializeID(id,area);
>   this.marker = 0;
> }
> Simply to prevent a error due to the same ID being
> initialized again.
> 
> Changes to ListItemBody.java:
> 
> None.  It returns Status.AREA_FULL_NONE when the
> first
> item overflows the page.
> 
> Changes to ListItem.java:
> 
> 1)Changed the following from:
> 
> if (this.marker == 0) {
>// configure id
>area.getIDReferences().configureID(id, area);
> 
>status = label.layout(blockArea);
>if (status.isIncomplete()) {
> return status;
>}
> }
> 
> To:   
> 
> // configure id
> if(this.marker == 0){
>   area.getIDReferences().configureID(id,area);
> }
> 
> status = label.layout(blockArea);
> if (status.isIncomplete()) {
>   return status;
> }
> 
> Again prevents errors due to bad ID. I tried leaving
> this if alone mostly, and just setting the marker to
> 2. And only configuring the ID when the marker = 0,
> and the rest if the marker equaled 0 or 2, but kept
> getting a 2 >= 2 error during the rendering areas
> step, and couldn't figure out what was generating
> the
> error.
> 
> 2) Inserted:
>   if(status.laidOutNone()) {
>   label.removeAreas();
>   this.marker = 1;
>   return status;
>   }
> after:
>   status = body.layout(blockArea);
>   if (status.isIncomplete()) {
> 
> So, if it nothing is laid out in the body, I remove
> all the areas created by label set the marker equal
> to
> 1 so it doesn't redo IDs.  And return
> AREA_FULL_NONE.
> 
> Comments?
> 
> Don
> 
> __
> Do You Yahoo!?
> Make international calls for as low as $.04/minute
> with Yahoo! Messenger
> http://phonecard.yahoo.com/
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, email:
> [EMAIL PROTECTED]
> 


__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

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




RE: FOP Servlets being invoked twice

2001-08-08 Thread James Telfer

I've also had this problem -- you could try aliasing your servlet, or
alternatively adding a dummy query string on the end, along the lines of
?foo=bar.pdf. This seemed to work for me.

JT

-Original Message-
From: Alex McLintock [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 09, 2001 2:16 AM
To: [EMAIL PROTECTED]
Subject: Re: FOP Servlets being invoked twice


 --- Alex Amies <[EMAIL PROTECTED]> wrote: 
> I have a problem with a servlet, which serves up pdf documents, 
> invoking the servlet twice for every time I request the
> url using my browser.  The pdf document is produced 
> correctly in both instances.  Anybody else seen this
> problem, know what it is, or have a constructive suggestion?

If you check the mailing list archives you will see that at least one person
has seen this problem (with IE I think) and can't find a way around it.
However I don't see it myself so it might be fixable.


> long sixty = System.currentTimeMillis() + 60*1000;
> res.setDateHeader("Expires", sixty);

This is the only bit I am worried about - how does this help?

Since you've mentioned servlets I'll throw my problem into the fray.

I've seen the content size problem (which you have correctly solved in your
code)
but now I have a problem with a particular build of IE. Basically the PDF
doesn't appear -
in fact neither does acrobat reader
The problem occurs on the IE version 5.50.4522.1800 and not with other IE5.5
versions, eg.
5.50.4134.0600.

(Incidently the data is submitted to the servlet using Post - apparently
this is
the cause of the bug in IE)

Now I got so fed up with this that I tried saving the PDF file to disk and
then issuing
a redirect to the static PDF file. Hooray this works in the problem version
of IE.
Oh b(*&^(*er it no longer works in the older versions of IE.

I've tried the servlet "sendRedirect", I've tried a Location header with
relative and 
absolute URLs, I've even just tried a "Refresh" header. Nothing seems to
work.

So folks - what are your servlet experiences?

I feel like I'm going round in circles here. 

The one thing I haven't really done is to change the URL to end with ".pdf" 
Basically I can't create a class called "something.pdf" so haven't created a
servlet  
with that name yet. I've tried servletname;stupidie.pdf but that didn't seem
to help.


Alex




=
Alex McLintock[EMAIL PROTECTED]Open Source Consultancy in London
OpenWeb Analysts Ltd, http://www.OWAL.co.uk/ 
SF and Computing Book News and Reviews: http://news.diversebooks.com/
Get Your XML T-Shirt  at http://www.inversity.co.uk/


Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie

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

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




Keeping list-item-label and list-item-body together update

2001-08-08 Thread Don Wellington

Hi all-

I have list-item-label and list-item-body kept
together on the same page.  I will need a lesson in
the etiquette of presenting the changes.  Should I
send the full class files to this list?  Attempt to
diff the class files?  A little advice woudl be good.

As for what I did:

FONode.java

1) Added a protected Vector allAreas = new Vector()

2) Filled in removeAreas() with
public void removeAreas() {
  // still to do
  Area parentArea;
  int numAreas = this.allAreas.size();
for(int i=0; i < numAreas; i++) {
  parentArea =  
 ((Area)allAreas.elementAt(i)).getParent();
  parentArea.removeChild
 ((Area)allAreas.elementAt(i));
}
int numChildren = this.children.size();
for(int i = 0; i < numChildren; i++) {
  FONode fo = (FONode) children.elementAt(i);
  fo.removeAreas();
}
this.marker = 0;
}

Problem: How to set marker so that if layout is called
again area will be recreated, but IDs will not. Or,
how to remove IDs related to above areas as well. 0
seems to work right now, but maybe markers needed to
be enumerated?

Changes to Block.java:

1) In layout() after this.blockArea is created added:
  allAreas.add(this.blockArea);

Changes to ListItemLabel.java:
1) In layout():
if(this.marker == START) {
  String id = this.properties.get("id").getString();  
  
  area.getIDReferences().initializeID(id,area);
  this.marker = 0;
}
Simply to prevent a error due to the same ID being
initialized again.

Changes to ListItemBody.java:

None.  It returns Status.AREA_FULL_NONE when the first
item overflows the page.

Changes to ListItem.java:

1)Changed the following from:

if (this.marker == 0) {
   // configure id
   area.getIDReferences().configureID(id, area);

   status = label.layout(blockArea);
   if (status.isIncomplete()) {
return status;
   }
}

To: 

// configure id
if(this.marker == 0){
  area.getIDReferences().configureID(id,area);
}

status = label.layout(blockArea);
if (status.isIncomplete()) {
  return status;
}

Again prevents errors due to bad ID. I tried leaving
this if alone mostly, and just setting the marker to
2. And only configuring the ID when the marker = 0,
and the rest if the marker equaled 0 or 2, but kept
getting a 2 >= 2 error during the rendering areas
step, and couldn't figure out what was generating the
error.

2) Inserted:
if(status.laidOutNone()) {
label.removeAreas();
this.marker = 1;
return status;
}
after:
status = body.layout(blockArea);
if (status.isIncomplete()) {

So, if it nothing is laid out in the body, I remove
all the areas created by label set the marker equal to
1 so it doesn't redo IDs.  And return AREA_FULL_NONE.

Comments?

Don

__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

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




Re: Using FOP 0.19-CVS to create PDF

2001-08-08 Thread Don Wellington

Hi Arved-

It is with FOP-0.19 not the latest CVS.  I am stuck
behind a firewall, so CVS is not really an option.

If you have multiple fo:page-sequences in a document
with either no intial-page-number attribute set, or
initial-page-number set to auto.  The first page of
each page sequence starts at 1.  But, the spec says
that the initial number should be one greater than the
last number of the preceding page-sequence.

I am using docbook-xsl 1.41 on a docbook book with
multiple chapters.  This stylesheet creates a
different page-sequence for each chapter.

See the template for chapter below.  It has an xsl:if
to reset the page numbering to 1 at the first chapter.
 I tried FOP both with and without that xsl:if to make
sure the stylesheet wasn't setting the initial page to
1.


  

  
  

  

  

  


  
  1


  end-on-even



  


  



  
  
  

  
  

  



Don

--- Arved Sandstrom <[EMAIL PROTECTED]> wrote:
> At 10:17 AM 8/8/01 -0700, Don Wellington wrote:
> >3) Pagination accross multiple page sequences
> doesn't
> >work according to the xsl:fo spec.  Something else
> I
> >want to look into fixing in FOP.
> 
> Hi, Don
> 
> Can you clarify? Are we talking about the latest
> CVS? Can you give me an 
> example of where you think things are wrong?
> 
> Thanks,
> Arved
> 
> Fairly Senior Software Type
> e-plicity (http://www.e-plicity.com)
> Wireless * B2B * J2EE * XML --- Halifax, Nova Scotia
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, email:
> [EMAIL PROTECTED]
> 


__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

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




Re: Problems running FOP

2001-08-08 Thread Peter S. Housel

"Arved Sandstrom" <[EMAIL PROTECTED]> wrote:
> I assure you that WinZip or equivalent is entirely capable of unpacking
> .tar.gz compressed archives. Not only that, the download is faster because
> .tar.gz files are almost always smaller.

It does a fine job, though it's often a good idea to shut off "TAR File
Smart CR/LF Conversion" in the Configuration dialog, just in case it guesses
wrongly about whether a file is a text file or not.

Cheers,
-Peter S. Housel-   [EMAIL PROTECTED]   http://members.home.com/housel/



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




Re: Problems running FOP

2001-08-08 Thread Arved Sandstrom

At 02:21 PM 8/8/01 +0200, Agnes Clarke wrote:
>As I haven't been able to get FOP running on Windows ME system, I worry that 
>perhaps extracting the UNIX .tar files on Windows introduces subtle 
>corruptions. Could someone clarify why Windows ZIP downloads are no longer 
>available?

Hi, Agnes

I was solely responsible for that decision. It was based entirely on 
avoiding unnecessary duplication. Space on the Apache machines is not, in 
fact, unlimited.

I assure you that WinZip or equivalent is entirely capable of unpacking 
.tar.gz compressed archives. Not only that, the download is faster because 
.tar.gz files are almost always smaller.

Regards,
Arved Sandstrom

Fairly Senior Software Type
e-plicity (http://www.e-plicity.com)
Wireless * B2B * J2EE * XML --- Halifax, Nova Scotia


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




Re: Using FOP 0.19-CVS to create PDF

2001-08-08 Thread Arved Sandstrom

At 10:17 AM 8/8/01 -0700, Don Wellington wrote:
>3) Pagination accross multiple page sequences doesn't
>work according to the xsl:fo spec.  Something else I
>want to look into fixing in FOP.

Hi, Don

Can you clarify? Are we talking about the latest CVS? Can you give me an 
example of where you think things are wrong?

Thanks,
Arved

Fairly Senior Software Type
e-plicity (http://www.e-plicity.com)
Wireless * B2B * J2EE * XML --- Halifax, Nova Scotia


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




Re: FOP NoClassDefFound

2001-08-08 Thread Arved Sandstrom

At 10:07 PM 8/8/01 +0200, Hojtsy Gabor wrote:
>Sorry for bothering you, now it is solved. Although
>you should palce a fop.bat inside the bin distro too,
>as mentioned on the Running FOP page. There is no
>fop.bat actually now.

Right, this has been a subject of justified complaint, and I will ensure 
that there is one in the bin distro also. That was an oversight.

Regards,
Arved Sandstrom

Fairly Senior Software Type
e-plicity (http://www.e-plicity.com)
Wireless * B2B * J2EE * XML --- Halifax, Nova Scotia


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




Re: Converting XMP to PDF...HELP!!!!!!

2001-08-08 Thread Don Wellington

Hi Mike-

Yes, that is the way to convert xml to pdf.  And, you
need to do it to every file before the user can read
it in a PDF viewer.

An alternative, if you are serving the PDF via a
webserver is to use Cocoon.  With Cocoon2 you can set
it up such that when the web server gets a request for
say file.pdf it will convert file.xml to pdf and
return that to the user.  It has a caching system so
it will only perform the conversion once unless the
xml file has changed.

I hoep that helps.

Don


--- "Patel, Mike" <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> I am able to convert .XML files to .PDF using
> command line on Unix.  This
> the command I use to convert.
> 
> ./fop.sh firstdoc.xml -pdf firstdoc.pdf
> 
> Is their any easy way to do this or I have to do
> this every time (using Unix
> script) before user can opens this documents in IE.
> 
> Thanks in ADVANCE
> 
> Mike
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, email:
> [EMAIL PROTECTED]
> 


__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

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




Converting XMP to PDF...HELP!!!!!!

2001-08-08 Thread Patel, Mike

Hi,

I am able to convert .XML files to .PDF using command line on Unix.  This
the command I use to convert.

./fop.sh firstdoc.xml -pdf firstdoc.pdf

Is their any easy way to do this or I have to do this every time (using Unix
script) before user can opens this documents in IE.

Thanks in ADVANCE

Mike

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




[Bug 3007] - broken basic-link when referencing a following page

2001-08-08 Thread bugzilla

PLEASE DO NOT REPLY TO THIS MESSAGE. TO FURTHER COMMENT
ON THE STATUS OF THIS BUG PLEASE FOLLOW THE LINK BELOW
AND USE THE ON-LINE APPLICATION. REPLYING TO THIS MESSAGE
DOES NOT UPDATE THE DATABASE, AND SO YOUR COMMENT WILL
BE LOST SOMEWHERE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3007

*** shadow/3007 Wed Aug  8 14:35:21 2001
--- shadow/3007.tmp.9428Wed Aug  8 14:37:01 2001
***
*** 9,15 
  ++
  |  Assigned To: [EMAIL PROTECTED]   |
  |  Reported By: [EMAIL PROTECTED]   |
- |  CC list: Cc:  |
  ++
  |  URL:  |
  ++
--- 9,14 

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




[Bug 3007] - broken basic-link when referencing a following page

2001-08-08 Thread bugzilla

PLEASE DO NOT REPLY TO THIS MESSAGE. TO FURTHER COMMENT
ON THE STATUS OF THIS BUG PLEASE FOLLOW THE LINK BELOW
AND USE THE ON-LINE APPLICATION. REPLYING TO THIS MESSAGE
DOES NOT UPDATE THE DATABASE, AND SO YOUR COMMENT WILL
BE LOST SOMEWHERE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3007

*** shadow/3007 Wed Aug  8 14:33:35 2001
--- shadow/3007.tmp.9409Wed Aug  8 14:35:21 2001
***
*** 131,133 
--- 131,166 
  --- Additional Comments From [EMAIL PROTECTED]  2001-08-08 14:33 ---
  Created an attachment (id=401)
  Modified PDFDocmument.java
+ 
+ 
+ --- Additional Comments From [EMAIL PROTECTED]  2001-08-08 14:35 ---
+ I ran into the same problem and did some digging.  I believe I've located the 
+ problem.  The problem is that the PDFDocument class sometimes creates an IDNode 
+ for an ID before the IDReferences.createID gets called.  When createID gets 
+ called a bit later, it sees that the ID already exists and things it's a 
+ duplicate.
+ 
+ I made the following modifications to IDReferences, and that seemed to clear up 
+ the problem:
+ 
+ 1. Created a new attribute 'unvalidatedIds' to track IDs that have been created, 
+ but not validated.
+ 
+ 2. Created methods to add to, remove from and search for an ID in the 
+ unvalidatedIds list.  Modified constructor to initialize the list.
+ 
+ 3. Modified createID to check if the Id is in the unvalidatedIds.  If so, it 
+ removes it from the list (as well as from the idValidation list).  It does NOT 
+ raise a dup error :>
+ 
+ 4. Added a CreateUnvalidatedID(ID as String) method that calls createNewId, AND 
+ adds the new id to the unvalidateIds list.
+ 
+ 5. Modified PDFDocument.getGoToReference to call CreateUnvalidatedID instead of 
+ createNewId
+ 
+ I've attached the modified java files.  (Hope it's ok this way.  Didn't have 
+ time to pursue installing/using CVS)  You may wish to consider a different name 
+ than unvalidatedId (the similarity with idValidation may cause confusion).  I 
+ couldn't come up with anything better in the 5 minutes I spent thinking about it 
+ :>

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




[Bug 3007] - broken basic-link when referencing a following page

2001-08-08 Thread bugzilla

PLEASE DO NOT REPLY TO THIS MESSAGE. TO FURTHER COMMENT
ON THE STATUS OF THIS BUG PLEASE FOLLOW THE LINK BELOW
AND USE THE ON-LINE APPLICATION. REPLYING TO THIS MESSAGE
DOES NOT UPDATE THE DATABASE, AND SO YOUR COMMENT WILL
BE LOST SOMEWHERE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3007

*** shadow/3007 Wed Aug  8 14:32:24 2001
--- shadow/3007.tmp.9391Wed Aug  8 14:33:35 2001
***
*** 126,128 
--- 126,133 
  --- Additional Comments From [EMAIL PROTECTED]  2001-08-08 14:32 ---
  Created an attachment (id=400)
  Modified IDReferences.java
+ 
+ 
+ --- Additional Comments From [EMAIL PROTECTED]  2001-08-08 14:33 ---
+ Created an attachment (id=401)
+ Modified PDFDocmument.java

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




[Bug 3007] - broken basic-link when referencing a following page

2001-08-08 Thread bugzilla

PLEASE DO NOT REPLY TO THIS MESSAGE. TO FURTHER COMMENT
ON THE STATUS OF THIS BUG PLEASE FOLLOW THE LINK BELOW
AND USE THE ON-LINE APPLICATION. REPLYING TO THIS MESSAGE
DOES NOT UPDATE THE DATABASE, AND SO YOUR COMMENT WILL
BE LOST SOMEWHERE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3007

*** shadow/3007 Mon Aug  6 13:28:29 2001
--- shadow/3007.tmp.9379Wed Aug  8 14:32:24 2001
***
*** 122,124 
--- 122,128 
  
  
  -- snip --
+ 
+ --- Additional Comments From [EMAIL PROTECTED]  2001-08-08 14:32 ---
+ Created an attachment (id=400)
+ Modified IDReferences.java

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




RE: FOP Servlets being invoked twice

2001-08-08 Thread Alex Amies

Thanks for the tip on IE behaving like this.  

I don't agree with the suggestion about using DOM to
build up a document.  Intuitively it does not make sense
to have Xalan parse the document out when the program that
constructs it knows the structure.  There are several 
problems with this, however:

(1) It is more convoluted to code DOM than dealing with strings.
(2) It will be slower.   Xalan does not use DOM to store
nodes in an xml document since it creates too many objects.
(3) It will take more memory since storing the document in
a DOM will use more memory than a StringBuffer.

-Original Message-
From: David Frankson [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 08, 2001 12:33 PM
To: [EMAIL PROTECTED]
Subject: Re: FOP Servlets being invoked twice


As far as I know, IE has always done 2 requests per mime type that
it
doesn't handle internally.  See Article ID: Q293336 in the M$ knowledge
base.  Netscape and all others only do 1 request.  If anyone knows a
configuration that can get IE to behave, please let me know


I do suggest adding

response.addHeader("Content-Disposition", "inline;
filename=report.pdf");

it will fix some glitches in IE5.0,  and also have you considered using
a
Dom  Document rather than a string to pass your xml around?  It would
save
you from having to parse it twice when you go from your business object
to
Xalan, and from Xalan to FOP.

Dave


- Original Message -
From: "Alex Amies" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: "Tim Kearney" <[EMAIL PROTECTED]>
Sent: Wednesday, August 08, 2001 11:15 AM
Subject: FOP Servlets being invoked twice


> I have a problem with a servlet, which serves up pdf documents,
> invoking the servlet twice for every time I request the
> url using my browser.  The pdf document is produced
> correctly in both instances.  Anybody else seen this
> problem, know what it is, or have a constructive suggestion?
>
> The servlet gets data from a database, formats into xml,
> transforms it with Xalan, then again to a pdf, sending
> the content to a byte array where it is then written to
> the output stream.  Here is a code fragment:
>
> Writer writer = new StringWriter();
>
> // Get an xslt processor factory
> TransformerFactory tFactory = TransformerFactory.newInstance();
>
> // Create the 3 objects the XSLTProcessor needs to perform the
> transformation.
> ReportInfo reportInfo = getReportData(request,res);
> String xml = reportInfo.getXml();
> StringReader stringReader = new StringReader(xml);
> Source xmlSource  = new StreamSource(stringReader);
> Source xslSheet   = getXSLInput(reportInfo.getReportNo());
> StreamResult xmlResult = new StreamResult(writer);
>
> Transformer transformer = tFactory.newTransformer(xslSheet);
>
> // Perform the transformation.
> transformer.transform(xmlSource, xmlResult);
>
> // send output from xsl transformation to a string reader
> // create a input source containing the xsl:fo file which can be fed
to
> Fop
> Reader reader = new StringReader(writer.toString());
> writer.flush();
> writer.close();
>
> //set Driver methods to start Fop processing
> Driver driver = new Driver();
>
> driver.setRenderer("org.apache.fop.render.pdf.PDFRenderer",".14");
> driver.addElementMapping("org.apache.fop.fo.StandardElementMapping");
> driver.addElementMapping("org.apache.fop.svg.SVGElementMapping");
>
driver.addPropertyList("org.apache.fop.fo.StandardPropertyListMapping");
> driver.addPropertyList("org.apache.fop.svg.SVGPropertyListMapping");
>
> // send pdf writer output to a byte array stream
> ByteArrayOutputStream baos = new ByteArrayOutputStream();
> PrintWriter printWriter = new PrintWriter(baos);
> driver.setWriter(printWriter);
> driver.buildFOTree(parser, new InputSource(reader));
> driver.format();
> driver.render();
>
> // send the bytes out to the servlet output stream
> res.setContentType("application/pdf");
> res.setContentLength(baos.size());
>
> long sixty = System.currentTimeMillis() + 60*1000;
> res.setDateHeader("Expires", sixty);
> baos.writeTo(res.getOutputStream());
> res.flushBuffer();
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>
>


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

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




.pdf extension

2001-08-08 Thread Alex Amies

We had exactly the same problem with the file extensions.  IE
seems to ignore the content type directive.  Once we renamed
our servlet url to "report.pdf" IE was able to pick up 
the reports.

-Original Message-
From: Alex McLintock [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 08, 2001 9:46 AM
To: [EMAIL PROTECTED]
Subject: Re: FOP Servlets being invoked twice


 --- Alex Amies <[EMAIL PROTECTED]> wrote: 
> I have a problem with a servlet, which serves up pdf documents, 
> invoking the servlet twice for every time I request the
> url using my browser.  The pdf document is produced 
> correctly in both instances.  Anybody else seen this
> problem, know what it is, or have a constructive suggestion?

If you check the mailing list archives you will see that at least one
person
has seen this problem (with IE I think) and can't find a way around it.
However I don't see it myself so it might be fixable.


> long sixty = System.currentTimeMillis() + 60*1000;
> res.setDateHeader("Expires", sixty);

This is the only bit I am worried about - how does this help?

Since you've mentioned servlets I'll throw my problem into the fray.

I've seen the content size problem (which you have correctly solved in
your code)
but now I have a problem with a particular build of IE. Basically the
PDF doesn't appear -
in fact neither does acrobat reader
The problem occurs on the IE version 5.50.4522.1800 and not with other
IE5.5 versions, eg.
5.50.4134.0600.

(Incidently the data is submitted to the servlet using Post - apparently
this is
the cause of the bug in IE)

Now I got so fed up with this that I tried saving the PDF file to disk
and then issuing
a redirect to the static PDF file. Hooray this works in the problem
version of IE.
Oh b(*&^(*er it no longer works in the older versions of IE.

I've tried the servlet "sendRedirect", I've tried a Location header with
relative and 
absolute URLs, I've even just tried a "Refresh" header. Nothing seems to
work.

So folks - what are your servlet experiences?

I feel like I'm going round in circles here. 

The one thing I haven't really done is to change the URL to end with
".pdf" 
Basically I can't create a class called "something.pdf" so haven't
created a servlet  
with that name yet. I've tried servletname;stupidie.pdf but that didn't
seem to help.


Alex




=
Alex McLintock[EMAIL PROTECTED]Open Source Consultancy in
London
OpenWeb Analysts Ltd, http://www.OWAL.co.uk/ 
SF and Computing Book News and Reviews: http://news.diversebooks.com/
Get Your XML T-Shirt  at http://www.inversity.co.uk/


Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie

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

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




RE: FOP NoClassDefFound

2001-08-08 Thread Patel, Mike

Hi,

I also got the same error but when I make sure that the "fop.sh" file was in
my path and I was able to convert the .xml documents to pdf file.  In my
case when it didn't find "fop.sh" that's where I got the error and when I
gave the full path to "fop.sh" I didn't get the error.

The syntax that I was running was as follows.

./fop.sh docs/firstdoc.xml docs/mike.pdf

I hope this helps.

Mike

-Original Message-
From: Hojtsy Gabor [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 08, 2001 1:08 PM
To: [EMAIL PROTECTED]
Subject: Re: FOP NoClassDefFound


> I am trying out FOP for the PHP project to generate
> PDF docs from our XML sources. But I get the following
> error:
> 
>   Exception in thread "main" java.lang.NoClassDefFoundError:
>   org/apache/stylebook/StyleBook
> 
> Is there something missing from my distro?
> 
> I am trying FOP 0.19.0CVS (binary version).

Sorry for bothering you, now it is solved. Although
you should palce a fop.bat inside the bin distro too,
as mentioned on the Running FOP page. There is no
fop.bat actually now.

[EMAIL PROTECTED]


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

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




Re: FOP NoClassDefFound

2001-08-08 Thread Hojtsy Gabor

> I am trying out FOP for the PHP project to generate
> PDF docs from our XML sources. But I get the following
> error:
> 
>   Exception in thread "main" java.lang.NoClassDefFoundError:
>   org/apache/stylebook/StyleBook
> 
> Is there something missing from my distro?
> 
> I am trying FOP 0.19.0CVS (binary version).

Sorry for bothering you, now it is solved. Although
you should palce a fop.bat inside the bin distro too,
as mentioned on the Running FOP page. There is no
fop.bat actually now.

[EMAIL PROTECTED]


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




Statuses

2001-08-08 Thread Don Wellington

Hi-

I am starting to work my way through the code, and was
wondering if anyone could help me out and let me know
what the different status mean.

Especially, Status.AREA_FULL_NONE and 
Status.AREA_FULL_SOME.

I am looking at this trying to figure out how page
breaks are determined, so I can keep ListItemLabel
together with ListItemBody.

Thanks,
Don



__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

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




FOP FAQ suggestion

2001-08-08 Thread Paul Furbacher


On Wednesday, August 8, 2001, Alex McLintock  <[EMAIL PROTECTED]>  wrote:

> Hmmm, I guess I better put this in the FAQ.
> Hmmm, I guess I better fix the FAQ.

Alex,

This is not meant as criticism.  In fact, thanks for all the work you've
done so far to maintain the FAQ.

But, why not make life easier for yourself and set up a Faq-O-Matic?
In general, no person really has the time or energy to properly maintain
a FAQ.  You have more important things to do, like answer questions
on this list.  (Smiley needed?)  So, one should leave it to computers and
the community to do the maintaining and growing.

I believe Faq-O-Matic is a SourceForge project and shouldn't be
too difficult to set up.


Paul Furbacher


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




Re: FOP Servlets being invoked twice

2001-08-08 Thread David Frankson

As far as I know, IE has always done 2 requests per mime type that it
doesn't handle internally.  See Article ID: Q293336 in the M$ knowledge
base.  Netscape and all others only do 1 request.  If anyone knows a
configuration that can get IE to behave, please let me know


I do suggest adding

response.addHeader("Content-Disposition", "inline; filename=report.pdf");

it will fix some glitches in IE5.0,  and also have you considered using a
Dom  Document rather than a string to pass your xml around?  It would save
you from having to parse it twice when you go from your business object to
Xalan, and from Xalan to FOP.

Dave


- Original Message -
From: "Alex Amies" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: "Tim Kearney" <[EMAIL PROTECTED]>
Sent: Wednesday, August 08, 2001 11:15 AM
Subject: FOP Servlets being invoked twice


> I have a problem with a servlet, which serves up pdf documents,
> invoking the servlet twice for every time I request the
> url using my browser.  The pdf document is produced
> correctly in both instances.  Anybody else seen this
> problem, know what it is, or have a constructive suggestion?
>
> The servlet gets data from a database, formats into xml,
> transforms it with Xalan, then again to a pdf, sending
> the content to a byte array where it is then written to
> the output stream.  Here is a code fragment:
>
> Writer writer = new StringWriter();
>
> // Get an xslt processor factory
> TransformerFactory tFactory = TransformerFactory.newInstance();
>
> // Create the 3 objects the XSLTProcessor needs to perform the
> transformation.
> ReportInfo reportInfo = getReportData(request,res);
> String xml = reportInfo.getXml();
> StringReader stringReader = new StringReader(xml);
> Source xmlSource  = new StreamSource(stringReader);
> Source xslSheet   = getXSLInput(reportInfo.getReportNo());
> StreamResult xmlResult = new StreamResult(writer);
>
> Transformer transformer = tFactory.newTransformer(xslSheet);
>
> // Perform the transformation.
> transformer.transform(xmlSource, xmlResult);
>
> // send output from xsl transformation to a string reader
> // create a input source containing the xsl:fo file which can be fed to
> Fop
> Reader reader = new StringReader(writer.toString());
> writer.flush();
> writer.close();
>
> //set Driver methods to start Fop processing
> Driver driver = new Driver();
>
> driver.setRenderer("org.apache.fop.render.pdf.PDFRenderer",".14");
> driver.addElementMapping("org.apache.fop.fo.StandardElementMapping");
> driver.addElementMapping("org.apache.fop.svg.SVGElementMapping");
> driver.addPropertyList("org.apache.fop.fo.StandardPropertyListMapping");
> driver.addPropertyList("org.apache.fop.svg.SVGPropertyListMapping");
>
> // send pdf writer output to a byte array stream
> ByteArrayOutputStream baos = new ByteArrayOutputStream();
> PrintWriter printWriter = new PrintWriter(baos);
> driver.setWriter(printWriter);
> driver.buildFOTree(parser, new InputSource(reader));
> driver.format();
> driver.render();
>
> // send the bytes out to the servlet output stream
> res.setContentType("application/pdf");
> res.setContentLength(baos.size());
>
> long sixty = System.currentTimeMillis() + 60*1000;
> res.setDateHeader("Expires", sixty);
> baos.writeTo(res.getOutputStream());
> res.flushBuffer();
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>
>


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




Submitting test

2001-08-08 Thread Patel, Mike

Hi,

I am totally new with FOP but I got the FOP successfully install, compile
but now my problem is I have this XML document that I want to open as PDF
file.  How would I do this.

What is /test directory and where is located under FOP.  I
did do Unix find command and I can't find it.
HELP
Thanks in ADVANCE

Mike


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




FOP NoClassDefFound

2001-08-08 Thread Hojtsy Gabor

Hi!

I am trying out FOP for the PHP project to generate
PDF docs from our XML sources. But I get the following
error:

  Exception in thread "main" java.lang.NoClassDefFoundError:
  org/apache/stylebook/StyleBook

Is there something missing from my distro?

I am trying FOP 0.19.0CVS (binary version).

Thanks,
[EMAIL PROTECTED]


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




Re: FOP Servlets being invoked twice

2001-08-08 Thread Joe Batt

Alex McLintock wrote:

>
>I've seen the content size problem (which you have correctly solved in your code)
>but now I have a problem with a particular build of IE. Basically the PDF doesn't 
>appear -
>in fact neither does acrobat reader
>The problem occurs on the IE version 5.50.4522.1800 and not with other IE5.5 
>versions, eg.
>5.50.4134.0600.
>
We found that Acrobat with 'Web Browser Integration' turned on failed to 
render almost always.  Switching to Acrobat 5.0 or turning off the web 
browser integration caused the rendering to work just fine.

Joe


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




Re: FOP Servlets being invoked twice

2001-08-08 Thread Chetan Vig

Yes, I have also seen this on my servlets which
generate PDF reports of 10-15 pages or more. For small
PDF reports like 1-5 pages I havent seen this issue.

-Chetan

 
--- Alex Amies <[EMAIL PROTECTED]> wrote:
> I have a problem with a servlet, which serves up pdf
> documents, 
> invoking the servlet twice for every time I request
> the
> url using my browser.  The pdf document is produced 
> correctly in both instances.  Anybody else seen this
> problem, know what it is, or have a constructive
> suggestion?
> 
> The servlet gets data from a database, formats into
> xml, 
> transforms it with Xalan, then again to a pdf,
> sending 
> the content to a byte array where it is then written
> to 
> the output stream.  Here is a code fragment:
> 
> Writer writer = new StringWriter();
> 
> // Get an xslt processor factory
> TransformerFactory tFactory =
> TransformerFactory.newInstance();
> 
> // Create the 3 objects the XSLTProcessor needs to
> perform the
> transformation.
> ReportInfo reportInfo = getReportData(request,res);
> String xml = reportInfo.getXml();
> StringReader stringReader = new StringReader(xml);
> Source xmlSource  = new StreamSource(stringReader);
> Source xslSheet   =
> getXSLInput(reportInfo.getReportNo());
> StreamResult xmlResult = new StreamResult(writer);
> 
> Transformer transformer =
> tFactory.newTransformer(xslSheet);
> 
> // Perform the transformation.
> transformer.transform(xmlSource, xmlResult);
> 
> // send output from xsl transformation to a string
> reader
> // create a input source containing the xsl:fo file
> which can be fed to
> Fop
> Reader reader = new StringReader(writer.toString());
> writer.flush();
> writer.close();
> 
> //set Driver methods to start Fop processing
> Driver driver = new Driver();
> 
>
driver.setRenderer("org.apache.fop.render.pdf.PDFRenderer",".14");
>
driver.addElementMapping("org.apache.fop.fo.StandardElementMapping");
>
driver.addElementMapping("org.apache.fop.svg.SVGElementMapping");
>
driver.addPropertyList("org.apache.fop.fo.StandardPropertyListMapping");
>
driver.addPropertyList("org.apache.fop.svg.SVGPropertyListMapping");
> 
> // send pdf writer output to a byte array stream
> ByteArrayOutputStream baos = new
> ByteArrayOutputStream();
> PrintWriter printWriter = new PrintWriter(baos);
> driver.setWriter(printWriter);
> driver.buildFOTree(parser, new InputSource(reader));
> driver.format();
> driver.render();
> 
> // send the bytes out to the servlet output stream
> res.setContentType("application/pdf");
> res.setContentLength(baos.size());
> 
> long sixty = System.currentTimeMillis() + 60*1000;
> res.setDateHeader("Expires", sixty);
> baos.writeTo(res.getOutputStream());
> res.flushBuffer();
> 
>  
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, email:
> [EMAIL PROTECTED]
> 


__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

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




Re: FOP Servlets being invoked twice

2001-08-08 Thread Joe Batt

It happened to me using IE to Tomcat on the local machine using 
'localhost'.  I switched to using the real network interface and it 
fixed itself.

Joe

Alex Amies wrote:

>I have a problem with a servlet, which serves up pdf documents, 
>invoking the servlet twice for every time I request the
>url using my browser.  The pdf document is produced 
>correctly in both instances.  Anybody else seen this
>problem, know what it is, or have a constructive suggestion?
>
>The servlet gets data from a database, formats into xml, 
>transforms it with Xalan, then again to a pdf, sending 
>the content to a byte array where it is then written to 
>the output stream.  Here is a code fragment:
>
>Writer writer = new StringWriter();
>
>// Get an xslt processor factory
>TransformerFactory tFactory = TransformerFactory.newInstance();
>
>// Create the 3 objects the XSLTProcessor needs to perform the
>transformation.
>ReportInfo reportInfo = getReportData(request,res);
>String xml = reportInfo.getXml();
>StringReader stringReader = new StringReader(xml);
>Source xmlSource  = new StreamSource(stringReader);
>Source xslSheet   = getXSLInput(reportInfo.getReportNo());
>StreamResult xmlResult = new StreamResult(writer);
>
>Transformer transformer = tFactory.newTransformer(xslSheet);
>
>// Perform the transformation.
>transformer.transform(xmlSource, xmlResult);
>
>// send output from xsl transformation to a string reader
>// create a input source containing the xsl:fo file which can be fed to
>Fop
>Reader reader = new StringReader(writer.toString());
>writer.flush();
>writer.close();
>
>//set Driver methods to start Fop processing
>Driver driver = new Driver();
>
>driver.setRenderer("org.apache.fop.render.pdf.PDFRenderer",".14");
>driver.addElementMapping("org.apache.fop.fo.StandardElementMapping");
>driver.addElementMapping("org.apache.fop.svg.SVGElementMapping");
>driver.addPropertyList("org.apache.fop.fo.StandardPropertyListMapping");
>driver.addPropertyList("org.apache.fop.svg.SVGPropertyListMapping");
>
>// send pdf writer output to a byte array stream
>ByteArrayOutputStream baos = new ByteArrayOutputStream();
>PrintWriter printWriter = new PrintWriter(baos);
>driver.setWriter(printWriter);
>driver.buildFOTree(parser, new InputSource(reader));
>driver.format();
>driver.render();
>
>// send the bytes out to the servlet output stream
>res.setContentType("application/pdf");
>res.setContentLength(baos.size());
>
>long sixty = System.currentTimeMillis() + 60*1000;
>res.setDateHeader("Expires", sixty);
>baos.writeTo(res.getOutputStream());
>res.flushBuffer();
>
> 
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, email: [EMAIL PROTECTED]
>
>
>




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




Re: Using FOP 0.19-CVS to create PDF

2001-08-08 Thread Don Wellington

Hi Jeff-

I am working on almost the same software.  I am using
docbook-xsl 1.41.  I found the easiest way to figure
out where a problem is occuring is to just start
erasing parts of my document from the bottom up until
the problem goes away.  Then, you will eventually be
able to figure out which element is generating the
fo:inline that is initiating your problem.

Just so you know a couple of problems I have run into:

1) A graphic as the first element in a list-item-body
can cause a page break which leaves the
list-item-label on the previous page.  I am trying to
figure out how to  prevent this in the FOP code.

2) Graphics that are larger than a page will send FOP
into an infinite loop.

3) Pagination accross multiple page sequences doesn't
work according to the xsl:fo spec.  Something else I
want to look into fixing in FOP.

4) Page number sitation in the tabel of contents are
not appearing.  I don't know whether this is a
docbook-xsl or FOP problem.  I also don't like the
justification in the tabel of contents, so I changed
justify="start".

I will keep you informed as I find mor things.

Don

--- Jeff Rancier <[EMAIL PROTECTED]> wrote:
> Hello All.
> 
> I downloaded the 1.42 XSL stylesheets for DocBook in
> an attempt to generate
> a PDF from my DocBook XML.  The version of the
> DocBook stylesheets with
> XAE-1.0beta6 appears to be 1.18.  The version of the
> DocBook DTD which my
> book was created appears to be V4.1.2.  I am
> attempting to create the PDF
> directly from my DocBook (book) XML, using the
> FOP-0.19-CVS using the
> fo/docbook.xsl stylesheet.  I am still getting
> errors.
> 
> Can anyone tell me if I need to get a different
> version of the DTD, or what
> my problem might be?
> 
> As follows:
> 
> fop -xml mybook.XML -xsl docbook.xsl -pdf mybook.pdf
> java -cp
>
fop-0.19.0-CVS\fop.jar;fop-0.19.0-CVS\lib\w3c.jar;fop-0.19.0-CVS\lib\xalan-2
>
.0.0.jar;fop-0.19.0-CVS\lib\xerces-1.2.3.jar;fop-0.19.0-CVS\lib\jimi-1.0.jar
> org.apache.fop.apps.Fop -xml mybook.XML -xsl
> h:docbook.xsl -pdf mybook.pdf
> 
> FOP 0.19.0-CVS
> using SAX parser org.apache.xerces.parsers.SAXParser
>
file:///h:/cvsdev/projects/docbook-1.42/docbook-xsl-1.42/fo/docbook.xsl;
> Line 92
> ; Column 16; Making portrait pages on USletter paper
> (8.5inx11in)
> building formatting object tree
> Error in height property value '$height':
> org.apache.fop.fo.expr.PropertyExcepti
> on: illegal character
> Error in width property value '$width':
> org.apache.fop.fo.expr.PropertyException
> : illegal character
> Error in height property value '$height':
> org.apache.fop.fo.expr.PropertyExcepti
> on: illegal character
> Error in width property value '$width':
> org.apache.fop.fo.expr.PropertyException
> : illegal character
> Error in height property value '$height':
> org.apache.fop.fo.expr.PropertyExcepti
> on: illegal character
> Error in width property value '$width':
> org.apache.fop.fo.expr.PropertyException
> : illegal character
> Error in height property value '$height':
> org.apache.fop.fo.expr.PropertyExcepti
> on: illegal character
> Error in width property value '$width':
> org.apache.fop.fo.expr.PropertyException
> : illegal character
> WARNING: property 'format' ignored
> WARNING: property 'last-line-end-indent' ignored
> WARNING: property 'last-line-end-indent' ignored
> WARNING: property 'last-line-end-indent' ignored
> WARNING: property 'last-line-end-indent' ignored
> WARNING: property 'last-line-end-indent' ignored
> WARNING: property 'last-line-end-indent' ignored
> WARNING: property 'last-line-end-indent' ignored
> WARNING: property 'last-line-end-indent' ignored
> WARNING: property 'last-line-end-indent' ignored
> WARNING: property 'last-line-end-indent' ignored
> WARNING: property 'format' ignored
> WARNING: property 'last-line-end-indent' ignored
> WARNING: property 'last-line-end-indent' ignored
> WARNING: property 'last-line-end-indent' ignored
> WARNING: property 'format' ignored
> ERROR: fo:inline can't be directly under flow
> 
> TIA,
> Jeff
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, email:
> [EMAIL PROTECTED]
> 


__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

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




Re: FOP Servlets being invoked twice

2001-08-08 Thread Alex McLintock

 --- Alex Amies <[EMAIL PROTECTED]> wrote: 
> I have a problem with a servlet, which serves up pdf documents, 
> invoking the servlet twice for every time I request the
> url using my browser.  The pdf document is produced 
> correctly in both instances.  Anybody else seen this
> problem, know what it is, or have a constructive suggestion?

If you check the mailing list archives you will see that at least one person
has seen this problem (with IE I think) and can't find a way around it.
However I don't see it myself so it might be fixable.


> long sixty = System.currentTimeMillis() + 60*1000;
> res.setDateHeader("Expires", sixty);

This is the only bit I am worried about - how does this help?

Since you've mentioned servlets I'll throw my problem into the fray.

I've seen the content size problem (which you have correctly solved in your code)
but now I have a problem with a particular build of IE. Basically the PDF doesn't 
appear -
in fact neither does acrobat reader
The problem occurs on the IE version 5.50.4522.1800 and not with other IE5.5 versions, 
eg.
5.50.4134.0600.

(Incidently the data is submitted to the servlet using Post - apparently this is
the cause of the bug in IE)

Now I got so fed up with this that I tried saving the PDF file to disk and then issuing
a redirect to the static PDF file. Hooray this works in the problem version of IE.
Oh b(*&^(*er it no longer works in the older versions of IE.

I've tried the servlet "sendRedirect", I've tried a Location header with relative and 
absolute URLs, I've even just tried a "Refresh" header. Nothing seems to work.

So folks - what are your servlet experiences?

I feel like I'm going round in circles here. 

The one thing I haven't really done is to change the URL to end with ".pdf" 
Basically I can't create a class called "something.pdf" so haven't created a servlet  
with that name yet. I've tried servletname;stupidie.pdf but that didn't seem to help.


Alex




=
Alex McLintock[EMAIL PROTECTED]Open Source Consultancy in London
OpenWeb Analysts Ltd, http://www.OWAL.co.uk/ 
SF and Computing Book News and Reviews: http://news.diversebooks.com/
Get Your XML T-Shirt  at http://www.inversity.co.uk/


Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie

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




FOP Servlets being invoked twice

2001-08-08 Thread Alex Amies

I have a problem with a servlet, which serves up pdf documents, 
invoking the servlet twice for every time I request the
url using my browser.  The pdf document is produced 
correctly in both instances.  Anybody else seen this
problem, know what it is, or have a constructive suggestion?

The servlet gets data from a database, formats into xml, 
transforms it with Xalan, then again to a pdf, sending 
the content to a byte array where it is then written to 
the output stream.  Here is a code fragment:

Writer writer = new StringWriter();

// Get an xslt processor factory
TransformerFactory tFactory = TransformerFactory.newInstance();

// Create the 3 objects the XSLTProcessor needs to perform the
transformation.
ReportInfo reportInfo = getReportData(request,res);
String xml = reportInfo.getXml();
StringReader stringReader = new StringReader(xml);
Source xmlSource  = new StreamSource(stringReader);
Source xslSheet   = getXSLInput(reportInfo.getReportNo());
StreamResult xmlResult = new StreamResult(writer);

Transformer transformer = tFactory.newTransformer(xslSheet);

// Perform the transformation.
transformer.transform(xmlSource, xmlResult);

// send output from xsl transformation to a string reader
// create a input source containing the xsl:fo file which can be fed to
Fop
Reader reader = new StringReader(writer.toString());
writer.flush();
writer.close();

//set Driver methods to start Fop processing
Driver driver = new Driver();

driver.setRenderer("org.apache.fop.render.pdf.PDFRenderer",".14");
driver.addElementMapping("org.apache.fop.fo.StandardElementMapping");
driver.addElementMapping("org.apache.fop.svg.SVGElementMapping");
driver.addPropertyList("org.apache.fop.fo.StandardPropertyListMapping");
driver.addPropertyList("org.apache.fop.svg.SVGPropertyListMapping");

// send pdf writer output to a byte array stream
ByteArrayOutputStream baos = new ByteArrayOutputStream();
PrintWriter printWriter = new PrintWriter(baos);
driver.setWriter(printWriter);
driver.buildFOTree(parser, new InputSource(reader));
driver.format();
driver.render();

// send the bytes out to the servlet output stream
res.setContentType("application/pdf");
res.setContentLength(baos.size());

long sixty = System.currentTimeMillis() + 60*1000;
res.setDateHeader("Expires", sixty);
baos.writeTo(res.getOutputStream());
res.flushBuffer();

 

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




[Bug 3044] New: - keep-together not functioning

2001-08-08 Thread bugzilla

PLEASE DO NOT REPLY TO THIS MESSAGE. TO FURTHER COMMENT
ON THE STATUS OF THIS BUG PLEASE FOLLOW THE LINK BELOW
AND USE THE ON-LINE APPLICATION. REPLYING TO THIS MESSAGE
DOES NOT UPDATE THE DATABASE, AND SO YOUR COMMENT WILL
BE LOST SOMEWHERE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3044

*** shadow/3044 Wed Aug  8 08:26:09 2001
--- shadow/3044.tmp.5558Wed Aug  8 08:26:09 2001
***
*** 0 
--- 1,128 
+ ++
+ | keep-together not functioning  |
+ ++
+ |Bug #: 3044Product: Fop |
+ |   Status: NEW Version: all |
+ |   Resolution:Platform: PC  |
+ | Severity: MajorOS/Version: Windows NT/2K   |
+ | Priority: Other Component: page-master/layout  |
+ ++
+ |  Assigned To: [EMAIL PROTECTED]   |
+ |  Reported By: [EMAIL PROTECTED]   |
+ |  CC list: Cc:  |
+ ++
+ |  URL:  |
+ ++
+ |  DESCRIPTION   |
+ When generating PDF, keep-together.* appears to not function, as page break 
+ appears inside block marked as 'keep-together.within-page="always"'.  Seems to 
+ occur both within a table cell and outside of tables.  Sample code:
+ 
+ 
+ http://www.w3.org/1999/XSL/Format";>
+   
+ 
+   
+   
+   
+ 
+   
+   
+   
+ 
+   Header
+ 
+ 
+   Page 
+ 
+ 
+ 
+ 
+   
+   
+   
+   
+   
+ 
+ 
+ 
+   
+ items
+   
+   
+ items
+   
+   
+ items
+   
+   
+ items
+   
+ 
+ 
+   
+ item
+   
+   
+ item
+   
+   
+ item
+ item
+   
+   
+ item
+   
+ 
+ 
+   
+ 
+ Name
+ Lots to do, let's get to work!  
+ Lots to do, let's get to work!  [repeat as necessary to fill page]
+ 
+   
+   
+   
+   
+   Name
+   Lots to do, let's get to work!  Lots to do, let's 
+ get to work!  [repeat as necessary to fill page]
+ 
+ 
+   
+ 
\ No newline at end of file

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




Re: linefeed-treatment

2001-08-08 Thread Keiron Liddle

On Wed, 08 Aug 2001 15:12:19 Gregor N. Purdy wrote:
> Thanks for the reply.
> 
> So, does that mean that the entry in src/codegen/foproperties.xml
> should be edited so it doesn't say ToBeImplemented?
> If its being handled correctly, then we don't need the message to be
> printed. If there is some work still to be done before it can be
> considered completely supported, perhaps its a small enough task that
> I could figure it out...
> 
> If nobody else is working on this, I'll go dig into the spec to see
> where the possibilities are discussed and then crawl through the code
> to see if I can find the right place(s) to make changes. I've not
> contributed code before, so pointers would be appreciated. From a
> little find+grep I see that linefeed-treatment is mentioned only in
> foproperties.xml and in src/org/apache/fop/fo/flow/Block.java (but
> it is only in a comment there). I see that white-space-collapse is
> mentioned in a few places.

Gregor,

It should stay as not implemented until it is at least read properly (reads
the value into the correct data type) and is used at least somewhere. If
you only found it on Block then that is probably the only place that it
applies (directly).

To understand what it should do you therefore need to read the information
about the property, read about the block element and other places that you
may need to look at are the other space handling properties.

Then the foproperties.xml should be adjusted to read handle the correct
values. Next it needs to be read in Block and handled there.

That should get you started at least.

Keiron.

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




RE: Using FOP 0.19-CVS to create PDF

2001-08-08 Thread COFFMAN Steven

It sounds like you've got a couple problems. 

Why don't you use Xalan to run your XSL:T to produce the XSL:FO file first,
and then run FOP on that file. More atomic operations are easier to
characterize and systematically debug.

A. You've got XSL:T variables which are not being turned into their proper
values, so there's either a problem with your docbook XML, or the XSL:T
file.

B. Also, you're making invalid (or unsupported) FO in that bit where it says
fo:inline can't be directly under flow. You might want to see if this is
caused by whatever's causing A.

-Original Message-
From: Jeff Rancier [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 07, 2001 4:23 PM
To: [EMAIL PROTECTED]
Subject: Using FOP 0.19-CVS to create PDF


Hello All.

I downloaded the 1.42 XSL stylesheets for DocBook in an attempt to generate
a PDF from my DocBook XML.  The version of the DocBook stylesheets with
XAE-1.0beta6 appears to be 1.18.  The version of the DocBook DTD which my
book was created appears to be V4.1.2.  I am attempting to create the PDF
directly from my DocBook (book) XML, using the FOP-0.19-CVS using the
fo/docbook.xsl stylesheet.  I am still getting errors.

Can anyone tell me if I need to get a different version of the DTD, or what
my problem might be?

As follows:

fop -xml mybook.XML -xsl docbook.xsl -pdf mybook.pdf
java -cp
fop-0.19.0-CVS\fop.jar;fop-0.19.0-CVS\lib\w3c.jar;fop-0.19.0-CVS\lib\xalan-2
.0.0.jar;fop-0.19.0-CVS\lib\xerces-1.2.3.jar;fop-0.19.0-CVS\lib\jimi-1.0.jar
org.apache.fop.apps.Fop -xml mybook.XML -xsl h:docbook.xsl -pdf mybook.pdf

FOP 0.19.0-CVS
using SAX parser org.apache.xerces.parsers.SAXParser
file:///h:/cvsdev/projects/docbook-1.42/docbook-xsl-1.42/fo/docbook.xsl;
Line 92
; Column 16; Making portrait pages on USletter paper (8.5inx11in)
building formatting object tree
Error in height property value '$height':
org.apache.fop.fo.expr.PropertyExcepti
on: illegal character
Error in width property value '$width':
org.apache.fop.fo.expr.PropertyException
: illegal character
Error in height property value '$height':
org.apache.fop.fo.expr.PropertyExcepti
on: illegal character
Error in width property value '$width':
org.apache.fop.fo.expr.PropertyException
: illegal character
Error in height property value '$height':
org.apache.fop.fo.expr.PropertyExcepti
on: illegal character
Error in width property value '$width':
org.apache.fop.fo.expr.PropertyException
: illegal character
Error in height property value '$height':
org.apache.fop.fo.expr.PropertyExcepti
on: illegal character
Error in width property value '$width':
org.apache.fop.fo.expr.PropertyException
: illegal character
WARNING: property 'format' ignored
WARNING: property 'last-line-end-indent' ignored
WARNING: property 'last-line-end-indent' ignored
WARNING: property 'last-line-end-indent' ignored
WARNING: property 'last-line-end-indent' ignored
WARNING: property 'last-line-end-indent' ignored
WARNING: property 'last-line-end-indent' ignored
WARNING: property 'last-line-end-indent' ignored
WARNING: property 'last-line-end-indent' ignored
WARNING: property 'last-line-end-indent' ignored
WARNING: property 'last-line-end-indent' ignored
WARNING: property 'format' ignored
WARNING: property 'last-line-end-indent' ignored
WARNING: property 'last-line-end-indent' ignored
WARNING: property 'last-line-end-indent' ignored
WARNING: property 'format' ignored
ERROR: fo:inline can't be directly under flow

TIA,
Jeff


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

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




Re: Newbie question: FO files

2001-08-08 Thread Ralph LaChance

At 04:03 PM 8/8/01 +0100, you wrote:
>If I understand it right, the problem is my XSL-stylesheet. The XML uses a
>DTD which makes conform XML-files, so this shouldn't be the problem. So I
>have to create a XSL-Stylesheet which is compatible with FOP. Am I right? If
>so, where can I find specifications?

As long as I'm flogging books:
XSLT 2nd Ed by Michael Kay covers everything you've asked,
(and then a whole lot more...)



 ' Best,
 -Ralph LaChance



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




Re: Newbie question: FO files

2001-08-08 Thread Ralph LaChance

At 03:29 PM 8/8/01 +0100, you wrote:
>Now, what are Fo-files? (I said I was a newbie!)
>Can I transform my XML into those .fo-files?
>
>Thanx, any help is appreciated!

I suggest you start here -- it is part I, with a link to part II

http://www.xml.com/lpt/a/2001/01/17/xsl-fo/index.html

Then follow up with this excellent chapter from a book
by Elliotte Rusy Harold (a correspondent on this list)

http://www.ibiblio.org/xml/books/bible2/chapters/ch18.html
better yet, buy it ;-)


 ' Best,
 -Ralph LaChance



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




Re: Newbie question: FO files

2001-08-08 Thread Ulrik

Am 08.08.2001 15:51 Uhr schrieb "Alex McLintock" unter <[EMAIL PROTECTED]>:

> --- Ulrik <[EMAIL PROTECTED]> wrote: > Hi,
>> 
>> I recently downloaded FOP and played around with it since I was searching a
>> way to convert the XML-source of a website into a printable version (for
>> example creating a printable version of a xml-driven ecommerce-product
>> cataloge)
>> 
>> I wasn't able to produce a .pdf from my XMLs with the working XSL, but I was
>> successful with the "test" fo-files from the FOP distribution.
>> 
>> Now, what are Fo-files? (I said I was a newbie!)
> 
> FOP reads in XML in a particular XML format defined in the XSL:FO spec.
> We usually give these xml files the fo extension and call them fo files.
> 
> 
>> Can I transform my XML into those .fo-files?
> 
> Some people take their XML and convert it into the alternative XML fo format
> prior to feeding to FOP. Hopefully you know enough XSL/XSLT to convert your
> XML into XSL:FO.

OK, so where can I find specifications about this fo-standard and how a
compliant XML looks like?
The problem I have (and maybe I am completely misunderstanding the FOP
project) is the following:
I have the content of a website in XML and an XSL-stylesheet, which
transforms this XML into HTML. This is done via an ASP-scripts which I run
after making any changes to the XML (since most browsers are not yet
XML-ready). Now I thought I could drop this XML and XSL files into FOP to
get a print-ready pdf.
If I understand it right, the problem is my XSL-stylesheet. The XML uses a
DTD which makes conform XML-files, so this shouldn't be the problem. So I
have to create a XSL-Stylesheet which is compatible with FOP. Am I right? If
so, where can I find specifications?

Sorry for the newbie questions ;)

Thanx!

Ulrik


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




Re: Newbie question: FO files

2001-08-08 Thread Alex McLintock

 --- Ulrik <[EMAIL PROTECTED]> wrote: > Hi, 
> 
> I recently downloaded FOP and played around with it since I was searching a
> way to convert the XML-source of a website into a printable version (for
> example creating a printable version of a xml-driven ecommerce-product
> cataloge)
> 
> I wasn't able to produce a .pdf from my XMLs with the working XSL, but I was
> successful with the "test" fo-files from the FOP distribution.
> 
> Now, what are Fo-files? (I said I was a newbie!)

FOP reads in XML in a particular XML format defined in the XSL:FO spec.
We usually give these xml files the fo extension and call them fo files.


> Can I transform my XML into those .fo-files?

Some people take their XML and convert it into the alternative XML fo format
prior to feeding to FOP. Hopefully you know enough XSL/XSLT to convert your
XML into XSL:FO.


Alex ("Whadya mean the web based FAQ isn't on port 80") McLintock



=
Alex McLintock[EMAIL PROTECTED]Open Source Consultancy in London
OpenWeb Analysts Ltd, http://www.OWAL.co.uk/ 
SF and Computing Book News and Reviews: http://news.diversebooks.com/
Get Your XML T-Shirt  at http://www.inversity.co.uk/


Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie

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




Re: linefeed-treatment

2001-08-08 Thread Keiron Liddle

On Wed, 08 Aug 2001 15:48:59 Elliotte Rusty Harold wrote:
> I don't know what's supposed to be happening here, but I have noted that
> FOP  collapses blank lines in my source code using the Docbook XSLT
> stylesheets being discussed. Every other XSL-FO processor leaves the
> blank lines where I put them, so I'm pretty sure FOP is doing something
> wrong. If it's not linefeed-treatment, then almost certainly something
> else is wrong. 

I think I read the spec wrong. When it says no special it means certain
things. The white space should not be collapsed and as a separate issue the
linefeeds should still behave as linefeeds.
It appears there are three things that can effect whitespace:
space-treatment, white-space-collapse and linefeed-treatment.
The linefeed treatment acts to override how linefeeds are dealt with
(default is "treat as space") depending on the other two.

So in this case the linefeeds should appear as new lines in the output and
all whitespace should be written to the output.


Rule 535: never read any part of the spec without cross referencing at
least another 50%

I just broke this rule so I could still be wrong.

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




Newbie question: FO files

2001-08-08 Thread Ulrik

Hi, 

I recently downloaded FOP and played around with it since I was searching a
way to convert the XML-source of a website into a printable version (for
example creating a printable version of a xml-driven ecommerce-product
cataloge)

I wasn't able to produce a .pdf from my XMLs with the working XSL, but I was
successful with the "test" fo-files from the FOP distribution.

Now, what are Fo-files? (I said I was a newbie!)
Can I transform my XML into those .fo-files?

Thanx, any help is appreciated!

Ulrik


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




Re: Problems running FOP

2001-08-08 Thread Ralph LaChance

At 02:21 PM 8/8/01 +0200, you wrote:
>As I haven't been able to get FOP running on Windows ME system, I worry 
>that perhaps extracting the UNIX .tar files on Windows introduces subtle 
>corruptions. Could someone clarify why Windows ZIP downloads are no longer 
>available?
>
>Please remember that we Windows ME users suffer from MS brain jamming, and 
>are irrationally frightened of non-Windows things... ;-)

Would you be more comfortable knowing that WinZip handles tar files just fine ?

As for brain jamming, they must have a bug in the code -
the more they do to me, the more I hate 'em.
Maybe they'll get it right in version 3.1;-)



 ' Best,
 -Ralph LaChance



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




Re: linefeed-treatment

2001-08-08 Thread Elliotte Rusty Harold

I don't know what's supposed to be happening here, but I have noted that FOP  
collapses blank lines in my source code using the Docbook XSLT stylesheets being 
discussed. Every other XSL-FO processor leaves the blank lines where I put them, so 
I'm pretty sure FOP is doing something wrong. If it's not linefeed-treatment, then 
almost certainly something else is wrong. 
-- 

+---++---+
| Elliotte Rusty Harold | [EMAIL PROTECTED] | Writer/Programmer |
+---++---+ 
|  The XML Bible, 2nd Edition (Hungry Minds, 2001)   |
|  http://www.ibiblio.org/xml/books/bible2/  |
|   http://www.amazon.com/exec/obidos/ISBN=0764547607/cafeaulaitA/   |
+--+-+
|  Read Cafe au Lait for Java News:  http://www.cafeaulait.org/  | 
|  Read Cafe con Leche for XML News: http://www.ibiblio.org/xml/ |
+--+-+

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




Re: linefeed-treatment

2001-08-08 Thread Gregor N. Purdy

Keiron --

> > I'm using the docbook-xsl-1.14 tools from docbook.sourceforge.net to
> > convert a DocDook XML file into xsl:fo and then using FOP to convert
> > that into PDF. I've noticed FOP printing messages like this:
> > 
> >   warning: property - "linefeed-treatment" is not implemented yet.
> > 
> > it turns out that docbook-xsl is using that attribute on the fo:block
> > elements it creates out of my  DocBook elements.
> > 
> > Is linefeed-treatment handling on the radar screen?
> > I'm getting the correct output, so I'm wondering if by setting
> > white-space-collapse='false' in the fo:block, docbook-xsl is causing
> > FOP to do the right thing? Is it true that white-space-collapse='false'
> > implies the same effect as linefeed-treatment='preserve'?
> 
> Gregor,
> 
> This is not a comment on how fop handles the situation.
> According to the spec if white-space-collapse="false" then it "Specifies no
> special action".
> If it is true then it collapses multiple white space char except preserved
> linefeeds (if linefeed-treatment='preserve').
> For linefeed-treatment if the value is preserve then it "Specifies no
> special action".
> 
> So if FOP does nothing different it will be correct.
> 
> Any other combination may be an entirely different situation.

Thanks for the reply.

So, does that mean that the entry in src/codegen/foproperties.xml
should be edited so it doesn't say ToBeImplemented?
If its being handled correctly, then we don't need the message to be
printed. If there is some work still to be done before it can be
considered completely supported, perhaps its a small enough task that
I could figure it out...

If nobody else is working on this, I'll go dig into the spec to see
where the possibilities are discussed and then crawl through the code
to see if I can find the right place(s) to make changes. I've not
contributed code before, so pointers would be appreciated. From a
little find+grep I see that linefeed-treatment is mentioned only in
foproperties.xml and in src/org/apache/fop/fo/flow/Block.java (but
it is only in a comment there). I see that white-space-collapse is
mentioned in a few places.



Regards,

-- Gregor
 _ 
/ \
   Gregor N. Purdy  [EMAIL PROTECTED]
   Focus Research, Inc.http://www.focusresearch.com/
   8080 Beckett Center Drive #203   513-860-3570 vox
   West Chester, OH 45069   513-860-3579 fax
\_/



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




whitespace does not scale

2001-08-08 Thread Michail Bikoulis

Hello.

I get an error when I try to enter a bug, so I'm sending it here instead.

Whitespace seems to have the same width irrespective of the font-size
property of the block. This can be annoying when trying to allign text using
the monospace font-family. I came accross this while working with tables so
the examples I attach are tables. The file table_ok.fo generates the pdf
file correctly, while the table_pb.fo generates the problem (the text in the
second row is not alligned with the text in the first row). The only
difference is that the table_pb.fo uses font-size="95%".

I am using the 20010807101644 FOP snapshot.

Regards,

Mike

 <>  <> 

 table_ok.fo
 table_pb.fo

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


Re: Problems running FOP

2001-08-08 Thread Alex McLintock

 --- Agnes Clarke <[EMAIL PROTECTED]> wrote: > Hi all,

> My problem is that the Windows ZIP format binary downloads are not available 
> any more.

And this is a problem how exactly?
 
> As I haven't been able to get FOP running on Windows ME system, I worry that 
> perhaps extracting the UNIX .tar files on Windows introduces subtle 
> corruptions. Could someone clarify why Windows ZIP downloads are no longer 
> available?

WinZip will extract tar.gz files without any problems as will many other
MS Windows archive tools.

It should be very obvious to you if file corruption occurs. Java will almost
certainly tell you. However my colleagues have just informed me that you
might just get a "Class Not Found" error instead. Perhaps you could explain
more about what your problem is (apart from using Windows ME that is :-)



Hmmm, I guess I better put this in the FAQ.
Hmmm, I guess I better fix the FAQ.

Alex
  

=
Alex McLintock[EMAIL PROTECTED]Open Source Consultancy in London
OpenWeb Analysts Ltd, http://www.OWAL.co.uk/ 
DR WHO COMPETITION: 
http://www.diversebooks.com/cgi-bin/caption/captions.cgi?date=200104
Get Your XML T-Shirt  at http://www.inversity.co.uk/


Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie

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




column spanning and column widths with fop 0.18

2001-08-08 Thread Louis . Masters

Did something happen in 0.18 that would cause a column span to override
specified column widths?  I recently upgraded and noticed that whenever I
had several lead cells in a table that were spanned, any subsequent cells
in that same row would ignore there widths and _harshly_ justify left.

For example:


Old:

Col 1  Col 2   Col 3   Col 4
this is a three col span   lined up in col 4

New:

Col 1  Col 2   Col 3   Col 4
this is a three col spanlined up in col 4

Column four's data us at the end edge of column three.

Thanks,
Lou


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




Problems running FOP

2001-08-08 Thread Agnes Clarke

Hi all,

I have been using FOP 0.17 for some time with some success. I would like to 
use 0.19 or 0.20 when it becomes available.

My problem is that the Windows ZIP format binary downloads are not available 
any more.

As I haven't been able to get FOP running on Windows ME system, I worry that 
perhaps extracting the UNIX .tar files on Windows introduces subtle 
corruptions. Could someone clarify why Windows ZIP downloads are no longer 
available?

Please remember that we Windows ME users suffer from MS brain jamming, and 
are irrationally frightened of non-Windows things... ;-)

Best regards,

Agnes Clarke

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


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




Using FOP 0.19-CVS to create PDF

2001-08-08 Thread Jeff Rancier

Hello All.

I downloaded the 1.42 XSL stylesheets for DocBook in an attempt to generate
a PDF from my DocBook XML.  The version of the DocBook stylesheets with
XAE-1.0beta6 appears to be 1.18.  The version of the DocBook DTD which my
book was created appears to be V4.1.2.  I am attempting to create the PDF
directly from my DocBook (book) XML, using the FOP-0.19-CVS using the
fo/docbook.xsl stylesheet.  I am still getting errors.

Can anyone tell me if I need to get a different version of the DTD, or what
my problem might be?

As follows:

fop -xml mybook.XML -xsl docbook.xsl -pdf mybook.pdf
java -cp
fop-0.19.0-CVS\fop.jar;fop-0.19.0-CVS\lib\w3c.jar;fop-0.19.0-CVS\lib\xalan-2
.0.0.jar;fop-0.19.0-CVS\lib\xerces-1.2.3.jar;fop-0.19.0-CVS\lib\jimi-1.0.jar
org.apache.fop.apps.Fop -xml mybook.XML -xsl h:docbook.xsl -pdf mybook.pdf

FOP 0.19.0-CVS
using SAX parser org.apache.xerces.parsers.SAXParser
file:///h:/cvsdev/projects/docbook-1.42/docbook-xsl-1.42/fo/docbook.xsl;
Line 92
; Column 16; Making portrait pages on USletter paper (8.5inx11in)
building formatting object tree
Error in height property value '$height':
org.apache.fop.fo.expr.PropertyExcepti
on: illegal character
Error in width property value '$width':
org.apache.fop.fo.expr.PropertyException
: illegal character
Error in height property value '$height':
org.apache.fop.fo.expr.PropertyExcepti
on: illegal character
Error in width property value '$width':
org.apache.fop.fo.expr.PropertyException
: illegal character
Error in height property value '$height':
org.apache.fop.fo.expr.PropertyExcepti
on: illegal character
Error in width property value '$width':
org.apache.fop.fo.expr.PropertyException
: illegal character
Error in height property value '$height':
org.apache.fop.fo.expr.PropertyExcepti
on: illegal character
Error in width property value '$width':
org.apache.fop.fo.expr.PropertyException
: illegal character
WARNING: property 'format' ignored
WARNING: property 'last-line-end-indent' ignored
WARNING: property 'last-line-end-indent' ignored
WARNING: property 'last-line-end-indent' ignored
WARNING: property 'last-line-end-indent' ignored
WARNING: property 'last-line-end-indent' ignored
WARNING: property 'last-line-end-indent' ignored
WARNING: property 'last-line-end-indent' ignored
WARNING: property 'last-line-end-indent' ignored
WARNING: property 'last-line-end-indent' ignored
WARNING: property 'last-line-end-indent' ignored
WARNING: property 'format' ignored
WARNING: property 'last-line-end-indent' ignored
WARNING: property 'last-line-end-indent' ignored
WARNING: property 'last-line-end-indent' ignored
WARNING: property 'format' ignored
ERROR: fo:inline can't be directly under flow

TIA,
Jeff


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




Re: linefeed-treatment

2001-08-08 Thread Keiron Liddle

On Tue, 07 Aug 2001 17:35:59 Gregor N. Purdy wrote:
> Curious:
> 
> I'm using the docbook-xsl-1.14 tools from docbook.sourceforge.net to
> convert a DocDook XML file into xsl:fo and then using FOP to convert
> that into PDF. I've noticed FOP printing messages like this:
> 
>   warning: property - "linefeed-treatment" is not implemented yet.
> 
> it turns out that docbook-xsl is using that attribute on the fo:block
> elements it creates out of my  DocBook elements.
> 
> Is linefeed-treatment handling on the radar screen?
> I'm getting the correct output, so I'm wondering if by setting
> white-space-collapse='false' in the fo:block, docbook-xsl is causing
> FOP to do the right thing? Is it true that white-space-collapse='false'
> implies the same effect as linefeed-treatment='preserve'?

Gregor,

This is not a comment on how fop handles the situation.
According to the spec if white-space-collapse="false" then it "Specifies no
special action".
If it is true then it collapses multiple white space char except preserved
linefeeds (if linefeed-treatment='preserve').
For linefeed-treatment if the value is preserve then it "Specifies no
special action".

So if FOP does nothing different it will be correct.

Any other combination may be an entirely different situation.


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