Pascal,
I declare the image via a variable like this,
<xsl:variable name="g_NumericIndexPage" select="concat('file:///', $cl_WorkDir,
'/graphics/numericIndexPage.svg')" />
Which works out to file:///D:/workDirs/publish/graphics/numericIndexPage.svg.
So I've tested all the following as the value of the variable
file:///D:/workDirs/publish/graphics/numericIndexPage.svg
file://D:/workDirs/publish/graphics/numericIndexPage.svg
file:/D:/workDirs/publish/graphics/numericIndexPage.svg
graphics/numericIndexPage.svg
../graphics/numericIndexPage.svg
../../graphics/numericIndexPage.svg
../../../graphics/numericIndexPage.svg
All the above failed to load the svg using 0.95
file:///D:/workDirs/publish/graphics/numericIndexPage.svg works 0.94
file://D:/workDirs/publish/graphics/numericIndexPage.svg failed 0.94 as expected
file:/D:/workDirs/publish/graphics/numericIndexPage.svg works 0.94
graphics/numericIndexPage.svg works
../graphics/numericIndexPage.svg failed 0.94 as expected
../../graphics/numericIndexPage.svg failed 0.94 as expected
../../../graphics/numericIndexPage.svg failed 0.94 as expected
Marijan (Mario) Madunic
Publishing Specialist
New Flyer Industries
-----Original Message-----
From: Pascal Sancho [mailto:[email protected]]
Sent: Thursday, March 25, 2010 3:24 AM
To: [email protected]
Subject: Re: SVG as background to page in 0.95
Hi Mario,
This should work. I suspect that the relative URL is the cause of your
trouble. Can you check it with an absolute path?
Pascal
Mario Madunic a écrit :
> I was doing the following with FOP 0.94 while testing
>
> <fo:region-body region-name="sectionBody_NI" background-image="bg.svg"
> background-repeat="no-repeat" ../>
> And it would appear as a bg on the page.
>
> But in 0.95 that doesn't seem to work. How can I get an SVG as a background
> to work in 0.95. One constraint is that the odd and even pages in this case
> each have a different bg image.
>
> Marijan (Mario) Madunic
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
--------------------------------------------------------------------
Please consider the environment before printing this e-mail.
CONFIDENTIALITY STATEMENT: This communication (and any and all information or
material transmitted with this communication) is confidential, may be
privileged and is intended only for the use of the intended recipient. If you
are not the intended recipient, any review, retransmission, circulation,
distribution, reproduction, conversion to hard copy, copying or other use of
this communication, information or material is strictly prohibited and may be
illegal. If you received this communication in error or if it is forwarded to
you without the express authorization of New Flyer, please notify us
immediately by telephone or by return email and permanently delete the
communication, information and material from any computer, disk drive, diskette
or other storage device or media. Thank you.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]