Saxon error with XSLT import statement

狂风中的少年 提交于 2019-12-05 03:52:42
Mads Hansen

You likely need to set the System ID for StreamSource of the XSLT that you are loading.

When you load from a StreamSource, it doesn't know where your XSLT "lives" and has difficulty determining how to resolve relative paths.

StreamSource source = new StreamSource(xsltInputStream);
source.setSystemId(PATH_TO_THE_XSLT_FILE_ON_THE_FILESYSTEM_OR_URL);
Transformer transformer = transformerFactory.newTransformer(source); 
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!