Hi ---- I am new to the list and not sure if my previous post was correctly received, please apologize if my question was posted already. ----
I have to support both ooxml-schemas-1.1 and ooxml.schemas1.4 in my application at the same time as I have to support different POI versions (for legacy purposes). For POI, I used the jarjar utility ( https://github.com/shevek/jarjar ) to repackage the legacy POI org.apache.poi into org.repackage.org.apache.poi. So the new POI will use org.apache.poi and the legacy POI will use org.repackage.org.apache.poi. So far so good. The problem arrives with the legacy ooxml-schemas-1.1.jar. If I use jarjar to repackage it, I get a ClassCastException. I read that this is because of namespace collisions in the XML Schemas, so I have to recompile ooxml-schemas-1.1.jar with a new namespace that doesn't collide with the ooxml-schemas.1.4.jar namespace. In the FAQs I read the following: "you can run the ant task "compile-ooxml-xsds" to have the OOXML schemas downloaded and compiled for you". What would you recommend to change the namespace before compiling them? What would I have to change and do you have any recommendations for this? And would I have to change the schema definition in the XLS files too before working with them? Best regards, Eduardo
