https://bz.apache.org/bugzilla/show_bug.cgi?id=67396

--- Comment #5 from PJ Fanning <fannin...@yahoo.com> ---
I did a test with POI 5.2.3 and I see that some of the XML files inside the
xlsx files created by POI can end up with `standalone="no"`.

See write-example branch of https://github.com/pjfanning/poi-gradle-example

The files I saw with this are:
[Content_Types].xml
docProps/core.xml
_rels/.rels
xl/_rels/workbook.xml.rels

These files seem to be written using org.apache.poi.openxml4j.opc.StreamHelper.

This class uses a javax Transformer and tries to set standalone=yes but it
looks like the transformer ignores this.

I added 'net.sf.saxon:Saxon-HE:11.6' to the classpath and this means that Saxon
provides the Transformer instead of the default Java one being used. With
Saxon, the output has standalone=yes. Note that Saxon-HE 12 has changes that
mean it doesn't work with POI/XMLBeans.

So try adding 'net.sf.saxon:Saxon-HE:11.6' to your classpath and see if that
helps  in your case.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org

Reply via email to