1
0

feat: add list support for XThesis

This commit is contained in:
2026-05-29 14:08:14 +08:00
parent c6f62a265d
commit 18467850c5
2 changed files with 49 additions and 11 deletions

View File

@@ -28,6 +28,8 @@
<xs:element ref="equation"/>
<xs:element ref="figure"/>
<xs:element ref="table"/>
<xs:element ref="ol"/>
<xs:element ref="ul"/>
<xs:element ref="pagebreaker"/>
</xs:choice>
</xs:group>
@@ -97,8 +99,7 @@
</xs:annotation>
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element ref="paragraph"/>
<xs:element ref="pagebreaker"/>
<xs:group ref="sectionBodyContent"/>
</xs:choice>
<xs:attribute name="caption" type="xs:string" use="required">
<xs:annotation>
@@ -419,6 +420,41 @@
</xs:annotation>
</xs:element>
<!-- ===== List Elements ===== -->
<xs:element name="ol">
<xs:annotation>
<xs:documentation>表示有序列表。内部包含多个 li 列表项。</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element ref="li" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="ul">
<xs:annotation>
<xs:documentation>表示无序列表。内部包含多个 li 列表项。</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element ref="li" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="li">
<xs:annotation>
<xs:documentation>列表项,仅可为 ol 或 ul 的子元素。其内容由 span、inlineeq、b、i、ref、cref、cite 等内联元素组成。</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:group ref="paraInlineContent"/>
</xs:choice>
</xs:complexType>
</xs:element>
<!-- ===== Misc ===== -->
<xs:element name="pagebreaker">