dan-s1 commented on code in PR #11124:
URL: https://github.com/apache/nifi/pull/11124#discussion_r3110856322
##########
nifi-extension-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/TransformXml.java:
##########
@@ -123,6 +132,7 @@ public class TransformXml extends AbstractProcessor {
.required(false)
.expressionLanguageSupported(ExpressionLanguageScope.FLOWFILE_ATTRIBUTES)
.addValidator(StandardValidators.NON_EMPTY_EL_VALIDATOR)
+ .identifiesExternalResource(ResourceCardinality.SINGLE,
ResourceType.TEXT)
Review Comment:
I felt had to make this change in order to make the changes of the code on
lines 294 -296
```
final ResourceReference resourceReference =
context.getProperty(XSLT_DOCUMENT).isSet()
?
context.getProperty(XSLT_DOCUMENT).evaluateAttributeExpressions(original).asResource()
:
context.getProperty(XSLT_CONTROLLER_KEY).evaluateAttributeExpressions(original).asResource();
```
otherwise I had to encapsulate the value of `XSLT_CONTROLLER_KEY` in an
instance of `Utf8TextResource`. Please let me know whether you would like this
changed. Thanks!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]