git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@513845 13f79535-47bb-0310-9956-ffa450edef68tags/fop-0_94
@@ -144,7 +144,16 @@ public class FopServlet extends HttpServlet { | |||
* @return Source the generated Source object | |||
*/ | |||
protected Source convertString2Source(String param) { | |||
return new StreamSource(new File(param)); | |||
Source src; | |||
try { | |||
src = uriResolver.resolve(param, null); | |||
} catch (TransformerException e) { | |||
src = null; | |||
} | |||
if (src == null) { | |||
src = new StreamSource(new File(param)); | |||
} | |||
return src; | |||
} | |||
private void sendPDF(byte[] content, HttpServletResponse response) throws IOException { |