Skip to content

Commit a382f5a

Browse files
author
Steve Canny
committed
docs: document CT_Document analysis
1 parent a3658b5 commit a382f5a

File tree

2 files changed

+96
-0
lines changed

2 files changed

+96
-0
lines changed
Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
###############
2+
``CT_Document``
3+
###############
4+
5+
.. highlight:: xml
6+
7+
.. csv-table::
8+
:header-rows: 0
9+
:stub-columns: 1
10+
:widths: 15, 50
11+
12+
Schema Name , CT_Document
13+
Spec Name , Document
14+
Tag(s) , w:document
15+
Namespace , wordprocessingml (wml.xsd)
16+
Spec Section , 17.2.3
17+
18+
19+
Analysis
20+
========
21+
22+
23+
attributes
24+
^^^^^^^^^^
25+
26+
=========== === ===================
27+
name # type
28+
=========== === ===================
29+
conformance ? ST_ConformanceClass
30+
=========== === ===================
31+
32+
33+
child elements
34+
^^^^^^^^^^^^^^
35+
36+
========== === =============
37+
name # type
38+
========== === =============
39+
background ? CT_Background
40+
body ? CT_Body
41+
========== === =============
42+
43+
44+
Spec text
45+
^^^^^^^^^
46+
47+
This element specifies the contents of a main document part in
48+
a WordprocessingML document.
49+
50+
Consider the basic structure of the main document part in a basic
51+
WordprocessingML document, as follows::
52+
53+
<w:document>
54+
<w:body>
55+
<w:p/>
56+
</w:body>
57+
</w:document>
58+
59+
All of the contents of the main document part are contained beneath the
60+
document element.
61+
62+
63+
Schema excerpt
64+
^^^^^^^^^^^^^^
65+
66+
::
67+
68+
<xsd:complexType name="CT_Document">
69+
<xsd:sequence>
70+
<xsd:element name="background" type="CT_Background" minOccurs="0"/>
71+
<xsd:element name="body" type="CT_Body" minOccurs="0" maxOccurs="1"/>
72+
</xsd:sequence>
73+
<xsd:attribute name="conformance" type="s:ST_ConformanceClass"/>
74+
</xsd:complexType>
75+
76+
<xsd:complexType name="CT_Background">
77+
<xsd:sequence>
78+
<xsd:sequence maxOccurs="unbounded">
79+
<xsd:any processContents="lax" namespace="urn:schemas-microsoft-com:vml" minOccurs="0" maxOccurs="unbounded"/>
80+
<xsd:any processContents="lax" namespace="urn:schemas-microsoft-com:office:office" minOccurs="0" maxOccurs="unbounded"/>
81+
</xsd:sequence>
82+
<xsd:element name="drawing" type="CT_Drawing" minOccurs="0"/>
83+
</xsd:sequence>
84+
<xsd:attribute name="color" type="ST_HexColor" use="optional"/>
85+
<xsd:attribute name="themeColor" type="ST_ThemeColor" use="optional"/>
86+
<xsd:attribute name="themeTint" type="ST_UcharHexNumber" use="optional"/>
87+
<xsd:attribute name="themeShade" type="ST_UcharHexNumber" use="optional"/>
88+
</xsd:complexType>
89+
90+
<xsd:complexType name="CT_Body">
91+
<xsd:sequence>
92+
<xsd:group ref="EG_BlockLevelElts" minOccurs="0" maxOccurs="unbounded"/>
93+
<xsd:element name="sectPr" minOccurs="0" maxOccurs="1" type="CT_SectPr"/>
94+
</xsd:sequence>
95+
</xsd:complexType>

doc/developer/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@ Developer Documentation
77
:maxdepth: 2
88

99
design_narratives
10+
analysis/ct_document
1011
analysis/ct_body
1112
analysis/ct_p

0 commit comments

Comments
 (0)