I think that you have to use docbook syntax for image inclusion, maybe
not fo, or declare the namespace in your xsl
Bonjour Jacques
cb
Le 27 Jul 2004, à 13:07, Jacques a écrit :
> Hello list,
>
> After reading, and reading and reading again the Bob's document about
> header.content, I made a try.
>
> In my custom-layer.xsl file I first put this :
>
> <xsl:template name="header.content">
> <xsl:param name="pageclass" select="''"/>
> <xsl:param name="sequence" select="''"/>
> <xsl:param name="position" select="''"/>
> <xsl:param name="gentext-key" select="''"/>
> <xsl:choose>
> <xsl:when test="$sequence = 'first' and $position =
> 'left'">
> <xsl:text>FOO</xsl:text>
> </xsl:when>
> <xsl:choose/>
> </xsl:template>
>
> And every fist page of a chapter the word "FOO" appears on the top
> left. YEAH ! Great victory for me :-)
>
> But the target is to put a logo in this place so I have changed :
>
> <xsl:text>FOO</xsl:text>
>
> by :
>
> <fo:external-graphic src="/Users/jacques/Documents/images/logo.png"/>
>
> And... it doesn't work.
>
> Using xsltproc to generate the fo file I have this error :
>
> /Users/jacques/Documents/custom-layer.xsl:11: namespace error :
> Namespace prefix fo on external-graphic is not defined
> <fo:external-graphic
> src="/Users/jacques/Documents/images/logo.png"/>
>
> Did I have to use a <xmlns:...> statement somewhere ? And if yes where,
> and which one ? I must admit that I haven't insterstood this name space
> concept.
>
> Thanks in advance for your help.
> Jacques
> --
> Pour qu'il y ait le moins de mécontents possible, il faut toujours
> taper sur les mêmes
>
>
Christian Brugeron
Expert PDF/PostScript - Automatisation de l'édition - XML/XSLT/XSL-FO