[xep-support] URI resolution in fo:external-graphic images

amasino amasino at atsec.com
Fri Dec 2 13:47:53 PST 2016


Hi all:

I have a xmlfo source file with the following syntax:
/
//<fo:block margin-bottom="10pt" text-align="center" id="FIG1">//
//            <fo:external-graphic max-width="100%" max-height="100%"//
//              
src="url('http://w3.mycompany/mytool/xml/logos/mylogo.png')"/>//
//         </fo:block>

/Obviously, the uri is canonical and I have configured an xml catalog to
solve it locally. My ant macro to generate the pdf file includes the
corresponding system
properties for the Catalog Resolver:

            <java
                fork="true"
                classname="com.renderx.xep.XSLDriver"
                classpathref="xep.classpath"
                classpath="${prjdir}">
                <jvmarg value="-Xms${jvm.ms}"/>
                <jvmarg value="-Xmx${jvm.mx}"/>
                <sysproperty key="com.renderx.xep.CONFIG"
value="${xepdir}/xep.xml"/>
*                <sysproperty key="com.renderx.sax.entityresolver"
value="org.apache.xml.resolver.tools.CatalogResolver"/>**
**                <sysproperty key="com.renderx.jaxp.uriresolver"
value="org.apache.xml.resolver.tools.CatalogResolver"/>**
*
While the catalog resolver works well in different things (the debugging
option shows that the XEP engine uses it), it does not resolve the
entries under the
src attribute. I tested with different options (with and without
wrapping with url, quotes, etc.), but it does not work:

*    [java] [warning] Could not retrieve image from
'http://w3.mycompany/mytool/xml/logos/mylogo.png':
java.net.UnknownHostException: w3.mycompany**
*   

Can the renderx engine supports this? I'm using XEP 4.24.444.

Thanks,
Alejandro

-- 
______________________________________________________ 

Alejandro Fabio Masino
atsec information security

Visit our web-site at: www.atsec.com
@sec: the information security provider

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.renderx.com/pipermail/xep-support/attachments/20161202/8e22c945/attachment.html>


More information about the Xep-support mailing list