Link to home
Start Free TrialLog in
Avatar of jdharsha
jdharsha

asked on

including XSL file(s) from multiple paths

Hello,

Aim: Include one XSL file into another.

Background: I have configured the relative path to the directory where the common xsl's exist, please find below.

      ByteArrayInputStream bs = new ByteArrayInputStream(template);
      URL commonTemplatesUrl = PdfReportBuilder.class.getResource("/fop/xsl/");
      Source xsltSrc = new StreamSource(bs, commonTemplatesUrl.toExternalForm());

The relative path("/fop/xsl/") exist in a jar file (the jar is included in the classpath of the project).

Problem: I had a requirement to include another XSL file at project level. Because the included templates are only getting picked at the relative path ("/fop/xsl/") I created a folder structure("/fop/xsl/") at the project level. And now the common XSL's i.e from jar file are not getting picked.

Question: Is there a way to configure multiple paths??

please let me know if you need more info.

Thanks,
ASKER CERTIFIED SOLUTION
Avatar of Am P
Am P
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial