Получаю эту ошибку при использовании <axsl:mode on-no-match="shallow-copy"/>
в моем xslt 3.0. lib -> saxon-ee:9.7.0.4
Error at /xsl:stylesheet/xsl:mode[1]
XTSE0010: Element xsl:mode must not appear directly within xsl:stylesheet
Error at /xsl:stylesheet/xsl:mode[1]
XTSE0010: Element xsl:mode must not appear directly within xsl:stylesheet
Error at /xsl:stylesheet/xsl:mode[1]
XTSE0010: Unknown XSLT element: mode
Когда я использую последний SaxonEE9-8-0-14
, я не уверен, как использовать Serializer. net.sf.saxon.s9api.Serializer
// destination
Serializer serializer = new Serializer(); // This worked with 9.7 but errors with 9.8
serializer.setOutputWriter(writer);
serializer.setOutputProperty(Serializer.Property.METHOD, "xml");
serializer.setOutputProperty(Serializer.Property.OMIT_XML_DECLARATION, "yes");
serializer.setOutputProperty(Serializer.Property.ENCODING, "UTF-8");
transformer.setDestination(serializer);
Помогите пожалуйста