Is your image SVG? In that case, the resulting XSL:FO should look like: <fo:instream-foreign-object text-align="center"> <svg ...> ... </svg> </fo:instream-foreign-object>
Otherwise, have a look at how Forrest includes images (also PNG and JPEG etc) in PDF's: http://forrest.apache.org/faq.html#pdf_images I think you could discover by looking at the XSL-FO stylesheet in the common skin. Looks something like <fo:external-graphic src="{$imgpath}"> <xsl:if test="@height"> <xsl:attribute name="height"><xsl:value-of select="@height"/></xsl:attribute> </xsl:if> <xsl:if test="@width"> <xsl:attribute name="width"><xsl:value-of select="@width"/></xsl:attribute> </xsl:if> </fo:external-graphic> (I guess that FOP requires Jimi or JAI to actually include the image in the PDF). Bart. > -----Original Message----- > From: foxmask [mailto:[EMAIL PROTECTED] > Sent: Tuesday, October 26, 2004 4:55 PM > To: Cocoon > Subject: PDF without Images > > Hi, > I have some docbook file which contain images. > > when i access foo.xhtml i can see my images in the xhtml page > > <map:match pattern="foo.xhtml" label="content"> > <map:generate src="foo_book.xml"/> > <map:transform type="xinclude"/> > <map:transform type="xalan" src="docbook/xsl/xhtml/docbook.xsl"/> > <map:serialize type="xhtml"/> > </map:match> > > when i access foo.pdf ; i see no images. > > <map:match pattern="foo.pdf" label="content"> > <map:generate src="foo_book.xml"/> > <map:transform type="xinclude"/> > <map:transform type="xalan" src="docbook/xsl/fo/docbook.xsl"/> > <map:serialize type="fo2pdf"/> > </map:match> > > > tips: i use xsl from Docbook 4.2 > > any suggestion ? > > regards. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
