Claus Ibsen created CAMEL-27907:
-----------------------------------
Summary: camel-xslt-saxon: the resultHandlerFactory option has no
effect, the transformerFactoryClass of the aggregation strategy is never used
Key: CAMEL-27907
URL: https://issues.apache.org/jira/browse/CAMEL-27907
Project: Camel
Issue Type: Bug
Components: camel-xslt
Reporter: Claus Ibsen
Fix For: 4.25.0
Found while improving the option descriptions of camel-xslt-saxon for
CAMEL-23832 (pull request https://github.com/apache/camel/pull/31166).
These are separate problems of the component; the descriptions change only
documents the current behavior.
h4. 1. The resultHandlerFactory option has no effect
{{XsltSaxonEndpoint.createXsltBuilder}} sets the custom resultHandlerFactory
and then calls configureOutput(xslt, getOutput().name()); output always has a
value (default string), so configureOutput replaces the custom factory.
Proposed change: call configureOutput first and set the resultHandlerFactory
afterwards, as XsltEndpoint does.
h4. 2. The transformerFactoryClass of the aggregation strategy is never used
The {{XsltSaxonAggregationStrategy}} constructor sets a Saxon
TransformerFactory, and XsltAggregationStrategy.doInit only reads
transformerFactoryClass when transformerFactory is null, so the property has no
effect.
Proposed change: apply the class in the constructor or doInit (then the same
factory settings), or remove the property.
h4. 3. saxonConfigurationProperties and saxonReaderProperties are not endpoint
options
On XsltSaxonEndpoint both are @Metadata without @UriParam, so they are missing
from the endpoint options in the catalog and the DSL, although
saxonConfigurationProperties works as an endpoint URI parameter (a test uses
it); saxonReaderProperties has no component option either.
Proposed change: declare them as @UriParam.
_Claude Code on behalf of davsclaus_
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)