W3C home > Mailing lists > Public > www-xsl-fo@w3.org > September 2002

Re: [Moderator Action] "fo:external-graphic" with "xsl:value-of select="image_url" on windows and Unix

From: Max Froumentin <mf@w3.org>
Date: Fri, 27 Sep 2002 17:01:24 +0200
To: "Guo, Gordon" <gguo@cdocs.com>
Cc: <www-xsl-fo@w3.org>, "Rao, Sneha" <Sneha@cdocs.com>
Message-ID: <86elbf79yz.fsf@sophia.inria.fr>

"Guo, Gordon" <gguo@cdocs.com> writes:

>                              <xsl:element name="fo:external-graphic">
>                                <xsl:attribute name="src">
>                                  <xsl:value-of select="imgurl"/>/zenith.gif
>                                 </xsl:attribute>

The src attribute is defined as containing a <uri-specification>
which has the format 'url(' followed by a URI reference in single
or double quotes, followed by ')'. So your code should be 

<xsl:element name="fo:external-graphic">
  <xsl:attribute name="src">url('<xsl:value-of select="imgurl"/>/zenith.gif')</xsl:attribute>

By the way, you can collapse your code to a single line:

<fo:external-graphic src="url('{imgurl}/zenith.gif')" content-width="250px" content-height="80px" width="250px" height="80px"/>

> It works fine on win2k and NT.  However, it doest not work on Unix. 

What implementation are you using?

> The process does not give any message, just ignore the ="fo:external-graphic" and generate the PDF without the logo image.

What does the FO file look like?

Max.
Received on Friday, 27 September 2002 11:01:50 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 3 October 2007 16:06:09 GMT