Diff for Math Domain Elements

Sat, 2009-02-21 19:27 by bnordgrenSat, 2009-02-21 20:13 by bnordgren
Changes to Body
Line 6Line 6
 
<h2 id="Bodyelements">Body elements<a href="http://www.smoke-fire.us/trac/firelab/wiki/Documentation/MathInDita/Elements#Bodyelements" title="Link to this section" class="anchor"> </a></h2>
 
<h2 id="Bodyelements">Body elements<a href="http://www.smoke-fire.us/trac/firelab/wiki/Documentation/MathInDita/Elements#Bodyelements" title="Link to this section" class="anchor"> </a></h2>
 
<p>
 
<p>
-
These elements are generally available for use wherever text is allowed.
+
These elements are generally available for use wherever text is allowed.
  +
</p>
  +
<p>
  +
Note that &lt;math&gt; and &lt;mathph&gt; are essentially identical because they both inherit from &lt;foreign&gt; and have the same content model.  They therefore become available in exactly the same places.  Ideally, we would like &lt;math&gt; to be legal wherever &lt;p&gt; is legal, and &lt;mathph&gt; to be legal wherever &lt;ph&gt; is legal, I think.  
  +
</p>
  +
<h3 id="math">math</h3>
  +
<p>
  +
Inherits from &lt;foreign&gt;.
 
</p>
 
</p>
-
<h3 id="math">math<a href="http://www.smoke-fire.us/trac/firelab/wiki/Documentation/MathInDita/Elements#math" title="Link to this section" class="anchor"> </a></h3>
  
 
<p>
 
<p>
 
Attributes:
 
Attributes:
Line 45Line 51
 
<td> conref </td>
 
<td> conref </td>
 
<td> identifies a math element contained by another topic </td>
 
<td> identifies a math element contained by another topic </td>
-
<td>&nbsp;</td>
+
<td> </td>
 
<td> None
 
<td> None
 
</td>
 
</td>
Line 68Line 74
 
This element will render at the same level as paragraph content. It is intended to be used for stand-alone expressions.
 
This element will render at the same level as paragraph content. It is intended to be used for stand-alone expressions.
 
</p>
 
</p>
-
<h3 id="mathph">mathph<a href="http://www.smoke-fire.us/trac/firelab/wiki/Documentation/MathInDita/Elements#mathph" title="Link to this section" class="anchor"> </a></h3>
+
<h3 id="mathph">mathph</h3>
  +
<p>
  +
Inherits from &lt;foreign&gt;
  +
</p>
 
<p>
 
<p>
 
Attributes:
 
Attributes:
Line 105Line 114
 
<td> conref </td>
 
<td> conref </td>
 
<td> identifies a math element contained by another topic </td>
 
<td> identifies a math element contained by another topic </td>
-
<td>&nbsp;</td>
+
<td> </td>
 
<td> None
 
<td> None
 
</td>
 
</td>
Line 130Line 139
 
<h3 id="equation">equation<a href="http://www.smoke-fire.us/trac/firelab/wiki/Documentation/MathInDita/Elements#equation" title="Link to this section" class="anchor"> </a></h3>
 
<h3 id="equation">equation<a href="http://www.smoke-fire.us/trac/firelab/wiki/Documentation/MathInDita/Elements#equation" title="Link to this section" class="anchor"> </a></h3>
 
<p>
 
<p>
-
Inherits from fig. This is a container for a mathematical expression which includes an optional title and which serves as a target for an xref element with type=&quot;eq&quot;. It contains a math element followed by an optional eqsymbols element. If it is copied into the current context with conref=,
+
Inherits from &lt;fig&gt;.
  +
</p>
  +
<p>
  +
This is a container for a mathematical expression which includes an optional title and which serves as a target for an xref element with type=&quot;eq&quot;. It contains a &lt;math&gt; element followed by an optional &lt;eqsymbols&gt; element. If it is copied into the current context with conref=,
 
then the copy retains all of the properties described by the children
 
then the copy retains all of the properties described by the children
 
of the source, except for those which are overridden by explicitly
 
of the source, except for those which are overridden by explicitly
 
specifying them in <em>this</em> context.
 
specifying them in <em>this</em> context.
 
</p>
 
</p>
-
<h3 id="symname">symname<a href="http://www.smoke-fire.us/trac/firelab/wiki/Documentation/MathInDita/Elements#symname" title="Link to this section" class="anchor"> </a></h3>
+
<br />
-
<p>
+
-
The symname element (see below) may be used to reference a symbol used in an equation from the text.
+
-
</p>
+
 
<h2 id="Equationspecificelements">Equation specific elements<a href="http://www.smoke-fire.us/trac/firelab/wiki/Documentation/MathInDita/Elements#Equationspecificelements" title="Link to this section" class="anchor"> </a></h2>
 
<h2 id="Equationspecificelements">Equation specific elements<a href="http://www.smoke-fire.us/trac/firelab/wiki/Documentation/MathInDita/Elements#Equationspecificelements" title="Link to this section" class="anchor"> </a></h2>
 
<p>
 
<p>
 
An equation element may contain a list of symbol
 
An equation element may contain a list of symbol
 
definitions which explain the terms used in the formula. These symbol
 
definitions which explain the terms used in the formula. These symbol
-
definitions are symbol/text pairs much like a parameter list. Authors
+
definitions are symbol/text pairs.  Each symbol may have one terse and one verbose description.  Elements in this section inherit from the family of elements which define a definition list.
-
may refer to any symbol defined in this list from the text.
+
</p>
  +
<p>
  +
<strong>These elements should always be suppressed (generate no output).  </strong>They exist to capture information and bind it to the source.  Presentation of this information may occur in (at least) two different forms, and the option to combine the presentation of symbols from multiple equations into a single list should be offered to the author.  See &lt;eqdefstbl&gt; and &lt;eqdefsph&gt;.
  +
</p>
  +
<h3 id="eqsymbols">eqsymbols</h3>
  +
<p>
  +
Inherits from &lt;dl&gt;.
 
</p>
 
</p>
-
<h3 id="eqsymbols">eqsymbols<a href="http://www.smoke-fire.us/trac/firelab/wiki/Documentation/MathInDita/Elements#eqsymbols" title="Link to this section" class="anchor"> </a></h3>
  
 
<p>
 
<p>
 
This element contains all of the symbols which the author chooses to define. If the containing equation element is not in a mathexpression reference page, then these are the only symbols defined for the associated expression. If it is within a mathexpression reference page, then all of the symbols defined for the page are inherited unless they are overridden here.
 
This element contains all of the symbols which the author chooses to define. If the containing equation element is not in a mathexpression reference page, then these are the only symbols defined for the associated expression. If it is within a mathexpression reference page, then all of the symbols defined for the page are inherited unless they are overridden here.
 
</p>
 
</p>
-
<h3 id="eqsymbol">eqsymbol<a href="http://www.smoke-fire.us/trac/firelab/wiki/Documentation/MathInDita/Elements#eqsymbol" title="Link to this section" class="anchor"> </a></h3>
+
<h3 id="eqsymbol">eqsymbol</h3>
 
<p>
 
<p>
-
Contains a name/description pair.
+
Inherits from &lt;dlentry&gt;.
  +
</p>
  +
<p>
  +
Contains a name/description pair.
 
</p>
 
</p>
 
<h3 id="symname1">symname<a href="http://www.smoke-fire.us/trac/firelab/wiki/Documentation/MathInDita/Elements#symname1" title="Link to this section" class="anchor"> </a></h3>
 
<h3 id="symname1">symname<a href="http://www.smoke-fire.us/trac/firelab/wiki/Documentation/MathInDita/Elements#symname1" title="Link to this section" class="anchor"> </a></h3>
 
<p>
 
<p>
-
Contains the symbol name. Also references the symbol if present in a block of text with the conref= attribute set. Must contain a mml:math element if conref= is not set, and the mml:math element should be limited to containing a single &lt;ci&gt;, &lt;mi&gt;, or &lt;csymbol&gt; element.
+
Inherits from &lt;dt&gt;.
  +
</p>
  +
<p>
  +
Contains the symbol name.   The content model is identical to &lt;dt&gt; (the element it inherits from) to allow authors to type simple symbol names (i.e. x) directly.  However, it is expected that in most cases this element will contain a &lt;mathph&gt; element with type=&quot;symbol&quot;, and the referenced expression should refer only to the desired symbol.  The symbol may be defined using any of the expression languages to which &lt;mathph&gt; may be applied.
  +
</p>
  +
<p>
  +
To discuss the symbol in the text, it is expected that authors will use &lt;mathph conref=.. /&gt; where the conref= attribute specifies the child of &lt;symname&gt;  This practice encourages good document maintenance habits and gives authors the ability to change the symbol everywhere it is used merely by changing it once, when it is defined.  To make this same feature available to those who would type simple symbol names directly, authors are encouraged to declare the symbol name inside a child &lt;ph&gt; element.
 
</p>
 
</p>
 
<h3 id="symdesc">symdesc<a href="http://www.smoke-fire.us/trac/firelab/wiki/Documentation/MathInDita/Elements#symdesc" title="Link to this section" class="anchor"> </a></h3>
 
<h3 id="symdesc">symdesc<a href="http://www.smoke-fire.us/trac/firelab/wiki/Documentation/MathInDita/Elements#symdesc" title="Link to this section" class="anchor"> </a></h3>
  +
<p>
  +
Inherits from &lt;dd&gt;.
  +
</p>
 
<p>
 
<p>
 
Contains a symbol description. This will appear in the tabular
 
Contains a symbol description. This will appear in the tabular
 
presentation of symbols, so it should be at least a complete sentence
 
presentation of symbols, so it should be at least a complete sentence
-
and may be a <em>short</em> paragraph.
+
and may be a <em>short</em> paragraph.
  +
</p>
  +
<h3 id="symdescph">symdescph</h3>
  +
<p>
  +
Inherits from &lt;dd&gt;.
 
</p>
 
</p>
-
<h3 id="symdescph">symdescph<a href="http://www.smoke-fire.us/trac/firelab/wiki/Documentation/MathInDita/Elements#symdescph" title="Link to this section" class="anchor"> </a></h3>
  
 
<p>
 
<p>
 
Contains a brief symbol description. This will appear in an inline
 
Contains a brief symbol description. This will appear in an inline
 
presentation of symbols, so it should be brief, a sentence fragment. It
 
presentation of symbols, so it should be brief, a sentence fragment. It
-
should be written to fit the pattern &quot;symbol is symdescph&quot;.
+
should be written to fit the pattern &quot;symname is symdescph&quot;.
 
</p>
 
</p>
 
<h2 id="SymbollistElements">Symbol list Elements<a href="http://www.smoke-fire.us/trac/firelab/wiki/Documentation/MathInDita/Elements#SymbollistElements" title="Link to this section" class="anchor"> </a></h2>
 
<h2 id="SymbollistElements">Symbol list Elements<a href="http://www.smoke-fire.us/trac/firelab/wiki/Documentation/MathInDita/Elements#SymbollistElements" title="Link to this section" class="anchor"> </a></h2>
Line 177Line 206
 
the symbol list from many equations.
 
the symbol list from many equations.
 
</p>
 
</p>
-
<h3 id="eqdefs_ph">eqdefs_ph<a href="http://www.smoke-fire.us/trac/firelab/wiki/Documentation/MathInDita/Elements#eqdefs_ph" title="Link to this section" class="anchor"> </a></h3>
+
<h3 id="eqdefs_ph">eqdefsph</h3>
  +
<p>
  +
Inherits from &lt;unknown&gt;.
  +
</p>
 
<p>
 
<p>
 
An inline phrase which presents a list of all the symbols and definitions. Contains one or more xref
 
An inline phrase which presents a list of all the symbols and definitions. Contains one or more xref
Line 183Line 215
 
display symbols. The final result should be deterministic: e.g., &quot;symbol1 is descriptive phrase1, symbol2 is descriptive phrase2 and symbol3 is descriptive phrase 3&quot;. May contain an optional eqsymbols element which overrides particular symbols and adds to the list of symbols discovered by the xref mechanism. The default is to define all symbols for all equations included by any topic referenced in the top-level map.
 
display symbols. The final result should be deterministic: e.g., &quot;symbol1 is descriptive phrase1, symbol2 is descriptive phrase2 and symbol3 is descriptive phrase 3&quot;. May contain an optional eqsymbols element which overrides particular symbols and adds to the list of symbols discovered by the xref mechanism. The default is to define all symbols for all equations included by any topic referenced in the top-level map.
 
</p>
 
</p>
-
<h3 id="eqdefs_tbl">eqdefs_tbl<a href="http://www.smoke-fire.us/trac/firelab/wiki/Documentation/MathInDita/Elements#eqdefs_tbl" title="Link to this section" class="anchor"> </a></h3>
+
<h3 id="eqdefs_tbl">eqdefstbl</h3>
  +
<p>
  +
Inherits from &lt;unknown&gt;.
  +
</p>
 
<p>
 
<p>
 
A tabular presentation of the symbols and corresponding definitions.
 
A tabular presentation of the symbols and corresponding definitions.
Line 200Line 235
 
presentation expressions (along with their symbol definitions) which
 
presentation expressions (along with their symbol definitions) which
 
they can later reuse.
 
they can later reuse.
-
</p>
  
-
<p>
  
-
<strong>Do we need to redeclare all the elements used in this specialization or just the ones we wish to specialize?</strong>
  
 
</p>
 
</p>
 
<p>
 
<p>
Revision of Sat, 2009-02-21 20:13:

Math Domain Elements

Elements in the DITA Math Domain

This page contains a list of the elements supplied to implement a DITA math domain.

Body elements

These elements are generally available for use wherever text is allowed.

Note that <math> and <mathph> are essentially identical because they both inherit from <foreign> and have the same content model.  They therefore become available in exactly the same places.  Ideally, we would like <math> to be legal wherever <p> is legal, and <mathph> to be legal wherever <ph> is legal, I think.  

math

Inherits from <foreign>.

Attributes:

Name Description Possible values Default
type Declares the category to which this expression belongs presentation|content|symbol presentation
href Itentifies an external file containing a math expression in an expression language specified by the format attribute. Any file None
format Specifies the expression language contained by the file identified by the href attribute. openmath|mathml|openoffice mathml
conref identifies a math element contained by another topic   None

Note that one has a choice:

  1. Include MathML directly and do not specify href, format, or conref.
  2. Do not include child elements, specify the conref attribute but not href and format.
  3. Do not include child elements, specify the href and format attributes but not conref.

If the expression is to be included directly, one and only one child element is allowed.

This element will render at the same level as paragraph content. It is intended to be used for stand-alone expressions.

mathph

Inherits from <foreign>

Attributes:

Name Description Possible values Default
type Declares the category to which this expression belongs presentation|content|symbol presentation
href Itentifies an external file containing a math expression in an expression language specified by the format attribute. Any file None
format Specifies the expression language contained by the file identified by the href attribute. openmath|mathml|openoffice mathml
conref identifies a math element contained by another topic   None

Note that one has a choice:

  1. Include MathML directly and do not specify href, format, or conref.
  2. Do not include child elements, specify the conref attribute but not href and format.
  3. Do not include child elements, specify the href and format attributes but not conref.

If the expression is to be included directly, one and only one child element is allowed.

This element will render at the sentence level. It is intended to be used for inline expressions.

equation

Inherits from <fig>.

This is a container for a mathematical expression which includes an optional title and which serves as a target for an xref element with type="eq". It contains a <math> element followed by an optional <eqsymbols> element. If it is copied into the current context with conref=, then the copy retains all of the properties described by the children of the source, except for those which are overridden by explicitly specifying them in this context.


Equation specific elements

An equation element may contain a list of symbol definitions which explain the terms used in the formula. These symbol definitions are symbol/text pairs.  Each symbol may have one terse and one verbose description.  Elements in this section inherit from the family of elements which define a definition list.

These elements should always be suppressed (generate no output).  They exist to capture information and bind it to the source.  Presentation of this information may occur in (at least) two different forms, and the option to combine the presentation of symbols from multiple equations into a single list should be offered to the author.  See <eqdefstbl> and <eqdefsph>.

eqsymbols

Inherits from <dl>.

This element contains all of the symbols which the author chooses to define. If the containing equation element is not in a mathexpression reference page, then these are the only symbols defined for the associated expression. If it is within a mathexpression reference page, then all of the symbols defined for the page are inherited unless they are overridden here.

eqsymbol

Inherits from <dlentry>.

Contains a name/description pair.

symname

Inherits from <dt>.

Contains the symbol name.   The content model is identical to <dt> (the element it inherits from) to allow authors to type simple symbol names (i.e. x) directly.  However, it is expected that in most cases this element will contain a <mathph> element with type="symbol", and the referenced expression should refer only to the desired symbol.  The symbol may be defined using any of the expression languages to which <mathph> may be applied.

To discuss the symbol in the text, it is expected that authors will use <mathph conref=.. /> where the conref= attribute specifies the child of <symname>  This practice encourages good document maintenance habits and gives authors the ability to change the symbol everywhere it is used merely by changing it once, when it is defined.  To make this same feature available to those who would type simple symbol names directly, authors are encouraged to declare the symbol name inside a child <ph> element.

symdesc

Inherits from <dd>.

Contains a symbol description. This will appear in the tabular presentation of symbols, so it should be at least a complete sentence and may be a short paragraph.

symdescph

Inherits from <dd>.

Contains a brief symbol description. This will appear in an inline presentation of symbols, so it should be brief, a sentence fragment. It should be written to fit the pattern "symname is symdescph".

Symbol list Elements

The elements in this section present the defined symbols to the reader. The presentation may be tabular or inline. In addition, one may present the list of symbols for a single equation or may choose to consolidate the symbol list from many equations.

eqdefsph

Inherits from <unknown>.

An inline phrase which presents a list of all the symbols and definitions. Contains one or more xref elements, each of which specifies a single equation from which to display symbols. The final result should be deterministic: e.g., "symbol1 is descriptive phrase1, symbol2 is descriptive phrase2 and symbol3 is descriptive phrase 3". May contain an optional eqsymbols element which overrides particular symbols and adds to the list of symbols discovered by the xref mechanism. The default is to define all symbols for all equations included by any topic referenced in the top-level map.

eqdefstbl

Inherits from <unknown>.

A tabular presentation of the symbols and corresponding definitions. Each symbol/description pair occurs in a single row of the table. The description here is intended to be more complete than the descriptive phrase. Contains one or more xref elements, each of which specifies a single equation from which to display symbols. The result here can be less deterministic, as it is not intended to be integrated into a sentence. May contain an optional eqsymbols element which overrides particular symbols and adds to the list of symbols discovered by the xref mechanism. The default is to define all symbols for all equations included by any topic referenced in the top-level map.

Math Topic Elements

This topic type, which specializes a standard DITA reference topic, allows users to associate content and presentation expressions with an OpenMath symbol. It also allows users to declare content and presentation expressions (along with their symbol definitions) which they can later reuse.

We should specialize the properties family of elements so that the author can define the symbols used in this topic's equations only once. Or perhaps use the eqsymbols family of elements in their stead. Can we do that?

mathexpression

Inherits from reference. May contain shortdesc, desc, prolog, and everything else a reference element contains.

mathbody

Inherits from refbody. May contain expressions.

expression

Inherits from section. May contain only one equation, but otherwise may contain any combination of text, tables, figures, etc. The type attribute of the equation declares whether this expression is a content or presentation expression.

XML.org Focus Areas: BPEL | DITA | ebXML | IDtrust | OpenDocument | SAML | UBL | UDDI
OASIS sites: OASIS | Cover Pages | XML.org | AMQP | CGM Open | eGov | Emergency | IDtrust | LegalXML | Open CSA | OSLC | WS-I