Project

Profile

Help

Patch #1415

closed

Allow String for http://saxon.sf.net/feature/traceListener

Added by Anonymous about 18 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Internals
Sprint/Milestone:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Legacy ID:
sf-1557929
Applies to branch:
Fix Committed on Branch:
Fixed in Maintenance Release:
Platforms:

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

Configuration.patch (9.56 KB) Configuration.patch Anonymous, 2006-09-13 14:00
Actions #1

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.

Actions #2

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.

Actions #3

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/

Actions #4

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

Also available in: Atom PDF