[xep-support] SVG as a background image with scale-to-fit

From: Robert Goldsmith <robert.goldsmith@spgroup.co.uk>
Date: Mon Jun 22 2009 - 08:12:59 PDT

Hi everyone,

I've been trying to use an SVG as a background image that I can scale
to create the elusive strikethrough I need and I'm having problems
with the rx:background-content-width etc. extensions.

This is what I'm trying.

XSL:
<fo:block>
        It should also be entirely possible to embed <fo:inline
padding="5px" background-image="src('strikethrough.svg')" background-
position="top left" rx:background-content-width="scale-to-fit"
rx:background-content-height="scale-to-fit" rx:background-scaling="non-
uniform" background-repeat="no-repeat">SVG Content</fo:inline> at any
point in the page.
</fo:block>

SVG:
<svg version="1.1" viewBox="0 0 100 20" perserveAspectRatio="none"
xmlns="http://www.w3.org/2000/svg">
        <line x1 = "2" y1 = "18" x2 = "98" y2 = "2" stroke = "black" stroke-
width = "2" />
</svg>

What I expected was that the SVG image would be scaled to the width
and height of the inline element to create the needed strikethrough.
However, it appears that the SVG renders but does so without any
scaling.

Anyone any ideas why this isn't working as expected? According to my
sys-admin we are using the latest release of XEP.

Robert

---
Robert Goldsmith
Senior Systems Integrator, Business Systems, SP Group
Telephone: 01527 508239
"Please consider the environment before printing this e-mail"
***********************************************************************************
IMPORTANT - this email and the information that it contains may be 
confidential, legally privileged and/or protected by law.  It is intended 
solely for the use of the individual or entity to whom it is addressed.  
If you are not the intended recipient, please notify the sender immediately 
and do not disclose the contents to any other person, use it for any purpose, 
or store or copy the information in any medium (including by printing it out.  
Please also delete all copies of this email and any attachments from your 
system and shred any printed copies.
We do not accept any liability for losses or damages that you may suffer 
as a result of your receipt of this email including but not limited to 
computer service or system failure, access delays or interruption, data 
non-delivery or mis-delivery, computer viruses or other harmful components.
Any views expressed in this message are those of the individual sender 
except where the sender specifically states them to be the views of the SP Group.
Copyright in this email and any attachments belongs to the SP Group the sender or 
its licensors.
***********************************************************************************
-------------------
(*) 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/terms-of-service.html
Received on Mon Jun 22 08:52:22 2009

This archive was generated by hypermail 2.1.8 : Mon Jun 22 2009 - 08:52:26 PDT