Translet to Templates
---------------------
Key: XALANJ-2480
URL: https://issues.apache.org/jira/browse/XALANJ-2480
Project: XalanJ2
Issue Type: Improvement
Security Level: No security risk; visible to anyone (Ordinary problems in
Xalan projects. Anybody can view the issue.)
Components: XSLTC
Affects Versions: 2.7.1
Reporter: Philippe Poulard
Priority: Trivial
Hi,
I hold a translet class, and all I need is to get a Templates; unfortunately,
the relevant constructor is not public.
-Suggestion: change the modifier of the constructor to PUBLIC.
Class: org.apache.xalan.xsltc.trax.TemplatesImpl
Constructor:
public TemplatesImpl(Class[] transletClasses, String transletName,
Properties outputProperties, int indentNumber
TransformerFactoryImpl tfactory)
-Alternative: create a new PUBLIC constructor like this:
public TemplatesImpl(Class[] transletClasses, String transletName,
Properties outputProperties, int indentNumber) {
this(transletClasses, transletName,
outputProperties, indentNumber, new TransformerFactoryImpl());
}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]