https://issues.apache.org/bugzilla/show_bug.cgi?id=47616

           Summary: Schema element is saved without standard namespace
           Product: POI
           Version: 3.5-dev
          Platform: PC
        OS/Version: Mac OS X 10.4
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XSSF
        AssignedTo: [email protected]
        ReportedBy: [email protected]


Created an attachment (id=24073)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=24073)
The original XLSX file

Hi,

I've tried the new tool to import XML into XSLSX files using the Custom XML
mapping and I found a problem.

If you load an XSLS file, import data from XML and then save the XLSX back to
file, the xmlMaps.xml part becomes corrupted.

I've attached two XLSX file to show the problem.

If you open the original xmlMaps.xml file it looks like this:

<Schema 
   ID="Schema13" 
   Namespace="http://schemas.openxmlformats.org/spreadsheetml/2006/main";>

  <xsd:schema 
    targetNamespace="http://schemas.openxmlformats.org/spreadsheetml/2006/main";
    elementFormDefault="qualified"
    xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main";  
    xmlns:xsd="http://www.w3.org/2001/XMLSchema";>


while the file saved from POI looks like this:

<Schema 
   ID="Schema13" 
   Namespace="http://schemas.openxmlformats.org/spreadsheetml/2006/main";>
   <xsd:schema 
     
targetNamespace="http://schemas.openxmlformats.org/spreadsheetml/2006/main";
      elementFormDefault="qualified" 
      xmlns:xsd="http://www.w3.org/2001/XMLSchema";>


It seems that the xmlns attribute of the inner xsd:schema element is removed by
XMLBeans (I don't know if it's not saved or not readed from the original file).

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to