ISO/IEC 29500 defines Office Open XML in two conformance classes. Transitional is
what nearly every .docx file is: it keeps features from older formats such as
VML, and ISO/IEC 29500-4 describes them. Strict drops those features. Part 1 (2.1)
defines a Strict document as one that obeys all the constraints of Part 1 and whose parts
are valid against the Strict schema (Annex A), after Markup Compatibility extensions are
removed. It names the classes WML Strict, SML Strict and PML Strict for the three kinds of
document, and the same for applications that read or write them (2.2).
Namespaces
Strict documents use other namespace URIs for the same element names:
| For | Transitional | Strict |
|---|---|---|
WordprocessingML (w) | http://schemas.openxmlformats.org/wordprocessingml/2006/main | http://purl.oclc.org/ooxml/wordprocessingml/main |
Relationships (r) | http://schemas.openxmlformats.org/officeDocument/2006/relationships | http://purl.oclc.org/ooxml/officeDocument/relationships |
DrawingML (a) | http://schemas.openxmlformats.org/drawingml/2006/main | http://purl.oclc.org/ooxml/drawingml/main |
Drawing placement (wp) | http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing | http://purl.oclc.org/ooxml/drawingml/wordprocessingDrawing |
Pictures (pic) | http://schemas.openxmlformats.org/drawingml/2006/picture | http://purl.oclc.org/ooxml/drawingml/picture |
Math (m) | http://schemas.openxmlformats.org/officeDocument/2006/math | http://purl.oclc.org/ooxml/officeDocument/math |
| Extended properties | http://schemas.openxmlformats.org/officeDocument/2006/extended-properties | http://purl.oclc.org/ooxml/officeDocument/extendedProperties |
Relationship types have the same Strict form: for example
http://purl.oclc.org/ooxml/officeDocument/relationships/styles in place of
http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles. The
content types of parts are the same in both.
Telling them apart
Check the namespace of the root element of the main part. The root w:document
has an optional attribute conformance (Part 1 17.2.3), of type
ST_ConformanceClass (22.9.2.2) with the values strict and
transitional. Part 1 says that if it is omitted, the value is
transitional. So w:conformance="strict" is how a document says it is
Strict, and the namespace URIs are what a reader can check without it. A reader that matches
only the prefix w: and the Transitional URIs will not recognise a Strict file.
<w:document xmlns:w="http://purl.oclc.org/ooxml/wordprocessingml/main"
xmlns:r="http://purl.oclc.org/ooxml/officeDocument/relationships"
w:conformance="strict">
…
</w:document>
Differences in WordprocessingML
| Item | Transitional | Strict |
|---|---|---|
Alignment, w:jc (ST_Jc) | left, right and others | start, center, end, both, mediumKashida, distribute, numTab, highKashida, lowKashida, thaiDistribute |
Tab stops, ST_TabJc | left, right and others | clear, start, center, end, decimal, bar, num |
Table alignment, ST_JcTable | Includes left, right | center, end, start |
Indents, w:ind | w:left, w:right and the …Chars forms | w:start, w:end, w:startChars, w:endChars; w:hanging and w:firstLine are kept |
Borders and margins of tables and cells (w:tblBorders, w:tcBorders, w:tblCellMar, w:tcMar) | w:left, w:right | w:start, w:end |
Text direction, ST_TextDirection | Also btLr, lrTb, lrTbV, tbLrV, tbRl, tbRlV | tb, rl, lr, tbV, rlV, lrV |
On/off values, ST_OnOff | An XSD boolean (true, false, 1, 0) or on, off | An XSD boolean only |
Percentages: ST_DecimalNumberOrPercent, w:tcW and w:tblW with w:type="pct" | A plain integer or a percentage with % | Only a percentage with %, such as 100% |
Pictures and objects (w:object, w:numPicBullet, w:background) | VML shapes (w:pict in runs), and VML inside these three elements | A w:drawing child in these three; w:pict is not among the run content elements of Strict |
Compatibility settings (w:compat) | All, including the many legacy elements of ISO/IEC 29500-4 | Seven elements (spaceForUL, balanceSingleByteDoubleByteWidth, doNotLeaveBackslashAlone, ulTrailSpace, doNotExpandShiftReturn, adjustLineHeightInTable, applyBreakingRules) and w:compatSetting |
Password attributes: w:documentProtection, w:writeProtection | AG_Password (algorithmName, hashValue, saltValue, spinCount) and AG_TransitionalPassword (cryptProviderType, cryptAlgorithmClass, cryptAlgorithmType, cryptAlgorithmSid, cryptSpinCount, cryptProvider, algIdExt, algIdExtSource, …) | AG_Password only |
w:tblLook | The six on/off attributes and a hex w:val | The six on/off attributes only |
| Other elements whose Strict content model differs in the schema comparison | w:numPr (with w:ins), w:fldChar, w:simpleField, w:cnfStyle, the settings list in w:settings, the style-pane filter, w:webSettings, w:lvl. The viewer’s Strict table has these; this page does not list each difference. | |
The Transitional column of this table comes from the Transitional schema of ISO/IEC 29500-4
(wml.xsd and shared-commonSimpleTypes.xsd), and the Strict column from
the Strict schema of Part 1 Annex A. The set of types that differ is the one in the viewer’s
Strict table, made by comparing the two schemas. What a particular file uses still depends on
the program that wrote it.
The Strict relationship types use the same purl.oclc.org form for every part:
Part 1 11.3.8 gives the glossary part the type
http://purl.oclc.org/ooxml/officeDocument/relationships/glossaryDocument, and 11.3.10
gives the main part the type …/relationships/officeDocument.
The explorer on this site treats both as one format: it maps the two sets of namespaces to the same names, accepts the different values, and reports which class the document claims.