Skip to content

Commit

Permalink
add August 2024 XSD updates
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeebowen committed Aug 28, 2024
1 parent 2f495c9 commit fd47ec1
Show file tree
Hide file tree
Showing 16 changed files with 395 additions and 2 deletions.
5 changes: 5 additions & 0 deletions data/namespaces.json
Original file line number Diff line number Diff line change
Expand Up @@ -694,6 +694,11 @@
"Uri": "http://schemas.microsoft.com/office/spreadsheetml/2016/pivotdefaultlayout",
"Version": "Office2019"
},
{
"Prefix": "xprd",
"Uri": "http://schemas.microsoft.com/office/spreadsheetml/2022/pivotRichData",
"Version": "Microsoft365"
},
{
"Prefix": "xr",
"Uri": "http://schemas.microsoft.com/office/spreadsheetml/2014/revision",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
{
"TargetNamespace": "http://schemas.microsoft.com/office/spreadsheetml/2022/pivotRichData",
"Types": [
{
"Name": "xprd:CT_PivotCacheRichInfo/xprd:richInfo",
"ClassName": "RichInfoPivotCacheRichInfo",
"Summary": "Defines the RichInfoPivotCacheRichInfo Class.",
"BaseClass": "OpenXmlPivotCacheRichInfoElement",
"IsDerived": true,
"IsLeafElement": true,
"Version": "Microsoft365"
},
{
"Name": "xprd:CT_PivotCacheRichInfo/xprd:pivotCacheHasRichValue",
"ClassName": "PivotCacheHasRichValuePivotCacheRichInfo",
"Summary": "Defines the PivotCacheHasRichValuePivotCacheRichInfo Class.",
"BaseClass": "OpenXmlPivotCacheRichInfoElement",
"IsDerived": true,
"IsLeafElement": true,
"Version": "Microsoft365"
},
{
"Name": "xprd:CT_PivotCacheRichInfo/",
"ClassName": "OpenXmlPivotCacheRichInfoElement",
"Summary": "Defines the OpenXmlPivotCacheRichInfoElement Class.",
"BaseClass": "OpenXmlLeafElement",
"IsAbstract": true,
"IsLeafElement": true,
"Version": "Microsoft365",
"Attributes": [
{
"QName": ":pivotCacheGuid",
"Type": "StringValue",
"Version": "Microsoft365",
"PropertyComments": "pivotCacheGuid",
"Validators": [
{
"Name": "RequiredValidator"
},
{
"Arguments": [
{
"Type": "Boolean",
"Name": "IsToken",
"Value": "True"
},
{
"Type": "String",
"Name": "Pattern",
"Value": "\\{[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}\\}"
}
],
"Name": "StringValidator",
"IsInitialVersion": true
}
]
},
{
"QName": ":pivotIgnoreInvalidCache",
"Type": "BooleanValue",
"Version": "Microsoft365",
"PropertyComments": "pivotIgnoreInvalidCache"
},
{
"QName": "r:id",
"Type": "StringValue",
"Version": "Microsoft365",
"PropertyComments": "id"
}
]
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,18 @@
{
"Version": "Microsoft365",
"Value": "median"
},
{
"Version": "Microsoft365",
"Value": "distinctDuplicates"
},
{
"Version": "Microsoft365",
"Value": "countValuesDuplicated"
},
{
"Version": "Microsoft365",
"Value": "countRepeatValues"
}
],
"Version": "Microsoft365"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24271,9 +24271,21 @@
"Name": "xsd:boolean/xxpim:implicitMeasureSupport",
"PropertyName": "Xsdboolean"
},
{
"Name": "xprd:CT_PivotCacheRichInfo/xprd:pivotCacheHasRichValue",
"PropertyName": "PivotCacheHasRichValuePivotCacheRichInfo"
},
{
"Name": "xprd:CT_PivotCacheRichInfo/xprd:richInfo",
"PropertyName": "RichInfoPivotCacheRichInfo"
},
{
"Name": "xxpvi:CT_CacheVersionInfo/xxpvi:cacheVersionInfo",
"PropertyName": "CacheVersionInfo"
},
{
"Name": "xsd:boolean/xlpar:autoRefresh",
"PropertyName": "Xsdboolean"
}
],
"Particle": {
Expand All @@ -24299,10 +24311,22 @@
"Name": "xsd:boolean/xxpim:implicitMeasureSupport",
"InitialVersion": "Office2021"
},
{
"Name": "xprd:CT_PivotCacheRichInfo/xprd:pivotCacheHasRichValue",
"InitialVersion": "Microsoft365"
},
{
"Name": "xprd:CT_PivotCacheRichInfo/xprd:richInfo",
"InitialVersion": "Microsoft365"
},
{
"Name": "xxpvi:CT_CacheVersionInfo/xxpvi:cacheVersionInfo",
"InitialVersion": "Microsoft365"
},
{
"Name": "xsd:boolean/xlpar:autoRefresh",
"InitialVersion": "Microsoft365"
},
{
"Kind": "Any",
"Occurs": [
Expand Down
4 changes: 4 additions & 0 deletions data/typed/namespaces.json
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,10 @@
"Prefix": "xxl21",
"Namespace": "DocumentFormat.OpenXml.Office.SpreadSheetML.Y2021.ExtLinks2021"
},
{
"Prefix": "xprd",
"Namespace": "DocumentFormat.OpenXml.Office.SpreadSheetML.Y2022.PivotRichData"
},
{
"Prefix": "xxpvi",
"Namespace": "DocumentFormat.OpenXml.Office.SpreadSheetML.Y2022.PivotVersionInfo"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[
{
"Name": "xprd:CT_PivotCacheRichInfo/",
"ClassName": "OpenXmlPivotCacheRichInfoElement"
},
{
"Name": "xprd:CT_PivotCacheRichInfo/xprd:pivotCacheHasRichValue",
"ClassName": "PivotCacheHasRichValuePivotCacheRichInfo"
},
{
"Name": "xprd:CT_PivotCacheRichInfo/xprd:richInfo",
"ClassName": "RichInfoPivotCacheRichInfo"
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ internal partial class OpenXmlNamespaceResolver
{ "http://schemas.microsoft.com/office/excel/2006/main", "xne" },
{ "http://schemas.microsoft.com/office/spreadsheetml/2019/namedsheetviews", "xnsv" },
{ "http://schemas.microsoft.com/office/spreadsheetml/2016/pivotdefaultlayout", "xpdl" },
{ "http://schemas.microsoft.com/office/spreadsheetml/2022/pivotRichData", "xprd" },
{ "http://schemas.microsoft.com/office/spreadsheetml/2014/revision", "xr" },
{ "http://schemas.microsoft.com/office/spreadsheetml/2016/revision10", "xr10" },
{ "http://schemas.microsoft.com/office/spreadsheetml/2017/revision16", "xr16" },
Expand Down Expand Up @@ -328,6 +329,7 @@ internal partial class OpenXmlNamespaceResolver
{ "xne", "http://schemas.microsoft.com/office/excel/2006/main" },
{ "xnsv", "http://schemas.microsoft.com/office/spreadsheetml/2019/namedsheetviews" },
{ "xpdl", "http://schemas.microsoft.com/office/spreadsheetml/2016/pivotdefaultlayout" },
{ "xprd", "http://schemas.microsoft.com/office/spreadsheetml/2022/pivotRichData" },
{ "xr", "http://schemas.microsoft.com/office/spreadsheetml/2014/revision" },
{ "xr10", "http://schemas.microsoft.com/office/spreadsheetml/2016/revision10" },
{ "xr16", "http://schemas.microsoft.com/office/spreadsheetml/2017/revision16" },
Expand Down Expand Up @@ -495,6 +497,7 @@ internal partial class OpenXmlNamespaceResolver
{ "xne", FileFormatVersions.Office2007 },
{ "xnsv", FileFormatVersions.Office2021 },
{ "xpdl", FileFormatVersions.Office2019 },
{ "xprd", FileFormatVersions.Microsoft365 },
{ "xr", FileFormatVersions.Office2016 },
{ "xr10", FileFormatVersions.Office2019 },
{ "xr16", FileFormatVersions.Office2019 },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1454,7 +1454,7 @@ public static partial class X
/// <para>As an XML element, it:</para>
/// <list type="bullet">
/// <item><description>has the following parent XML elements: <see cref="extLst" />, <see cref="X14.extLst" />, <see cref="X15.extLst" />, <see cref="XFPB.extLst" />, <see cref="XLMSFORMS.extLst" />, <see cref="XLRD.extLst" />, <see cref="XLRD2.extLst" />, <see cref="XLRDWI.extLst" />, <see cref="XLTC.extLst" />, <see cref="XNSV.extLst" />.</description></item>
/// <item><description>has the following child XML elements: <see cref="X14.cacheField" />, <see cref="X14.cacheHierarchy" />, <see cref="X14.calculatedMember" />, <see cref="X14.conditionalFormattings" />, <see cref="X14.connection" />, <see cref="X14.dataField" />, <see cref="X14.dataValidations" />, <see cref="X14.definedNames" />, <see cref="X14.dxfs" />, <see cref="X14.id" />, <see cref="X14.ignoredErrors" />, <see cref="X14.pivotCacheDefinition" />, <see cref="X14.pivotCaches" />, <see cref="X14.pivotField" />, <see cref="X14.pivotHierarchy" />, <see cref="X14.pivotTableDefinition" />, <see cref="X14.protectedRanges" />, <see cref="X14.slicerCaches" />, <see cref="X14.slicerList" />, <see cref="X14.slicerStyles" />, <see cref="X14.sourceConnection" />, <see cref="X14.sparklineGroups" />, <see cref="X14.table" />, <see cref="X14.workbookPr" />, <see cref="X15.cachedUniqueNames" />, <see cref="X15.cacheHierarchy" />, <see cref="X15.calculatedMember" />, <see cref="X15.connection" />, <see cref="X15.dataField" />, <see cref="X15.dataModel" />, <see cref="X15.dxfs" />, <see cref="X15.movingPeriodState" />, <see cref="X15.pivotCacheDecoupled" />, <see cref="X15.pivotCacheIdVersion" />, <see cref="X15.pivotCaches" />, <see cref="X15.pivotFilter" />, <see cref="X15.pivotTableData" />, <see cref="X15.pivotTableReferences" />, <see cref="X15.pivotTableUISettings" />, <see cref="X15.queryTable" />, <see cref="X15.slicerCacheHideItemsWithNoData" />, <see cref="X15.slicerCachePivotTables" />, <see cref="X15.slicerCaches" />, <see cref="X15.tableSlicerCache" />, <see cref="X15.timelineCachePivotCaches" />, <see cref="X15.timelineCacheRefs" />, <see cref="X15.timelinePivotCacheDefinition" />, <see cref="X15.timelineRefs" />, <see cref="X15.timelineStyles" />, <see cref="X15.webExtensions" />, <see cref="X15.workbookPr" />, <see cref="XLECS.externalCodeService" />, <see cref="XLMSFORMS.msForm" />, <see cref="XXPIM.implicitMeasureSupport" />, <see cref="XXPVI.cacheVersionInfo" />, <see cref="XXPVI.pivotVersionInfo" />.</description></item>
/// <item><description>has the following child XML elements: <see cref="X14.cacheField" />, <see cref="X14.cacheHierarchy" />, <see cref="X14.calculatedMember" />, <see cref="X14.conditionalFormattings" />, <see cref="X14.connection" />, <see cref="X14.dataField" />, <see cref="X14.dataValidations" />, <see cref="X14.definedNames" />, <see cref="X14.dxfs" />, <see cref="X14.id" />, <see cref="X14.ignoredErrors" />, <see cref="X14.pivotCacheDefinition" />, <see cref="X14.pivotCaches" />, <see cref="X14.pivotField" />, <see cref="X14.pivotHierarchy" />, <see cref="X14.pivotTableDefinition" />, <see cref="X14.protectedRanges" />, <see cref="X14.slicerCaches" />, <see cref="X14.slicerList" />, <see cref="X14.slicerStyles" />, <see cref="X14.sourceConnection" />, <see cref="X14.sparklineGroups" />, <see cref="X14.table" />, <see cref="X14.workbookPr" />, <see cref="X15.cachedUniqueNames" />, <see cref="X15.cacheHierarchy" />, <see cref="X15.calculatedMember" />, <see cref="X15.connection" />, <see cref="X15.dataField" />, <see cref="X15.dataModel" />, <see cref="X15.dxfs" />, <see cref="X15.movingPeriodState" />, <see cref="X15.pivotCacheDecoupled" />, <see cref="X15.pivotCacheIdVersion" />, <see cref="X15.pivotCaches" />, <see cref="X15.pivotFilter" />, <see cref="X15.pivotTableData" />, <see cref="X15.pivotTableReferences" />, <see cref="X15.pivotTableUISettings" />, <see cref="X15.queryTable" />, <see cref="X15.slicerCacheHideItemsWithNoData" />, <see cref="X15.slicerCachePivotTables" />, <see cref="X15.slicerCaches" />, <see cref="X15.tableSlicerCache" />, <see cref="X15.timelineCachePivotCaches" />, <see cref="X15.timelineCacheRefs" />, <see cref="X15.timelinePivotCacheDefinition" />, <see cref="X15.timelineRefs" />, <see cref="X15.timelineStyles" />, <see cref="X15.webExtensions" />, <see cref="X15.workbookPr" />, <see cref="XLECS.externalCodeService" />, <see cref="XLMSFORMS.msForm" />, <see cref="XLPAR.autoRefresh" />, <see cref="XPRD.pivotCacheHasRichValue" />, <see cref="XPRD.richInfo" />, <see cref="XXPIM.implicitMeasureSupport" />, <see cref="XXPVI.cacheVersionInfo" />, <see cref="XXPVI.pivotVersionInfo" />.</description></item>
/// <item><description>has the following XML attributes: <see cref="NoNamespace.uri" />.</description></item>
/// <item><description>corresponds to the following strongly-typed classes: CacheFieldExtension, CacheHierarchyExtension, CacheSourceExtension, CalculatedMemberExtension, ConditionalFormattingRuleExtension, ConnectionExtension, DataFieldExtension, Extension, PivotCacheDefinitionExtension, PivotFieldExtension, PivotFilterExtension, PivotHierarchyExtension, PivotTableDefinitionExtension, QueryTableExtension, SlicerCacheDefinitionExtension, StylesheetExtension, TableExtension, WorkbookExtension, WorksheetExtension.</description></item>
/// </list>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using System.Xml.Linq;

namespace DocumentFormat.OpenXml.Linq
{
/// <summary>
/// Declares XNamespace and XName fields for the xmlns:xlpar="http://schemas.microsoft.com/office/spreadsheetml/2024/pivotAutoRefresh" namespace.
/// </summary>
public static partial class XLPAR
{
/// <summary>
/// Defines the XML namespace associated with the xlpar prefix.
/// </summary>
public static readonly XNamespace xlpar = "http://schemas.microsoft.com/office/spreadsheetml/2024/pivotAutoRefresh";

/// <summary>
/// Represents the xlpar:autoRefresh XML element.
/// </summary>
/// <remarks>
/// <para>As an XML element, it:</para>
/// <list type="bullet">
/// <item><description>has the following parent XML elements: <see cref="X.ext" />.</description></item>
/// <item><description>corresponds to the following strongly-typed classes: Xsdboolean.</description></item>
/// </list>
/// </remarks>
public static readonly XName autoRefresh = xlpar + "autoRefresh";
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using System.Xml.Linq;

namespace DocumentFormat.OpenXml.Linq
{
/// <summary>
/// Declares XNamespace and XName fields for the xmlns:xprd="http://schemas.microsoft.com/office/spreadsheetml/2022/pivotRichData" namespace.
/// </summary>
public static partial class XPRD
{
/// <summary>
/// Defines the XML namespace associated with the xprd prefix.
/// </summary>
public static readonly XNamespace xprd = "http://schemas.microsoft.com/office/spreadsheetml/2022/pivotRichData";

/// <summary>
/// Represents the xprd:pivotCacheHasRichValue XML element.
/// </summary>
/// <remarks>
/// <para>As an XML element, it:</para>
/// <list type="bullet">
/// <item><description>has the following parent XML elements: <see cref="X.ext" />.</description></item>
/// <item><description>corresponds to the following strongly-typed classes: PivotCacheHasRichValuePivotCacheRichInfo.</description></item>
/// </list>
/// </remarks>
public static readonly XName pivotCacheHasRichValue = xprd + "pivotCacheHasRichValue";

/// <summary>
/// Represents the xprd:richInfo XML element.
/// </summary>
/// <remarks>
/// <para>As an XML element, it:</para>
/// <list type="bullet">
/// <item><description>has the following parent XML elements: <see cref="X.ext" />.</description></item>
/// <item><description>corresponds to the following strongly-typed classes: RichInfoPivotCacheRichInfo.</description></item>
/// </list>
/// </remarks>
public static readonly XName richInfo = xprd + "richInfo";
}
}
Loading

0 comments on commit fd47ec1

Please sign in to comment.