tests/kitchenSink.ts authors one deterministic document using every feature; schema-validation.test.ts validates its .odt against the ODF 1.3 RelaxNG and its .docx parts (after MCE resolution, as Word reads them) against the ECMA-376 transitional XSDs — the structural half of Word's strict reader, which LibreOffice silently forgives. Schemas vendored under tests/schemas/ (sources and offline patches in its README); self-skips without xmllint, which CI now installs.
26 lines
1.3 KiB
XML
26 lines
1.3 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
|
xmlns="http://schemas.openxmlformats.org/officeDocument/2006/relationships"
|
|
xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships"
|
|
elementFormDefault="qualified"
|
|
targetNamespace="http://schemas.openxmlformats.org/officeDocument/2006/relationships"
|
|
blockDefault="#all">
|
|
<xsd:simpleType name="ST_RelationshipId">
|
|
<xsd:restriction base="xsd:string"/>
|
|
</xsd:simpleType>
|
|
<xsd:attribute name="id" type="ST_RelationshipId"/>
|
|
<xsd:attribute name="embed" type="ST_RelationshipId"/>
|
|
<xsd:attribute name="link" type="ST_RelationshipId"/>
|
|
<xsd:attribute name="dm" type="ST_RelationshipId" default=""/>
|
|
<xsd:attribute name="lo" type="ST_RelationshipId" default=""/>
|
|
<xsd:attribute name="qs" type="ST_RelationshipId" default=""/>
|
|
<xsd:attribute name="cs" type="ST_RelationshipId" default=""/>
|
|
<xsd:attribute name="blip" type="ST_RelationshipId" default=""/>
|
|
<xsd:attribute name="pict" type="ST_RelationshipId"/>
|
|
<xsd:attribute name="href" type="ST_RelationshipId"/>
|
|
<xsd:attribute name="topLeft" type="ST_RelationshipId"/>
|
|
<xsd:attribute name="topRight" type="ST_RelationshipId"/>
|
|
<xsd:attribute name="bottomLeft" type="ST_RelationshipId"/>
|
|
<xsd:attribute name="bottomRight" type="ST_RelationshipId"/>
|
|
</xsd:schema>
|