Patch #1415
closedAllow String for http://saxon.sf.net/feature/traceListener
0%
Description
SourceForge user: menteith
The value used for setting the
http://saxon.sf.net/feature/traceListener attribute of
net.sf.saxon.TransformerFactoryImpl currently has to be
an object that implements TraceListener.
However, if setting attributes for Saxon with the
and sub-elements of Ant's xslt
task, the best you can do is set the value to be a String.
The attached patch attempts treats a String value as a
class name and attempts to instantiate and use an
object of the specified class.
Files
Updated by Anonymous about 18 years ago
SourceForge user: mhkay
Logged In: YES
user_id=251681
I can see the problem, but I don't think this change is a
particularly good idea. In the majority of cases, it's
likely that a traceListener will be stateful, in particular,
it will have an output writer of some kind. That's why in
8.8 I've been moving away from specifying the listener on
the Configuration object towards putting it on the Controller.
Limitations of Ant as a programming language also don't seem
to be a particularly good justification for ad-hoc changes
Saxon's API.
The whole business of supplying user-hooks is pretty messy
in Saxon, I admit, but it's not clear that this change
overall is an improvement.
Updated by Anonymous over 16 years ago
SourceForge user: mhkay
Logged In: YES
user_id=251681
Originator: NO
This has come up again more recently - again in the context of Ant - and I decided to add Configuration options in Saxon 9.1 so that all the user hooks can be nominated either as a string holding the class name, or as an instance of the class.
Updated by Anonymous over 12 years ago
SourceForge user: nobody
lB2YD4 fsitlosclcwz, [url=http://yapjurrwdqce.com/]yapjurrwdqce[/url], [link=http://zuwlzqjkzlwv.com/]zuwlzqjkzlwv[/link], http://hlokmmslmfqu.com/
Updated by Michael Kay over 11 years ago
- Status changed from New to Closed
Closed. In the meantime, all configuration properties have wherever possible been enhanced to accept a string, so they can be used in environments like Ant.
Please register to edit this issue