BURN, James
2016-09-28 14:30:40 UTC
Hi
I'm testing/developing with ServiceMix 7.0 to use some of the latest Camel 2.16.3 features.
We need to do XSLT transformations using ServiceMix.
I install camel-saxon feature, but when I deploy a route calling an XSLT which works in other versions of ServiceMix, it would appear that ServiceMix is trying to run with a xalan XSLT 1.0 processor.
So I get errors like:
Caused by: javax.xml.transform.TransformerException: Could not find function: encode-for-uri
at org.apache.xalan.processor.XSLTAttributeDef.processEXPR(XSLTAttributeDef.java:769)[:]
at org.apache.xalan.processor.XSLTAttributeDef.processValue(XSLTAttributeDef.java:1405)[:]
at org.apache.xalan.processor.XSLTAttributeDef.setAttrValue(XSLTAttributeDef.java:1601)[:]
I think this is because encode-for-uri is only available in XSLT 2.0 and xalan is trying to process my .xsl using XSLT 1.0
How can I force the Saxon processor to be used (rather than xalan)?
Thanks
James
Oxford University Press (UK) Disclaimer
This message is confidential. You should not copy it or disclose its contents to anyone. You may use and apply the information for the intended purpose only. OUP does not accept legal responsibility for the contents of this message. Any views or opinions presented are those of the author only and not of OUP. If this email has come to you in error, please delete it, along with any attachments. Please note that OUP may intercept incoming and outgoing email communications.
I'm testing/developing with ServiceMix 7.0 to use some of the latest Camel 2.16.3 features.
We need to do XSLT transformations using ServiceMix.
I install camel-saxon feature, but when I deploy a route calling an XSLT which works in other versions of ServiceMix, it would appear that ServiceMix is trying to run with a xalan XSLT 1.0 processor.
So I get errors like:
Caused by: javax.xml.transform.TransformerException: Could not find function: encode-for-uri
at org.apache.xalan.processor.XSLTAttributeDef.processEXPR(XSLTAttributeDef.java:769)[:]
at org.apache.xalan.processor.XSLTAttributeDef.processValue(XSLTAttributeDef.java:1405)[:]
at org.apache.xalan.processor.XSLTAttributeDef.setAttrValue(XSLTAttributeDef.java:1601)[:]
I think this is because encode-for-uri is only available in XSLT 2.0 and xalan is trying to process my .xsl using XSLT 1.0
How can I force the Saxon processor to be used (rather than xalan)?
Thanks
James
Oxford University Press (UK) Disclaimer
This message is confidential. You should not copy it or disclose its contents to anyone. You may use and apply the information for the intended purpose only. OUP does not accept legal responsibility for the contents of this message. Any views or opinions presented are those of the author only and not of OUP. If this email has come to you in error, please delete it, along with any attachments. Please note that OUP may intercept incoming and outgoing email communications.