我编写了一个 XSLT 2.0 版本文件,当它应用于 XML 文件时,它给了我以下错误:
ERROR: 'Unsupported XSL element 'http://www.w3.org/1999/XSL/Transform:sequence''
这是Java代码:
TransformerFactory tFactory = TransformerFactory.newInstance();
Transformer transformer = tFactory.newTransformer(new StreamSource("Test.xslt"));
transformer.transform(new StreamSource("Old.xml"),new StreamResult(new
FileOutputStream("New.xml")));
有人可以帮我解决这个问题吗?