outputting intermediate XSL-FO file

2004-04-08 Thread Clay Leeds
I wanted to re-visit the issue of giving FOP the option of outputting 
the intermediate file XSL-FO file (a la ./xalan.sh -IN input.xml -XSL 
input.xsl -OUT output.fo). I still think it makes sense to enable FOP 
to have the option to retain this intermediate file.

The primary benefit is to make it easier to respond to fop-user@ 
questions. Having to explaining the proper use of xalan.bat/.sh to a 
user means requiring the user to learn 'one more app' when it isn't 
really necessary. I'd rather tell the user:

Let's look at the intermediate XSL-FO file by adding '-tempfile' to 
your FOP string:

   ./fop.sh -xml input.xml -xsl input.xsl -tempfile

The location for the tempfile could be tempfiles/ or could be output as 
'[datestamp]_input.xml.fo' or something. The nicest part of this, is 
that the fop-user uses the same fop they always use, but merely add one 
arg to output the intermediate file.

Apologies if this topic has already been beaten to death. At the very 
least, we need to add a FAQ on the FOP site, indicating in one 
paragraph how to do this for themselves. Perhaps that'll be something 
to add in the near future.

Web Maestro Clay

Begin forwarded message:
From: Clay Leeds [EMAIL PROTECTED]
Date: April 8, 2004 7:57:01 AM PDT
To: [EMAIL PROTECTED]
Subject: Re: only display the text in XSL file but does not display 
the image
Reply-To: [EMAIL PROTECTED]

On Apr 8, 2004, at 7:37 AM, Jerry wrote:
2.
It also helps if you just do the XSLT transformation
on the command line
(as I suggested earlier). By checking the generated
FO afterwards you
can see if everything is alright.
Sorry I am not sure how to use XSLT to test it from
command line.
Assuming you are using fop-0.20.5, xalan.bat (or xalan.sh on Un*x 
a.k.a 'xalan' in this post) can be used to generate (and review!) the 
'intermediate' XSL-FO file. Running xalan with no arguments gives you 
the help you should need to run xalan properly.

Here's a boost:

./xalan.sh -IN [input.xml] -XSL [input.xsl] -OUT [output.fo]

(without any of the '[' and ']' of course!)

That should to it! Look at the 'output.fo' file, to 'see if everything 
is alright'... I don't know the answers to the other questions, but 
hopefully this answers *this* question.

Web Maestro Clay - [EMAIL PROTECTED]
--
Web Developer - Medata, Inc. - http://www.medata.com/
PGP Public Key: https://mail.medata.com/pgp/cleeds.asc
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 21916] - base URL of Fop Ant Task with Fileset should be .fo file

2003-11-23 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21916.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

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

base URL of Fop Ant Task with Fileset should be .fo file

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||DUPLICATE



--- Additional Comments From [EMAIL PROTECTED]  2003-11-23 18:43 ---
Just placed in the future 1.0dev version of FOP--this will not help you with 
the current production version (0.20.5), however, but that branch is mostly 
frozen.

*** This bug has been marked as a duplicate of 24096 ***


Re: encoding problem with Fo file

2003-09-03 Thread J.Pietschmann
sri vela wrote:
I have a fo file which has some special characters,
which are not being parsing by FOp and throwing
Invalid byte 1 of 1-byte UTF-8 sequence exception.
Can any one tell me how to fix this problem.please
have a look at the Fo file.It is throwing exception at
single quote which is used in Trey's word
There is no single quote.

?xml version=1.0 encoding=ISO-8859-1?
^^
  fo:block ...Treys Best 
Well, MS Word is lying: the XML is probably encoded in Windows CP1252
(or so). The fancy apostrophe (IIRC #x90; or #x91;) is not a valid
XML character in ISO-8859-1 encoding.
Admittedly, the error message is a bit misleading (but good for a
laugh).
J.Pietschmann



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


encoding problem with Fo file

2003-09-02 Thread sri vela
Hi all,
I have a fo file which has some special characters,
which are not being parsing by FOp and throwing
Invalid byte 1 of 1-byte UTF-8 sequence exception.
Can any one tell me how to fix this problem.please
have a look at the Fo file.It is throwing exception at
single quote which is used in Trey's word and also
throwing the same exception for bullets also.I
appreciate if some one could help me out from this
problem.



__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com?xml version=1.0 encoding=ISO-8859-1?
fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; xmlns:wx=http://schemas.microsoft.com/office/word/2003/2/auxHint; xmlns:v=urn:schemas-microsoft-com:vml xmlns:w=http://schemas.microsoft.com/office/word/2003/2/wordml;
  fo:layout-master-set
fo:simple-page-master master-name=section1 page-width=8.5in page-height=11in margin-top=0.5in margin-left=1.25in margin-bottom=0.5in margin-right=1.25in
  fo:region-before region-name=header over-flow=visible extent=0.5in display-align=after/
  fo:region-after region-name=footer over-flow=visible extent=0.in display-align=before/
  fo:region-body margin-top=0.5in margin-bottom=0.5in/
/fo:simple-page-master
/fo:layout-master-set
  fo:page-sequence master-reference=section1
 fo:flow flow-name=xsl-region-body
 
  fo:block padding-left=54px margin-left=0mm font-family=Times New Roman font-size=17pt font-style=Italic space-before=0pt space-after=8pt padding-right=108px margin-right=0mmTrey’s Best 
	Opportunity
 to Dominate Market Research for the Film Industry/fo:block
  /fo:flow
  /fo:page-sequence
/fo:root


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

DO NOT REPLY [Bug 11905] - Fo file throws ArrayIndexOutOfBoundsException

2003-07-28 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11905.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

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

Fo file throws ArrayIndexOutOfBoundsException

[EMAIL PROTECTED] changed:

   What|Removed |Added

 CC||[EMAIL PROTECTED]



--- Additional Comments From [EMAIL PROTECTED]  2003-07-28 06:38 ---
*** Bug 21806 has been marked as a duplicate of this bug. ***

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



DO NOT REPLY [Bug 21916] New: - base URL of Fop Ant Task with Fileset should be .fo file

2003-07-27 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21916.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

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

base URL of Fop Ant Task with Fileset should be .fo file

   Summary: base URL of Fop Ant Task with Fileset should be .fo file
   Product: Fop
   Version: 0.15
  Platform: All
OS/Version: All
Status: NEW
  Severity: Normal
  Priority: Other
 Component: general
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


When you use Fop task wiht filesets, the base dir of the transformation is the
base dir of the fileset. 

I don't understand why this behaviour but I suggest that It will be better if
the base dir of the transformation will allways be the folder where .fo file is.
This way is easiest to work with external files like images.

I think this have sense becouse if the .fo file is the source of the
translation, its folder should be the basedir of the translation. 

If you think that the folder of the .fo files sometimes should not be the base
dir, you could add a new attrbute to the Fop Task, to change the behaviour,
something like Fop sourceFilesBaseURL=true/ or Fop foFilesBaseURL=true/

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



DO NOT REPLY [Bug 21916] - base URL of Fop Ant Task with Fileset should be .fo file

2003-07-27 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21916.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

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

base URL of Fop Ant Task with Fileset should be .fo file





--- Additional Comments From [EMAIL PROTECTED]  2003-07-27 22:44 ---
See http://marc.theaimsgroup.com/?t=10593044181r=1w=2 for more background.

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



DO NOT REPLY [Bug 21916] - base URL of Fop Ant Task with Fileset should be .fo file

2003-07-27 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21916.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

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

base URL of Fop Ant Task with Fileset should be .fo file





--- Additional Comments From [EMAIL PROTECTED]  2003-07-27 22:47 ---
Created an attachment (id=7535)
Is the diff command output with one suggestion to solve the problem

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



DO NOT REPLY [Bug 11905] - Fo file throws ArrayIndexOutOfBoundsException

2003-07-22 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11905.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

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

Fo file throws ArrayIndexOutOfBoundsException





--- Additional Comments From [EMAIL PROTECTED]  2003-07-22 12:56 ---
I get an identical exception. It appears to be related to setting the number-
rows-spanned property.

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



DO NOT REPLY [Bug 11905] - Fo file throws ArrayIndexOutOfBoundsException

2003-07-22 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11905.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

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

Fo file throws ArrayIndexOutOfBoundsException





--- Additional Comments From [EMAIL PROTECTED]  2003-07-22 13:42 ---
More information - I only get the exception when using Driver.getContentHandler
() as the target of Transformer.transform. If I save the output of the 
transformer to a byte stream and then feed a byte stream into the Driver all is 
well.

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



DO NOT REPLY [Bug 11905] - Fo file throws ArrayIndexOutOfBoundsException

2003-07-22 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11905.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

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

Fo file throws ArrayIndexOutOfBoundsException

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||INVALID



--- Additional Comments From [EMAIL PROTECTED]  2003-07-22 14:34 ---
The second table has 9 rows, the last row has 8 cells, two of which span 3 and 2
columns, respectively. FOP can't deal graciously with the second last cell which
overflows the available columns. I'll put a slightly better error message in,
but processing will terminate nevertheless.
Correct the source.

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



DO NOT REPLY [Bug 8698] - NullPointerException when trying to render FO file

2002-10-09 Thread bugzilla

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8698.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

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

NullPointerException when trying to render FO file

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||DUPLICATE



--- Additional Comments From [EMAIL PROTECTED]  2002-10-09 19:38 ---


*** This bug has been marked as a duplicate of 6243 ***

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




DO NOT REPLY [Bug 11905] New: - Fo file throws ArrayIndexOutOfBoundsException

2002-08-21 Thread bugzilla

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11905.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

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

Fo file throws ArrayIndexOutOfBoundsException

   Summary: Fo file throws ArrayIndexOutOfBoundsException
   Product: Fop
   Version: 0.20.4
  Platform: Other
OS/Version: Other
Status: NEW
  Severity: Normal
  Priority: Other
 Component: general
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


Running with the following file, I got the following exception :

 [java] java.lang.ArrayIndexOutOfBoundsException
 [java] at org.apache.fop.fo.flow.TableRow$CellArray.getNextFreeCell(Unknown
Source)
 [java] at org.apache.fop.fo.flow.TableRow.initCellArray(Unknown Source)
 [java] at org.apache.fop.fo.flow.TableRow.layout(Unknown Source)
 [java] at org.apache.fop.fo.flow.TableBody.layout(Unknown Source)
 [java] at org.apache.fop.fo.flow.Table.layout(Unknown Source)
 [java] at org.apache.fop.fo.flow.Flow.layout(Unknown Source)
 [java] at org.apache.fop.fo.flow.Flow.layout(Unknown Source)
 [java] at org.apache.fop.fo.pagination.PageSequence.format(Unknown Source)
 [java] at org.apache.fop.apps.StreamRenderer.render(Unknown Source)
 [java] at org.apache.fop.fo.FOTreeBuilder.endElement(Unknown Source)
 [java] at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown 
Source)
 [java] at org.apache.xerces.impl.XMLNamespaceBinder.handleEndElement(Unknown
Source)
 [java] at org.apache.xerces.impl.XMLNamespaceBinder.endElement(Unknown Source)
 [java] at
org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown Source)
 [java] at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown 
Source)
 [java] at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.handleEndElement(Unknown
Source)
 [java] at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)
 [java] at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
 [java] at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
 [java] at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
 [java] at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
 [java] at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
 [java] at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
 [java] at org.apache.fop.apps.Driver.render(Unknown Source)
 [java] at org.apache.fop.apps.CommandLineStarter.run(Unknown Source)
 [java] at org.apache.fop.apps.Fop.main(Unknown Source)

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




DO NOT REPLY [Bug 11905] - Fo file throws ArrayIndexOutOfBoundsException

2002-08-21 Thread bugzilla

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11905.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

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

Fo file throws ArrayIndexOutOfBoundsException





--- Additional Comments From [EMAIL PROTECTED]  2002-08-21 16:50 ---
Created an attachment (id=2795)
Output of ant

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




DO NOT REPLY [Bug 11905] - Fo file throws ArrayIndexOutOfBoundsException

2002-08-21 Thread bugzilla

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11905.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

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

Fo file throws ArrayIndexOutOfBoundsException





--- Additional Comments From [EMAIL PROTECTED]  2002-08-21 16:53 ---
Created an attachment (id=2797)
The fo file that cause the exception

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




DO NOT REPLY [Bug 8698] - NullPointerException when trying to render FO file

2002-05-19 Thread bugzilla

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8698.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

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

NullPointerException when trying to render FO file





--- Additional Comments From [EMAIL PROTECTED]  2002-05-19 16:52 ---
This appears to be caused by a failure to change the master-name property on 
the fo:conditional-page-master-reference.  Making this correction causes the 
problem to go away.

(This bug was submitted by Bill Cohagan on my behalf - I've confirmed the fix 
with him)

--Don

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




DO NOT REPLY [Bug 8698] New: - NullPointerException when trying to render FO file

2002-05-01 Thread bugzilla

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8698.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

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

NullPointerException when trying to render FO file

   Summary: NullPointerException when trying to render FO file
   Product: Fop
   Version: 0.20.3
  Platform: All
OS/Version: All
Status: NEW
  Severity: Normal
  Priority: Other
 Component: general
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


When I try to render the attached FO file, I get this exception

[INFO]: FOP 0.20.3
[DEBUG]: using SAX parser org.apache.xerces.parsers.SAXParser
[INFO]: building formatting object tree
[DEBUG]: setting up fonts
[ERROR]: null
org.apache.fop.apps.FOPException
at org.apache.fop.apps.Driver.render(Driver.java:486)
at org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:72
)
at org.apache.fop.apps.Fop.main(Fop.java:19)

-

java.lang.NullPointerException
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:965)
at org.apache.fop.apps.Driver.render(Driver.java:481)
at org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:72
)
at org.apache.fop.apps.Fop.main(Fop.java:19)

-

java.lang.NullPointerException
at org.apache.fop.fo.flow.Flow.setFlowName(Flow.java:98)
at org.apache.fop.fo.flow.Flow.init(Flow.java:77)
at org.apache.fop.fo.flow.Flow$Maker.make(Flow.java:28)
at org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:261)
at org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1371)

at org.apache.xerces.validators.common.XMLValidator.callStartElement(XML
Validator.java:840)
at org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.disp
atch(XMLDocumentScanner.java:1223)
at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentS
canner.java:381)
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:948)
at org.apache.fop.apps.Driver.render(Driver.java:481)
at org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:72
)
at org.apache.fop.apps.Fop.main(Fop.java:19)

-

java.lang.NullPointerException
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:965)
at org.apache.fop.apps.Driver.render(Driver.java:481)
at org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:72
)
at org.apache.fop.apps.Fop.main(Fop.java:19)

-

java.lang.NullPointerException
at org.apache.fop.fo.flow.Flow.setFlowName(Flow.java:98)
at org.apache.fop.fo.flow.Flow.init(Flow.java:77)
at org.apache.fop.fo.flow.Flow$Maker.make(Flow.java:28)
at org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:261)
at org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1371)

at org.apache.xerces.validators.common.XMLValidator.callStartElement(XML
Validator.java:840)
at org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.disp
atch(XMLDocumentScanner.java:1223)
at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentS
canner.java:381)
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:948)
at org.apache.fop.apps.Driver.render(Driver.java:481)
at org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:72
)
at org.apache.fop.apps.Fop.main(Fop.java:19)



?xml version=1.0 encoding=UTF-8?
fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;fo:layout-master-
setfo:simple-page-master margin-bottom=2cm margin-top=2cm margin-
right=3cm margin-left=3cmfo:region-before extent=12pt/fo:region-body 
margin-bottom=20pt margin-top=20pt/fo:region-after 
extent=12pt//fo:simple-page-master/fo:layout-master-setfo:page-
sequencefo:flowfo:block space-after=6pt text-align=centered font-
size=24ptMaster's thesis/fo:blockfo:block text-align=centered
by Mikael St#9500;Ñldal/fo:block/fo:flow/fo:page-sequencefo:page-
sequencefo:sequence-specificationfo:sequence-specifier-repeating page-
master-repeating=one page-master-first=one//fo:sequence-
specificationfo:static-content flow-name=xsl-beforefo:block font-
size=10ptMaster's thesis/fo:block/fo:static-contentfo:static-content 
flow-name=xsl-afterfo:block text-align=centered font-size=10ptfo:page-
number//fo:block/fo:static-contentfo:flow font-family=serif font-
size=12ptfo:block space-after=24pt font-size=20ptTable of Contents
/fo:blockfo:block
Chapter 1 -
XML and related standards...
fo:page-number-citation ref-id=chap1//fo:blockfo:list-
blockfo:list-itemfo:list-item-labelfo:block

DO NOT REPLY [Bug 3458] - FOP crashes when rendering an FO file with more than 2MB

2002-04-22 Thread bugzilla

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3458.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

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

FOP crashes when rendering an FO file with more than 2MB

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||DUPLICATE



--- Additional Comments From [EMAIL PROTECTED]  2002-04-22 08:48 ---


*** This bug has been marked as a duplicate of 1063 ***

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




DO NOT REPLY [Bug 7005] New: - Reports double id's even though they are unique in the FO file

2002-03-09 Thread bugzilla

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7005.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

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

Reports double id's even though they are unique in the FO file

   Summary: Reports double id's even though they are unique in the
FO file
   Product: Fop
   Version: 0.20.3
  Platform: PC
OS/Version: All
Status: NEW
  Severity: Normal
  Priority: Other
 Component: general
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


Here the exception stack:

[ERROR]: The id N4000B6 already exists in this 
document
org.apache.fop.apps.FOPException: The id N4000B6 already exists in this 
document
at org.apache.fop.datatypes.IDReferences.createID(IDReferences.java:80)

at org.apache.fop.datatypes.IDReferences.initializeID(IDReferences.java:60)
at 
org.apache.fop.fo.flow.ListItemLabel.layout(ListItemLabel.java:54)
at 
org.apache.fop.fo.flow.ListItem.layout(ListItem.java:140)
at 
org.apache.fop.fo.flow.ListBlock.layout(ListBlock.java:150)
at 
org.apache.fop.fo.flow.Block.layout(Block.java:262)
at 
org.apache.fop.fo.flow.Block.layout(Block.java:262)
at 
org.apache.fop.fo.flow.Block.layout(Block.java:262)
at 
org.apache.fop.fo.flow.Block.layout(Block.java:262)
at 
org.apache.fop.fo.flow.Flow.layout(Flow.java:156)
at 
org.apache.fop.fo.flow.Flow.layout(Flow.java:113)
at 
org.apache.fop.fo.pagination.PageSequence.format(PageSequence.java:296)
at 
org.apache.fop.apps.StreamRenderer.render(StreamRenderer.java:200)
at 
org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:182)
at 
org.apache.xerces.parsers.SAXParser.endElement(SAXParser.java:1398)
at 
org.apache.xerces.validators.common.XMLValidator.callEndElement(XMLValidator.java:1019)
 
   at 
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1256)
 
   at 
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)
 
   at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:948)
at 
org.apache.fop.apps.Driver.render(Driver.java:481)
at 
org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:72)
at 
org.apache.fop.apps.Fop.main(Fop.java:19)

I will send you the FO file, when you ask. I 
wanted to upload it with the text replaced by x, but when I replace the a-s with 
x, the error 
does not happen anymore :-(

--
Gregor Rayman

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




Re: fo file

2002-02-07 Thread Joerg Pietschmann

[EMAIL PROTECTED] wrote:
 if you know what instructions do i need to  create a pdf
 file from a xml and xsl file

First try the FOP command line application, the instructions
how to produce a PDF from a XML and XSL file are well documented
there.

Once you have working XSL code and want to integrate it in a web
site, look for example at
 http://marc.theaimsgroup.com/?l=fop-devw=2r=1s=XSLTInputHandler%28q=b
 http://marc.theaimsgroup.com/?l=fop-userm=101281691429031w=2
There have a zillion of servlet code snippets been posted recently
both on this and on the fop-user list which you also might want
to explore using the archives above.

J.Pietschman

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




fop input fo file

2001-12-06 Thread Matt Laywell

i have a website that allows clients to print documents of there info which
is a table created from an sql query and a bunch of asp vbscript and java
script. the client can customize the table by adding or removing columns of
info.

using asp i am writing a fo file i was hoping to send to the fop servlet an
serve the pdfs to the cleint rather than the html they get now.

the problem is the fo file seem to have to reside locally in order for the
fop servlet to find it.

http:\\myserver\fop\fop?fo=c:\temp\test.fo

works fine

http:\\myserver\fop\fop?fo=\\myserver\temp\test.fo

does not

i also thought about running the command line version from vbscript and then
sending it to the client.

ala
dim oWSH
set oWSH = CreateObject(WScript.Shell)  
oWSH.Run fop c:\temp\test.fo -pdf c:\temp\test.pdf,1,true
Set oWSH = Nsothing

this doesn't work either

any help would be appreciated.


new at this
matt laywell

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




DO NOT REPLY [Bug 3124] - Wouldn't convert fo file to pdf

2001-11-03 Thread bugzilla

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3124.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

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

Wouldn't convert fo file to pdf

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED



--- Additional Comments From [EMAIL PROTECTED]  2001-11-03 05:50 ---
Ritesh,

Try using double quotes. The FOP parser thinks your are providing him some 
option when using hyphens in your file name:

Fop -d -xsl sonnet-rhyme-scheme.xsl -xml sonnet.xml -pdf sonnet.pdf

hope this helps
Frank

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




[DO NOT REPLY: Bug 3458] New: FOP crashes when rendering an FO file with more than 2MB

2001-09-06 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=3458

*** shadow/3458 Thu Sep  6 05:22:28 2001
--- shadow/3458.tmp.21349   Thu Sep  6 05:22:28 2001
***
*** 0 
--- 1,27 
+ ++
+ | FOP crashes when rendering an FO file with more than 2MB   |
+ ++
+ |Bug #: 3458Product: Fop |
+ |   Status: NEW Version: all |
+ |   Resolution:Platform: PC  |
+ | Severity: Normal   OS/Version: Windows NT/2K   |
+ | Priority: Other Component: pdf renderer|
+ ++
+ |  Assigned To: [EMAIL PROTECTED]   |
+ |  Reported By: [EMAIL PROTECTED]|
+ |  CC list: Cc:  |
+ ++
+ |  URL:  |
+ ++
+ |  DESCRIPTION   |
+ Each time I try to convert an FO file with more than 2MB, FOP 0.20.1 crashes.
+ It seems that this limit is a sharp on; if i delete some content from the 
+ source file, create a new FO file out of it (with say, 1,989 MB), all works 
+ perfectly well.
+ The FO files were created using XSLT stylesheets and Saxon 6.4.3. I have no 
+ reason to doubt that the syntax of the FO files is invalid since they are 
+ validated by XERCES (included in the FOP package) without any errors.
+ If an FO file exceeds 2MB, FOP seems to render the entire file; when it 
+ attempts to write the PDF to disk, an exception fault is reported and only a 
+ fragment of the PDF with, say 15 KB, is created which cannot be viewed using a 
+ PDF Reader.

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




How to obtain .fo file?

2001-05-31 Thread Di Perna Francesco

I just want say thanks to all the people that helped me for my previous
question.
I have another one.
Somebody have a code example for transform an xml file and xsl file into
.fo file?
Thanks





__
Di Perna Francesco 
Phone . (+39) 050 541192 
Pers. Phone (+39) (0)349 6673200 Fax (+39) 06 23319457
[EMAIL PROTECTED]
There is nothing so powerful as an idea
whose time has come - Victor Hugo

Rispondimi via SMS (if you want send me a telephone short message)
http://www.gtn.it/sma/sms.php?auth=:3E:BFi:F0:17:11a:AC