2 <!DOCTYPE doc SYSTEM "../doc.dtd">
3 <?xml-stylesheet type="text/xsl" href="../html.xsl"?>
5 xmlns:xi="http://www.w3.org/2001/XInclude">
8 XML documentation system
9 Original author : Arjen Baart - arjen@andromeda.nl
10 Version : $Revision: 1.3 $
12 This document is prepared for XMLDoc. Transform to HTML,
13 LaTeX, Postscript or plain text with XMLDoc utilities and
14 XSLT sheets from http://www.andromeda.nl/projects/xmldoc/
19 <title>XML documentation system</title>
20 <subtitle>Document preparation and conversion in XML</subtitle>
22 <author>Arjen Baart <code><arjen@andromeda.nl></code></author>
23 <date>Oct 17, 2007</date>
25 <infoitem label="Version">0.8</infoitem>
26 <infoitem label="Organization">Andromeda Technology & Automation</infoitem>
29 This guide explains the concepts of <strong>XMLDoc</strong> and discusses
30 the features available to prepare documentation.
31 <strong>XMLDoc</strong> uses XSLT transformations to turn the XML source
32 document into a number of other formats.
38 <xi:include href="intro.xml"/>
40 <xi:include href="overall.xml"/>
42 <xi:include href="block.xml"/>
44 <xi:include href="inline.xml"/>
47 <heading>References</heading>
49 <label name='exref'/>Creating hypertext references is as simple as it is in HTML.
50 The element used for references is <strong>reference</strong>, which
51 adheres to the <emph>XLink</emph> syntax.
52 We need to add one more attribute to the usual <strong>href</strong>
58 <reference xml:link="simple"
59 href="http://www.andromeda.nl/project/xmldoc/xmldoc.html">
62 provide the installation instructions.
66 <reference xml:link="simple"
67 href="http://www.andromeda.nl/projects/xmldoc/xmldoc.html">
70 provides the installation instructions.
74 <label name='inref'/>An internal reference requires at least two elements.
75 The reference itself, which points to another place in the document and a label
76 to which the reference refers.
77 There can of course be multiple references to a single label.
78 The point in the document where reference can point to is marked
79 by a <code>label</code> element.
80 A <code>label</code> is an empty element with exactly one attribute,
81 the <code>name</code> of the label.
82 Each <code>label</code> must have a <code>name</code> that is unique
83 throughout the document.
84 Here is an example of a label:
88 <label name='example'/>
92 You can refer to a label from any other place in the document by using a
93 <code>ref</code> or a <code>page</code> element.
94 The <code>page</code> element creates a reference to the page number on which
95 the <code>label</code> is printed.
96 This is of course only usefull on printed media, such as LaTeX.
97 The <code>ref</code> and <code>page</code> elements also require one
102 <ref to='example'>example reference</ref>
106 The required attribute <code>to</code> holds the name of the
107 label to which the reference refers.
108 The <code>ref</code> element is usually not empty.
109 The <ref to='inline'>inline</ref><page to='inline'>, described on page </page>
110 content of the <code>ref</code> element is used to create the reference.
111 For example, when the document is transformed into HTML, the content
112 will become a clickable link.
113 The content of the <code>page</code> element is only renedered in LaTeX output.
117 <xi:include href="multifiles.xml"/>
119 <xi:include href="glossary.xml"/>
123 <heading>Other XML applications</heading>
125 <heading>MathML</heading>
126 <math xmlns:math="http://www.w3.org/1998/Math/MathML">
129 <math:mfenced open="[" close="]">
131 <math:mi>θ</math:mi>
137 <math:mn>260</math:mn>
142 <math:mfenced open="{" close="}">
159 <heading>Things to do</heading>
161 <item>MathML and SVG conversion to LaTeX</item>
162 <item>XML Schema definition and validation</item>
163 <item>Font sizes</item>
164 <item>Center environment</item>
165 <item>A utility to create XMLDoc tables from raw ASCII data</item>
166 <item>Index generation</item>
167 <item>Bibliographics</item>
168 <item>Man pages</item>
169 <item>List of figures, list of tables</item>