Re: [xep-support] SVG images resolving

From: Rick Geimer <>
Date: Thu Feb 03 2005 - 11:10:33 PST

Why not setup your web server to deliver the required images from the database?

Rick Geimer
National Semiconductor

                      "Jonathan Gray"
                      <Jonathan.Gray@agil To:
            > cc:
                      Sent by: Subject: [xep-support] SVG images resolving
                      02/03/2005 10:04 AM
                      Please respond to

I make extensive use of SVG images in my xsl:fo using the
instream-foreign-object element (see example below). What I'd like to be able
to intercept the calls that RenderX makes when trying to source the images
(xlink:href) and rather than going to the file system or the local web server
(if we specify xml:base as http://localhost/) I would like to retrieve the
images from a database. I have had a look into URIResolver and EntityResolver
but neither of these go down to the required level.

Is there anyway that I can do this with RenderX? Either using a java library or
chaging my xsl so that the URIResolver/EntityResolver are called whenever an
image is requested?

<fo:instream-foreign-object xmlns:svg="" border="0pt"
padding="0pt" width="100%" content-width="scale-to-fit" content-height="21cm">
                                                <svg:svg width="594px"
height="420px" xmlns:xlink="">
id="bookmarkFront" width="594px" height="420px">
                                    <svg:rect id="background" x="0" y="0"
width="594" height="420"
                                                style="fill:rgb(255,255,255)" />
                                    <svg:image x="40" y="20" width="120"

                                                xmlns:xlink="" />
                                    <svg:image x="237" y="20" width="120"

                                                xmlns:xlink="" />
                                    <svg:image x="434" y="20" width="120"

                                                xmlns:xlink="" />
                                    <svg:text font-weight="bold" fill="#000000"
style="" x="279.85"
                                                y="67.05" text-anchor="middle"
                                                font-family="Arial">if you can
read this the test was probably

(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service
Received on Thu Feb 3 11:37:07 2005

This archive was generated by hypermail 2.1.8 : Thu Feb 03 2005 - 11:37:07 PST