Layer 7 XSLT1.0 and XSLT2.0 compatibility

倾然丶 夕夏残阳落幕 提交于 2019-12-12 03:09:42

问题


We are using Layer7 which is an ESB featuring XML transformation with the help of XSLT1 and XSLT2.

They use XALAN and Saxon 9.4.0.4 but they enable the FEATURE_SECURE_PROCESSING flag.

For my tests I use a dedicated TransformerFactory class like this :

package company.transformer.factory;

import javax.xml.XMLConstants;
import javax.xml.transform.Source;
import javax.xml.transform.Transformer;
import javax.xml.transform.TransformerConfigurationException;
import net.sf.saxon.TransformerFactoryImpl;;


public class TransformerFactory extends TransformerFactoryImpl   {

    @Override
    public Transformer newTransformer(Source arg0)
            throws TransformerConfigurationException {
        this.setFeature(XMLConstants.FEATURE_SECURE_PROCESSING,true);
        Transformer t=super.newTransformer(arg0);       
        return t;
    }

    @Override
    public Transformer newTransformer()
            throws TransformerConfigurationException {
        this.setFeature(XMLConstants.FEATURE_SECURE_PROCESSING,true);
        Transformer t=super.newTransformer();
        return t;
    }   

}

When using XSLT2, I can use "xsl:function" but once deployed on the ESB, this is ignored without making any error !

Can anyone tell me what is really supported by Layer7 in regard of XSLT1 and XSLT2 ?

来源:https://stackoverflow.com/questions/29428883/layer-7-xslt1-0-and-xslt2-0-compatibility

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!