Quantcast
Channel: Apache Timeline
Viewing all articles
Browse latest Browse all 5648

javax.xml.transform.TransformerException: Extension function: '{http://www.w3.org/2005/xpath-functions}format-dateTime' can not be invoked when the XMLConstants.FEATURE_SECURE_PROCESSING feature is set to true.

$
0
0
I defined an XSLT transform in my route using:

.to("xslt:mytransform.xsl")

The stylesheet is XSL 2.0 and is invoking a few 2.0 functions including
current-dateTime.

But I'm getting:
javax.xml.transform.TransformerException: Extension function:
'{http://www.w3.org/2005/xpath-functions}format-dateTime' can not be
invoked when the XMLConstants.FEATURE_SECURE_PROCESSING feature is set to
true.

I can see that the Xalan transformer is being used.
I understand that with Xalan not supporting XSL 2.0 I would not be able to
execute the transform anyway. My questions are:
1. Is there a way to get Camel to use a different processor that does
support XSL 2.0?
2. If there is, would the "FEATURE_SECURE_PROCESSING feature is set to
true." restriction still apply?
3. What's the recommended way to handle stylesheets like these, that invoke
Xpath functions? Would xalan extensions work?

Thanks

Viewing all articles
Browse latest Browse all 5648