xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Fabrizio Caldas <fabriziocal...@gmail.com>
Subject Re: <fo:external-graphic limitation?
Date Wed, 23 Nov 2005 17:04:11 GMT
Mike,

This has worked for me.

<fo:external-graphic src="url('file:c:///home/htdocs/WebContent/soa/img.jpg')"/>
<fo:external-graphic src="url('https://server:port/home/htdocs/soa/img.jpg')"/>

Regards,
Fabrizio.

2005/11/23, mike <niemaz@xrce.xerox.com>:
> Hi all,
>  I would like to load an external graphic through a parameter value?
> Because it does not seem to work for me ;-(
> For example, the following produces the error:
>  [ERROR] Error while creating area : Error with image URL: $logo_path (No such
> file or directory) and no base URL is specified
>
> <?xml version="1.0"?>
> <xsl:stylesheet
>     xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
>     xmlns:fo="http://www.w3.org/1999/XSL/Format">
> <xsl:param name="logo_path" select="'/tmp/smartdocument.loan/logo.jpg'"/>
> <xsl:template match="/">
> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
>
>        <fo:layout-master-set>
>                <fo:simple-page-master master-name="simple"
>                                       page-height="29.7cm" page-width="21cm"
>                                       margin-top="1cm" margin-bottom="1cm"
>                                       margin-left="8mm" margin-right="8mm">
>                        <fo:region-body margin-top="0cm" margin-bottom="0cm"/>
>                        <fo:region-before extent="5cm"/>
>                        <fo:region-after extent="5cm"/>
>                </fo:simple-page-master>
>                <fo:page-sequence-master master-name="page-sequence">
>                        <fo:single-page-master-reference master-reference="simple"/>
>                </fo:page-sequence-master>
>        </fo:layout-master-set>
>
>        <fo:page-sequence master-reference="page-sequence">
>                <fo:flow flow-name="xsl-region-body">
>
>                        <fo:block font-family="sans-serif" font-size="10pt"
>                                  text-align="left">
>                                <fo:table table-layout="fixed">
>                                        <fo:table-column column-width="95mm"/>
>                                        <fo:table-column column-width="95mm"/>
>                                        <fo:table-body>
>                                                <fo:table-row>
>                                                        <fo:table-cell padding="2mm">
>                                                                <fo:block>
>                                                                        <fo:external-graphic
src="$logo_path"/>
>                                                                </fo:block>
> [...]
>
> I've checked the value of logo_path and it is correct.
> Maybe there's another way to do it ... Any idea?
>
> thanx,
>
> --mike
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Mime
View raw message