Add markup compatibility schema for Office Open XML

This commit is contained in:
2026-03-02 09:47:36 +00:00
parent 72ba19a061
commit 429f7c308d
+62
View File
@@ -0,0 +1,62 @@
<?xml version="1.0" encoding="utf-8"?>
<xsd:schema xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
attributeFormDefault="unqualified" elementFormDefault="qualified"
targetNamespace="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:annotation>
<xsd:documentation>This schema defines elements and attributes for Office Open XML markup compatibility.</xsd:documentation>
</xsd:annotation>
<xsd:attribute name="Ignorable" type="xsd:string">
<xsd:annotation>
<xsd:documentation>Specifies which prefixes should be ignored if they are not recognized.</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="ProcessContent" type="xsd:string">
<xsd:annotation>
<xsd:documentation>Specifies which prefixes should have their content processed.</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="MustUnderstand" type="xsd:string">
<xsd:annotation>
<xsd:documentation>Specifies which prefixes must be understood for proper interpretation.</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:element name="AlternateContent">
<xsd:annotation>
<xsd:documentation>Container for alternative content based on markup compatibility.</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="mc:Choice" maxOccurs="unbounded"/>
<xsd:element ref="mc:Fallback" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="Choice">
<xsd:annotation>
<xsd:documentation>Alternative content choice based on namespace support.</xsd:documentation>
</xsd:annotation>
<xsd:complexType mixed="true">
<xsd:sequence>
<xsd:any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
<xsd:attribute name="Requires" type="xsd:string" use="required">
<xsd:annotation>
<xsd:documentation>Specifies which namespace prefixes must be understood for this choice to be selected.</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:anyAttribute namespace="##any" processContents="lax"/>
</xsd:complexType>
</xsd:element>
<xsd:element name="Fallback">
<xsd:annotation>
<xsd:documentation>Fallback content when no Choice element's requirements are met.</xsd:documentation>
</xsd:annotation>
<xsd:complexType mixed="true">
<xsd:sequence>
<xsd:any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
<xsd:anyAttribute namespace="##any" processContents="lax"/>
</xsd:complexType>
</xsd:element>
</xsd:schema>