RE: [xep-support] Background image scaling

From: DESEYNE Jacques <Jacques.DESEYNE@swift.com>
Date: Mon Jan 24 2005 - 04:54:29 PST

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@renderx.com 
>[mailto:owner-xep-support@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@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
>

-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo@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

Received on Mon Jan 24 05:37:01 2005

This archive was generated by hypermail 2.1.8 : Mon Jan 24 2005 - 05:37:06 PST