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


Jeff,

Thanks for your reply. I made the changes to docbook.xsl and
graphics.xsl as follows:

docbook.xsl:

<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
                xmlns:fo="http://www.w3.org/1999/XSL/Format";
                xmlns:doc="http://nwalsh.com/xsl/documentation/1.0";
                exclude-result-prefixes="doc"
                version='1.0'>
<xsl:param name="fop.extensions" select="1"/>


graphics.xsl:

<xsl:template name="process.image">
  <xsl:if test="$fop.extensions = 0">
    <xsl:message terminate="yes">
      <xsl:text>Parameter is not set to use FOP extensions</xsl:text>
    </xsl:message>
  </xsl:if>
  <!-- When this template is called, the current node should be  -->
  <!-- a graphic, inlinegraphic, imagedata, or videodata. All    -->
  ...

When I run fop again, I get the following. So you're right, it does
terminate because $fop.extensions = 0. What would be the next course of
action to get it to process the images into the pdf output?

Thanks,

Matt

[mkennedy@seawolf 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
file:////home/mkennedy/lib/docbook-xsl-1.44/fo/docbook.xsl; Line 94;
Column 16; Making portrait pages on USletter paper (8.5inx11in)
building formatting object tree
setting up fonts
file:////home/mkennedy/lib/docbook-xsl-1.44/fo/graphics.xsl; Line 75;
Column 34; Parameter is not set to use FOP extensions
 [1]
Parsing of document complete, stopping renderer
Initial heap size: 13769Kb
Current heap size: 17493Kb
Total memory used: 3723Kb
  Memory use is indicative; no GC was performed
  These figures should not be used comparatively
Total time used: 7445ms
Pages rendererd: 1
Avg render time: 7445ms/page
ERROR: Stylesheet directed termination
[mkennedy@seawolf lab_sales]$


On 27 Aug 2001 13:06:09 +0200, Jeff Iezzi wrote:
> I have confirmed your problem with the 1.40 style sheets and it 
> looks like graphics.xsl is not getting the value of the fop.extensions 
> parameter. 
> 
> Set the fop.extensions in docbook.xsl as follows:
> 
> <xsl:param name="fop.extensions" select="1"/>
> 
> In graphics.xsl, try the following debugging snippet:
> 
> <xsl:template name="process.image">
>   <xsl:if test="$fop.extensions = 0">
>     <xsl:message terminate="yes">
>       <xsl:text>Parameter is not set to use FOP 
> extensions</xsl:text>
>     </xsl:message>
>   </xsl:if>
> 
> If set to null (as above), FOP halts once it reaches an image. If set 
> to non-nill (1 or !=0), FOP keeps trying to perform the conversion 
> and indeed sets the name of the file to src="url(file.gif)".
> 
> 
> 
> [:>|
> 
> Jeff Iezzi
> jeff.iezzi@semanticedge.com
> 
> -- EOF --
> 
> ----------------------------------------------------------------
> 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]