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]

Reply via email to