display-graphic or external-graphic and unsupported bmp format

2001-07-19 Thread FLBAUMGARTEN

Hello ...,

I´ve a little problem using the display-graphic formatting object.
This is the fo-file that shall be transformed in pdf-format:

fo:block text-align=centered
  fo:display-graphic href=formula02.gif/
/fo:block

This is what comes out:

FOP 0.12.1
using SAX parser org.apache.xerces.parsers.SAXParser
using renderer org.apache.fop.render.pdf.PDFRenderer
using element mapping org.apache.fop.fo.StandardElementMapping
using element mapping org.apache.fop.svg.SVGElementMapping
building formatting object tree
setting up fonts
formatting FOs into areas
 [1Unsupported bmp format
FATAL ERROR: null

Does the fop 12 not support any pictures at all? Is it the format? Actually
it doesm´t support real bmp-format either. so what can I do to show pictures
in the pdf file?
I tried the same thing with a newer fop Version and external-graphic. Does someone 
know the problem?
Thanks in advance.

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




getting an external-graphic from xml in pdf

2001-07-19 Thread FLBAUMGARTEN

The external-graphic fo works if it´s in the fo-file.
Now my problem goes a little further.

The picture is embedded in the xml file like this:

PICTURE source=Bilder/formula.gif /

To show this in a browser my xsl-file looks like this and it works:

xsl:template match=//PICTURE
DIV align=center
IMG BORDER=0
xsl:attribute name=src
xsl:value-of select=//PICTURE/@source/
/xsl:attribute
/IMG
/DIV
/xsl:template

But what do I do to make the transformation to pdf with fo possible since the 
recommendation says to use

src:file:... like this

The file formula.gif is only embedded in the xml file and should not just be in the 
xsl file.

Now I want to add the attribute which would be no problem without the file: thing.
It should look somehow like this, but I don´t know how to add this in the quotation 
marks.

xsl:template match=//PICTURE
 fo:block
  fo:external-graphic text-align=center
   xsl:attribute name=src
xsl:value-of select=//PICTURE/@source/
   /xsl:attribute
  /fo:external-graphic
 /fo:block
/xsl:template

This of course doesn´t work.

Can somebody help me with this??

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