This is the mail archive of the docbook@lists.oasis-open.org mailing list for the DocBook project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Fop-0.20.1 Image Problems


I guess I am seeing the same problem. More verbosely (excuse my
newbie-ness):

  cd /home/mkennedy/work/lab_sales/
   fop -xml p2c3.xml -xsl ~/lib/docbook-xsl-1.44/fo/docbook.xsl -pdf
p2c3.pdf
  FOP 0.20.1
  using SAX parser org.apache.xerces.parsers.SAXParser
  ...
   [1Error while creating area : Error while recovering Image
Informations
(file:/home/mkennedy/work/lab_sales/url(images/figure14.gif)) :
/home/mkennedy/work/lab_sales/url(images/figure14.gif) (No such file
  or directory)

In ~/lib/docbook-xsl-1.44/fo/graphics.xsl I see the following switch
statement. The otherwise case is the one causing me grief... so I am
wondering how or even if I should be setting $fop.extensions somehow?
How might one do this?

    <xsl:choose>
      <xsl:when test="$passivetex.extensions != 0
                      or $fop.extensions != 0
                      or $arbortext.extensions != 0">
        <fo:external-graphic src="{$filename}"
                             width="{$width}"
                             height="{$height}"
                             content-width="{$content-width}"
                             content-height="{$content-height}"/>
      </xsl:when>
      <xsl:otherwise>
        <fo:external-graphic src="url({$filename})"
                             width="{$width}"
                             height="{$height}"
                             content-width="{$content-width}"
                             content-height="{$content-height}"/>
      </xsl:otherwise>
    </xsl:choose>
  </xsl:template>

Thanks,

Matthew





On 24 Aug 2001 18:32:26 +0200, Alexander Schatten wrote:
> Jeff Iezzi wrote:
> 
> > I'm not sure about the latest FOP version, but previous versions 
> > could not handle GIFs. Try JPEG files and it should work. 
> 
> 
> no, it is no problem of the gif format. as I described in the previous
> message in detail:
> 
> this statement does NOT work in fop
> 
> <fo:external-graphic height="auto" width="auto" content-height="auto" 
> content-width="auto" src="url(dilbert_747.gif)"/>
> 
> 
> this statement works in FOP.
> 
> <fo:external-graphic height="auto" width="auto" content-height="auto" 
> content-width="auto" src="dilbert_747.gif"/>
> 
> 
> but the first one is generated by the N.Walsh stylesheets.
> 
> 
> Alex
> 
> 
> ----------------------------------------------------------------
> To subscribe or unsubscribe from this elist use the subscription
> manager: <http://lists.oasis-open.org/ob/adm.pl>






----------------------------------------------------------------
To subscribe or unsubscribe from this elist use the subscription
manager: <http://lists.oasis-open.org/ob/adm.pl>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]