Giter Site home page Giter Site logo

ooxml-strict-converter's Introduction

ooxml-strict-converter

Code moved to https://github.com/pjfanning/excel-streaming-reader (pjfanning/excel-streaming-reader#21)

This is an early prototype code to take Strict OOXML files and save them using the more portable Transitional OOXML format. The ability to save in Strict OOXML format was introduced in Microsoft Office 2013. The aim is to provide a conversion utility that can be used to convert docs so that they can be parsed using Apache POI. https://bz.apache.org/bugzilla/show_bug.cgi?id=57699

The OOXML schemas are at http://www.ecma-international.org/publications/standards/Ecma-376.htm

When I have fixed a few issues, I will tidy up the code.

Current Algorithm

  • Produce new output file based on input file, both files are treated as zip files
  • Takes each XML file inside the input zip and uses StAX parser to read events, transform them and output to new XML file
  • Takes all known Strict OOXML namespaces and maps them to equivalent Transitional OOXML namespace
  • Checks attribute values like Relationship Type="http://purl.oclc.org/ooxml/officeDocument/relationships/officeDocument" and modifies the value to be equivalent Transitional OOXML value
  • In xl/workbook.xml, drop the conformance=“strict” attribute on the root element

ooxml-strict-converter's People

Contributors

pjfanning avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

ooxml-strict-converter's Issues

Release

Release a built jar-file ready for Command-Line usage to convert documents as a workaround for Apache POI #57699 / #57914

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.