On 13/12/11 12:43, Rob Sargent wrote:
>             xslUrl = new URL("jar:file://" + getBundlePath() +
>                               "/lib/book-printing-core.jar!/" +
> xsltFilename); // <== something.xsl

On a side-note, it's probably nicer to get your stylesheets using the
ClassLoader's getResourceAsStream(...) method, rather than indirectly by
constructing an absolute jar: URL.

Anyway, I can verify that at least in my environment (JBoss AS 7.1-pre,
Sun JDK 7, FOP 1.0), parameters ARE applied to the stylesheet when
setParameter(...) is called on a Transformer instance created using
TransformerFactory.newTransformer(stylesheet) . Are you sure your
'applyXsltParameterMap' method is really doing what you think it's
doing? Are you sure it's getting passed the parameters you think it's
being passed? Have you checked for oddities like trailing spaces or
similar in the parameter names, either in the stylesheet or param map?

--
Craig Ringer

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org

Reply via email to