Good day! I am using xslt conversion to convert docx file to html. and get the following error

XPathException: Values of 'standalone' and 'omit-xml-declaration' conflict 

It is assumed that the .docx file is already unzipped. To generate html, I process the word / document.xml file

  TransformerFactory factory = TransformerFactory.newInstance(); StreamSource xslStream = new StreamSource("DocX2Html.xsl"); Transformer transformer = factory.newTransformer(xslStream); StreamSource streamSource = new StreamSource("1/word/document.xml"); StreamResult out = new StreamResult("out.html"); transformer.transform(streamSource, out); 

Xslt file

More about the error:

 Error on line 6515 of DocX2Html.xsl: SEPM0009: Values of 'standalone' and 'omit-xml-declaration' conflict at xsl:apply-templates (file:///C:/Users/Administrator/IdeaProjects/docx-xslx-to-html/DocX2Html.xsl#6617) processing /w:document Exception in thread "main" ; SystemID: file:///C:/Users/Administrator/IdeaProjects/docx-xslx-to-html/DocX2Html.xsl; Line#: 6515; Column#: -1 net.sf.saxon.trans.XPathException: Values of 'standalone' and 'omit-xml-declaration' conflict 

I do not quite understand why this error occurs?

    0