I suppose this question to be OT even in fop-user.
Anyhow, study the appended code
and above all study some XSLT tutorials.

<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
  <xsl:template match="/">
      <xsl:apply-templates />
  <xsl:template match="//PICTURE">
        <xsl:attribute name="src">
          <xsl:value-of select="@source" />

  <xsl:template match="//PUNCTURE">
    <xsl:variable name="source">
      <xsl:value-of select="@source" />
      <fo:external-graphic src="file:{$source}" />

>-----Ursprüngliche Nachricht-----
>Gesendet am: Donnerstag, 19. Juli 2001 16:19
>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> 
>This of course doesn´t work.

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

Reply via email to