@@ -13,12 +13,22 @@ package excelize
1313
1414import "encoding/xml"
1515
16- // Source relationship and namespace.
16+ // Source relationship and namespace list, associated prefixes and schema in which it was
17+ // introduced.
1718var (
18- SourceRelationship = xml.Attr {Name : xml.Name {Local : "r" , Space : "xmlns" }, Value : "http://schemas.openxmlformats.org/officeDocument/2006/relationships" }
19- SourceRelationshipCompatibility = xml.Attr {Name : xml.Name {Local : "mc" , Space : "xmlns" }, Value : "http://schemas.openxmlformats.org/markup-compatibility/2006" }
20- NameSpaceSpreadSheet = xml.Attr {Name : xml.Name {Local : "xmlns" }, Value : "http://schemas.openxmlformats.org/spreadsheetml/2006/main" }
21- NameSpaceSpreadSheetX14 = xml.Attr {Name : xml.Name {Local : "x14" , Space : "xmlns" }, Value : "http://schemas.microsoft.com/office/spreadsheetml/2009/9/main" }
19+ SourceRelationship = xml.Attr {Name : xml.Name {Local : "r" , Space : "xmlns" }, Value : "http://schemas.openxmlformats.org/officeDocument/2006/relationships" }
20+ SourceRelationshipCompatibility = xml.Attr {Name : xml.Name {Local : "mc" , Space : "xmlns" }, Value : "http://schemas.openxmlformats.org/markup-compatibility/2006" }
21+ SourceRelationshipChart20070802 = xml.Attr {Name : xml.Name {Local : "c14" , Space : "xmlns" }, Value : "http://schemas.microsoft.com/office/drawing/2007/8/2/chart" }
22+ SourceRelationshipChart2014 = xml.Attr {Name : xml.Name {Local : "c16" , Space : "xmlns" }, Value : "http://schemas.microsoft.com/office/drawing/2014/chart" }
23+ SourceRelationshipChart201506 = xml.Attr {Name : xml.Name {Local : "c16r2" , Space : "xmlns" }, Value : "http://schemas.microsoft.com/office/drawing/2015/06/chart" }
24+ NameSpaceSpreadSheet = xml.Attr {Name : xml.Name {Local : "xmlns" }, Value : "http://schemas.openxmlformats.org/spreadsheetml/2006/main" }
25+ NameSpaceSpreadSheetX14 = xml.Attr {Name : xml.Name {Local : "x14" , Space : "xmlns" }, Value : "http://schemas.microsoft.com/office/spreadsheetml/2009/9/main" }
26+ NameSpaceDrawingML = xml.Attr {Name : xml.Name {Local : "a" , Space : "xmlns" }, Value : "http://schemas.openxmlformats.org/drawingml/2006/main" }
27+ NameSpaceDrawingMLChart = xml.Attr {Name : xml.Name {Local : "c" , Space : "xmlns" }, Value : "http://schemas.openxmlformats.org/drawingml/2006/chart" }
28+ NameSpaceDrawingMLSpreadSheet = xml.Attr {Name : xml.Name {Local : "xdr" , Space : "xmlns" }, Value : "http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing" }
29+ NameSpaceSpreadSheetX15 = xml.Attr {Name : xml.Name {Local : "x15" , Space : "xmlns" }, Value : "http://schemas.microsoft.com/office/spreadsheetml/2010/11/main" }
30+ NameSpaceSpreadSheetExcel2006Main = xml.Attr {Name : xml.Name {Local : "xne" , Space : "xmlns" }, Value : "http://schemas.microsoft.com/office/excel/2006/main" }
31+ NameSpaceMacExcel2008Main = xml.Attr {Name : xml.Name {Local : "mx" , Space : "xmlns" }, Value : "http://schemas.microsoft.com/office/mac/excel/2008/main" }
2232)
2333
2434// Source relationship and namespace.
@@ -37,15 +47,6 @@ const (
3747 SourceRelationshipPivotCache = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/pivotCacheDefinition"
3848 SourceRelationshipSharedStrings = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings"
3949 SourceRelationshipVBAProject = "http://schemas.microsoft.com/office/2006/relationships/vbaProject"
40- SourceRelationshipChart201506 = "http://schemas.microsoft.com/office/drawing/2015/06/chart"
41- SourceRelationshipChart20070802 = "http://schemas.microsoft.com/office/drawing/2007/8/2/chart"
42- SourceRelationshipChart2014 = "http://schemas.microsoft.com/office/drawing/2014/chart"
43- NameSpaceDrawingML = "http://schemas.openxmlformats.org/drawingml/2006/main"
44- NameSpaceDrawingMLChart = "http://schemas.openxmlformats.org/drawingml/2006/chart"
45- NameSpaceDrawingMLSpreadSheet = "http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing"
46- NameSpaceSpreadSheetX15 = "http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"
47- NameSpaceSpreadSheetExcel2006Main = "http://schemas.microsoft.com/office/excel/2006/main"
48- NameSpaceMacExcel2008Main = "http://schemas.microsoft.com/office/mac/excel/2008/main"
4950 NameSpaceXML = "http://www.w3.org/XML/1998/namespace"
5051 NameSpaceXMLSchemaInstance = "http://www.w3.org/2001/XMLSchema-instance"
5152 StrictSourceRelationship = "http://purl.oclc.org/ooxml/officeDocument/relationships"
0 commit comments