I'm trying to convert an Excel spreadsheet that has been created using XML/XSLT, and the resulting spreadsheet XML has namespace declarations in it, which Aspose.Cells chokes on when I load it.
Here's the code I'm using:
Workbook xls = new Workbook(FileFormatType.Excel2003XML);
xls.Open("Input.xls");
xls.Save("AsposeOutput.xslx", FileFormatType.Excel2007Xlsx);
The Input.xls file starts as follows:
<?xml version="1.0"?>
<?mso-application progid="Excel.Sheet"?>
<Workbook xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" xmlns="urn:schemas-microsoft-com:office:spreadsheet" xmlns:html="http://www.w3.org/TR/REC-html40">
<Styles xmlns:exsl="http://exslt.org/common" xmlns:ms="urn:schemas-microsoft-com:xslt" xmlns:user=www.javascript.net>
This code generates the unhandled exception during the xls.Open call:
Line 4: Invalid tag "exsl"
Is there a way to get this to load without modifying the source?