|
29 | 29 | <li>Syntax diagrams and explanations</li> |
30 | 30 | </ul> |
31 | 31 | </section> |
32 | | - <!--<section id="purpose"><title>The purpose of the reference topic</title><p>Reference topics provide data that supports users as they perform a task. Reference topics might provide lists and tables that include product specifications, parts lists, and other data that is often <q>looked up</q> rather than memorized. A reference topic also can describe commands in a programming language or required tools for a series of maintenance tasks.</p><p>Reference topics provide quick access to fact-based information. In technical information, reference topics are used to list product specifications and parameters, provide essential data, and provide detailed information on subjects such as the commands in a programming language. Reference topics can contain any subject matter that has regular content, such as ingredients for food in recipes, bibliographic lists, catalog items, and so on.</p></section>--> |
33 | 32 | <section id="content-model"> |
34 | 33 | <title>Content model</title> |
35 | 34 | <p>The body of a reference topic can contain the following document |
|
41 | 40 | </li> |
42 | 41 | <li>Sections: <xmlelement>section</xmlelement></li> |
43 | 42 | <li>Syntax sections: <xref keyref="elements-refsyn"><xmlelement>refsyn</xmlelement></xref></li> |
44 | | - <li>Tables: <xmlelement>simpletable</xmlelement> and |
45 | | - <xmlelement>table</xmlelement></li> |
| 43 | + <li>Tables: <xmlelement>simpletable</xmlelement> and <xmlelement>table</xmlelement></li> |
46 | 44 | </ul> |
47 | 45 | <p>These structures can appear in any order or combination. However, |
48 | 46 | basic document structure such as paragraphs, lists, and figures |
49 | 47 | cannot be placed directly in the body of the reference topic. They |
50 | 48 | must be contained within one of the structures listed above.</p> |
51 | 49 | </section> |
52 | | - <!--<section id="structure"><title>The structure of the reference topic</title><p>The top-level element for a reference topic is the <xmlelement>reference</xmlelement> element.</p><p>The <xmlelement>refbody</xmlelement> element contains the main body-level elements of the reference topic. Reference topics limit the body to tables (both simple and complex), property lists, syntax sections, generic sections, and examples.</p><p>All of the elements of <xmlelement>refbody</xmlelement> are optional; they can appear in any sequence and number.</p></section>--> |
53 | | - <!--<section id="limitations"><title>Limitations on the reference body</title><p>The <xmlelement>refbody</xmlelement> provides for an unlimited number of subdivisions in the form of sections, examples, syntax sections, property lists, and tables. Simple tables, complex tables, and property lists also can appear within syntax sections. Sections, examples, syntax sections, table subdivisions, and property lists cannot nest; only one level of subdivision is permitted in the reference topic.</p></section>--> |
54 | | - <!--<section id="elements"><title>The elements in the reference body</title><draft-comment author="robander" audience="spec-editors" time="25 may 2021">Like in concept, this is almost but not quite a redefinition of section, example, etc</draft-comment><dl><dlentry><dt><xmlelement>section</xmlelement> </dt><dd>Represents an organizational division in a reference topic. Sections organize subsets of information within a larger topic. You can only include a simple list of peer sections in a topic; sections cannot be nested. A section can have an optional title. </dd></dlentry><dlentry><dt><xmlelement>refsyn</xmlelement> </dt><dd>Contains syntax or signature content (for example, a command-line utility's calling syntax or an API's signature). The <xmlelement>refsyn</xmlelement> contains a brief, possibly diagrammatic description of the subject's interface or high-level structure. </dd></dlentry><dlentry><dt><xmlelement>example</xmlelement> </dt><dd>Provides examples that illustrate or support the current topic. The <xmlelement>example</xmlelement> element has the same content model as <xmlelement>section</xmlelement>. </dd></dlentry><dlentry><dt><xmlelement>table</xmlelement> </dt><dd>Organizes information according into a rows and columns. Table markup also allows for more complex structures, including spanning rows and columns, as well as table captions. </dd></dlentry><dlentry><dt><xmlelement>simpletable</xmlelement> </dt><dd>Holds information in regular rows and columns and does not allow a caption. </dd></dlentry><dlentry><dt><xmlelement>properties</xmlelement> </dt><dd>Lists properties of a subject and their types, values, and descriptions. </dd></dlentry></dl></section>--> |
55 | | - <!--<example id="example" otherprops="examples"><title>Example</title><draft-comment author="robander" audience="spec-editors" time="25 may 2021">Should not start with "Following is …"</draft-comment><p>The following code examples contains a simple reference topic, including the <xmlelement>refsyn</xmlelement> element. </p><codeblock><reference id="boldproperty"> |
56 | | -<title>Bold property</title> |
57 | | -<shortdesc>(Read-write) Whether to use a bold font for the specified text string.</shortdesc> |
58 | | -<refbody> |
59 | | - <refsyn> |
60 | | - <synph> |
61 | | - <var>object</var><delim>.</delim><kwd>Font</kwd><delim>.</delim> |
62 | | - <kwd>Bold</kwd><delim> = </delim><var>trueorfalse</var> |
63 | | - </synph> |
64 | | - </refsyn> |
65 | | - <properties> |
66 | | - <property> |
67 | | - <proptype>Data type</proptype> |
68 | | - <propvalue>Boolean</propvalue> |
69 | | - </property> |
70 | | - <property> |
71 | | - <proptype>Legal values</proptype> |
72 | | - <propvalue>True (1) or False (0)</propvalue> |
73 | | - </property> |
74 | | - </properties> |
75 | | -</refbody> |
76 | | -</reference></codeblock></example>--> |
77 | 50 | <example id="example" otherprops="examples"> |
78 | 51 | <title>Example</title> |
79 | 52 | <p>The following code sample contains a simple reference topic:</p> |
80 | 53 | <draft-comment author="Kristen J Eberlein" time="26 October 2022"> |
81 | | - <p>While the following code sample is a perfectly reasonable |
82 | | - example of a properties list, I think we could provide a better |
83 | | - example of a reference topic.</p> |
| 54 | + <p>TODO: While the following code sample is a perfectly reasonable example of a properties |
| 55 | + list, I think we could provide a better example of a reference topic.</p> |
84 | 56 | </draft-comment> |
85 | 57 | <codeblock><reference id="oil-types"> |
86 | 58 | <title>Oil types</title> |
|
0 commit comments