Hi, I think you are in luck.
Using Word 2007, I saved a document using that choice of filetype.
The result was an XML file which looks like:
- Code: Select all
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<?mso-application progid="Word.Document"?>
<pkg:package xmlns:pkg="http://schemas.microsoft.com/office/2006/xmlPackage"><pkg:part pkg:name="/_rels/.rels" pkg:contentType="application/vnd.openxmlformats-package.relationships+xml" pkg:padding="512"><pkg:xmlData><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties" Target="docProps/app.xml"/><Relationship Id="rId2" Type="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties" Target="docProps/core.xml"/><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="word/document.xml"/></Relationships></pkg:xmlData></pkg:part> ....
which looks like what I've been calling "Package format". docx4j uses this as an intermediate format for XSLT transformations; docx4all shows it when the uses selects "View Source"
So you should be able to import this using org.docx4j.convert.in.XmlPackage, and export to it using org.docx4j.convert.out.xmlPackage.XmlPackage
See also org.docx4j.samples.ImportFromPackageFormat and .ExportInPackageFormat
Let us know how you go!