Re: Getting an error when using an XHTML file??

2002-05-07 Thread chadford . hilton


Enrico -

I notice this is native code. Any plans to port to Java??

Chad

Chadford Hilton
Web Integration
PNC Financial Services
v - 412-768-2395
e - [EMAIL PROTECTED]


   

enrico.schnep  

[EMAIL PROTECTED]To: [EMAIL PROTECTED]

 cc:   

05/07/2002   Subject: Re: Getting an error when using 
an XHTML file??  
11:36 AM   

Please 

respond to 

fop-dev

   

   




Hello Chad,

I am programming html2fo. It is a converter which converts from HTML or
XHTML to XSL:FO. Primary goal is to generate a VALID XSL:FO file from
almost any
HTML file, but you will get better result with than without tidy.

It is avilable from
http://sourceforge.net/projects/html2fo

Regards
Enrico

> Hello -
>
> I have an application that produces HTML as output. I used tidy to make
> the
> HTML well-formed and added the XML header and renamed the file to
> filename.xml from filename.html. I then use FOP to try and create a
> filename.pdf file. I get a "/ by zero" exception. The problem is the
> pageCount variable in the StreamRender class isn't get incremented. Since
> it's initialized to zero, an Arithmetic exception is thrown when the log
> tries to write out the average time it took to render each page. Since
> XHTML is  XML, I would have expected this to work. Has anyone else come
> across this issue/exception??
>
> Thanks,
> Chad
>
> Chadford Hilton
> Web Integration
> PNC Financial Services
> v - 412-768-2395
> e - [EMAIL PROTECTED]
>

--
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net


-
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: Getting an error when using an XHTML file??

2002-05-07 Thread chadford . hilton


This is great. Thanks, Enrico

Chadford Hilton
Web Integration
PNC Financial Services
v - 412-768-2395
e - [EMAIL PROTECTED]


   

enrico.schnep  

[EMAIL PROTECTED]To: [EMAIL PROTECTED]

 cc:   

05/07/2002   Subject: Re: Getting an error when using 
an XHTML file??  
11:36 AM   

Please 

respond to 

fop-dev

   

   




Hello Chad,

I am programming html2fo. It is a converter which converts from HTML or
XHTML to XSL:FO. Primary goal is to generate a VALID XSL:FO file from
almost any
HTML file, but you will get better result with than without tidy.

It is avilable from
http://sourceforge.net/projects/html2fo

Regards
Enrico

> Hello -
>
> I have an application that produces HTML as output. I used tidy to make
> the
> HTML well-formed and added the XML header and renamed the file to
> filename.xml from filename.html. I then use FOP to try and create a
> filename.pdf file. I get a "/ by zero" exception. The problem is the
> pageCount variable in the StreamRender class isn't get incremented. Since
> it's initialized to zero, an Arithmetic exception is thrown when the log
> tries to write out the average time it took to render each page. Since
> XHTML is  XML, I would have expected this to work. Has anyone else come
> across this issue/exception??
>
> Thanks,
> Chad
>
> Chadford Hilton
> Web Integration
> PNC Financial Services
> v - 412-768-2395
> e - [EMAIL PROTECTED]
>

--
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net


-
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: Getting an error when using an XHTML file??

2002-05-07 Thread enrico . schnepel

Hello Chad,

I am programming html2fo. It is a converter which converts from HTML or
XHTML to XSL:FO. Primary goal is to generate a VALID XSL:FO file from almost any
HTML file, but you will get better result with than without tidy.

It is avilable from
http://sourceforge.net/projects/html2fo

Regards
Enrico

> Hello -
> 
> I have an application that produces HTML as output. I used tidy to make
> the
> HTML well-formed and added the XML header and renamed the file to
> filename.xml from filename.html. I then use FOP to try and create a
> filename.pdf file. I get a "/ by zero" exception. The problem is the
> pageCount variable in the StreamRender class isn't get incremented. Since
> it's initialized to zero, an Arithmetic exception is thrown when the log
> tries to write out the average time it took to render each page. Since
> XHTML is  XML, I would have expected this to work. Has anyone else come
> across this issue/exception??
> 
> Thanks,
> Chad
> 
> Chadford Hilton
> Web Integration
> PNC Financial Services
> v - 412-768-2395
> e - [EMAIL PROTECTED]
> 

-- 
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net


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




Re: Getting an error when using an XHTML file??

2002-05-07 Thread chadford . hilton


I am using this simpe xslt styleheet. The stylesheet is fine. In fact, this
is taken right from the AntennaHouse document:


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


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





























Chadford Hilton
Web Integration
PNC Financial Services
v - 412-768-2395
e - [EMAIL PROTECTED]


   
 
Jeremias Maerki
 
cc:  
 
      Subject: Re: Getting an error when 
using an XHTML file??  
05/07/2002 10:56   
 
AM 
 
Please respond to  
 
fop-dev
 
   
 
   
 



You're still expressing yourself in strange terms, I think. FOP can only
process XSL:FO input. That means if you have some XML file to be
rendered by FOP, you have to write an XSLT Stylesheet that converts that
XML format to XSL:FO. Same for XHTML.

When you're doing both (XSLT and FOP) at the same time you may have
difficulty finding the problem spots. So, if you get error messages from
FOP, it's best you do the XHTML to XSL:FO transformation separately and
check whether the generated XSL:FO is correct.

Do you have an XSLT stylesheet that converts your XHTML to XSL:FO?

> Yes, correct. Since FOP ships with an XSLT processor, I believe that FOP
> can take XML and XSL:FO as inputs to render a pdf file. Which I have
tested
> successfully. Because XHTML is XML, I would also expect that FOP could
> render a pdf file with an XHTML (saved as XML) and XSL:FO file as input.
I
> guess I should have been more clear.

Cheers,
Jeremias Märki

mailto:[EMAIL PROTECTED]

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


-
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: Getting an error when using an XHTML file??

2002-05-07 Thread Jeremias Maerki

You're still expressing yourself in strange terms, I think. FOP can only
process XSL:FO input. That means if you have some XML file to be
rendered by FOP, you have to write an XSLT Stylesheet that converts that
XML format to XSL:FO. Same for XHTML.

When you're doing both (XSLT and FOP) at the same time you may have
difficulty finding the problem spots. So, if you get error messages from
FOP, it's best you do the XHTML to XSL:FO transformation separately and
check whether the generated XSL:FO is correct. 

Do you have an XSLT stylesheet that converts your XHTML to XSL:FO?

> Yes, correct. Since FOP ships with an XSLT processor, I believe that FOP
> can take XML and XSL:FO as inputs to render a pdf file. Which I have tested
> successfully. Because XHTML is XML, I would also expect that FOP could
> render a pdf file with an XHTML (saved as XML) and XSL:FO file as input. I
> guess I should have been more clear.

Cheers,
Jeremias Märki

mailto:[EMAIL PROTECTED]

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


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




Re: Getting an error when using an XHTML file??

2002-05-07 Thread Cyril Rognon

Chad,


Fop can render a FO file to PDF.
Fop can render a XML file to PDF if you provide the convenient XSL file to 
transform the XML to FO.

Anthena house tutorial gives some XHTML2FO stylesheet you could use or 
enhance to fit yur need.

Cyril

At 10:44 07/05/2002 -0400, you wrote:

>Yes, correct. Since FOP ships with an XSLT processor, I believe that FOP
>can take XML and XSL:FO as inputs to render a pdf file. Which I have tested
>successfully. Because XHTML is XML, I would also expect that FOP could
>render a pdf file with an XHTML (saved as XML) and XSL:FO file as input. I
>guess I should have been more clear.
>
>Chad


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




Re: Getting an error when using an XHTML file??

2002-05-07 Thread chadford . hilton


Yes, correct. Since FOP ships with an XSLT processor, I believe that FOP
can take XML and XSL:FO as inputs to render a pdf file. Which I have tested
successfully. Because XHTML is XML, I would also expect that FOP could
render a pdf file with an XHTML (saved as XML) and XSL:FO file as input. I
guess I should have been more clear.

Chad

Chadford Hilton
Web Integration
PNC Financial Services
v - 412-768-2395
e - [EMAIL PROTECTED]


   
 
Jeremias Maerki
 
cc:  
 
  Subject: Re: Getting an error when 
using an XHTML file??  
05/07/2002 10:25   
 
AM 
 
Please respond to  
 
fop-dev
 
   
 
   
 



FOP is a renderer for XSL:FO, not for XHTML. If you want to render XHTML,
you have to convert it to XSL:FO first.

> I have an application that produces HTML as output. I used tidy to make
the
> HTML well-formed and added the XML header and renamed the file to
> filename.xml from filename.html. I then use FOP to try and create a
> filename.pdf file. I get a "/ by zero" exception. The problem is the
> pageCount variable in the StreamRender class isn't get incremented. Since
> it's initialized to zero, an Arithmetic exception is thrown when the log
> tries to write out the average time it took to render each page. Since
> XHTML is  XML, I would have expected this to work. Has anyone else come
> across this issue/exception??

Cheers,
Jeremias Märki

mailto:[EMAIL PROTECTED]

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


-
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: Getting an error when using an XHTML file??

2002-05-07 Thread Jeremias Maerki

FOP is a renderer for XSL:FO, not for XHTML. If you want to render XHTML,
you have to convert it to XSL:FO first.

> I have an application that produces HTML as output. I used tidy to make the
> HTML well-formed and added the XML header and renamed the file to
> filename.xml from filename.html. I then use FOP to try and create a
> filename.pdf file. I get a "/ by zero" exception. The problem is the
> pageCount variable in the StreamRender class isn't get incremented. Since
> it's initialized to zero, an Arithmetic exception is thrown when the log
> tries to write out the average time it took to render each page. Since
> XHTML is  XML, I would have expected this to work. Has anyone else come
> across this issue/exception??

Cheers,
Jeremias Märki

mailto:[EMAIL PROTECTED]

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


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




Getting an error when using an XHTML file??

2002-05-07 Thread chadford . hilton

Hello -

I have an application that produces HTML as output. I used tidy to make the
HTML well-formed and added the XML header and renamed the file to
filename.xml from filename.html. I then use FOP to try and create a
filename.pdf file. I get a "/ by zero" exception. The problem is the
pageCount variable in the StreamRender class isn't get incremented. Since
it's initialized to zero, an Arithmetic exception is thrown when the log
tries to write out the average time it took to render each page. Since
XHTML is  XML, I would have expected this to work. Has anyone else come
across this issue/exception??

Thanks,
Chad

Chadford Hilton
Web Integration
PNC Financial Services
v - 412-768-2395
e - [EMAIL PROTECTED]


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