On Sep 17, 2007, at 6:37 PM, Robert Koberg wrote:
On Mon, 2007-09-17 at 18:02 -0400, Santiago Pericas-Geertsen wrote:
On Sep 15, 2007, at 8:49 PM, Robert Koberg wrote:
Hi,
Has anything or will anything be done for XSLTC to use a resolver
for
xsl:import/xsl:include for the Templates object.
You mean other than the URIResolver that you can set on the
TransformerFactory?
Yes, the Templates' resolver (set on the TranformerFactory) resolves
xsl:import/xsl:include
Actually, it should resolve document() too according to the
documentation [1].
and the Transformer's resolver resolves the
document function.
Yes.
In my experience, the resolver for the Templates object is much
simpler
than the one for the Transformer. I find it nice to keep them
separate.
And, it's in JAXP that you should be able to do so.
XSLTC ignores a resolver set on the Templates and resolves files
relative to the XSL file.
You cannot set a resolver on a Templates object, so I'm assuming
that you mean the one set on the TransformerFactory. So if you set
one on the TransformerFactory for xsl:import/xsl:include isn't it
used for a Templates object created from that factory? If the answer
is no, then that is a bug. Perhaps you can write a short unit test to
show the problem.
Thanks.
-- Santiago
[1] http://java.sun.com/j2se/1.5.0/docs/api/javax/xml/transform/
TransformerFactory.html
Xalan interpretive does do this and allows you to set a different
resolver for the Transformer. (So does Saxon 6x).
Thanks,
-Rob
--------------------------------------------------------------------
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]