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(templ ate);
URL commonTemplatesUrl = PdfReportBuilder.class.get Resource(" /fop/xsl/" );
Source xsltSrc = new StreamSource(bs, commonTemplatesUrl.toExter nalForm()) ;
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,
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(templ
URL commonTemplatesUrl = PdfReportBuilder.class.get
Source xsltSrc = new StreamSource(bs, commonTemplatesUrl.toExter
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.