You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by "Bhiogade, Mittal S (SUPP)" <Mi...@gesupply.com> on 2002/05/15 17:05:41 UTC

Problem with PDF

Hi,
 
I am using FOP to generate PDF file having images and the input to the PDF
files is xml and xsl file, 
 
 
image.xml file is as follows
 
<?xml version="1.0" encoding="iso-8859-1"?>
<?xml-stylesheet type="text/xsl" href="image.xsl"?>
<pictures>
 <picture>
  <src>STHBOX.jpg</src>
 </picture>
 <picture>
  <src>STHBOX.jpg</src>
 </picture>
 <picture>
  <src>STHBOX.jpg</src>
 </picture>
</pictures>

image.xsl files as follows
 
 
<xsl:stylesheet version="1.0" xmlns:xsl="
http://www.w3.org/1999/XSL/Transform <http://www.w3.org/1999/XSL/Transform>
">
<xsl:output method="html" indent="yes"/>
<xsl:template match="pictures">
<!-- Do some HTML -->
<xsl:apply-templates/>
<!-- Do some more HTML -->
</xsl:template>
<xsl:template match="picture">
  <img src = "{src}"/>
</xsl:template>
</xsl:stylesheet>

The images are properly rendered in the xml file but when i try to convert
into PDF file using FOP I get the error
 
[ERROR]: Unknown formatting object ^img
 
Please help me on this.
 
Mittal S.Bhiogade
GE-Supply,
Corporate Drive,
6th Floor,
Shelton, CT,
USA.
Phone  (Work) 1-203-9443005 
 

Re: Problem with PDF

Posted by Oleg Tkachenko <ol...@multiconn.com>.
Hello!

Hmmm, do you realize you are trying to feed html to the FOP? FOP is 
*formatting objects* processor and understands xsl-fo as input.

Bhiogade, Mittal S (SUPP) wrote:
> Hi,
>  
> I am using FOP to generate PDF file having images and the input to the 
> PDF files is xml and xsl file,
>  
>  
> image.xml file is as follows
>  
> <?xml version="1.0" encoding="iso-8859-1"?>
> <?xml-stylesheet type="text/xsl" href="image.xsl"?>
> <pictures>
>  <picture>
>   <src>STHBOX.jpg</src>
>  </picture>
>  <picture>
>   <src>STHBOX.jpg</src>
>  </picture>
>  <picture>
>   <src>STHBOX.jpg</src>
>  </picture>
> </pictures>
> image.xsl files as follows
>  
>  
> <xsl:stylesheet version="1.0" 
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
> <xsl:output method="html" indent="yes"/>
> <xsl:template match="pictures">
> <!-- Do some HTML -->
> <xsl:apply-templates/>
> <!-- Do some more HTML -->
> </xsl:template>
> <xsl:template match="picture">
>   <img src = "{src}"/>
> </xsl:template>
> </xsl:stylesheet>
> The images are properly rendered in the xml file but when i try to 
> convert into PDF file using FOP I get the error
>  
> [ERROR]: Unknown formatting object ^img
>  
> Please help me on this.
>  
> /*Mittal S.Bhiogade*/
> */GE-Supply,/*
> /*Corporate Drive,*/
> /*6th Floor,*/
> /*Shelton, CT,*/
> /*USA.*/
> /*Phone  (Work) 1-203-9443005* /
>  



-- 
Oleg Tkachenko
Multiconn International, Israel


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org