[xep-support] Background image scaling
DESEYNE Jacques
Jacques.DESEYNE at swift.com
Mon Jan 24 04:54:29 PST 2005
Peter,
The problem may be related to how you specify the URI of your graphic. Have you checked the output from XEP?
I should have investigated this somewhat further, but it would seem that by default (in XEP 3.8 !), specifying the 'file:' protocol
interpretes relative expressions as relative to the current working directory rather than to the current source's directory.
When I specify
background-image="url(file:graphic.svg)"
And run from the command-line (from the folder 'C:\Workspace\temp'), I get something like:
[error] java.net.MalformedURLException: Invalid URL or non-existent file: C:\Workspace\temp\graphic.svg
Whereas the following fragment gets rendered as I would expect:
<fo:flow flow-name="xsl-region-body">
...
<fo:block-container width="125mm" height="125mm"
background-image="url(graphic.svg)"
rx:background-content-height="125mm"
background-repeat="no-repeat"
border="solid black 0.1pt">
<!-- These blocks generated by "<xsl:apply-templates/>" -->
<fo:block space-before="0.5em" space-after="0.5em">First block within the block-container</fo:block>
<fo:block space-before="0.5em" space-after="0.5em">Second block within the block-container</fo:block>
<fo:block space-before="0.5em" space-after="0.5em">Third block within the block-container</fo:block>
</fo:block-container>
...
</fo:flow>
Best regards,
--
Jacques DESEYNE
S.W.I.F.T.
Society for Worldwide International Financial Telecommunication
www.swift.com
User Documentation Dept.
B-1310 La Hulpe
>-----Original Message-----
>From: owner-xep-support at renderx.com
>[mailto:owner-xep-support at renderx.com] On Behalf Of Peter Spreenberg
>Sent: Sunday, January 23, 2005 5:32 PM
>To: RenderX XEP support
>Subject: [xep-support] Background image scaling
>
>Hi,
>
>I'm new to XSL-FO and XEP so I apologize if this is an
>ignorant question. In
>reference to XEP 4.1 documentation for sizing/scaling
>background-images:
>
>rx:background-content-height
>rx:background-content-width
>rx:background-scaling
>rx:background-content-type
>
>I don't understand exactly where to place these property
>statements. I have
>the RenderX extensions namespace declared in the fo:root
>element (xmlns:
>rx="http://www.renderx.com/XSL/Extensions"). If I'm using the
>following to
>define a background image for a block-container:
>
><fo:block-container
> background-image="url(file:image.jpg)
></fo:block-container>
>
>... Where would I place the rx properties?
>
>
>None of these attempts worked:
>
><fo:block-container
> background-image="url(file:image.jpg)"
> rx:background-content-width="100pt"
></fo:block-container>
>
><fo:block-container background-image="url(file:image.jpg)>
> <rx:background-content-width="100pt">
> <xsl:apply-templates/>
> </rx:background-content-width>
></fo:block-container>
>
>
>I know I'm missing something, thank you in advance for your help.
>
>Peter
>
>
>
>
>-------------------
>(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
>in the body of the message to majordomo at renderx.com from the address
>you are subscribed from.
>(*) By using the Service, you expressly agree to these Terms
>of Service http://www.renderx.com/tos.html
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 2418 bytes
Desc: not available
URL: <http://lists.renderx.com/pipermail/xep-support/attachments/20050124/10cb5404/attachment.bin>
More information about the Xep-support
mailing list