Skip to content

Commit 6a700d1

Browse files
committed
add patch for CT_ExternalBookAlternateUrls
1 parent ed5e1b5 commit 6a700d1

File tree

3 files changed

+117
-75
lines changed

3 files changed

+117
-75
lines changed

data/schemas/schemas_openxmlformats_org_spreadsheetml_2006_main.json

Lines changed: 88 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -16478,77 +16478,6 @@
1647816478
}
1647916479
]
1648016480
},
16481-
{
16482-
"Name": "x:CT_ExternalSheetNames/x:sheetNames",
16483-
"ClassName": "SheetNames",
16484-
"Summary": "Supporting Workbook Sheet Names.",
16485-
"BaseClass": "OpenXmlCompositeElement",
16486-
"Children": [
16487-
{
16488-
"Name": "x:CT_ExternalSheetName/x:sheetName"
16489-
}
16490-
],
16491-
"Particle": {
16492-
"Kind": "Sequence",
16493-
"Items": [
16494-
{
16495-
"Name": "x:CT_ExternalSheetName/x:sheetName",
16496-
"Occurs": [
16497-
{
16498-
"Min": 1,
16499-
"Max": 65534
16500-
}
16501-
]
16502-
}
16503-
]
16504-
}
16505-
},
16506-
{
16507-
"Name": "x:CT_ExternalDefinedNames/x:definedNames",
16508-
"ClassName": "ExternalDefinedNames",
16509-
"Summary": "Named Links.",
16510-
"BaseClass": "OpenXmlCompositeElement",
16511-
"Children": [
16512-
{
16513-
"Name": "x:CT_ExternalDefinedName/x:definedName"
16514-
}
16515-
],
16516-
"Particle": {
16517-
"Kind": "Sequence",
16518-
"Items": [
16519-
{
16520-
"Name": "x:CT_ExternalDefinedName/x:definedName",
16521-
"Occurs": [
16522-
{}
16523-
]
16524-
}
16525-
]
16526-
}
16527-
},
16528-
{
16529-
"Name": "x:CT_ExternalSheetDataSet/x:sheetDataSet",
16530-
"ClassName": "SheetDataSet",
16531-
"Summary": "Cached Worksheet Data.",
16532-
"BaseClass": "OpenXmlCompositeElement",
16533-
"Children": [
16534-
{
16535-
"Name": "x:CT_ExternalSheetData/x:sheetData"
16536-
}
16537-
],
16538-
"Particle": {
16539-
"Kind": "Sequence",
16540-
"Items": [
16541-
{
16542-
"Name": "x:CT_ExternalSheetData/x:sheetData",
16543-
"Occurs": [
16544-
{
16545-
"Min": 1
16546-
}
16547-
]
16548-
}
16549-
]
16550-
}
16551-
},
1655216481
{
1655316482
"Name": "x:CT_ExternalDefinedName/x:definedName",
1655416483
"ClassName": "ExternalDefinedName",
@@ -16901,25 +16830,39 @@
1690116830
}
1690216831
],
1690316832
"Children": [
16833+
{
16834+
"Name": "xxl21:CT_ExternalBookAlternateUrls/xxl21:alternateUrls",
16835+
"PropertyName": "ExternalBookAlternateUrls",
16836+
"PropertyComments": "Alternate URLs and identifiers of the external book"
16837+
},
1690416838
{
1690516839
"Name": "x:CT_ExternalSheetNames/x:sheetNames",
1690616840
"PropertyName": "SheetNames",
16907-
"PropertyComments": "Supporting Workbook Sheet Names"
16841+
"PropertyComments": "Sheet names of supporting book"
1690816842
},
1690916843
{
1691016844
"Name": "x:CT_ExternalDefinedNames/x:definedNames",
1691116845
"PropertyName": "ExternalDefinedNames",
16912-
"PropertyComments": "Named Links"
16846+
"PropertyComments": "Defined names associated with supporting book."
1691316847
},
1691416848
{
1691516849
"Name": "x:CT_ExternalSheetDataSet/x:sheetDataSet",
1691616850
"PropertyName": "SheetDataSet",
16917-
"PropertyComments": "Cached Worksheet Data"
16851+
"PropertyComments": "Cached worksheet data associated with supporting book"
1691816852
}
1691916853
],
1692016854
"Particle": {
1692116855
"Kind": "Sequence",
1692216856
"Items": [
16857+
{
16858+
"Name": "xxl21:CT_ExternalBookAlternateUrls/xxl21:alternateUrls",
16859+
"Occurs": [
16860+
{
16861+
"Max": 1
16862+
}
16863+
],
16864+
"InitialVersion": "Microsoft365"
16865+
},
1692316866
{
1692416867
"Name": "x:CT_ExternalSheetNames/x:sheetNames",
1692516868
"Occurs": [
@@ -25454,6 +25397,77 @@
2545425397
}
2545525398
]
2545625399
}
25400+
},
25401+
{
25402+
"Name": "x:CT_ExternalSheetNames/x:sheetNames",
25403+
"ClassName": "SheetNames",
25404+
"Summary": "Sheet names of supporting book.",
25405+
"BaseClass": "OpenXmlCompositeElement",
25406+
"Children": [
25407+
{
25408+
"Name": "x:CT_ExternalSheetName/x:sheetName"
25409+
}
25410+
],
25411+
"Particle": {
25412+
"Kind": "Sequence",
25413+
"Items": [
25414+
{
25415+
"Name": "x:CT_ExternalSheetName/x:sheetName",
25416+
"Occurs": [
25417+
{
25418+
"Min": 1,
25419+
"Max": 65534
25420+
}
25421+
]
25422+
}
25423+
]
25424+
}
25425+
},
25426+
{
25427+
"Name": "x:CT_ExternalDefinedNames/x:definedNames",
25428+
"ClassName": "ExternalDefinedNames",
25429+
"Summary": "Defined names associated with supporting book..",
25430+
"BaseClass": "OpenXmlCompositeElement",
25431+
"Children": [
25432+
{
25433+
"Name": "x:CT_ExternalDefinedName/x:definedName"
25434+
}
25435+
],
25436+
"Particle": {
25437+
"Kind": "Sequence",
25438+
"Items": [
25439+
{
25440+
"Name": "x:CT_ExternalDefinedName/x:definedName",
25441+
"Occurs": [
25442+
{}
25443+
]
25444+
}
25445+
]
25446+
}
25447+
},
25448+
{
25449+
"Name": "x:CT_ExternalSheetDataSet/x:sheetDataSet",
25450+
"ClassName": "SheetDataSet",
25451+
"Summary": "Cached worksheet data associated with supporting book.",
25452+
"BaseClass": "OpenXmlCompositeElement",
25453+
"Children": [
25454+
{
25455+
"Name": "x:CT_ExternalSheetData/x:sheetData"
25456+
}
25457+
],
25458+
"Particle": {
25459+
"Kind": "Sequence",
25460+
"Items": [
25461+
{
25462+
"Name": "x:CT_ExternalSheetData/x:sheetData",
25463+
"Occurs": [
25464+
{
25465+
"Min": 1
25466+
}
25467+
]
25468+
}
25469+
]
25470+
}
2545725471
}
2545825472
],
2545925473
"Enums": [

test/DocumentFormat.OpenXml.Framework.Tests/ElementChildren.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43253,6 +43253,10 @@
4325343253
{
4325443254
"Element": "DocumentFormat.OpenXml.Spreadsheet.ExternalBook",
4325543255
"Children": [
43256+
{
43257+
"Name": "alternateUrls",
43258+
"Namespace": "http://schemas.microsoft.com/office/spreadsheetml/2021/extlinks2021"
43259+
},
4325643260
{
4325743261
"Name": "definedNames",
4325843262
"Namespace": "http://schemas.openxmlformats.org/spreadsheetml/2006/main"

test/DocumentFormat.OpenXml.Packaging.Tests/data/Particles.json

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62066,9 +62066,33 @@
6206662066
"Key": "DocumentFormat.OpenXml.Spreadsheet.ExternalBook",
6206762067
"Value": [
6206862068
{
62069-
"Key": "Office2007, Office2010, Office2013, Office2016, Office2019, Office2021, Microsoft365",
62069+
"Key": "Office2007, Office2010, Office2013, Office2016, Office2019, Office2021",
62070+
"Value": {
62071+
"ChildrenParticles": [
62072+
{
62073+
"ElementType": "DocumentFormat.OpenXml.Spreadsheet.SheetNames",
62074+
"MinOccurs": 0
62075+
},
62076+
{
62077+
"ElementType": "DocumentFormat.OpenXml.Spreadsheet.ExternalDefinedNames",
62078+
"MinOccurs": 0
62079+
},
62080+
{
62081+
"ElementType": "DocumentFormat.OpenXml.Spreadsheet.SheetDataSet",
62082+
"MinOccurs": 0
62083+
}
62084+
],
62085+
"ParticleType": "Sequence"
62086+
}
62087+
},
62088+
{
62089+
"Key": "Microsoft365",
6207062090
"Value": {
6207162091
"ChildrenParticles": [
62092+
{
62093+
"ElementType": "DocumentFormat.OpenXml.Office.SpreadSheetML.Y2021.ExtLinks2021.ExternalBookAlternateUrls",
62094+
"MinOccurs": 0
62095+
},
6207262096
{
6207362097
"ElementType": "DocumentFormat.OpenXml.Spreadsheet.SheetNames",
6207462098
"MinOccurs": 0

0 commit comments

Comments
 (0)